Project

General

Profile

Tâche #17363

Scénario #17200: Qualification EOLE 2.6.0 RC1

Les services EOLE ne devraient pas être en erreur avant l'instance.

Added by Emmanuel GARETTE almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/30/2016
Due date:
% Done:

100%

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

Description

root@scribe:~# systemctl status eole-sso.service
● eole-sso.service - Eole Single Sign On server
   Loaded: loaded (/lib/systemd/system/eole-sso.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven. 2016-09-30 16:07:42 CEST; 1min 49s ago
  Process: 1401 ExecStart=/usr/bin/eole-sso -oy /usr/share/sso/authform.py --syslog --pidfile /var/run/authform.pid (code=exited, status=1/FAILURE)

sept. 30 16:07:41 scribe eole-sso[1401]:     peer_cert = X509.load_cert(config.CERTFILE)
sept. 30 16:07:41 scribe eole-sso[1401]:   File "/usr/lib/python2.7/dist-packages/M2Crypto/X509.py", line 609, in load_cert
sept. 30 16:07:42 scribe eole-sso[1401]:     bio = BIO.openfile(file)
sept. 30 16:07:42 scribe eole-sso[1401]:   File "/usr/lib/python2.7/dist-packages/M2Crypto/BIO.py", line 186, in openfile
sept. 30 16:07:42 scribe eole-sso[1401]:     return File(open(filename, mode))
sept. 30 16:07:42 scribe eole-sso[1401]: IOError: [Errno 2] No such file or directory: '/etc/ssl/certs/eole.crt'
sept. 30 16:07:42 scribe systemd[1]: eole-sso.service: Control process exited, code=exited status=1
sept. 30 16:07:42 scribe systemd[1]: Failed to start Eole Single Sign On server.
sept. 30 16:07:42 scribe systemd[1]: eole-sso.service: Unit entered failed state.
sept. 30 16:07:42 scribe systemd[1]: eole-sso.service: Failed with result 'exit-code'.
root@scribe:~# systemctl status websockify.service
● websockify.service - EOP WebSocket to TCP proxy/bridge.
   Loaded: loaded (/lib/systemd/system/websockify.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven. 2016-09-30 16:07:41 CEST; 2min 38s ago
  Process: 1395 ExecStart=/usr/bin/websockify ${SERVER_PORT} --target-config=/var/lib/eop_novnc/ --cert=${SERVER_CERT} --key=${SERVER_KEY} (code=exited, status=2)
 Main PID: 1395 (code=exited, status=2)

sept. 30 16:07:39 scribe systemd[1]: Started EOP WebSocket to TCP proxy/bridge..
sept. 30 16:07:41 scribe websockify[1395]: Usage:
sept. 30 16:07:41 scribe websockify[1395]:     websockify [options] [source_addr:]source_port [target_addr:target_port]
sept. 30 16:07:41 scribe websockify[1395]:     websockify [options] [source_addr:]source_port -- WRAP_COMMAND_LINE
sept. 30 16:07:41 scribe websockify[1395]: websockify: error: Error parsing listen port
sept. 30 16:07:41 scribe systemd[1]: websockify.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
sept. 30 16:07:41 scribe systemd[1]: websockify.service: Unit entered failed state.
sept. 30 16:07:41 scribe systemd[1]: websockify.service: Failed with result 'exit-code'.
root@scribe:~# vi /lib/systemd/system/websockify.service

Associated revisions

Revision 27b99df6 (diff)
Added by Emmanuel GARETTE almost 5 years ago

ne pas démarrer eole-sso avant l'instance (ref #17363 @1h)

Revision b81fc3d5 (diff)
Added by Emmanuel GARETTE almost 5 years ago

ne pas démarrer websockify avant l'instance (ref #17363)

Revision 47c4dd65 (diff)
Added by Emmanuel GARETTE almost 5 years ago

ne pas démarrer websockify avant l'instance (ref #17363)

Revision 1b8f4bb2 (diff)
Added by Emmanuel GARETTE almost 5 years ago

ne pas démarrer websockify avant l'instance (ref #17363)

Revision 79987ef7 (diff)
Added by Emmanuel GARETTE almost 5 years ago

ne pas démarrer eole-sso avant l'instance (ref #17363)

History

#1 Updated by Emmanuel GARETTE almost 5 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE

#2 Updated by Emmanuel GARETTE almost 5 years ago

  • % Done changed from 0 to 100
  • Estimated time set to 2.00 h
  • Remaining (hours) set to 0.25

sur etb1.scribe daily, après mise à jour + reboot :

root@scribe:~# systemctl --state=failed
  UNIT                    LOAD   ACTIVE SUB    DESCRIPTION
● isc-dhcp-server.service loaded failed failed ISC DHCP IPv4 server
● quotaon.service         loaded failed failed Enable File System Quotas

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
root@scribe:~# systemctl status websockify.service eole-sso.service 
● websockify.service - EOP WebSocket to TCP proxy/bridge.
   Loaded: loaded (/lib/systemd/system/websockify.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at ven. 2016-09-30 17:37:16 CEST; 2min 8s ago
           ConditionPathExists=/etc/default/eop-websockify was not met

● eole-sso.service - Eole Single Sign On server
   Loaded: loaded (/lib/systemd/system/eole-sso.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at ven. 2016-09-30 17:37:16 CEST; 2min 8s ago
           ConditionPathExists=/etc/eole/config.eol was not met

Après instance :

root@scribe:~# systemctl status websockify.service eole-sso.service 
● websockify.service - EOP WebSocket to TCP proxy/bridge.
   Loaded: loaded (/lib/systemd/system/websockify.service; enabled; vendor preset: enabled)
   Active: active (running) since ven. 2016-09-30 17:49:12 CEST; 1min 20s ago
 Main PID: 12247 (websockify)
   CGroup: /system.slice/websockify.service
           └─12247 /usr/bin/python /usr/bin/websockify 6080 --target-config=/var/lib/eop_novnc/ --cert=/etc/ssl/certs/eole.crt --key=/etc/ssl/certs/eole.key

sept. 30 17:49:12 scribe systemd[1]: Started EOP WebSocket to TCP proxy/bridge..
sept. 30 17:49:13 scribe websockify[12247]: WebSocket server settings:
sept. 30 17:49:13 scribe websockify[12247]:   - Listen on :6080
sept. 30 17:49:13 scribe websockify[12247]:   - Flash security policy server
sept. 30 17:49:13 scribe websockify[12247]:   - SSL/TLS support
sept. 30 17:49:13 scribe websockify[12247]:   - proxying from :6080 to targets in /var/lib/eop_novnc

● eole-sso.service - Eole Single Sign On server
   Loaded: loaded (/lib/systemd/system/eole-sso.service; enabled; vendor preset: enabled)
   Active: active (running) since ven. 2016-09-30 17:49:15 CEST; 1min 18s ago
  Process: 12037 ExecStart=/usr/bin/eole-sso -oy /usr/share/sso/authform.py --syslog --pidfile /var/run/authform.pid (code=exited, status=0/SUCCESS)
 Main PID: 12491 (python)
   CGroup: /system.slice/eole-sso.service
           └─12491 python /usr/bin/eole-sso -oy /usr/share/sso/authform.py --syslog --pidfile /var/run/authform.pid

sept. 30 17:49:15 scribe eolesso[12491]: [-] HTTPFactory (WrappingFactory) starting on 8443
sept. 30 17:49:15 scribe eolesso[12491]: [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x7f2d866f3998>
sept. 30 17:49:15 scribe eolesso[12491]: [-] Starting factory <twisted.protocols.policies.WrappingFactory instance at 0x7f2d866f3b48>
sept. 30 17:49:15 scribe systemd[1]: Started Eole Single Sign On server.
sept. 30 17:49:15 scribe eolesso[12491]: [-] * chargement de la configuration du serveur
sept. 30 17:49:15 scribe eolesso[12491]: [-] - Attributs calculés définis : ENTPersonProfils, groupes, ecs_profil, secureid, FrEduVecteur, ecs_rne, entlogin
sept. 30 17:49:15 scribe eolesso[12491]: [-] - Attributs de fédération externes déclarés :
sept. 30 17:49:15 scribe eolesso[12491]: [-] - Filtres chargés : roundcube, providers, openid, saml, ead2, default
sept. 30 17:49:15 scribe eolesso[12491]: [-] - Applications chargées : ead2, eole_openid, roundcube, roundcube
sept. 30 17:49:15 scribe eolesso[12491]: [-] - Mise à jour des jeux d'attributs fournis par EoleSSO
root@scribe:~# 

#3 Updated by Scrum Master almost 5 years ago

  • Status changed from En cours to Résolu

#4 Updated by Fabrice Barconnière almost 5 years ago

  • Remaining (hours) changed from 0.25 to 0.0

Avant instance :

root@scribe:~# systemctl --state=failed
  UNIT                    LOAD   ACTIVE SUB    DESCRIPTION
● isc-dhcp-server.service loaded failed failed ISC DHCP IPv4 server
● quotaon.service         loaded failed failed Enable File System Quotas

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Après instance :

root@scribe:~# systemctl status websockify.service eole-sso.service
● websockify.service - EOP WebSocket to TCP proxy/bridge.
   Loaded: loaded (/lib/systemd/system/websockify.service; enabled; vendor preset: enabled)
   Active: active (running) since jeu. 2016-10-06 15:08:46 CEST; 56s ago
 Main PID: 6553 (websockify)
   CGroup: /system.slice/websockify.service
           └─6553 /usr/bin/python /usr/bin/websockify 6080 --target-config=/var/lib/eop_novnc/ --cert=/etc/ssl/certs/eole.crt --key=/

oct. 06 15:08:46 scribe systemd[1]: Started EOP WebSocket to TCP proxy/bridge..
oct. 06 15:08:48 scribe websockify[6553]: WebSocket server settings:
oct. 06 15:08:48 scribe websockify[6553]:   - Listen on :6080
oct. 06 15:08:48 scribe websockify[6553]:   - Flash security policy server
oct. 06 15:08:48 scribe websockify[6553]:   - SSL/TLS support
oct. 06 15:08:48 scribe websockify[6553]:   - proxying from :6080 to targets in /var/lib/eop_novnc
oct. 06 15:09:39 scribe websockify[6553]: 127.0.0.1: ignoring empty handshake

● eole-sso.service - Eole Single Sign On server
   Loaded: loaded (/lib/systemd/system/eole-sso.service; enabled; vendor preset: enabled)
   Active: active (running) since jeu. 2016-10-06 15:08:51 CEST; 51s ago
  Process: 6622 ExecStart=/usr/bin/eole-sso -oy /usr/share/sso/authform.py --syslog --pidfile /var/run/authform.pid (code=exited, sta
 Main PID: 7028 (python)
   CGroup: /system.slice/eole-sso.service
           └─7028 python /usr/bin/eole-sso -oy /usr/share/sso/authform.py --syslog --pidfile /var/run/authform.pid

oct. 06 15:08:51 scribe eolesso[7028]: [-] Starting factory <twisted.protocols.policies.WrappingFactory instance at 0x7f1e031902d8>
oct. 06 15:08:51 scribe systemd[1]: Started Eole Single Sign On server.
oct. 06 15:08:51 scribe eolesso[7028]: [-] * chargement de la configuration du serveur
oct. 06 15:08:51 scribe eolesso[7028]: [-] - Attributs calculés définis : ENTPersonProfils, groupes, ecs_profil, secureid, FrEduVecte
oct. 06 15:08:51 scribe eolesso[7028]: [-] - Attributs de fédération externes déclarés :
oct. 06 15:08:51 scribe eolesso[7028]: [-] - Filtres chargés : roundcube, providers, openid, saml, ead2, default
oct. 06 15:08:51 scribe eolesso[7028]: [-] - Applications chargées : ead2, eole_openid, roundcube, roundcube
oct. 06 15:08:51 scribe eolesso[7028]: [-] - Mise à jour des jeux d'attributs fournis par EoleSSO
oct. 06 15:08:51 scribe eolesso[7028]: [-] index 0 assigné au jeu d'attributs multi_rne
oct. 06 15:08:51 scribe eolesso[7028]: [-] index 1 assigné au jeu d'attributs default

#5 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from Résolu to Fermé

Testé OK en même temps que #17344

Also available in: Atom PDF