Project

General

Profile

Tâche #11987

zephir-parc - Scénario #11300: Zéphir 2.5 : améliorations cosmétiques

Traceback suspect au 1er boot du serveur Zéphir

Added by Joël Cuissinat almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/15/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Remaining (hours):
0.0

Description

Vu dans /var/log/boot.log :

[ ... ]
 * Not starting internet superserver: no services enabled
 * Starting vnStat daemon vnstatd       ^[[100G ^M^[[94G[ OK ]
Traceback (most recent call last):
  File "/usr/share/zephir/utils/parse_logs.py", line 19, in <module>
    cx = PgSQL.connect(database=DB_NAME,user=DB_USER,password=DB_PASSWD)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  Peer authentication failed for user "zephir" 

 * Demarrage du système Zephir...       ^[[100G ^M^[[94G[ OK ]
 * Démarrage de l'application Web Zephir...       ^[[100G ^M^[[94G[ OK ]
[ ... ]

Associated revisions

Revision 987869fd (diff)
Added by Daniel Dehennin almost 6 years ago

Ne pas démarrer les services avant instance

  • init/zephir: Tester la présence du fichier config.eol
  • init/zephir_web: Idem.

Ref: #11987

Revision 3aea4d45 (diff)
Added by Daniel Dehennin almost 6 years ago

Correction du démarrage des services Zéphir

  • init/zephir: Inversion de la logique.
  • init/zephir_web: Idem.

Ref: #11987

History

#1 Updated by Daniel Dehennin almost 6 years ago

Le problème vient du fait que le service Zéphir est démarré alors que le serveur n’est pas instancié:

root@zephir:~# service zephir start
 * Demarrage du système Zephir...                                                                                                                                                                                                              Traceback (most recent call last):
  File "/usr/share/zephir/utils/parse_logs.py", line 19, in <module>
    cx = PgSQL.connect(database=DB_NAME,user=DB_USER,password=DB_PASSWD)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  Peer authentication failed for user "zephir" 
Traceback (most recent call last):
  File "/usr/bin/twistd", line 14, in <module>
    run()
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 637, in run
    config.parseOptions()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 604, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 264, in parseOptions
    self.subOptions = parser()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 628, in <lambda>
    lambda plug=plug: plug.options(),
  File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 74, in get
    return namedAny(self.module).Options
  File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 266, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 205, in _importAndCheckStack
    return __import__(importName)
  File "/usr/lib/python2.7/dist-packages/zephir/backend/backend_tap.py", line 27, in <module>
    from zephir.backend import users_rpc
  File "/usr/lib/python2.7/dist-packages/zephir/backend/users_rpc.py", line 23, in <module>
    from zephir.utils.ldap_user import add_user
  File "/usr/lib/python2.7/dist-packages/zephir/utils/ldap_user.py", line 24, in <module>
    raise Exception("Fichier %s non trouvé" % LDAPCONF)
Exception: Fichier /etc/eole/eoleldap.conf non trouvé

#2 Updated by Daniel Dehennin almost 6 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Daniel Dehennin almost 6 years ago

  • Assigned To set to Daniel Dehennin

#4 Updated by Daniel Dehennin almost 6 years ago

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

Also available in: Atom PDF