Project

General

Profile

Tâche #26516

Zéphir - Scénario #26518: La sauvegarde restauration de zephir ne fonctionne pas de 2.6.2 vers 2.7.0

la restauration du z6 ne fonctionne pas

Added by Thierry Bertrand over 5 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
12/05/2018
Due date:
% Done:

100%

Remaining (hours):
0.0

History

#1 Updated by Thierry Bertrand over 5 years ago

A l'issue de l'instanciation, on obtient :

019-01-24T13:53:36.307980+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011Traceback (most recent call last):
2019-01-24T13:53:36.308145+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/_baseprocess.py", line 64, in maybeCallProcessEnded
2019-01-24T13:53:36.308307+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    proto.processEnded(Failure(reason))
2019-01-24T13:53:36.308457+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/utils.py", line 163, in processEnded
2019-01-24T13:53:36.308618+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self.deferred.callback((out, err, code))
2019-01-24T13:53:36.308769+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 459, in callback
2019-01-24T13:53:36.308917+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self._startRunCallbacks(result)
2019-01-24T13:53:36.309075+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
2019-01-24T13:53:36.309225+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self._runCallbacks()
2019-01-24T13:53:36.309385+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011--- <exception caught here> ---
2019-01-24T13:53:36.309535+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
2019-01-24T13:53:36.309697+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    current.result = callback(current.result, *args, **kw)
2019-01-24T13:53:36.309847+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 1027, in _check_md5_res
2019-01-24T13:53:36.309996+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    out, err, code = result
2019-01-24T13:53:36.310156+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011exceptions.ValueError: need more than 0 values to unpack
2019-01-24T13:53:36.320300+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] None
2019-01-24T13:53:36.789173+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] Traceback (most recent call last):
2019-01-24T13:53:36.789551+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 652, in get_params
2019-01-24T13:53:36.790226+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]     cu = cx_pool.create()
2019-01-24T13:53:36.790614+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 64, in create
2019-01-24T13:53:36.791056+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]     cx = PgSQL.connect(database=config.DB_NAME,user=config.DB_USER,password=config.DB_PASSWD)
2019-01-24T13:53:36.791515+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 130, in connect
2019-01-24T13:53:36.792009+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-]     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2019-01-24T13:53:36.792562+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] OperationalError: could not connect to server: No such file or directory
2019-01-24T13:53:36.792999+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011Is the server running locally and accepting
2019-01-24T13:53:36.793439+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
2019-01-24T13:53:36.794711+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] Unhandled error in Deferred:
2019-01-24T13:53:36.797610+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] Unhandled Error
2019-01-24T13:53:36.797793+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011Traceback (most recent call last):
2019-01-24T13:53:36.798013+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/_baseprocess.py", line 64, in maybeCallProcessEnded
2019-01-24T13:53:36.798187+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    proto.processEnded(Failure(reason))
2019-01-24T13:53:36.798351+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/utils.py", line 163, in processEnded
2019-01-24T13:53:36.798597+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self.deferred.callback((out, err, code))
2019-01-24T13:53:36.798808+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 459, in callback
2019-01-24T13:53:36.798994+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self._startRunCallbacks(result)
2019-01-24T13:53:36.799180+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
2019-01-24T13:53:36.799336+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    self._runCallbacks()
2019-01-24T13:53:36.799520+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011--- <exception caught here> ---
2019-01-24T13:53:36.799664+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
2019-01-24T13:53:36.800128+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    current.result = callback(current.result, *args, **kw)
2019-01-24T13:53:36.800282+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011  File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 1027, in _check_md5_res
2019-01-24T13:53:36.801593+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011    out, err, code = result
2019-01-24T13:53:36.802751+01:00 vm-pne-eole-06.ac.cs zephir_backend: [-] #011exceptions.ValueError: need more than 0 values to unpack

Le service postgresql tourne :

root@vm-pne-eole-06:/var/run/postgresql# systemctl status postgresql.service
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2019-01-24 15:04:55 CET; 1h 20min ago
  Process: 14119 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 14119 (code=exited, status=0/SUCCESS)

janv. 24 15:04:55 vm-pne-eole-06 systemd[1]: Starting PostgreSQL RDBMS...
janv. 24 15:04:55 vm-pne-eole-06 systemd[1]: Started PostgreSQL RDBMS.

et le fichier demandé existe bien :

root@vm-pne-eole-06:/var/run/postgresql# ls /var/run/postgresql/ -al
total 8
drwxrwsr-x  2 postgres postgres 100 janv. 24 15:04 .
drwxr-xr-x 27 root     root     980 janv. 24 15:05 ..
-rw-r--r--  1 postgres postgres   6 janv. 24 15:04 10-main.pid
srwxrwxrwx  1 postgres postgres   0 janv. 24 16:02 .s.PGSQL.5432
-rw-------  1 postgres postgres  70 janv. 24 16:02 .s.PGSQL.5432.lock

#2 Updated by Thierry Bertrand over 5 years ago

en essayant d'instancier en mode base locale :

nom d'utilisateur a créer (rien pour terminer) : 

** Base d'authentification LDAP initialisée **

## Insertion des données minimum dans la base ##
Création des types d'établissement par défaut ...

Traceback (most recent call last):
  File "init_base.py", line 108, in <module>
    init_data(EoleProxy('http://%s:%s@localhost:%d' % (admin_zephir, passwd, int(PORT_ZEPHIR) + 1)))
  File "init_base.py", line 38, in init_data
    z.etabs.add_type(libelle)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/dist-packages/zephir/eolerpclib.py", line 99, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1331, in single_request
    response.msg,
zephir.eolerpclib.ProtocolError: <ProtocolError for localhost:7081/RPC2: 401 Unauthorized>
Erreur de mise en place des données de base
run-parts: /usr/share/eole/posttemplate/10-conf-zephir exited with return code 1
Erreur : posttemplate

#3 Updated by Thierry Bertrand over 5 years ago

  • Parent task changed from #26355 to #26518

#4 Updated by Thierry Bertrand over 5 years ago

  • Status changed from Nouveau to Fermé
  • Assigned To set to Thierry Bertrand
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

la procédure de restauration a fini par être modifiée en clonant un zephir fonctionnel.

Also available in: Atom PDF