Boot from NVME SSD fails to start nginx

  • 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

    Code
    × 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:


    dpkg -l | grep openm

    Code
    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

    Code
    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.

  • KM0201

    Hat das Thema freigeschaltet.
  • [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'}

    The error says what's the issue.

    Make sure that flash memory plugin is installed and running.


    sudo touch /var/log/nginx/error.log

    sudo chown www-data:adm /var/log/nginx/error.log

    sudo systemctl restart nginx

    sudo nginx -t

  • short4bmoney

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

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