Media Server doesn't work right, "No space left on device" error despite there being space

Hi,

I’ve been having some trouble with my WD My Cloud EX 4100 (Firmware Version: 2.30.181) for a while now. It had a low availability and was randomly creating hundreds of shares (Public_1 through Public_5xx). To mitigate this issue I did a system restore. This helped with the shares but now the DLNA Media Server does not work right anymore (immediately after the restore the unit automatically installed a new firmware.) It shows only a small subset of the movies that are on the share. The rest of the files show up on my connected computers though.

I logged into the Twonky interface (http://192.168.1.123:9000/webconfig#advanced), restarted the server and had a look at the log files:

11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : *** Starting TwonkyServer (Product Name:Twonky, Version:7.2.9-13, Build-date:Mar 22 2016) ***
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : using logfile /mnt/HD/HD_b2/.twonkymedia/twonkymedia-log.txt
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : Executable file: /usr/local/twonky/twonkyserver
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : Command Line Parameters: 9
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 1:-D
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 2:-ip
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 3:192.168.1.123
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 4:-httpport
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 5:9000
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 6:-appdata
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 7:/mnt/HD/HD_b2/.twonkymedia
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 8:-logfile
11:43:55:230  [Startup] - LOG_SYSTEM: server_main_impl : cmdline 9:/mnt/HD/HD_b2/.twonkymedia/twonkymedia-log.txt
11:43:55:234  [Startup] - LOG_SYSTEM: upnp_ini_file_read_properties_impl : reading ini settings from /mnt/HD/HD_b2/.twonkymedia/twonkyserver.ini
11:43:55:285  [Startup] - LOG_SYSTEM: upnp_ini_file_read_properties_impl : friendlyname = %HOSTNAME%
11:43:55:285  [Startup] - LOG_SYSTEM: upnp_ini_file_read_properties_impl : ip = 192.168.1.123
11:43:55:285  [Startup] - LOG_SYSTEM: upnp_ini_file_read_properties_impl : nicrestart = 1
11:43:55:517  [Error] - LOG_SYSTEM: upnp_multiuser_load : load user-db from twonky.users: failed
11:43:55:517  [Error] - LOG_SYSTEM: Error: 2 No such file or directory

11:43:55:992  [Error] - LOG_DB: filedb_add_data : Error writing to /mnt/HD/HD_a2/.twonkymedia/db/13.tms.dat
11:43:55:992  [Error] - LOG_DB: Error: 28 No space left on device

11:43:55:993  [Error] - LOG_DB: filedb_write_object : Error writing to /mnt/HD/HD_a2/.twonkymedia/db/13.tms.dat
11:43:55:993  [Error] - LOG_DB: Error: 28 No space left on device

11:43:56:025  [Error] - LOG_DB: filedb_open_location : Error writing to file /mnt/HD/HD_a2/.twonkymedia/db/9.tms.dat, disk may be full!
11:43:56:025  [Error] - LOG_DB: Error: 28 No space left on device

That last error had me worried because the My Cloud interface reports hundreds GB of free space. I SSHd into the unit and ran df -h:

root@WDMyCloudEX4100 / # df -h
Filesystem                Size      Used Available Use% Mounted on
%root%                   54.2M     30.9M     20.5M  60% /
/dev/ram0                54.2M     30.9M     20.5M  60% /
mdev                   1017.8M     32.0K   1017.7M   0% /dev
ubi0:config              12.1M    140.0K     11.3M   1% /usr/local/config
/dev/loop0               92.4M     92.4M         0 100% /usr/local/modules
tmpfs                     1.0M      1.0M         0 100% /mnt
tmpfs                    40.0M      5.3M     34.7M  13% /var/log
tmpfs                   100.0M      5.6M     94.4M   6% /tmp
/dev/sda4               928.9M      5.2M    907.7M   1% /mnt/HD_a4
cgroup                 1017.8M         0   1017.8M   0% /sys/fs/cgroup
/dev/mapper/sda2          3.6T      3.2T    353.0G  90% /mnt/HD/HD_b2

Two of the devices report 100% usage which could be related to my issues.

Here’s df -i’s output:

root@WDMyCloudEX4100 root # df -i
Filesystem              Inodes      Used Available Use% Mounted on
%root%                   14336      3796     10540  26% /
/dev/ram0                14336      3796     10540  26% /
mdev                     24400       729     23671   3% /dev
ubi0:config                  0         0         0   0% /usr/local/config
/dev/loop0               20832     20832         0 100% /usr/local/modules
tmpfs                        0         0         0   0% /mnt
tmpfs                        0         0         0   0% /var/log
tmpfs                    20000       109     19891   1% /tmp
/dev/sda4               258048        98    257950   0% /mnt/HD_a4
cgroup                   24400         8     24392   0% /sys/fs/cgroup
/dev/mapper/sda2     243933184    159782 243773402   0% /mnt/HD/HD_b2

I don’t know how to proceed from here. Any ideas?

I only use one encrypted disk right now btw. Adding my other disks is what prompted the problem with the hundreds of randomly created shares so I took them out. They are now resting uselessly on my desk :confused: