No WebGUI after reboot

  • Hey folks!


    I´ve a problem with openmediavault after a reboot and no access to the webgui..
    SSH works fine:

    Code
    root@Homeserver:~# /etc/init.d/nginx restart
    Restarting nginx: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/etc/ssl/certs/openmediavault-de0e5f61-51eb-4364-ba20-73eaacc0cf7e.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    root@Homeserver:~# service openmediavault-engined status
    omv-engined is running
    root@Homeserver:~# service php5-fpm status
    php5-fpm is running.
    root@Homeserver:~# service nginx status
    nginx is not running ... failed!


    Do you have any ideas ?(


    EDIT: I forgot the omv-firstaid-steps..

    Code
    root@Homeserver:~# omv-firstaid
    Updating web administration settings. Please wait ...
    {"response":null,"error":{"code":4000,"message":"Failed to execute command 'export LANG=C; nginx -t 2>&1': nginx: [emerg] SSL_CTX_use_certificate_chain_file(\"\/etc\/ssl\/certs\/openmediavault-de0e5f61-51eb-4364-ba20-73eaacc0cf7e.crt\") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed","trace":"exception 'OMVException' with message 'Failed to execute command 'export LANG=C; nginx -t 2>&1': nginx: [emerg] SSL_CTX_use_certificate_chain_file(\"\/etc\/ssl\/certs\/openmediavault-de0e5f61-51eb-4364-ba20-73eaacc0cf7e.crt\") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed' in \/usr\/share\/openmediavault\/engined\/module\/webserver.inc:41\nStack trace:\n#0 \/usr\/share\/openmediavault\/engined\/rpc\/config.inc(180): OMVModuleNginxAbstract->applyConfig()\n#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)\n#2 \/usr\/share\/php\/openmediavault\/rpcservice.inc(125): call_user_func_array(Array, Array)\n#3 \/usr\/share\/php\/openmediavault\/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)\n#4 \/usr\/sbin\/omv-engined(500): OMVRpc::exec('Config', 'applyChanges', Array, Array, 1)\n#5 {main}"}}
    Failed to execute RPC (service=Config, method=applyChanges)
  • You see the problem. nginx does not like your cert. I don't think you can fix this via omv-firstaid. But you can temporarily edit, or replace, the openmediavault-webgui file in sites-available. Lets look at the file. Give results of this:


    cat /etc/nginx/sites-available/openmediavault-webgui

  • hmm..okay. I've deleted an old certificat, because it was a "real"-certificate and expired.. I didn't used it for the webgui ?(


  • unchanged :( should I reboot?


  • yes, same error


    Code
    root@Homeserver:~# /etc/init.d/nginx restart
    Restarting nginx: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/etc/ssl/certs/openmediavault-de0e5f61-51eb-4364-ba20-73eaacc0cf7e.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
    nginx: configuration file /etc/nginx/nginx.conf test failed
  • sure.. ;)


    Code
    root@Homeserver:~# ls -la /etc/ssl/certs/openmediavault*
    -rw-r----- 1 root root 1859 Mai 15 11:18 /etc/ssl/certs/openmediavault-81a3e186-115a-4517-b7b7-0cb937a04bb1.crt
    -rwxr-xr-x 1 root root 1074 Nov  2  2011 /etc/ssl/certs/openmediavault.crt
  • nothing :S




    Code
    root@Homeserver:~# cd /etc/ssl/certs
    root@Homeserver:/etc/ssl/certs# chmod 755 openmediavault*
    root@Homeserver:/etc/ssl/certs# /etc/init.d/nginx restart
    Restarting nginx: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/etc/ssl/certs/openmediavault-de0e5f61-51eb-4364-ba20-73eaacc0cf7e.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    root@Homeserver:/etc/ssl/certs#


    EDIT:

    Code
    root@Homeserver:/etc/ssl/certs# cd /etc/ssl/certs/
    root@Homeserver:/etc/ssl/certs# dir
    [...]
    openmediavault-81a3e186-115a-4517-b7b7-0cb937a04bb1.crt
    openmediavault.crt
    [...]


    I think it´s a kind of dirty work, but I copied and renamed the existing *.crt and *.key files to the "missing" files.. Now I can use the WebGUI, but the WebGUI tells me now "Configuration had been changed. To take effect you have to confirm the change". If I confirm the change will there be any negativ impact?

Jetzt mitmachen!

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