Hi guys,
I accidently deleted this folder :
/etc/init.d/nginx
and now my WebGUI isn't working anymore.
What can I do ?
Thanks in advance !
Can"t access WebGUI + /etc/init.d/nginx accidently deleted
-
- OMV 2.x
- Marcerisson
-
-
apt-get install --reinstall nginx
omv-mkconf nginx
service nginx restart -
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 -
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 ?
-
Try omv-firstaid now.
-
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. -
Disable the other service using port 80 until you can get the omv web interface working and change the port then.
-
the other service unsing this port is the nginxw plugin from omv extras
i think the name of the service is php5-fpm -
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 -
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 -
The site didn't disable.
rm /etc/nginx/sites-enabled/openmediavault-nginx
service nginx restart -
Ok thanks ! I solved the problem
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!