I can't open the web UI

  • hello, I have a problem with open media vault, it turns out that I left the server off for about 3 days, because I still can not porle ssl certificates and a proxy, so I'm using it locally, when I turn it on, I enter the local ip with the ports where the UI is and I cant enter ui, but the other containers like WG work correctly, how could I fix it? :(

  • KM0201

    Approved the thread.
  • I tried with port 224 which is where I have the ui, and this was the result, I recently deleted the ngnix container and it still shows that, even before deleting it.


    I also tried port 51821 which is where wireguard is still active and the response is the same.


    [ERROR ] Command 'nginx' failed with return code: 1

    [ERROR ] stderr: 2024/07/22 15:46:03 [emerg] 4089#4089: open() "/etc/nginx/sit es-enabled/tu_sitio.conf" failed (2: No such file or directory) in /etc/nginx/ng inx.conf:60

    nginx: configuration file /etc/nginx/nginx.conf test failed

    [ERROR ] retcode: 1

    [ERROR ] {'pid': 4088, 'retcode': 1, 'stdout': '', 'stderr': '2024/07/22 15:46 :03 [emerg] 4089#4089: open() "/etc/nginx/sites-enabled/tu_sitio.conf" failed (2 : No such file or directory) in /etc/nginx/nginx.conf:60\nnginx: configuration f ile /etc/nginx/nginx.conf test failed'}

    • Official Post

    [ERROR ] {'pid': 4088, 'retcode': 1, 'stdout': '', 'stderr': '2024/07/22 15:46 :03 [emerg] 4089#4089: open() "/etc/nginx/sites-enabled/tu_sitio.conf" failed (2 : No such file or directory) in /etc/nginx/nginx.conf:60\nnginx: configuration f ile /etc/nginx/nginx.conf test failed'}

    Did you manually edit nginx. conf?

    Or did you install something else that is using nginx?

  • Did you manually edit nginx. conf?

    Or did you install something else that is using nginx?

    On that server I have wireguard, duckdns, nextcloud (I have not used it until I have the domain with ssl certificate) and ngnix, the detail is that I reintalled ngnix several times because it always gave me an error when I wanted to generate a ssl certificate and recently I removed it from the containers by ssh, but the error was present before and after removing ngnix.

  • Post inside CODE boxes the outputs of:


    sudo ls -al /etc/nginx/sites-enabled/


    sudo omv-salt deploy nginx phpfpm

  • Code
    omv-salt deploy run nginx

    [ERROR ] Command 'nginx' failed with return code: 1

    [ERROR ] stderr: 2024/07/25 02:16:11 [emerg] 5440#5440: open() "/etc/nginx/sites-enabled/tu_sitio.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:60

    nginx: configuration file /etc/nginx/nginx.conf test failed

    [ERROR ] retcode: 1

    [ERROR ] {'pid': 5440, 'retcode': 1, 'stdout': '', 'stderr': '2024/07/25 02:16:11 [emerg] 5440#5440: open() "/etc/nginx/sites-enabled/tu_sitio.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:60\nnginx: configuration is a similar error :(

  • Please, post the full outputs of both commands I asked inside CODE boxes (it's the symbol </> of the BLUE banner of the posting box)


    And also:

    cat /etc/nginx/nginx.conf

  • Please, post the full outputs of both commands I asked inside CODE boxes (it's the symbol </> of the BLUE banner of the posting box)


    And also:

    cat /etc/nginx/nginx.conf

    root@Paimon:~# sudo ls -al /etc/nginx/sites-enabled/

    total 8

    drwxr-xr-x 2 root root 4096 jul 15 13:29 .

    drwxr-xr-x 9 root root 4096 jul 15 13:29 ..

    lrwxrwxrwx 1 root root 40 jul 11 14:37 openmediavault-webgui -> ../sites-available/openmediavault-webgui

    lrwxrwxrwx 1 root root 40 jul 15 13:29 tu_sitio.conf -> /etc/nginx/sites-available/tu_sitio.conf

    root@Paimon:~#

    root@Paimon:~# sudo omv-salt deploy nginx phpfpm

    Usage: omv-salt deploy [OPTIONS] COMMAND [ARGS]...

    Try 'omv-salt deploy --help' for help.


    Error: No such command 'nginx'.

    root@Paimon:~#






    root@Paimon:~# cat /etc/nginx/nginx.conf

    user www-data;

    worker_processes auto;

    pid /run/nginx.pid;

    error_log /var/log/nginx/error.log;

    include /etc/nginx/modules-enabled/*.conf;


    events {

    worker_connections 768;

    # multi_accept on;

    }


    http {


    ##

    # Basic Settings

    ##


    sendfile on;

    tcp_nopush on;

    types_hash_max_size 2048;

    # server_tokens off;


    # server_names_hash_bucket_size 64;

    # server_name_in_redirect off;


    include /etc/nginx/mime.types;

    default_type application/octet-stream;


    ##

    # SSL Settings

    ##


    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE

    ssl_prefer_server_ciphers on;


    ##

    # Logging Settings

    ##


    access_log /var/log/nginx/access.log;


    ##

    # Gzip Settings

    ##


    gzip on;


    # gzip_vary on;

    # gzip_proxied any;

    # gzip_comp_level 6;

    # gzip_buffers 16 8k;

    # gzip_http_version 1.1;

    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;


    ##

    # Virtual Host Configs

    ##


    include /etc/nginx/conf.d/*.conf;

    include /etc/nginx/sites-enabled/*;

    }



    #mail {

    # # See sample authentication script at:

    # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript

    #

    # # auth_http localhost/auth.php;

    # # pop3_capabilities "TOP" "USER";

    # # imap_capabilities "IMAP4rev1" "UIDPLUS";

    #

    # server {

    # listen localhost:110;

    # protocol pop3;

    # proxy on;

    # }

    #

    # server {

    # listen localhost:143;

    # protocol imap;

    # proxy on;

    # }

    #}

    root@Paimon:~#

  • Please USE CODE BOXES to post the outputs.

    It's dificult to read the code like that.


    Code
    root@Paimon:~# sudo ls -al /etc/nginx/sites-enabled/
    total 8
    drwxr-xr-x 2 root root 4096 jul 15 13:29 .
    drwxr-xr-x 9 root root 4096 jul 15 13:29 ..
    lrwxrwxrwx 1 root root 40 jul 11 14:37 openmediavault-webgui -> ../sites-available/openmediavault-webgui
    lrwxrwxrwx 1 root root 40 jul 15 13:29 tu_sitio.conf -> /etc/nginx/sites-available/tu_sitio.conf


    You have installed or done something that added a file that shouldn't be there so delete it.


    sudo mv /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf

    sudo rm -f /etc/nginx/sites-enabled/tu_sitio.conf


    After that run and post the output INSIDE A CODE BOX of:

    sudo omv-salt deploy run nginx phpfpm

  • Code
    root@Paimon:~# sudo mv /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf
    mv: no se puede efectuar `stat' sobre '/etc/nginx/sites-available/tu_sitio.conf': No existe el fichero o el directorio
    root@Paimon:~# sudo rm -f /etc/nginx/sites-enabled/tu_sitio.conf
    root@Paimon:~# sudo mv /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf
    mv: no se puede efectuar `stat' sobre '/etc/nginx/sites-available/tu_sitio.conf': No existe el fichero o el directorio
    root@Paimon:~# sudo rm -f /etc/nginx/sites-enabled/tu_sitio.conf
    root@Paimon:~#

    Sorry for the above, this is the answer, "stat" is some package that I should install?

  • Sorry for the above, this is the answer, "stat" is some package that I should install?

    No. It should have moved the file.


    Try with:

    sudo cp -a /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf

    sudo rm -f /etc/nginx/sites-available/tu_sitio.conf

  • No. It should have moved the file.


    Try with:

    sudo cp -a /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf

    sudo rm -f /etc/nginx/sites-available/tu_sitio.conf

    Code
    root@Paimon:~# sudo cp -a /etc/nginx/sites-available/tu_sitio.conf /root/tu_sitio.conf
    cp: no se puede efectuar `stat' sobre '/etc/nginx/sites-available/tu_sitio.conf': No existe el fichero o el directorio
    root@Paimon:~# sudo rm -f /etc/nginx/sites-available/tu_sitio.conf
    root@Paimon:~#

    Same respose

  • Same respose

    What is the output now of:


    sudo ls -al /etc/nginx/sites-available/

    sudo ls -al /etc/nginx/sites-enable/

  • What is the output now of:


    sudo ls -al /etc/nginx/sites-available/

    sudo ls -al /etc/nginx/sites-enable/

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!