Project

General

Profile

Tâche #31413

Scénario #31360: Vérifier l'inscription d'un EAD web dans un backend distant (2.8.0-RC1)

Vérifier 2.8 sur 2.8

Added by Joël Cuissinat 10 months ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
12/14/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Associated revisions

Revision 17594f8d (diff)
Added by Joël Cuissinat 10 months ago

Débogage partiel de l'inscripton EAD en 2.8

Ref: #31413

History

#1 Updated by Joël Cuissinat 10 months ago

  • etb1.scribe-2.8.0rc1-instance-default
  • etb1.horus-2.7.2-instance-default
  • etb1.amon-2.8.1a0-instance-default

#2 Updated by Joël Cuissinat 10 months ago

En testant Scribe 2.8.0 sur Amon 2.8.1, il y a bien un traceback côté Scribe !

2020-12-14T12:30:19.750981+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011Traceback (most recent call last):
2020-12-14T12:30:19.751026+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/twisted/web/server.py", line 199, in process
2020-12-14T12:30:19.751062+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    self.render(resrc)
2020-12-14T12:30:19.751104+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/twisted/web/server.py", line 259, in render
2020-12-14T12:30:19.751144+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    body = resrc.render(self)
2020-12-14T12:30:19.751194+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/share/ead2/backend/lib/eadserver.py", line 199, in render
2020-12-14T12:30:19.751223+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    defer.maybeDeferred(function, client_ip.encode(), *args).addErrback(
2020-12-14T12:30:19.751252+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 151, in maybeDeferred
2020-12-14T12:30:19.751287+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    result = f(*args, **kw)
2020-12-14T12:30:19.751324+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011--- <exception caught here> ---
2020-12-14T12:30:19.751369+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/share/ead2/backend/lib/eadserver.py", line 576, in xmlrpc_register_frontend
2020-12-14T12:30:19.751403+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    key = self.frontend.register(client_ip)
2020-12-14T12:30:19.751456+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/share/ead2/backend/lib/frontendkeys.py", line 50, in register
2020-12-14T12:30:19.751496+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    self.save()
2020-12-14T12:30:19.751533+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/pyeole/dict4ini/dict4ini.py", line 325, in save
2020-12-14T12:30:19.751572+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    f.write(self._savedict([], self._items, encoding))
2020-12-14T12:30:19.751617+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/pyeole/dict4ini/dict4ini.py", line 337, in _savedict
2020-12-14T12:30:19.751654+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    buf.append(self._savedict(sec, value, encoding))
2020-12-14T12:30:19.751695+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/pyeole/dict4ini/dict4ini.py", line 333, in _savedict
2020-12-14T12:30:19.751733+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    for key, value in self.ordereditems(values, sec=section):
2020-12-14T12:30:19.751778+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011  File "/usr/lib/python3/dist-packages/pyeole/dict4ini/dict4ini.py", line 251, in ordereditems
2020-12-14T12:30:19.751810+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011    s.append((self._root._orders.get(self._section_delimeter.join(sec + [key]), 99999), key, value))
2020-12-14T12:30:19.751851+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011builtins.TypeError: sequence item 1: expected str instance, bytes found
2020-12-14T12:30:19.751889+01:00 scribe.dompedago.etb1.lan ead-server[622]: #011

#3 Updated by Joël Cuissinat 10 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat 10 months ago

La désinscription échoue également avec l'erreur : Erreur : Authentification failure with user : 'root'

#5 Updated by Joël Cuissinat 10 months ago

Avec mes derniers commits, il n'y a plus d'erreur d'enregistrement mais cela ne suffit pas car la clé est enregistrée en binary sur le Scribe (un coup de pyeole/dict4ini ?) :

root@scribe:~# cat /usr/share/ead2/backend/config/frontend_keys.ini 
[keys]
scribe.dompedago.etb1.lan = e6ee2c420cef7f4e0738f4161de53f96e9c488af
b'10.1.3.1' = 5bdf8156c0fdda0114796034b6a38936b606b1f7

En modifiant la clé en 10.1.3.1, l'EAD devient utilisable...

Les désinscriptions ne font pas d'erreur mais la ligne n'est jamais supprimée du fichier /usr/share/ead2/backend/config/frontend_keys.ini non plus !

#6 Updated by Joël Cuissinat 9 months ago

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

Joël Cuissinat a écrit :

Avec mes derniers commits, il n'y a plus d'erreur d'enregistrement mais cela ne suffit pas car la clé est enregistrée en binary sur le Scribe (un coup de pyeole/dict4ini ?) :
[...]

En modifiant la clé en 10.1.3.1, l'EAD devient utilisable...

Les désinscriptions ne font pas d'erreur mais la ligne n'est jamais supprimée du fichier /usr/share/ead2/backend/config/frontend_keys.ini !

=> #31433

#7 Updated by Joël Cuissinat 9 months ago

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

Also available in: Atom PDF