Not sure if this is the best channel, but I've seen Soma post many commands which I've tried and am struggling to make sense of, but the outputs are shown below:
Some background
- RPi5 has OMV installed via `rpi-clone` to boot from NVME
- The previous boot ran OMV7 just fine, no errors on boot and web GUI was accessible
- On switching boot to NVME, the only service to fail is nginx.service
- I've attempted to reinstall OMV7 from the wget link but that didn't seem to change anything
Any help / guidance is greatly appreciated.
$ sudo systemctl status nginx.service
× nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Fri 2024-03-22 19:09:44 PDT; 441ms ago Docs: man:nginx(8) Process: 1596 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 6ms
Mar 22 19:09:44 omvnas systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Mar 22 19:09:44 omvnas nginx[1596]: 2024/03/22 19:09:44 [emerg] 1596#1596: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
Mar 22 19:09:44 omvnas nginx[1596]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 22 19:09:44 omvnas systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Mar 22 19:09:44 omvnas systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 22 19:09:44 omvnas systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
sudo omv-salt deploy run phpfpm nginx had 3 errors, 21 successes. errors detailed below:
----------
ID: test_nginx_service_config
Function: cmd.run
Name: nginx -t
Result: False
Comment: Command "nginx -t" run
Started: 19:10:39.922794
Duration: 5.88 ms
Changes:
----------
pid: 1709
retcode: 1
stderr: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 2024/03/22 19:10:39 [emerg] 1709#1709: open() "/var/log/nginx/error.log" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed
stdout:
----------
ID: restart_nginx_service
Function: service.running
Name: nginx
Result: False
Comment: One or more requisite failed: omv.deploy.nginx.default.test_nginx_service_config
Started: 19:10:39.929381
Duration: 0.006 ms
Changes:
----------
ID: monitor_nginx_service
Function: module.run
Result: False
Comment: One or more requisite failed: omv.deploy.nginx.default.restart_nginx_service
Started: 19:10:39.929669
Duration: 0.003 ms
Changes:
Summary for omvnas
-------------
Succeeded: 21 (changed=16)
Failed: 3
-------------
Total states run: 24
Total run time: 1.441 s
[ERROR ] Command 'nginx' failed with return code: 1
[ERROR ] stderr: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2024/03/22 19:10:39 [emerg] 1709#1709: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
[ERROR ] retcode: 1
[ERROR ] {'pid': 1709, 'retcode': 1, 'stdout': '', 'stderr': 'nginx: the configuration file /etc/nginx/nginx.conf syntax is ok\n2024/03/22 19:10:39 [emerg] 1709#1709: open() "/var/log/nginx/error.log" failed (2: No such file or directory)\nnginx: configuration file /etc/nginx/nginx.conf test failed'}
Alles anzeigen
dpkg -l | grep openm
ii openmediavault 7.0.4-1 all openmediavault - The open network attached storage solution
ii openmediavault-backup 7.1.2 all backup plugin for OpenMediaVault.
ii openmediavault-borgbackup 7.0.5 all borgbackup plugin for OpenMediaVault.
ii openmediavault-compose 7.1 all OpenMediaVault compose plugin
ii openmediavault-cputemp 7.0 all cpu temperature plugin for openmediavault
ii openmediavault-flashmemory 7.0 all folder2ram plugin for openmediavault
ii openmediavault-keyring 1.0.2-2 all GnuPG archive keys of the openmediavault archive
ii openmediavault-omvextrasorg 7.0 all OMV-Extras.org Package Repositories for OpenMediaVault
ii openmediavault-sharerootfs 7.0-1 all openmediavault share root filesystem plugin
dpkg -l | grep nginx
ii nginx 1.22.1-9 arm64 small, powerful, scalable web/proxy server
ii nginx-common 1.22.1-9 all small, powerful, scalable web/proxy server - common files
I know the RPI5 <> OMV7 guidance is for testing only so sorry if this is incorrectly posted here.