[LaBanquePostale] - mise à jour woob

Bonjour,
la synchro avec LBP ne fonctionne plus depuis quelques jours chez moi.
" Votre banque utilise un module non supporté par Kresus (et Woob) ou il manque une dépendance. Essayer de mettre à jour Woob ou contacter un mainteneur."

Si je comprends bien, il faut que je force la mise à jour de Woob. J’ai trouvé sur un forum de yunohost la consigne suivante :
" me connecter en SSH et entrer la commade
yunohost app upgrade kresus --debug -F"

J’ai bon ? Je fais ?

je mets la partie de log de ce soir au cas où je sois à côté.

Merci

bnjbvr-kresus1
date,stream,content
2023-03-20T18:07:41.064084500Z,stdout,[2023-03-20T18:07:41.063] [ERROR] HTTP - POST /api/accesses/13/fetch/operations - 500 (12640 ms)

2023-03-20T18:07:41.048943476Z,stdout,    at async fetchOperations (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/accesses.js:205:37)

2023-03-20T18:07:41.048903044Z,stdout,    at async AccountManager.syncTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:338:24)

2023-03-20T18:07:41.048868435Z,stdout,    at async pollTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:215:34)

2023-03-20T18:07:41.048820491Z,stdout,    at async Object.fetchOperations (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:270:12)

2023-03-20T18:07:41.048786888Z,stdout,    at async _fetchHelper (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:245:16)

2023-03-20T18:07:41.048747493Z,stdout,    at processTicksAndRejections (node:internal/process/task_queues:96:5)

2023-03-20T18:07:41.048713546Z,stdout,    at callWoob (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:188:15)

2023-03-20T18:07:41.048664970Z,stdout,    at new KError (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/helpers.js:59:22)

2023-03-20T18:07:41.048598884Z,stdout,[2023-03-20T18:07:41.048] [INFO] helpers - Error

2023-03-20T18:07:41.048331137Z,stdout,

2023-03-20T18:07:41.048301523Z,stdout,woob.exceptions.ModuleLoadError: cannot import name 'LowSecHTTPAdapter' from 'woob.browser.adapters' (/woob/woob/browser/adapters.py)

2023-03-20T18:07:41.048276461Z,stdout,"    raise ModuleLoadError(module_name, e) from e
"
2023-03-20T18:07:41.048250656Z,stdout,"  File \"/woob/woob/core/modules.py\", line 181, in load_module
"
2023-03-20T18:07:41.048221692Z,stdout,    self.load_module(module_name)

2023-03-20T18:07:41.048195274Z,stdout,"  File \"/woob/woob/core/modules.py\", line 141, in get_or_load_module
"
2023-03-20T18:07:41.048170386Z,stdout,    module = self.modules_loader.get_or_load_module(module_name)

2023-03-20T18:07:41.048142215Z,stdout,"  File \"/woob/woob/core/woob.py\", line 139, in build_backend
"
2023-03-20T18:07:41.048114055Z,stdout,"    return super().build_backend(module_name, params, storage, name, nofail)
"
2023-03-20T18:07:41.048086291Z,stdout,"  File \"/woob/woob/core/woob.py\", line 514, in build_backend
"
2023-03-20T18:07:41.048062676Z,stdout,    storage=self.storage

2023-03-20T18:07:41.048028468Z,stdout,"  File \"/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py\", line 530, in create_backend
"
2023-03-20T18:07:41.048003739Z,stdout,"    woob_connector.create_backend(bank_module, params, session)
"
2023-03-20T18:07:41.047969670Z,stdout,"  File \"/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py\", line 949, in main
"
2023-03-20T18:07:41.047945441Z,stdout,Traceback (most recent call last):

2023-03-20T18:07:41.047923837Z,stdout,

2023-03-20T18:07:41.047895329Z,stdout,The above exception was the direct cause of the following exception:

2023-03-20T18:07:41.047872857Z,stdout,

2023-03-20T18:07:41.047836701Z,stdout,ImportError: cannot import name 'LowSecHTTPAdapter' from 'woob.browser.adapters' (/woob/woob/browser/adapters.py)

2023-03-20T18:07:41.047811321Z,stdout,    from woob.browser.adapters import LowSecHTTPAdapter

2023-03-20T18:07:41.047782209Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/browser.py\", line 32, in <module>
"
2023-03-20T18:07:41.047756110Z,stdout,"    from .browser import BPBrowser, BProBrowser
"
2023-03-20T18:07:41.047724951Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/module.py\", line 37, in <module>
"
2023-03-20T18:07:41.047700456Z,stdout,    from .module import BPModule

2023-03-20T18:07:41.047668786Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/__init__.py\", line 20, in <module>
"
2023-03-20T18:07:41.047640810Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
"
2023-03-20T18:07:41.047613274Z,stdout,"  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module
"
2023-03-20T18:07:41.047586848Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked
"
2023-03-20T18:07:41.047559859Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked
"
2023-03-20T18:07:41.047532796Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load
"
2023-03-20T18:07:41.047502965Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import
"
2023-03-20T18:07:41.047467445Z,stdout,"    return _bootstrap._gcd_import(name[level:], package, level)
"
2023-03-20T18:07:41.047438197Z,stdout,"  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module
"
2023-03-20T18:07:41.047409919Z,stdout,    pymodule = importlib.import_module(f'woob_modules.{module_name}')

2023-03-20T18:07:41.047376266Z,stdout,"  File \"/woob/woob/core/modules.py\", line 176, in load_module
"
2023-03-20T18:07:41.047343338Z,stdout,Traceback (most recent call last):

2023-03-20T18:07:41.047195560Z,stdout,[2023-03-20T18:07:41.046] [ERROR] helpers - when fetching operations: Unable to load module bp.

2023-03-20T18:07:40.980930342Z,stdout,[2023-03-20T18:07:40.979] [ERROR] providers/woob - 	(error code: UNKNOWN_WOOB_MODULE)

2023-03-20T18:07:40.980824536Z,stdout,

2023-03-20T18:07:40.980789687Z,stdout,woob.exceptions.ModuleLoadError: cannot import name 'LowSecHTTPAdapter' from 'woob.browser.adapters' (/woob/woob/browser/adapters.py)

2023-03-20T18:07:40.980751280Z,stdout,"    raise ModuleLoadError(module_name, e) from e
"
2023-03-20T18:07:40.980724550Z,stdout,"  File \"/woob/woob/core/modules.py\", line 181, in load_module
"
2023-03-20T18:07:40.980698903Z,stdout,    self.load_module(module_name)

2023-03-20T18:07:40.980660599Z,stdout,"  File \"/woob/woob/core/modules.py\", line 141, in get_or_load_module
"
2023-03-20T18:07:40.980632968Z,stdout,    module = self.modules_loader.get_or_load_module(module_name)

2023-03-20T18:07:40.980594411Z,stdout,"  File \"/woob/woob/core/woob.py\", line 139, in build_backend
"
2023-03-20T18:07:40.980564226Z,stdout,"    return super().build_backend(module_name, params, storage, name, nofail)
"
2023-03-20T18:07:40.980524960Z,stdout,"  File \"/woob/woob/core/woob.py\", line 514, in build_backend
"
2023-03-20T18:07:40.980496519Z,stdout,    storage=self.storage

2023-03-20T18:07:40.980450477Z,stdout,"  File \"/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py\", line 530, in create_backend
"
2023-03-20T18:07:40.980415117Z,stdout,"    woob_connector.create_backend(bank_module, params, session)
"
2023-03-20T18:07:40.980366085Z,stdout,"  File \"/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/py/main.py\", line 949, in main
"
2023-03-20T18:07:40.980340178Z,stdout,Traceback (most recent call last):

2023-03-20T18:07:40.980305078Z,stdout,

2023-03-20T18:07:40.980272727Z,stdout,The above exception was the direct cause of the following exception:

2023-03-20T18:07:40.980235761Z,stdout,

2023-03-20T18:07:40.980205951Z,stdout,ImportError: cannot import name 'LowSecHTTPAdapter' from 'woob.browser.adapters' (/woob/woob/browser/adapters.py)

2023-03-20T18:07:40.980177282Z,stdout,    from woob.browser.adapters import LowSecHTTPAdapter

2023-03-20T18:07:40.980135276Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/browser.py\", line 32, in <module>
"
2023-03-20T18:07:40.980106688Z,stdout,"    from .browser import BPBrowser, BProBrowser
"
2023-03-20T18:07:40.980064128Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/module.py\", line 37, in <module>
"
2023-03-20T18:07:40.980036263Z,stdout,    from .module import BPModule

2023-03-20T18:07:40.979989749Z,stdout,"  File \"/home/user/data/woob-data/modules/3.3.1/woob_modules/bp/__init__.py\", line 20, in <module>
"
2023-03-20T18:07:40.979957022Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed
"
2023-03-20T18:07:40.979916203Z,stdout,"  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module
"
2023-03-20T18:07:40.979885735Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked
"
2023-03-20T18:07:40.979832837Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked
"
2023-03-20T18:07:40.979791827Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load
"
2023-03-20T18:07:40.979760543Z,stdout,"  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import
"
2023-03-20T18:07:40.979718606Z,stdout,"    return _bootstrap._gcd_import(name[level:], package, level)
"
2023-03-20T18:07:40.979686568Z,stdout,"  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module
"
2023-03-20T18:07:40.979641112Z,stdout,    pymodule = importlib.import_module(f'woob_modules.{module_name}')

2023-03-20T18:07:40.979606506Z,stdout,"  File \"/woob/woob/core/modules.py\", line 176, in load_module
"
2023-03-20T18:07:40.979559873Z,stdout,Traceback (most recent call last):

2023-03-20T18:07:40.979451446Z,stdout,[2023-03-20T18:07:40.979] [ERROR] providers/woob - Got error while running command "operations": Unable to load module bp.

2023-03-20T18:07:40.979265105Z,stdout,[2023-03-20T18:07:40.979] [INFO] providers/woob - OK: woob exited normally with non-empty JSON content.

2023-03-20T18:07:40.978916879Z,stdout,[2023-03-20T18:07:40.978] [INFO] providers/woob - exited with code 0.

2023-03-20T18:07:40.537617580Z,stdout,[2023-03-20T18:07:40.537] [INFO] providers/woob - Calling woob: command test...

2023-03-20T18:07:40.537452385Z,stdout,[2023-03-20T18:07:40.537] [INFO] providers/woob - Checking that woob is installed and can actually be called…

2023-03-20T18:07:40.537120987Z,stdout,[2023-03-20T18:07:40.536] [INFO] providers/woob - Command returned an error code.

2023-03-20T18:07:40.536652151Z,stdout,[2023-03-20T18:07:40.536] [INFO] providers/woob - exited with code 1.

2023-03-20T18:07:39.633830636Z,stdout,[2023-03-20T18:07:39.632] [INFO] providers/woob - Calling woob: command operations...


Suite,

J’ai tenté la MAJ du module par le bouton de l’IHM de Kresus.
Mais maintenant, woob n’est plus reconnu par Kresus.
Le Docker plante. Je vois les messages ci-dessous dans les logs.

    at new KError (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/helpers.js:59:22)
stdout
21:20:20
    at callWoob (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:188:15)
stdout
21:20:20
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
stdout
21:20:20
    at async _fetchHelper (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:245:16)
stdout
21:20:20
    at async Object.fetchOperations (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/providers/woob/index.js:270:12)
stdout
21:20:20
    at async pollTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:215:34)
stdout
21:20:20
    at async AccountManager.syncTransactions (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/lib/accounts-manager.js:338:24)
stdout
21:20:20
    at async fetchOperations (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/accesses.js:205:37)
stdout
21:20:20

[2023-03-20T20:20:20.747] [ERROR] HTTP - POST /api/accesses/13/fetch/operations - 500 (1041 ms)
stdout
21:22:01
stdout
21:22:03

Bonjour, ton premier message mentionne YUNOHOST et le second Docker. Quelle installation utilises-tu ?

Pour yunohost la solution d’upgrade évoquée semble correcte.

Bonjour,
Belle démonstration de ma méconnaissance du sujet :-(.
J’utilise une installation docker à partir de l’image pré-construite.

Et tu as mis à jour l’image docker récemment ?

Non je n’avais rien fait depuis plusieurs mois.
Je travaille en aval, pour rendre kresus accessible de l’extérieur de mon réseau, en me documentant pour le moment.

Il faut commencer par mettre à jour l’image docker donc, une correction a été faite pour suivre l’évolution de woob.

OK,
Il s’agit bien de :

  1. sauvegarder la configuration du conteneur de mon kresus ;
  2. supprimer le conteneur ;
  3. télécharger une image à jour ;
  4. l’installer ;
  5. importer la configuration sauvegardée au point 1.

Oui, même si la configuration devrait être déjà sauvegardée en base de données donc normalement pas besoin de la réimporter.

Vaut mieux une sauvegarde dans tous les cas.

Bonjour,
Je ne sais pas s’il y a un lien avec la mise à jour de kresus sur le docker de mon synology. Mais après réinstallation et démarrage. j’obtiens le message suivant.
Je ne l’ai pas vu lors de la précédente installation.

Error when starting the app:
No repository for « Access » was found. Looks like this entity is not registered in current « default » connection?
Check the console.

Dans le log de kresus, je trouve ça :

at RepositoryNotFoundError.TypeORMError [as constructor] (/usr/local/share/.config/yarn/global/node_modules/typeorm/error/TypeORMError.js:9:28)
at new RepositoryNotFoundError (/usr/local/share/.config/yarn/global/node_modules/typeorm/error/RepositoryNotFoundError.js:13:28)
at EntityManager.getRepository (/usr/local/share/.config/yarn/global/node_modules/typeorm/entity-manager/EntityManager.js:655:19)
at Connection.getRepository (/usr/local/share/.config/yarn/global/node_modules/typeorm/connection/Connection.js:366:29)
at getRepository (/usr/local/share/.config/yarn/global/node_modules/typeorm/globals.js:144:55)
at Access.repo (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/models/entities/accesses.js:33:57)
at Access.all (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/models/entities/accesses.js:83:31)
at getAllData (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/all.js:46:44)
at all (/usr/local/share/.config/yarn/global/node_modules/kresus/build/server/controllers/all.js:101:27)
[2023-04-01T19:36:47.909] [ERROR] HTTP - GET /api/all/ - 500 (6 ms)

Salut !

C’est très probablement un souci de connexion à ta base de données, vérifie qu’elle réponde bien et que les paramètres de connexion sont corrects

Huum … je n’avais pas mis l’Ip de la BDD dans le config.ini