Project

General

Profile

Tâche #16697

Scénario #16516: Traitement express (25-27)

Amon : nginx ne redémarre pas après un reconfigure

Added by Lionel Morin over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/25/2015
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

Extrait du journalctl :

juil. 05 09:50:02 amon nginx[11738]: nginx: [emerg] host not found in upstream "scribe.etb1.lan" in /etc/nginx/sites-enabled/default:84
juil. 05 09:50:02 amon nginx[11738]: nginx: configuration file /etc/nginx/nginx.conf test failed
juil. 05 09:50:02 amon systemd[1]: nginx.service: Control process exited, code=exited status=1
juil. 05 09:50:02 amon systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: L'unité (unit) nginx.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) nginx.service a échoué, avec le résultat failed.
juil. 05 09:50:02 amon systemd[1]: nginx.service: Unit entered failed state.
juil. 05 09:50:02 amon systemd[1]: nginx.service: Failed with result 'exit-code'.

Un simple service nginx start suffit après pour le relancer.

Associated revisions

Revision b32641ea (diff)
Added by Lionel Morin over 3 years ago

Ajout d'un nginx.override pour démarrer après le service bind9 (ref #16697 3h)

Revision 4b0bbfa6 (diff)
Added by Lionel Morin over 3 years ago

Ajout d'un bind9.override pour démarrer bind9 en mode démon (ref #16697 0.5h)

Revision 8031d941 (diff)
Added by Emmanuel GARETTE over 3 years ago

il manque un mkdir pour créer les dossiers de l'override (ref #16697)

Revision 753133ef (diff)
Added by Emmanuel GARETTE over 3 years ago

il manque un mkdir pour créer les dossiers de l'override (ref #16697)

History

#1 Updated by Lionel Morin over 3 years ago

  • Description updated (diff)

#2 Updated by Lionel Morin over 3 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Lionel Morin over 3 years ago

  • Assigned To set to Lionel Morin

#4 Updated by Lionel Morin over 3 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 4.0 to 0.5

#5 Updated by Emmanuel GARETTE over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Nginx est bien démarré après bind :

root@amon:/var/lib/dpkg/info# systemctl status bind9
● bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/bind9.service.d
           └─50-insserv.conf-$named.conf
        /etc/systemd/system/bind9.service.d
           └─override.conf
   Active: active (running) since jeu. 2016-07-07 17:09:37 CEST; 1min 4s ago
     Docs: man:named(8)
  Process: 19311 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS)
  Process: 20037 ExecStart=/usr/sbin/named -u bind (code=exited, status=0/SUCCESS)
 Main PID: 20088 (named)
   CGroup: /system.slice/bind9.service
           └─20088 /usr/sbin/named -u bind

juil. 07 17:09:37 amon named[20088]: zone 1.1.10.in-addr.arpa/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone domsupp1.lan/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone 2.1.10.in-addr.arpa/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone 3.1.10.in-addr.arpa/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone 0.168.192.in-addr.arpa/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone 0.0.127.in-addr.arpa/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: zone etb1.lan/IN/tous: loaded serial 2016070700
juil. 07 17:09:37 amon named[20088]: all zones loaded
juil. 07 17:09:37 amon named[20088]: running
juil. 07 17:09:37 amon systemd[1]: Started BIND Domain Name Server.
root@amon:/var/lib/dpkg/info# systemctl status nginx.service 
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/nginx.service.d
           └─override.conf
   Active: active (running) since jeu. 2016-07-07 17:09:38 CEST; 1min 10s ago
  Process: 20139 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
  Process: 20123 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 20159 (nginx)
   CGroup: /system.slice/nginx.service
           ├─20159 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
           ├─20162 nginx: worker process                           
           ├─20163 nginx: worker process                           
           ├─20164 nginx: worker process                           
           └─20165 nginx: worker process                           

juil. 07 17:09:38 amon systemd[1]: Starting A high performance web server and a reverse proxy server...
juil. 07 17:09:38 amon nginx[20123]: nginx: [warn] duplicate value "TLSv1" in /etc/nginx/conf.d/nosslv3.conf:2
juil. 07 17:09:38 amon nginx[20139]: nginx: [warn] duplicate value "TLSv1" in /etc/nginx/conf.d/nosslv3.conf:2
juil. 07 17:09:38 amon systemd[1]: Started A high performance web server and a reverse proxy server.

Also available in: Atom PDF