After being out of town for about a week, I came back to find my OMV server non-responsive (login prompt for Web GUI eventually just timed out). I tried omv-firstaid initially, but received the following error:
root@gotenks:/# omv-firstaid
Traceback (most recent call last):
File "/usr/sbin/omv-firstaid", line 90, in <module>
sys.exit(main())
File "/usr/sbin/omv-firstaid", line 72, in main
choices=choices
File "/usr/lib/python3/dist-packages/dialog.py", line 2911, in menu
cmd, kwargs, strip_xdialog_newline=True)
File "/usr/lib/python3/dist-packages/dialog.py", line 1703, in _widget_with_string_output
code, output = self._perform(args, **kwargs)
File "/usr/lib/python3/dist-packages/dialog.py", line 1501, in _perform
**kwargs)
File "/usr/lib/python3/dist-packages/dialog.py", line 1290, in _call_program
mode="w", prefix="pythondialog.tmp", delete=False)
File "/usr/lib/python3.5/tempfile.py", line 679, in NamedTemporaryFile
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File "/usr/lib/python3.5/tempfile.py", line 269, in _sanitize_params
dir = gettempdir()
File "/usr/lib/python3.5/tempfile.py", line 435, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python3.5/tempfile.py", line 370, in _get_default_tempdir
dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Display More
From there, I decided to try rebooting to see if that made any difference, but of course it did not; in fact it made matters worse (Web GUI just results in a "Bad Gateway" error and none of the services I use are running).
Looking into this error (specifically the last line about no usable temporary directory) lead me to posts suggesting that the disk could be full or permissions could be set to read-only, but I'm not seeing either of those as an issue in my case. Below are a few things I've checked to see if anything stood out, but I'm out of ideas. Hoping someone might be able to give me some next things to try to get back up and running.
Here's the output of "df -h" showing that nothing (save one of my backup data drives) is close to full:
root@gotenks:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 779M 8.7M 771M 2% /run
/dev/sda2 28G 11G 16G 42% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 511M 132K 511M 1% /boot/efi
A:B:C 8.1T 3.5T 4.7T 43% /sharedfolders/BackupData
/dev/sda4 74G 53M 71G 1% /home
/dev/sde1 2.7T 482G 2.3T 18% /srv/dev-disk-by-label-DiskB
/dev/sdc1 2.7T 378G 2.4T 14% /srv/dev-disk-by-label-DiskC
/dev/sdd1 2.7T 2.6T 100G 97% /srv/dev-disk-by-label-DiskA
/dev/sdb1 7.3T 3.5T 3.8T 48% /sharedfolders/MainData
Display More
Here's an "ls -ls" showing permissions should allow for write access for /tmp and /var/tmp (I don't have a /usr/tmp):
root@gotenks:/# ls -ls
total 84
4 drwxr-xr-x 2 root root 4096 Apr 12 11:16 bin
4 drwxr-xr-x 4 root root 4096 Jun 22 21:56 boot
0 drwxr-xr-x 18 root root 3480 Aug 10 09:52 dev
4 drwxr-xr-x 106 root root 4096 Jul 4 09:02 etc
4 drwxr-xr-x 2 root root 4096 Mar 23 12:52 export
4 drwxr-xr-x 4 root root 4096 Apr 12 10:52 home
0 lrwxrwxrwx 1 root root 36 May 27 21:03 initrd.img -> boot/initrd.img-4.19.0-0.bpo.5-amd64
0 lrwxrwxrwx 1 root root 36 May 27 21:03 initrd.img.old -> boot/initrd.img-4.19.0-0.bpo.4-amd64
4 drwxr-xr-x 16 root root 4096 Apr 12 11:41 lib
4 drwxr-xr-x 2 root root 4096 Apr 12 10:47 lib64
16 drwx------ 2 root root 16384 Apr 12 10:47 lost+found
4 drwxr-xr-x 3 root root 4096 Apr 12 10:48 media
4 drwxr-xr-x 2 root root 4096 Apr 12 10:47 mnt
4 drwxr-xr-x 3 root root 4096 Apr 14 20:00 opt
0 dr-xr-xr-x 151 root root 0 Aug 10 09:52 proc
4 drwxrwxrwx 6 root root 4096 Aug 10 09:52 root
0 drwxr-xr-x 27 root root 1040 Aug 10 10:59 run
4 drwxr-xr-x 2 root root 4096 May 24 22:23 sbin
4 drwxr-xr-x 8 root root 4096 Apr 20 09:11 sharedfolders
4 drwxr-xr-x 8 root root 4096 Apr 19 17:35 srv
0 dr-xr-xr-x 13 root root 0 Aug 10 10:07 sys
4 drwxrwxrwt 7 root root 4096 Aug 10 09:52 tmp
4 drwxr-xr-x 11 root root 4096 Jul 23 20:09 usr
4 drwxr-xr-x 12 root root 4096 Apr 12 11:16 var
0 lrwxrwxrwx 1 root root 33 May 27 21:03 vmlinuz -> boot/vmlinuz-4.19.0-0.bpo.5-amd64
0 lrwxrwxrwx 1 root root 33 May 27 21:03 vmlinuz.old -> boot/vmlinuz-4.19.0-0.bpo.4-amd64
root@gotenks:/var# ls -ls
total 40
4 drwxr-xr-x 2 root root 4096 Aug 7 00:05 backups
4 drwxr-xr-x 11 root root 4096 Apr 12 11:18 cache
4 drwxr-xr-x 44 root root 4096 Apr 14 19:12 lib
4 drwxrwsr-x 2 root staff 4096 Feb 3 2019 local
0 lrwxrwxrwx 1 root root 9 Apr 12 10:47 lock -> /run/lock
4 drwxr-xr-x 12 root root 4096 Aug 7 00:05 log
4 drwxrwsr-x 2 root mail 4096 Apr 12 10:47 mail
4 drwxr-xr-x 2 root root 4096 Apr 12 10:47 opt
0 lrwxrwxrwx 1 root root 4 Apr 12 10:47 run -> /run
4 drwxr-xr-x 7 root root 4096 Apr 12 11:16 spool
4 drwxrwxrwt 2 root root 4096 Aug 7 04:09 tmp
4 drwxr-xr-x 4 root root 4096 Apr 12 11:16 www
Display More
When I try to create a file in /root, I get an error, but when I try to create a file in /home I do not, despite both being on the same physical device and both showing as having available space:
root@gotenks:/# touch /root/tempfile
touch: cannot touch '/root/tempfile': No space left on device
root@gotenks:/# touch /home/tempfile
root@gotenks:/# cd /home
root@gotenks:/home# ls -ls
total 20
4 drwxr-xr-x 3 jarod users 4096 Aug 10 11:04 jarod
16 drwx------ 2 root root 16384 Apr 12 10:47 lost+found
0 -rw-r--r-- 1 root root 0 Aug 10 11:06 tempfile