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

    • OMV 2.x
    • 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
    • As root:
      wget -O /etc/init.d/nginx http://omv-extras.org/testing/nginx
      chmod +x /etc/init.d/nginx
      service nginx start
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      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.
    • 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 omv-extras.org/testing/nginx
      --2016-07-23 15:19:11-- 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.
    • Disable the other service using port 80 until you can get the omv web interface working and change the port then.
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 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 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • The site didn't disable.

      rm /etc/nginx/sites-enabled/openmediavault-nginx
      service nginx restart
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!