Webgui destroyed after some modifications in etc/nginx

  • Hello OMV Forum,


    i am new in Forum, but using omv since 3 years.
    In 2017 i changed to omv 3, because i wanted to use owncloud on the nas too. This worked fine, but i wanted do edit the nginx conf in a way, that i will be redicted to omv webgui or owncloud, depedent on the entered host address.


    Now i have changed many files, and can't Access the webgui anymore, but can't find the Problem in the conf files.


    Whats mysterious on port 80 and 443 there is nothing listen.


    Apache is stopped
    nginx is running without error


    Service Openmediavault-engined is running


    Service Openmediavault always Show me, that this Service does not exist (unknown filename).


    Can anyone help me, to find the reason. Or can someone post the conf files for nginx?


    thanks

  • Hello,


    thanks for your fast help.
    I recreated configuration with omv-mkconf nginx, but i can't Access the webgui.


    When i enter netstat -tulpn, no Service is listen on port 80 or port 443, but in etc/nginx config files, omv should listen on 80 and 443. What is wrong on my System?


    Feb 20 14:18:00 dznspeicher monit[21582]: socket_create: Could not create socket -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: 'nginx' failed, cannot open a connection to INET[127.0.0.1:4433] via TCPSSL
    Feb 20 14:18:00 dznspeicher monit[21582]: Socket error -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: socket_create: Could not create socket -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: 'nginx' failed, cannot open a connection to INET[127.0.0.1:8089] via TCP
    Feb 20 14:18:30 dznspeicher monit[21582]: 'nginx' process PID changed from 4818 to 4837


    Thanks

  • After reinstalling omv-extras with apt, the error "file not found" is fixed.
    But my Problem is, that nginx cant listen on omv ports. Its not important, what port i use, nginx is not listen on them.
    monit Shows me the following:


    Feb 20 14:18:00 dznspeicher monit[21582]: socket_create: Could not create socket -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: 'nginx' failed, cannot open a connection to INET[127.0.0.1:4433] via TCPSSL
    Feb 20 14:18:00 dznspeicher monit[21582]: Socket error -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: socket_create: Could not create socket -- Connection refused
    Feb 20 14:18:00 dznspeicher monit[21582]: 'nginx' failed, cannot open a connection to INET[127.0.0.1:8089] via TCP
    Feb 20 14:18:30 dznspeicher monit[21582]: 'nginx' process PID changed from 4818 to 4837


    Is there anything i can do, to get more Information, where the Problem is located?


    thanks and best regards

  • Hi votdev,


    thanks for your help.
    Seems nginx is running well.




    When i start Apache Service, why i cant see the omv Default page as after Installation? I always see a index.nginx-debian.html listing. Possibly this is same Problem?


    thanks and regards

  • Hello votdev,


    i tried some omv commands and omv-mkwebjs Returns the following.


    PHP Warning: require_once(openmediavault/htmlpage.inc): failed to open stream: No such file or directory in - on line 3
    PHP Fatal error: require_once(): Failed opening required 'openmediavault/htmlpage.inc' (include_path='.:/usr/share/php:/usr/share/pear') in - on line 3
    Can't open 'Warning:': Datei oder Verzeichnis nicht gefunden at /usr/sbin/omv-jsminify line 48.


    Is this quiet normal or is there something missing?


    thanks and best regards

Jetzt mitmachen!

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