nginx error every system boot

  • Hi, I've a problem with nginx. This is the error if I run this command:


    root@orangepiplus:/etc/nginx# nginx -t
    nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    2017/05/06 01:42:29 [emerg] 1505#0: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
    nginx: configuration file /etc/nginx/nginx.conf test failed


    The directory /var/log/nginx/ is deleted at every system reboot and this cause the error.


    Someone can help me? Thanks

    • Offizieller Beitrag

    Are you using the flash memory plugin ?


    This could be something related to the folder not ready when nginx starts. I saw this many months ago.
    What version of omv are you using?

  • I have the same error. Can't access web console and noticed this error nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory).


    Any solution to this?

Jetzt mitmachen!

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