Can"t access WebGUI + /etc/init.d/nginx accidently deleted

    • Offizieller Beitrag

    apt-get install --reinstall nginx
    omv-mkconf nginx
    service nginx restart

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I'm getting this with apt-get install --reinstall nginx



    root@llamafileserver:~# apt-get install --reinstall nginx
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    Le paquet suivant a été installé automatiquement et n'est plus nécessaire :
    sabredav
    Veuillez utiliser « apt-get autoremove » pour le supprimer.
    Les paquets suivants seront ENLEVÉS :
    openmediavault-webdav
    0 mis à jour, 0 nouvellement installés, 1 réinstallés, 1 à enlever et 60 non mis à jour.
    1 partiellement installés ou enlevés.
    Il est nécessaire de prendre 0 o/61,4 ko dans les archives.
    Après cette opération, 58,4 ko d'espace disque seront libérés.
    Souhaitez-vous continuer [O/n] ? O
    (Lecture de la base de données... 46777 fichiers et répertoires déjà installés.)
    Suppression de openmediavault-webdav ...
    invoke-rc.d: unknown initscript, /etc/init.d/nginx not found.
    dpkg: erreur de traitement de openmediavault-webdav (--remove) :
    le sous-processus script post-removal installé a retourné une erreur de sortie d'état 100
    Traitement des actions différées (« triggers ») pour « openmediavault »...
    Restarting engine daemon ...
    /etc/monit/conf.d/openmediavault-nginx.conf:2: Warning: Program does not exist: '/etc/init.d/nginx'
    /etc/monit/conf.d/openmediavault-nginx.conf:3: Warning: Program does not exist: '/etc/init.d/nginx'
    Des erreurs ont été rencontrées pendant l'exécution :
    openmediavault-webdav
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...
    E: Sub-process /usr/bin/dpkg returned an error code (1)




    sorry its in french

    • Offizieller Beitrag

    As root:
    wget -O /etc/init.d/nginx http://omv-extras.org/testing/nginx
    chmod +x /etc/init.d/nginx
    service nginx start

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • root@llamafileserver:~# service nginx start
    Starting nginx: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] still could not bind()
    nginx.

  • If I correctly understand this error, Nginx service wants to start using port 80, but my WebGUI is configured to use port 8042 because port 80 is used for something else. How to tell the service to start using another port ?

    • Offizieller Beitrag

    Try omv-firstaid now.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • to change the default port ?


    Here's what I get when i change the WebGUI settings in omv-fristaid :



    Updating web administration settings. Please wait ...






    EDIT : all the outputs:


    root@llamafileserver:~# omv-firstaid
    Updating web administration settings. Please wait ...
    root@llamafileserver:~# wget -O /etc/init.d/nginx http://omv-extras.org/testing/nginx
    --2016-07-23 15:19:11-- http://omv-extras.org/testing/nginx
    Résolution de omv-extras.org (omv-extras.org)... 5.9.105.28
    Connexion vers omv-extras.org (omv-extras.org)|5.9.105.28|:80...connecté.
    requête HTTP transmise, en attente de la réponse...200 OK
    Longueur: 2235 (2,2K)
    Sauvegarde en : «/etc/init.d/nginx»


    100%[======================================>] 2 235 --.-K/s ds 0s


    2016-07-23 15:19:11 (15,8 MB/s) - «/etc/init.d/nginx» sauvegardé [2235/2235]


    root@llamafileserver:~# chmod +x /etc/init.d/nginx
    root@llamafileserver:~# service nginx start
    Starting nginx: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
    nginx: [emerg] still could not bind()
    nginx.

    • Offizieller Beitrag

    Disable the other service using port 80 until you can get the omv web interface working and change the port then.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    nginx_dissite openmediavault-nginx
    service nginx restart
    omv-firstaid to restore to port 80
    Change omv web interface to 8042 or whatever
    nginx_ensite openmediavault-nginx
    service nginx restart

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • service nginx restart gives me this :


    Starting nginx: nginx: [emerg] a duplicate default server for [::]:80 in /etc/nginx/sites-enabled/openmediavault-nginx:2
    nginx: configuration file /etc/nginx/nginx.conf test failed

    • Offizieller Beitrag

    The site didn't disable.


    rm /etc/nginx/sites-enabled/openmediavault-nginx
    service nginx restart

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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