F4-210 php divide by zero, memory allocation error and wants to initialize again

Initialization of newly purchased TNAS or re-installation of your TNAS
Locked
User avatar
psperneac
Posts: 2
Joined: 17 Jun 2020, 05:16

F4-210 php divide by zero, memory allocation error and wants to initialize again

Post by psperneac »

Fresh F4-210, 2GB memory, 4x4TB HDDs; Plex is the only app installed. I started copying files into it; had TOS window open in another tab; about 2 hours in I noticed the little panel was showing N/A for CPU and Memory and a WARNING somephpfile.php division by zero. Tried to reload the UI, got the initialize screen with the timezone select box empty. Tried to ssh into the box, connection terminates immediately with "unable to allocate memory". All this time my file copy continued at the same speed. I restarted the box and it's ok now; but wondering if you are aware of these problems.

I stopped Plex, installed DLNA media server instead... maybe it's less memory hungry.

Model: F4-210
TOS version: 4.1.24-2005180955

Any ideas? Do you want any logs? Here's the top output while it's running normally

Code: Select all

paul@TNAS-00EC3B:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                      512         0       512   0% /dev
/dev/md9               2885520    389604   2329624  14% /
tmpfs                   813508      1520    811988   0% /tmp
tmpfs                      512         0       512   0% /dev
tmpfs                   813508      3000    810508   0% /var
/dev/mapper/vg0-lv0  11612486008 329974572 11223971160   3% /mnt/md0


top:

Mem: 1377680K used, 249336K free, 12596K shrd, 5732K buff, 1149396K cached
CPU:   3% usr  17% sys   0% nic  71% idle   0% io   0% irq   5% sirq
Load average: 0.94 1.43 1.15 2/287 16041
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
26201 26130 paul     S    22968   1%   7% /usr/sbin/smbd -D
 1831     1 root     S     513m  32%   1% syscontrol /tmp/sys_log 0
25760     1 root     S     102m   6%   1% /usr/sbin/minimediad -R
 5994     2 root     SW       0   0%   1% [md0_raid5]
  225     2 root     SW       0   0%   1% [kworker/u8:7]
  201     2 root     SW       0   0%   1% [kworker/u8:4]
32000     2 root     SW       0   0%   1% [kworker/u8:1]
15119     2 root     SW       0   0%   1% [kworker/u8:2]
  165     2 root     SW       0   0%   1% [kworker/u8:3]
  214     2 root     SW       0   0%   0% [kworker/u8:5]
   65     2 root     SW       0   0%   0% [kswapd0]
 3202  3200 root     S     236m  15%   0% php-fpm: pool www-01
 5091     1 root     S     220m  14%   0% /usr/bin/rtk-supplicant
32714     1 root     S     918m  57%   0% /sbin/nasips
 3371     1 root     S     674m  42%   0% /usr/sbin/upnpd eth0 eth0
 3206  3200 root     S     236m  15%   0% php-fpm: pool www-01
31959     1 root     S    80040   5%   0% /usr/bin/msgcenter
  241     2 root     SW<      0   0%   0% [kworker/0:1H]
  217     2 root     SW<      0   0%   0% [kworker/3:1H]
^C  7     2 root     SW       0   0%   0% [rcu_sched]
paul@TNAS-00EC3B:~$

paul@TNAS-00EC3B:~$ cat /proc/meminfo
MemTotal:        1627016 kB
MemFree:          240836 kB
MemAvailable:    1452004 kB
Buffers:            5740 kB
Cached:          1153240 kB
SwapCached:            0 kB
Active:           598724 kB
Inactive:         617288 kB
Active(anon):      25876 kB
Inactive(anon):    44168 kB
Active(file):     572848 kB
Inactive(file):   573120 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1998780 kB
SwapFree:        1998780 kB
Dirty:               432 kB
Writeback:         11240 kB
AnonPages:         57152 kB
Mapped:            19696 kB
Shmem:             12632 kB
Slab:             106936 kB
SReclaimable:      84196 kB
SUnreclaim:        22740 kB
KernelStack:        4768 kB
PageTables:         2360 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2812288 kB
Committed_AS:     955176 kB
VmallocTotal:   263061440 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
CmaTotal:          16384 kB
CmaFree:           14628 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: F4-210 php divide by zero, memory allocation error and wants to initialize again

Post by TMSupport »

The only operation is copying the files? Did you watch the multimedia files with Plex?
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
psperneac
Posts: 2
Joined: 17 Jun 2020, 05:16

Re: F4-210 php divide by zero, memory allocation error and wants to initialize again

Post by psperneac »

At the time it was copying files. Earlier I did load the Plex interface, but decided not to do anything there as I didn't have any content on the NAS so I closed it. You're kinda suggesting indirectly that I should not copy files while playing media/transcoding with Plex? I'm leaning towards the swap not being big enough and the OS getting into an OOM situation. It would be nice if the machine had some way of rebooting on OOM or a long press on the power-button so I don't have to yank the power on it when it happens. The other cause might be a memory leak in the UI. I did not leave the TOS UI open since it happenned and I've been both copying file and playing them through Plex at the same time since then with no problems.
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: F4-210 php divide by zero, memory allocation error and wants to initialize again

Post by TMSupport »

A memory leak is possible. You can contact us at support(a)terra-master.com when it happens again. And we will arrange a remote check for you.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Locked