OMV5 unable to access web interface

  • Hi, I m running OMV5 on a Pi4 , It worked very well for one year.

    Yesterday after one reboot cannot longer access webpage.

    I can ssh to the pi without a problem.

    I run df -h and i see

    root@raspberrypi:/# df -h

    Filesystem Size Used Avail Use% Mounted on

    /dev/root 7.7G 7.5G 0 100% /

    Have tried lots off suggestions in different post but no way to access to the web page.

    have look at /var/log but there is not the problem.


    Can someone with experience help me?

    Thanks

  • as an emergency measure you can try to clean the apt chache sudo apt-get clean


    sudo du -xhd 1  will show you the disk space used in all directories in the current directory

    start from / (cd /) and narrow down step by step.


    if you have docker installed, move it to a data disk.


    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Thanks for your answer, I have done both advise , I'm getting this:

    root@raspberrypi:/# sudo du -xhd 1

    4.0K ./export

    1.8M ./srv

    4.0K ./config

    4.0K ./media

    176K ./root

    13M ./bin

    379M ./lib

    16M ./sbin

    12K ./mnt

    139M ./var

    111M ./portainer

    16K ./lost+found

    1.6G ./usr

    197M ./home

    41M ./opt

    7.7M ./etc

    2.5G .

    root@raspberrypi:/#


    I see the 2.5G in . but I don't know how to see where its location .


    This is with df -h


    root@raspberrypi:/# df -h

    Filesystem Size Used Avail Use% Mounted on

    /dev/root 7.7G 7.5G 0 100% /

    devtmpfs 3.7G 0 3.7G 0% /dev

    tmpfs 3.9G 0 3.9G 0% /dev/shm

    tmpfs 3.9G 43M 3.9G 2% /run

    tmpfs 5.0M 4.0K 5.0M 1% /run/lock

    tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup

    tmpfs 3.9G 0 3.9G 0% /tmp

    /dev/mmcblk0p3 49G 17G 31G 35% /srv/dev-disk-by-id-mmc-USD00_0x0c332431-part3

    /dev/mmcblk0p1 253M 50M 203M 20% /boot


    Thanks

  • ls -la / please.

    Thanks.


    root@raspberrypi:/# ls -la /

    total 104

    drwxr-xr-x 24 root root 4096 Dec 8 19:37 .

    drwxr-xr-x 24 root root 4096 Dec 8 19:37 ..

    drwxr-xr-x 2 root root 4096 Oct 13 07:03 bin

    drwxr-xr-x 4 root root 4096 Jan 1 1970 boot

    drwxr-xr-x 2 root root 4096 Dec 15 2020 config

    drwxr-xr-x 19 root root 3900 Jan 16 20:31 dev

    drwxr-xr-x 108 root root 12288 Jan 16 20:31 etc

    drwxr-xr-x 2 root root 4096 Apr 1 2021 export

    drwxr-xr-x 3 root root 4096 Aug 20 2020 home

    drwxr-xr-x 18 root root 4096 Sep 12 06:41 lib

    drwx------ 2 root root 16384 Aug 20 2020 lost+found

    drwxr-xr-x 2 root root 4096 Aug 20 2020 media

    drwxr-xr-x 4 root root 4096 Dec 9 2020 mnt

    drwxr-xr-x 5 root root 4096 May 2 2021 opt

    drwxr-xr-x 3 root root 4096 Nov 27 2020 portainer

    dr-xr-xr-x 374 root root 0 Jan 1 1970 proc

    drwx------ 8 root root 4096 Jan 17 08:19 root

    drwxr-xr-x 34 root root 1220 Jan 17 09:17 run

    drwxr-xr-x 2 root root 12288 Nov 22 20:21 sbin

    drwxr-xr-x 10 root root 4096 May 3 2021 srv

    dr-xr-xr-x 12 root root 0 Jan 1 1970 sys

    drwxrwxrwt 11 root root 220 Jan 17 09:17 tmp

    drwxr-xr-x 11 root root 4096 Dec 8 2020 usr

    drwxr-xr-x 13 root root 4096 Jan 16 09:50 var

    root@raspberrypi:/#

  • I do not see anything large. Did you delete log files after rebooting?

    In Linux, if you delete files whic hare still in use, they do not show up in the directory listing, but are still there, bound to the proceses writing to them.


    lsof | grep deleted  will find them. If found, just reboot.


    or: your root file system is corrupt, so you havt to fsck it.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Thanks

    Here is what i get:

    root@raspberrypi:/# lsof | grep deleted


    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    lsof: no pwd entry for UID 64757

    php-fpm7. 1152 www-data 3u REG 0,38 0 20 /tmp/.ZendSem.ZjM4vW (deleted)

    php-fpm7. 1153 www-data 3u REG 0,38 0 20 /tmp/.ZendSem.ZjM4vW (deleted)

    mysqld 8558 pi 7u REG 0,59 0 1832241 /tmp/ibShxQ6c (deleted)

    mysqld 8558 pi 8u REG 0,59 0 1832250 /tmp/ib6vNl6f (deleted)

    mysqld 8558 pi 9u REG 0,59 0 1832251 /tmp/ibcWhS4i (deleted)

    mysqld 8558 pi 10u REG 0,59 0 1832258 /tmp/ib4VOfgy (deleted)

    mysqld 8558 pi 14u REG 0,59 0 1832259 /tmp/ibiYiPAb (deleted)

    php-fpm7 8695 root 3u REG 0,58 0 1832263 /tmp/.ZendSem.OjFLFK (deleted)

    php-fpm7 28904 pi 3u REG 0,58 0 1832263 /tmp/.ZendSem.OjFLFK (deleted)

    php-fpm7 31857 pi 3u REG 0,58 0 1832263 /tmp/.ZendSem.OjFLFK (deleted)

    php-fpm7 31858 pi 3u REG 0,58 0 1832263 /tmp/.ZendSem.OjFLFK (deleted)

    root@raspberrypi:/#


    root@raspberrypi:/# sudo fsck

    fsck from util-linux 2.33.1

    e2fsck 1.44.5 (15-Dec-2018)

    /dev/mmcblk0p2 is mounted.

    e2fsck: Cannot continue, aborting.



    root@raspberrypi:/#


    The losf got too long i deleted the 0 parts


    /dev/mmcblk0p2 is mounted. How can I see what's in it? can I doit with the system running?

    Thanks

  • You can try to restart the php-fpm and mysld services


    the fsck of your root device is only possible if you boot from a different disk / usb stick / cd / ...

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • the fsck of your root device is only possible if you boot from a different disk / usb stick / cd / ...

    Why not force it on reboot?!?


    sudo touch /forcefsck

    Sudo reboot now

  • Thanks, doing this is safe to continue to boot the system?

    Well, it should be.


    All it does is run the fsck before mounting the Filesystem and check/correct any errors.

    Before the next reboot, the file is deleted so it won't run again.

  • Well, it should be.


    All it does is run the fsck before mounting the Filesystem and check/correct any errors.

    Before the next reboot, the file is deleted so it won't run again.

    Thanks will run it soon.

    By the way I have a ssd attached with a sata to usb3 adaptor (cable) Same times this disk is not detected. I order a new cable see if that's one off the problems.

  • Hi ,

    After running

    sudo touch /forcefsck

    sudo reboot now


    still cannot access to the web control page.


    When it boot I see 2 errors.


    Failed Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.

    See ´systemctl status dphys-swapfile.service´2for details.


    When i see I get this


    dphys-swapfile.service - dphys-swapfile - set up, mount/unmount, and delete a swap file

    Loaded: loaded (/lib/systemd/system/dphys-swapfile.service; enabled; vendor preset: enabled)

    Active: failed (Result: exit-code) since Mon 2022-01-17 14:05:40 CET; 5min ago

    Docs: man:dphys-swapfile(8)

    Process: 790 ExecStart=/sbin/dphys-swapfile setup (code=exited, status=1/FAILURE)

    Main PID: 790 (code=exited, status=1/FAILURE)


    Jan 17 14:05:40 raspberrypi systemd[1]: Starting dphys-swapfile - set up, mount/unmount, and delete a swap file...

    Jan 17 14:05:40 raspberrypi dphys-swapfile[790]: want /var/swap=100MByte, restricting to 50% of remaining disk size: 0MBytes, generating swapfile ...

    Jan 17 14:05:40 raspberrypi systemd[1]: dphys-swapfile.service: Main process exited, code=exited, status=1/FAILURE

    Jan 17 14:05:40 raspberrypi systemd[1]: dphys-swapfile.service: Failed with result 'exit-code'.

    Jan 17 14:05:40 raspberrypi systemd[1]: Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.

    .

    The other error is:

    Failed Failed to start A high performance web server and a reverse proxy server.

    See ´systemctl status nginx.service´for details.

    running get this:

    root@raspberrypi:/# systemctl status nginx.service

    nginx.service - A high performance web server and a reverse proxy server

    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)

    Active: failed (Result: exit-code) since Mon 2022-01-17 14:15:14 CET; 6s ago

    Docs: man:nginx(8)

    Process: 14224 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)


    Jan 17 14:15:14 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...

    Jan 17 14:15:14 raspberrypi nginx[14224]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)

    Jan 17 14:15:14 raspberrypi nginx[14224]: 2022/01/17 14:15:14 [emerg] 14224#14224: open() "/var/log/nginx/access.log" failed (2: No such file or directory)

    Jan 17 14:15:14 raspberrypi nginx[14224]: nginx: configuration file /etc/nginx/nginx.conf test failed

    Jan 17 14:15:14 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE

    Jan 17 14:15:14 raspberrypi systemd[1]: nginx.service: Failed with result 'exit-code'.

    Jan 17 14:15:14 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

  • want /var/swap=100MByte, restricting to 50% of remaining disk size: 0MBytes, generating swapfile

    You still don't have enough space on the drive.


    df -h /

    sudo dphys-swapfile swapoff
    sudo dphys-swapfile uninstall
    sudo update-rc.d dphys-swapfile remove
    sudo apt purge dphys-swapfile

    sudo reboot now

  • These are minor problems, but the root disk is still 100% full.


    Please run

    cd /

    du -hxd 1


    and post the output in code box for better readability (</> button)

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Here is it:


    root@raspberrypi:/# du -hxd 1

    4.0K ./export

    1.8M ./srv

    4.0K ./config

    4.0K ./media

    176K ./root

    13M ./bin

    379M ./lib

    16M ./sbin

    12K ./mnt

    141M ./var

    111M ./portainer

    16K ./lost+found

    1.6G ./usr

    198M ./home

    41M ./opt

    7.7M ./etc

    2.5G .

    root@raspberrypi:/#


    Thanks

  • Ok, from the top (put the results on a codebox, please. it's the </> symbol) :


    sudo find / -xdev -type f -size +100M


    ls -al /var/log/nginx/

    cat /etc/fstab

    sudo docker root

    lsblk

    blkid

    mount

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!