I can open all my dockers, but can't open the omv5 webgui directly. #It seems I miraculously fixed this sh*tshow...just posting for confirmation and "next steps"....thanks in advance.
First error was getting the /var/log/nginx/openmediavault-webgui_error.log error: 2021/06/25 00:40:48 [error] 7207#7207: *1 directory index of "/var/www/openmediavault/" is forbidden, client: ::ffff:127.0.0.1, server: openmediavault-webgui, request: "GET / HTTP/1.1", host: "127.0.0.1"
I looked here: forbidden
I looked here: Team
- tried to reinstall and failed with internal errors
ran and apt update/upgrade command and got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lvm2 (2.03.02-3) ...
update-initramfs: deferring update (trigger activated)
Failed to restart lvm2-lvmpolld.service: Unit lvm2-lvmpolld.socket is masked.
invoke-rc.d: initscript lvm2-lvmpolld, action "restart" failed.
● lvm2-lvmpolld.service - LVM2 poll daemon
Loaded: loaded (/lib/systemd/system/lvm2-lvmpolld.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:lvmpolld(8)
dpkg: error processing package lvm2 (--configure):
installed lvm2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of openmediavault:
openmediavault depends on lvm2; however:
Package lvm2 is not configured yet.
dpkg: error processing package openmediavault (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-0.bpo.7-amd64
Errors were encountered while processing:
lvm2
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
Display More
ran apt remove lvm2 and this happened:
Do you want to continue? [Y/n] Y
(Reading database ... 100202 files and directories currently installed.)
Removing openmediavault (5.6.10-1) ...
Removing lvm2 (2.03.02-3) ...
That generated similar errors. I couldn't just do the same steps as above, but following an "askubuntu" forum, I needed to rm -rf /etc/lvm2 and rm -rf /etc/lvm
Then I did an apt purge of the same:
root@omv5:/etc# apt purge lvm2
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
lvm2* openmediavault*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 13.3 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 100202 files and directories currently installed.)
Removing openmediavault (5.6.10-1) ...
Removing lvm2 (2.03.02-3) ...
(Reading database ... 98523 files and directories currently installed.)
Display More
This worked, finally:
And surprise... I can now see the webgui!! (whew). Only thing missing now is omv5 extras--- all my dockers are working! (??)
successfully ran:
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
And bingo I see everything I'm supposed to see there...finally was able to manage Portainer, etc...
I think my installation had been broken for a while, as any upgrade from terminal or webgui gave some errors.. My system feels 100% clean. I am sorry for all the output, but this might help someone else who borked their system.