As I found this after my search for 'omv nginx forbidden'
I realized that I did exactly the same thing: I installed msmtp
After that the Webgui is gone and nginx reports 'forbidden'. So this is 5 years later as in the thread above and its OMV7, but this problem still exists.
After I have done the update from 6 to 7 today, msmtp strangely wasn't working anymore.
Got this error:
This is set in /etc/mail.rc: set sendmail="/usr/bin/msmtp -t"
and /usr/bin/msmtp did exist, so I purged and installed it again. And after that it worked again.
Now I'm stuck with this desaster. OMV got uninstalled in the process it seems.
Someone knows whta's going on and howto fix it without new install?
I think devs would be interessted to get to the bottom of this since I never had any problems on my many machines with debian and msmtp.
Did anything change in OMV7 with the mail executable?
I do have a system backup and I could recover /var/www/openmediavault
I then chown -R openmediavault-webgui:openmediavault-webgui openmediavault
The Gui apears now but on login I get 500 - Internal Server Error
From nginx openmediavault-webgui_error.log:
server: openmediavault-webgui, request: "POST /rpc.php HTTP/1.1",
upstream: "fastcgi://unix:/run/php/php8.2-fpm-openmediavault-webgui.sock:" ...
2025/04/11 15:08:56 [error] 5283#5283: *38 FastCGI sent in stderr:
PHP message: PHP Warning: require_once(openmediavault/autoloader.inc): Failed to open stream: No such file or directory in /var/www/openmediavault/rpc.php on line 23;
PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'openmediavault/autoloader.inc' (include_path='.:/usr/share/php:/var/www/openmediavault') in /var/www/openmediavault/rpc.php:23
I have then re-copied /usr/share/php/openmediavault
because it was gone too.
I now get
400 - Bad Request
The data model 'rpc.session.login' does not exist.
upon login