Git Product home page Git Product logo

kresus_ynh's Introduction

Kresus for YunoHost

Integration level Working status Maintenance status

Install Kresus with YunoHost

Read this README in other languages.

This package allows you to install Kresus quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Kresus is an open-source libre self-hosted personal finance manager. It allows you to safely track your banking history, check your overall balance and know exactly how you are spending money using categories!

Shipped version: 0.21.2~ynh1

Demo: https://kresus.org/en/demo.html

Screenshots

Screenshot of Kresus

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/kresus_ynh/tree/testing --debug
or
sudo yunohost app upgrade kresus -u https://github.com/YunoHost-Apps/kresus_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

kresus_ynh's People

Contributors

alexaubin avatar archangegabriel avatar bnjbvr avatar ericgaspar avatar felag avatar jershon avatar jibec avatar lapineige avatar lowmem avatar nicofrand avatar oniricorpe avatar orhtej2 avatar scith avatar tagadda avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kresus_ynh's Issues

Limit access to a specific user

Instead of relying on the admin setting the users permissions after the installation, we should ask for which user the app will be available. and use ynh_permission_create --permission "permission_name" --url /admin --allowed "username" (where username comes from https://github.com/YunoHost/example_ynh/blob/master/manifest.json#L47-L54) in the install script.

This will still require 1 database and daemon per installation.

Or wait for Kresus' multi-users management.

Can not sync after Buster upgrade

Hello,

After upgrading server to Buster I can not sync data from bank.

The root problem looks to be SSL: DH_KEY_TOO_SMALL
Here is the shorten log (without long maybe sensitive links) :

[2020-08-20T22:48:21.220] [INFO] HTTP - GET /kresus/api/all/ - 200 (123 ms)
[2020-08-20T22:48:28.522] [INFO] providers/weboob - Calling weboob: command operations...
[2020-08-20T22:48:30.588] [INFO] providers/weboob - exited with code 0.
[2020-08-20T22:48:30.589] [WARN] providers/weboob - stderr: 2020-08-20 22:48:30,357:WARNING:urllib3.connectionpool:connectionpool.py:752:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1056)'))': /api/oauth/v2/authorizelongurl
2020-08-20 22:48:30,442:WARNING:urllib3.connectionpool:connectionpool.py:752:urlopen Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1056)'))': /api/oauth/v2/authorize?longurl
[2020-08-20T22:48:30.590] [INFO] providers/weboob - Command returned an error code.
[2020-08-20T22:48:30.591] [ERROR] providers/weboob - Got error while running command "operations": HTTPSConnectionPool(host='mybankhost', port=443): Max retries exceeded with url: /api/oauth/v2/authorizelongurl (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1056)')))
[2020-08-20T22:48:30.591] [ERROR] providers/weboob - (error code: CONNECTION_ERROR)
[2020-08-20T22:48:30.639] [ERROR] helpers - when fetching operations: HTTPSConnectionPool(host='mybankhost', port=443): Max retries exceeded with url: /api/oauth/v2/**longurl (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1056)')))
[2020-08-20T22:48:30.640] [INFO] helpers - Error
at new KError (/var/www/kresus/build/server/helpers.js:59:22)
at callWeboob (/var/www/kresus/build/server/providers/weboob/index.js:213:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async _fetchHelper (/var/www/kresus/build/server/providers/weboob/index.js:258:16)
at async Object.fetchOperations (/var/www/kresus/build/server/providers/weboob/index.js:281:12)
at async AccountManager.retrieveOperationsByAccess (/var/www/kresus/build/server/lib/accounts-manager.js:218:25)
at async fetchOperations (/var/www/kresus/build/server/controllers/accesses.js:117:43)
[2020-08-20T22:48:30.644] [ERROR] HTTP - GET /kresus/api/accesses/1/fetch/operations - 500 (2148 ms)
[2020-08-20T22:48:37.202] [INFO] providers/weboob - Calling weboob: command version...
[2020-08-20T22:48:37.598] [INFO] providers/weboob - exited with code 0.
[2020-08-20T22:48:37.599] [INFO] providers/weboob - OK: weboob exited normally with non-empty JSON content.
[2020-08-20T22:48:37.604] [INFO] HTTP - GET /kresus/api/settings/weboob - 200 (401 ms)

I just did the upgrade a hour ago so I forced the sync. I will see with the automated update this night.

So I am on :

  • a VPS
  • yunohost server v.4.0.4
  • kresus 0.16.0

Thanks

NPM deprecated during 0.15 installation (but update works)

For information, I got this message (a lot) during the installation of the 0.15 update:
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Can we do someting about that?
thanks :)

Installation fails on raspberry pi

The install script on a rasperry-pi 3 gives a very high load average (about 25), although not so much CPU usage, and the machine eventually freezes.

I know that this is a low-spec device, and maybe there is nothing you can do to lighten the installation script (this is probably npm's fault), but I definitely think this is the kind of devices yunohost is made for so I'd very much like to see kresus working on it.

FYI, the log only shows this warning before freezing:
npm WARN engine [email protected]: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
Node's version is apparently not fresh enough, but if this is really an issue the install script should stop properly with this as an error.

Failed to upgrade to 0.15.2

Hello,

Upgrade failed on my server

Log here: https://paste.yunohost.org/pudenonilu.sql (Errors starts around lines 1550)

YunoHost version

"host": "Debian 9.11",
"kernel": "3.14.32-xxxx-grs-ipv6-64",
"packages": {
    "yunohost": {
        "repo": "testing",
        "version": "3.7.0.4"
    },
    "yunohost-admin": {
        "repo": "testing",
        "version": "3.7.0.1"
    },
    "moulinette": {
        "repo": "testing",
        "version": "3.7.0"
    },
    "ssowat": {
        "repo": "testing",
        "version": "3.7.0.1"
    }
},

Upgrade broke the app

Hi @Jibec and thanks for your work so far :)

I have encoutered a bug while upgrading on my VPS : the website display a pop-up alert that says assertion error, all settings must have their default value, missing for : undefined. (and the line number of the error).

Do you know what could be done to fix it ? I did not find the detailed journal of Kresus on my server, maybe there are more details there...

Thanks in advance to anyone that might help !

Error 502 : Bad gateway from Cloudflare

Hello,

I've got an issue : after installing Kresus, Cloudflare sends me a 502 error (Error 502 : Bad gateway) and the Yunohost interface seems to crash (the API does not respond for a few seconds).

Do you have any idea what this can come from? (Cloudflare ?)

Connexion ING Impossible

Bonjour,
Depuis le changement du site ING, Kresus ne synchronisait plus les comptes.
J'ai:

sauvegardé mes data Kresus
désinstallé Kresus de Yunohost
réinstallé Kresus (passage weboob 1.5)

mais depuis, impossible de reconnecter Kresus à ING, voici le log:
[2019-04-01T17:19:19.672] [ERROR] sources/weboob - (error code: GENERIC_EXCEPTION) [2019-04-01T17:19:19.673] [ERROR] controllers/accesses - The access process creation failed, cleaning up...
[2019-04-01T17:19:19.673] [INFO] controllers/accesses - deleting access... [2019-04-01T17:19:19.676] [ERROR] helpers - when creating a bank access: Unknown error: init() got an unexpected keyword argument 'browser'. Traceback (most recent call last): File "/var/www/kresus/build/server/weboob/main.py", line 610, in fetch results['values'] = self.get_accounts() File "/var/www/kresus/build/server/weboob/main.py", line 488, in get_accounts for account in list(self.backend.iter_accounts()): File "/var/www/kresus/data/weboob-data/modules/1.5/ing/module.py", line 74, in iter_accounts return self.browser.iter_matching_accounts() File "/var/www/kresus/data/weboob-data/modules/1.5/ing/api_browser.py", line 52, in inner self.do_login() File "/var/www/kresus/data/weboob-data/modules/1.5/ing/api_browser.py", line 153, in do_login 'clickPositions': self.page.get_password_coord(img, self.password) File "/var/www/kresus/data/weboob-data/modules/1.5/ing/api/login.py", line 104, in get_password_coord vk = INGVirtKeyboard(image, 5, 2, browser=self.browser) TypeError: init() got an unexpected keyword argument 'browser'

Quand j'essaye d'importer ma sauvegarde j'ai :
[2019-04-01T17:06:50.710] [ERROR] HTTP - POST /kresus/api/v1/all/ - 400 (56 ms) [2019-04-01T17:06:56.360] [INFO] HTTP - GET /kresus/api/v1/logs - 200 (10 ms) [2019-04-01T17:10:56.977] [ERROR] helpers - when importing data: missing parameter "data" in the file [2019-04-01T17:10:56.977] [INFO] helpers - Error at new KError (/var/www/kresus/build/server/helpers.js:76:16) at /var/www/kresus/build/server/controllers/v1/all.js:195:15 at Generator.next () at asyncGeneratorStep (/var/www/kresus/build/server/controllers/v1/all.js:42:103) at next (/var/www/kresus/build/server/controllers/v1/all.js:44:194) at /var/www/kresus/build/server/controllers/v1/all.js:44:364 at new Promise () at /var/www/kresus/build/server/controllers/v1/all.js:44:97 at import (/var/www/kresus/build/server/controllers/v1/all.js:186:19) at Layer.handle [as handle_request] (/var/www/kresus/node_modules/express/lib/router/layer.js:95:5)
Merci d'avance.
Cdt.
Alain

error since last maj 0.16.0~ynh4

    • Version 0.16.0~ynh4

during refresh :

[2020-05-30T18:52:37.854] [ERROR] providers/weboob - 	(error code: GENERIC_EXCEPTION)
[2020-05-30T18:52:37.873] [ERROR] helpers - when fetching operations: Unknown error: Symbol '1' not found; all symbol hashes are available in /tmp/weboob_session_ybkcb22g.
Traceback (most recent call last):
  File "/var/www/kresus/build/server/providers/weboob/py/main.py", line 687, in fetch
    results['values'] = self.get_operations(from_date)
  File "/var/www/kresus/build/server/providers/weboob/py/main.py", line 570, in get_operations
    for account in list(self.backend.iter_accounts()):
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/module.py", line 73, in iter_accounts
    for account in self.browser.get_accounts_list():
  File "/var/www/kresus/venv/lib/python3.5/site-packages/weboob/browser/switch.py", line 91, in wrapper
    return val(*args, **kwargs)
  File "/var/www/kresus/venv/lib/python3.5/site-packages/weboob/browser/browsers.py", line 821, in inner
    browser.do_login()
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/browser.py", line 409, in do_login
    self.do_new_login(data)
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/browser.py", line 710, in do_new_login
    feature='login'
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/browser.py", line 638, in do_authentication_validation
    AUTHENTICATION_METHODS[authentication_method](**params)
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/browser.py", line 603, in do_vk_authentication
    vk = CaissedepargneNewKeyboard(self, images_url)
  File "/var/www/kresus/data/weboob-data/modules/2.0/caissedepargne/pages.py", line 243, in __init__
    super(CaissedepargneNewKeyboard, self).__init__(code_to_filedata)
  File "/var/www/kresus/venv/lib/python3.5/site-packages/weboob/tools/captcha/virtkeyboard.py", line 284, in __init__
    raise VirtKeyboardError("Symbol '%s' not found; all symbol hashes are available in %s" % (char, path))
weboob.tools.captcha.virtkeyboard.VirtKeyboardError: Symbol '1' not found; all symbol hashes are available in /tmp/weboob_session_ybkcb22g

LDAP

Hello,

Does LDAP work?
If yes, could you add this information inside Readme?

Thanks,
Thatoo

Installing on ARM (stretch) doesn't work

Hello there!

I just tried to install Kresus on my yunohost via the web admin interface and it didn't work. I have a LIME2 ARM board, with Stretch and the latest versions of the ynh tools. Here are the logs from yunohost-api.log:

2018-08-11 22:51:16,663 INFO moulinette.actionsmap process - processing action [658.28]: yunohost.app.install
2018-08-11 22:52:24,584 WARNING yunohost.hook - [658.28] debconf: unable to initialize frontend: Dialog
2018-08-11 22:52:24,600 WARNING yunohost.hook - [658.28] debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2018-08-11 22:52:24,604 WARNING yunohost.hook - [658.28] debconf: falling back to frontend: Readline
2018-08-11 22:52:24,666 WARNING yunohost.hook - [658.28] debconf: unable to initialize frontend: Readline
2018-08-11 22:52:24,670 WARNING yunohost.hook - [658.28] debconf: (This frontend requires a controlling tty.)
2018-08-11 22:52:24,675 WARNING yunohost.hook - [658.28] debconf: falling back to frontend: Teletype
2018-08-11 22:52:24,705 WARNING yunohost.hook - [658.28] dpkg-preconfigure: unable to re-open stdin:
2018-08-11 22:53:21,775 WARNING yunohost.hook - [658.28] 2018-08-11 22:53:21 URL:https://framagit.org/kresusapp/kresus/-/archive/0.13.2/kresus-0.13.2.tar.bz2 [2827724] -> "app.tar.bz2" [1]
2018-08-11 22:53:51,886 WARNING yunohost.hook - [658.28] Installation of N - Node.js version management
2018-08-11 22:53:53,235 WARNING yunohost.hook - [658.28] 2018-08-11 22:53:53 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592/9592] -> "n.tar.gz" [1]
2018-08-11 22:54:01,760 WARNING yunohost.hook - [658.28] ^M 0.2%^M 1.3%^M# 2.6%^M###### 8.9%^M########## 14.8%^M############## 20.8%^M################### 27.0%^M####################### 32.9%^M############################ 39.0%^M################################ 45.1%^M#################################### 51.4%^M###################################### 54.0%^M########################################### 60.5%^M################################################## 69.7%^M###################################################### 76.2%^M########################################################### 82.7%^M################################################################ 89.1%^M#################################################################### 95.7%^M######################################################################## 100.0%
2018-08-11 22:54:42,785 WARNING yunohost.hook - [658.28] ./install: line 105: virtualenv: command not found
2018-08-11 22:54:42,789 WARNING yunohost.hook - [658.28] !!
2018-08-11 22:54:42,815 WARNING yunohost.hook - [658.28] kresus's script has encountered an error. Its execution was cancelled.
2018-08-11 22:54:42,820 WARNING yunohost.hook - [658.28] !!
2018-08-11 22:54:42,833 WARNING yunohost.hook - [658.28]
2018-08-11 22:55:31,892 WARNING yunohost.hook - [658.28] /usr/local/n wasn't deleted because it doesn't exist.
2018-08-11 22:55:32,956 WARNING yunohost.hook - [658.28] Remove the user kresus
2018-08-11 22:55:36,738 SUCCESS yunohost.app success - [658.28] La configuration de SSOwat a été générée

I'm happy to be a guinea pig for further debug, please tell me where to look!

Install weboob

Latest version of weboob (debian package python-weboob 1.2-1) is needed for Kresus to work.

This package is not in Debian Jessie (8.x) and YuNoHost is not yet ready for Debian Stretch (9.x), but as per this comment, weboob can be installed with pip.

Maybe a sudo pip install weboob in install script, with its correspondance in removal script, is enough ?

Maybe should it be better to create a dedicated system user and have weboob installed with pip only in this user's environment, for maintenance over time purposes ?

Any help is welcome.

Can't install

Hi,

I tried installing the app but it was not successful.

Here is the log of my try :

2019-03-01 10:45:52,475: WARNING - debconf: unable to initialize frontend: Dialog
2019-03-01 10:45:52,477: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2019-03-01 10:45:52,477: WARNING - debconf: falling back to frontend: Readline
2019-03-01 10:45:52,477: WARNING - debconf: unable to initialize frontend: Readline
2019-03-01 10:45:52,478: WARNING - debconf: (This frontend requires a controlling tty.)
2019-03-01 10:45:52,478: WARNING - debconf: falling back to frontend: Teletype
2019-03-01 10:45:52,478: WARNING - dpkg-preconfigure: unable to re-open stdin:
2019-03-01 10:46:01,910: WARNING - Installation of N - Node.js version management
2019-03-01 10:46:05,622: WARNING -
0.1%
0.3%

1.4%

5.2%

####### 10.7%
############## 20.3%
##################### 30.5%
################################# 46.9%
########################################### 60.8%
#################################################### 72.4%
############################################################# 85.8%
###################################################################### 98.5%
######################################################################## 100.0%
2019-03-01 10:46:06,626: WARNING - ./install: line 105: virtualenv: command not found
2019-03-01 10:46:06,626: WARNING - !!
2019-03-01 10:46:06,627: WARNING - kresus's script has encountered an error. Its execution was cancelled.
2019-03-01 10:46:06,627: WARNING - !!
2019-03-01 10:46:06,627: WARNING -

App restore not working : Kresus service fails to start

I'm trying to restore a kresus backup (made on a raspberry) on another server (vps). (yunohost 3.6.5.3)

The "yunohost backup restore" tells me everything is ok and has been restored.

But I'm unable to enter the Kresus app, because the kresus service fails to start.

Here is the log :

systemd[1]: Started kresus.
kresus[2697]: [2019-12-04T.426] [INFO] apply-config - Running Kresus with the following parameters:
kresus[2697]: [2019-12-04T.434] [INFO] apply-config - NODE_ENV = production
kresus[2697]: [2019-12-04T.435] [INFO] apply-config - KRESUS_LOGIN = user
kresus[2697]: [2019-12-04T.435] [INFO] apply-config - KRESUS_DIR = /var/www/kresus/data/
kresus[2697]: [2019-12-04T.436] [INFO] apply-config - PORT = 9876
kresus[2697]: [2019-12-04T.436] [INFO] apply-config - HOST = 127.0.0.1
kresus[2697]: [2019-12-04T.436] [INFO] apply-config - KRESUS_PYTHON_EXEC = /var/www/kresus/venv/bin/python
kresus[2697]: [2019-12-04T.437] [INFO] apply-config - KRESUS_URL_PREFIX = /banksim
kresus[2697]: [2019-12-04T.437] [INFO] apply-config - KRESUS_SALT = (hidden)
kresus[2697]: [2019-12-04T.438] [INFO] apply-config - KRESUS_WEBOOB_DIR = null
kresus[2697]: [2019-12-04T.438] [INFO] apply-config - KRESUS_WEBOOB_SOURCES_LIST = null
kresus[2697]: [2019-12-04T.438] [INFO] apply-config - KRESUS_EMAIL_TRANSPORT = null
kresus[2697]: [2019-12-04T.439] [INFO] apply-config - KRESUS_EMAIL_SENDMAIL_BIN = null
kresus[2697]: [2019-12-04T.439] [INFO] apply-config - KRESUS_EMAIL_FROM = null
kresus[2697]: [2019-12-04T.440] [INFO] apply-config - KRESUS_EMAIL_HOST = null
kresus[2697]: [2019-12-04T.440] [INFO] apply-config - KRESUS_EMAIL_PORT = null
kresus[2697]: [2019-12-04T.440] [INFO] apply-config - KRESUS_EMAIL_USER = null
kresus[2697]: [2019-12-04T.441] [INFO] apply-config - KRESUS_EMAIL_PASSWORD = null
kresus[2697]: [2019-12-04T.441] [INFO] apply-config - KRESUS_EMAIL_FORCE_TLS = false
kresus[2697]: [2019-12-04T.442] [INFO] apply-config - KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS = true
kresus[2697]: [2019-12-04T.442] [INFO] apply-config - KRESUS_LOG_FILE = /var/www/kresus/data/kresus.log
kresus[2697]: /var/www/kresus/node_modules/bindings/bindings.js:91
kresus[2697]: throw e
kresus[2697]: ^
kresus[2697]: Error: /var/www/kresus/node_modules/leveldown/build/Release/leveldown.node: wrong ELF class: ELFCLASS32
kresus[2697]: at Object.Module._extensions..node (module.js:682:18)
kresus[2697]: at Module.load (module.js:566:32)
kresus[2697]: at tryModuleLoad (module.js:506:12)
kresus[2697]: at Function.Module._load (module.js:498:3)
kresus[2697]: at Module.require (module.js:597:17)
kresus[2697]: at require (internal/module.js:11:18)
systemd[1]: kresus.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: kresus.service: Unit entered failed state.
systemd[1]: kresus.service: Failed with result 'exit-code'.
systemd[1]: kresus.service: Service hold-off time over, scheduling restart.
systemd[1]: Stopped kresus.
systemd[1]: kresus.service: Start request repeated too quickly.
systemd[1]: Failed to start kresus.
systemd[1]: kresus.service: Unit entered failed state.
systemd[1]: kresus.service: Failed with result 'exit-code'.

Any help would be welcome :)

Impossible to remove an access

In page Preferences, Bank Accounts, when trying to remove an access, I had following error in javascript console of browser:

15:09:16,289 Failure when deleting account: Object { code: undefined, message: "?", shortMessage: undefined, xhrText: "<html> <head><title>504 Gateway Tim…", xhrError: "Gateway Time-out" } 1 main.js:12102:17

send_readme_to_admin : wrong choice

Bonjour,
Après l'upgrade de kresus 0.16.0.ynh2.xxx en 0.16.0.ynh2.xxx (je ne me souviens pas de la valeur apres le ynh2 qui a changée), les logs affiche le message suivant :

image

Il s'agit du fichier _common.sh ligne 52.

Est ce qu'il faudrait corriger
$(yunohost diagnosis show | grep -B 100 "services:" | sed '/services:/d')"
en
$(yunohost tools diagnosis show | grep -B 100 "services:" | sed '/services:/d')"

De plus, le retour de cette commande ne semble pas utilisé.

CIC bank: Can't enter sms code

Hi!
I'm using Kresus 0.15.2 with a CIC bank account and weboob 1.5.
Since a few months, a code is requested to access the account. Kresus seems to manage this, but inside Yunohost there is no way to enter it. So the sync failed.
Did I forget something ?

2019-12-18 10:01:26,063:WARNING:weboob.cic.browser.mobileconfirmationpage:pages.py:116:on_load This connexion cannot bypass mobile confirmation

[2019-12-18T10:01:26.181] [INFO] sources/weboob - Command returned an error code.
[2019-12-18T10:01:26.185] [INFO] sources/weboob - Checking that weboob is installed and can actually be called…
[2019-12-18T10:01:26.185] [INFO] sources/weboob - Calling weboob: command test...
[2019-12-18T10:01:26.631] [INFO] sources/weboob - exited with code 0.
[2019-12-18T10:01:26.632] [INFO] sources/weboob - OK: weboob exited normally with non-empty JSON content.
[2019-12-18T10:01:26.633] [ERROR] sources/weboob - Got error while running command "operations": Unknown error: Mobile authentication method not handled```

Weboob error following upgrade Yunohost to v4/Buster

I applied the migration to Buster, and it worked. But now I have an error using Kresus webpage:
"Veuillez installer Weboob en version 2.0 ou supérieure"

And by command line:
sudo /var/www/kresus/venv/bin/weboob-config update
the result is:
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Current thread 0x00007fadf71f9740 (most recent call first):
Abandon

Do you know the reason and how to solve it? Thanks!

For ARM, Weboob requires some extra dependencies

Some python modules required by weboob are not distributed for ARM architectures. They need to be compiled and need some extra dev dependancies:
libxslt-dev libjpeg-dev libxml2-dev
I tested on raspberry pi 2

As this does not affect the othre 'normal' architectures, a test on the arch using the result of the command arch could be interesting.

Outdated weboob version

After upgrading to version 0.15.2., my bank accounts do not synchronise anymore.
Depending on the bank, the logs show different errors, like:
weboob.exceptions.ModuleLoadError: cannot import name 'IsinCode'
ImportError: cannot import name 'TransferInvalidOTP'

To me, it looks like weboob is outdated. The installed version is 1.6, although the latest release is 2.0 (indeed available with pip).
However, the update interface indicates that weboob is up to date.

Impossible to import an export

After an export has been made, when trying to import such file, following error appeared in browser's javascript console:

Request Entity Too Large

Add support for multiple users

Some work is needed on the Kresus side (handle multiple users), but there's going to be some bits needed for the integration in YNH too.

Please install Weboob 2.0 or later

Hello,
I updated my kresus app this night and when trying to access it this morning I get this message:

Please install Weboob 2.0 or later
In order to work as expected, Kresus has a single dependency called Weboob. Kresus could not detect a working install of Weboob (Weboob or one of its dependencies is not installed correctly). To offer you the best experience, the latest stable version of Weboob has to be installed (2.0 or later, at this point). Please contact your Kresus administrator so that they'll install Weboob as described in the README file: README 

I updated the weboob version:

source "/var/www/kresus/venv/bin/activate"
pip install --upgrade weboob

I restarted the kresus service

But still does not work.
Do you know what I am missing?

EDIT: I checked the logs in /var/www/kresus/data/kresus.log and saw this

ImportError: No module named 'dateutil'

So I installed the dateutil module:

source "/var/www/kresus/venv/bin/activate"
pip install python-dateutil

And all started working again. So I guess there is an issue with the package not installing the python-dateutil requirement.

Fail to install on kimsufi server

Hi,

I cannot achieve installation on my kimsufi server. I get the following log.

Thanks a lot!

2020-02-20 13:44:17,107: INFO - Installing application kresus…
2020-02-20 13:44:17,185: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts YNH_STDINFO=/tmp/tmpLvolba/stdinfo YNH_APP_INSTANCE_NAME=kresus YNH_INTERFACE=api YNH_APP_ID=kresus YNH_APP_ARG_PATH=/ YNH_STDRETURN=/tmp/tmpodHJmW/stdreturn YNH_APP_ARG_DOMAIN=s.10qt.net BASH_XTRACEFD=7 /bin/bash -x "./install" s.10qt.net / kresus 7>&1'…
2020-02-20 13:44:17,185: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts YNH_STDINFO=/tmp/tmpLvolba/stdinfo YNH_APP_INSTANCE_NAME=kresus YNH_INTERFACE=api YNH_APP_ID=kresus YNH_APP_ARG_PATH=/ YNH_STDRETURN=/tmp/tmpodHJmW/stdreturn YNH_APP_ARG_DOMAIN=s.10qt.net BASH_XTRACEFD=7 /bin/bash -x "./install" s.10qt.net / kresus 7>&1']'
2020-02-20 13:44:17,295: DEBUG - + source _common.sh
2020-02-20 13:44:17,295: DEBUG - ++ pkg_dependencies='dh-autoreconf	python3-pip python3-dev python3-lxml python3-pillow virtualenv'
2020-02-20 13:44:17,296: DEBUG - + source /usr/share/yunohost/helpers
2020-02-20 13:44:17,296: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-02-20 13:44:17,296: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,296: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-02-20 13:44:17,296: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-02-20 13:44:17,297: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,297: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-02-20 13:44:17,297: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-02-20 13:44:17,297: DEBUG - +++ CAN_BIND=1
2020-02-20 13:44:17,297: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,297: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-02-20 13:44:17,297: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-02-20 13:44:17,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,298: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-02-20 13:44:17,298: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-02-20 13:44:17,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,298: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-02-20 13:44:17,298: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-02-20 13:44:17,299: DEBUG - +++ increment_progression=0
2020-02-20 13:44:17,299: DEBUG - +++ previous_weight=0
2020-02-20 13:44:17,299: DEBUG - +++ max_progression=-1
2020-02-20 13:44:17,299: DEBUG - +++ progress_scale=20
2020-02-20 13:44:17,299: DEBUG - +++ progress_string2='####################'
2020-02-20 13:44:17,299: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-02-20 13:44:17,300: DEBUG - +++ progress_string0=....................
2020-02-20 13:44:17,300: DEBUG - ++++ date +%s
2020-02-20 13:44:17,300: DEBUG - +++ base_time=1582202657
2020-02-20 13:44:17,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,300: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-02-20 13:44:17,300: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-02-20 13:44:17,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-02-20 13:44:17,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-02-20 13:44:17,301: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-02-20 13:44:17,301: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-02-20 13:44:17,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-02-20 13:44:17,302: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,302: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-02-20 13:44:17,302: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-02-20 13:44:17,302: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,302: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-02-20 13:44:17,302: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-02-20 13:44:17,302: DEBUG - +++ n_install_dir=/opt/node_n
2020-02-20 13:44:17,303: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-02-20 13:44:17,303: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-02-20 13:44:17,303: DEBUG - +++ N_PREFIX=/opt/node_n
2020-02-20 13:44:17,303: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,303: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-02-20 13:44:17,303: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-02-20 13:44:17,303: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,304: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-02-20 13:44:17,304: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-02-20 13:44:17,304: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-02-20 13:44:17,304: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,304: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-02-20 13:44:17,304: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-02-20 13:44:17,305: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,305: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-02-20 13:44:17,305: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-02-20 13:44:17,305: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,305: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-02-20 13:44:17,305: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-02-20 13:44:17,305: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,306: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-02-20 13:44:17,306: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-02-20 13:44:17,306: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-02-20 13:44:17,306: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-02-20 13:44:17,306: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-02-20 13:44:17,306: DEBUG - + ynh_abort_if_errors
2020-02-20 13:44:17,306: DEBUG - + set -eu
2020-02-20 13:44:17,307: DEBUG - + trap ynh_exit_properly EXIT
2020-02-20 13:44:17,307: DEBUG - + domain=s.10qt.net
2020-02-20 13:44:17,307: DEBUG - + path_url=/
2020-02-20 13:44:17,307: DEBUG - + app=kresus
2020-02-20 13:44:17,307: DEBUG - + final_path=/var/www/kresus
2020-02-20 13:44:17,307: DEBUG - + test '!' -e /var/www/kresus
2020-02-20 13:44:17,308: DEBUG - ++ ynh_normalize_url_path /
2020-02-20 13:44:17,308: DEBUG - ++ local legacy_args=p
2020-02-20 13:44:17,308: DEBUG - ++ args_array=([p]=path_url=)
2020-02-20 13:44:17,308: DEBUG - ++ declare -Ar args_array
2020-02-20 13:44:17,308: DEBUG - ++ local path_url
2020-02-20 13:44:17,308: DEBUG - ++ ynh_handle_getopts_args /
2020-02-20 13:44:17,308: DEBUG - ++ set +x
2020-02-20 13:44:17,309: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-02-20 13:44:17,309: DEBUG - ++ set +x
2020-02-20 13:44:17,309: DEBUG - ++ test -n /
2020-02-20 13:44:17,309: DEBUG - ++ '[' / '!=' / ']'
2020-02-20 13:44:17,309: DEBUG - ++ '[' / == / ']'
2020-02-20 13:44:17,309: DEBUG - ++ '[' 1 -gt 1 ']'
2020-02-20 13:44:17,309: DEBUG - ++ echo /
2020-02-20 13:44:17,310: DEBUG - + path_url=/
2020-02-20 13:44:17,310: DEBUG - + ynh_webpath_available s.10qt.net /
2020-02-20 13:44:17,310: DEBUG - + local legacy_args=dp
2020-02-20 13:44:17,310: DEBUG - + args_array=([d]=domain= [p]=path_url=)
2020-02-20 13:44:17,310: DEBUG - + declare -Ar args_array
2020-02-20 13:44:17,310: DEBUG - + local domain
2020-02-20 13:44:17,310: DEBUG - + local path_url
2020-02-20 13:44:17,311: DEBUG - + ynh_handle_getopts_args s.10qt.net /
2020-02-20 13:44:17,311: DEBUG - + set +x
2020-02-20 13:44:17,311: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:17,311: DEBUG - + set +x
2020-02-20 13:44:17,311: DEBUG - + sudo yunohost domain url-available s.10qt.net /
2020-02-20 13:44:17,612: DEBUG - True
2020-02-20 13:44:17,712: DEBUG - + ynh_webpath_register kresus s.10qt.net /
2020-02-20 13:44:17,713: DEBUG - + local legacy_args=adp
2020-02-20 13:44:17,713: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
2020-02-20 13:44:17,713: DEBUG - + declare -Ar args_array
2020-02-20 13:44:17,713: DEBUG - + local app
2020-02-20 13:44:17,713: DEBUG - + local domain
2020-02-20 13:44:17,713: DEBUG - + local path_url
2020-02-20 13:44:17,714: DEBUG - + ynh_handle_getopts_args kresus s.10qt.net /
2020-02-20 13:44:17,714: DEBUG - + set +x
2020-02-20 13:44:17,714: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:17,714: DEBUG - + set +x
2020-02-20 13:44:17,714: DEBUG - + sudo yunohost app register-url kresus s.10qt.net /
2020-02-20 13:44:18,015: DEBUG - + ynh_app_setting_set kresus domain s.10qt.net
2020-02-20 13:44:18,015: DEBUG - + local legacy_args=akv
2020-02-20 13:44:18,015: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:18,015: DEBUG - + declare -Ar args_array
2020-02-20 13:44:18,015: DEBUG - + local app
2020-02-20 13:44:18,015: DEBUG - + local key
2020-02-20 13:44:18,016: DEBUG - + local value
2020-02-20 13:44:18,016: DEBUG - + ynh_handle_getopts_args kresus domain s.10qt.net
2020-02-20 13:44:18,016: DEBUG - + set +x
2020-02-20 13:44:18,016: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,016: DEBUG - + set +x
2020-02-20 13:44:18,016: DEBUG - + ynh_app_setting set kresus domain s.10qt.net
2020-02-20 13:44:18,016: DEBUG - + ACTION=set
2020-02-20 13:44:18,016: DEBUG - + APP=kresus
2020-02-20 13:44:18,016: DEBUG - + KEY=domain
2020-02-20 13:44:18,016: DEBUG - + VALUE=s.10qt.net
2020-02-20 13:44:18,017: DEBUG - + python -
2020-02-20 13:44:18,117: DEBUG - + ynh_app_setting_set kresus path /
2020-02-20 13:44:18,117: DEBUG - + local legacy_args=akv
2020-02-20 13:44:18,117: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:18,118: DEBUG - + declare -Ar args_array
2020-02-20 13:44:18,118: DEBUG - + local app
2020-02-20 13:44:18,118: DEBUG - + local key
2020-02-20 13:44:18,118: DEBUG - + local value
2020-02-20 13:44:18,119: DEBUG - + ynh_handle_getopts_args kresus path /
2020-02-20 13:44:18,119: DEBUG - + set +x
2020-02-20 13:44:18,119: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,119: DEBUG - + set +x
2020-02-20 13:44:18,119: DEBUG - + ynh_app_setting set kresus path /
2020-02-20 13:44:18,119: DEBUG - + ACTION=set
2020-02-20 13:44:18,119: DEBUG - + APP=kresus
2020-02-20 13:44:18,119: DEBUG - + KEY=path
2020-02-20 13:44:18,119: DEBUG - + VALUE=/
2020-02-20 13:44:18,120: DEBUG - + python -
2020-02-20 13:44:18,120: DEBUG - ++ ynh_find_port 9876
2020-02-20 13:44:18,120: DEBUG - ++ local legacy_args=p
2020-02-20 13:44:18,120: DEBUG - ++ args_array=([p]=port=)
2020-02-20 13:44:18,120: DEBUG - ++ declare -Ar args_array
2020-02-20 13:44:18,120: DEBUG - ++ local port
2020-02-20 13:44:18,121: DEBUG - ++ ynh_handle_getopts_args 9876
2020-02-20 13:44:18,121: DEBUG - ++ set +x
2020-02-20 13:44:18,121: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,121: DEBUG - ++ set +x
2020-02-20 13:44:18,121: DEBUG - ++ test -n 9876
2020-02-20 13:44:18,122: DEBUG - ++ netcat -z 127.0.0.1 9876
2020-02-20 13:44:18,122: DEBUG - ++ echo 9876
2020-02-20 13:44:18,122: DEBUG - + port=9876
2020-02-20 13:44:18,122: DEBUG - ++ ynh_string_random 40
2020-02-20 13:44:18,122: DEBUG - ++ local legacy_args=l
2020-02-20 13:44:18,122: DEBUG - ++ args_array=([l]=length=)
2020-02-20 13:44:18,123: DEBUG - ++ declare -Ar args_array
2020-02-20 13:44:18,123: DEBUG - ++ local length
2020-02-20 13:44:18,123: DEBUG - ++ ynh_handle_getopts_args 40
2020-02-20 13:44:18,123: DEBUG - ++ set +x
2020-02-20 13:44:18,123: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,123: DEBUG - ++ set +x
2020-02-20 13:44:18,224: DEBUG - ++ length=40
2020-02-20 13:44:18,224: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2020-02-20 13:44:18,224: DEBUG - ++ tr -c -d A-Za-z0-9
2020-02-20 13:44:18,225: DEBUG - ++ sed -n 's/\(.\{40\}\).*/\1/p'
2020-02-20 13:44:18,225: DEBUG - + salt=LrI02YexxLDfk36xLaPjvDtpQK3HuxHhkTLutwvk
2020-02-20 13:44:18,225: DEBUG - + ynh_app_setting_set kresus port 9876
2020-02-20 13:44:18,226: DEBUG - + local legacy_args=akv
2020-02-20 13:44:18,226: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:18,226: DEBUG - + declare -Ar args_array
2020-02-20 13:44:18,226: DEBUG - + local app
2020-02-20 13:44:18,227: DEBUG - + local key
2020-02-20 13:44:18,227: DEBUG - + local value
2020-02-20 13:44:18,227: DEBUG - + ynh_handle_getopts_args kresus port 9876
2020-02-20 13:44:18,228: DEBUG - + set +x
2020-02-20 13:44:18,228: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,228: DEBUG - + set +x
2020-02-20 13:44:18,228: DEBUG - + ynh_app_setting set kresus port 9876
2020-02-20 13:44:18,228: DEBUG - + ACTION=set
2020-02-20 13:44:18,229: DEBUG - + APP=kresus
2020-02-20 13:44:18,229: DEBUG - + KEY=port
2020-02-20 13:44:18,229: DEBUG - + VALUE=9876
2020-02-20 13:44:18,229: DEBUG - + python -
2020-02-20 13:44:18,229: DEBUG - + ynh_app_setting_set kresus salt LrI02YexxLDfk36xLaPjvDtpQK3HuxHhkTLutwvk
2020-02-20 13:44:18,229: DEBUG - + local legacy_args=akv
2020-02-20 13:44:18,229: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:18,229: DEBUG - + declare -Ar args_array
2020-02-20 13:44:18,230: DEBUG - + local app
2020-02-20 13:44:18,230: DEBUG - + local key
2020-02-20 13:44:18,230: DEBUG - + local value
2020-02-20 13:44:18,230: DEBUG - + ynh_handle_getopts_args kresus salt LrI02YexxLDfk36xLaPjvDtpQK3HuxHhkTLutwvk
2020-02-20 13:44:18,230: DEBUG - + set +x
2020-02-20 13:44:18,230: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:18,230: DEBUG - + set +x
2020-02-20 13:44:18,230: DEBUG - + ynh_app_setting set kresus salt LrI02YexxLDfk36xLaPjvDtpQK3HuxHhkTLutwvk
2020-02-20 13:44:18,231: DEBUG - + ACTION=set
2020-02-20 13:44:18,231: DEBUG - + APP=kresus
2020-02-20 13:44:18,231: DEBUG - + KEY=salt
2020-02-20 13:44:18,231: DEBUG - + VALUE=LrI02YexxLDfk36xLaPjvDtpQK3HuxHhkTLutwvk
2020-02-20 13:44:18,231: DEBUG - + python -
2020-02-20 13:44:18,331: DEBUG - + ynh_install_app_dependencies dh-autoreconf python3-pip python3-dev python3-lxml python3-pillow virtualenv
2020-02-20 13:44:18,332: DEBUG - + local 'dependencies=dh-autoreconf python3-pip python3-dev python3-lxml python3-pillow virtualenv'
2020-02-20 13:44:18,332: DEBUG - + local 'dependencies=dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:18,332: DEBUG - + local 'dependencies=dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:18,332: DEBUG - + local manifest_path=../manifest.json
2020-02-20 13:44:18,332: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-02-20 13:44:18,332: DEBUG - ++ grep '\"version\": ' ../manifest.json
2020-02-20 13:44:18,332: DEBUG - ++ cut -d '"' -f 4
2020-02-20 13:44:18,332: DEBUG - + local version=0.15.2~ynh4
2020-02-20 13:44:18,332: DEBUG - + '[' 11 -eq 0 ']'
2020-02-20 13:44:18,333: DEBUG - + local dep_app=kresus
2020-02-20 13:44:18,333: DEBUG - + echo dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv
2020-02-20 13:44:18,333: DEBUG - + grep -q php
2020-02-20 13:44:18,333: DEBUG - + cat
2020-02-20 13:44:18,333: DEBUG - + ynh_package_install_from_equivs /tmp/kresus-ynh-deps.control
2020-02-20 13:44:18,333: DEBUG - + local controlfile=/tmp/kresus-ynh-deps.control
2020-02-20 13:44:18,333: DEBUG - ++ grep '^Package: ' /tmp/kresus-ynh-deps.control
2020-02-20 13:44:18,333: DEBUG - ++ cut '-d ' -f 2
2020-02-20 13:44:18,333: DEBUG - + local pkgname=kresus-ynh-deps
2020-02-20 13:44:18,333: DEBUG - ++ grep '^Version: ' /tmp/kresus-ynh-deps.control
2020-02-20 13:44:18,334: DEBUG - ++ cut '-d ' -f 2
2020-02-20 13:44:18,334: DEBUG - + local pkgversion=0.15.2~ynh4
2020-02-20 13:44:18,334: DEBUG - + [[ -z kresus-ynh-deps ]]
2020-02-20 13:44:18,334: DEBUG - + [[ -z 0.15.2~ynh4 ]]
2020-02-20 13:44:18,334: DEBUG - + ynh_package_update
2020-02-20 13:44:18,334: DEBUG - + ynh_apt update
2020-02-20 13:44:18,334: DEBUG - + ynh_wait_dpkg_free
2020-02-20 13:44:18,334: DEBUG - + local try
2020-02-20 13:44:18,334: DEBUG - ++ seq 1 17
2020-02-20 13:44:18,334: DEBUG - + for try in `seq 1 17`
2020-02-20 13:44:18,335: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-02-20 13:44:18,535: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-02-20 13:44:18,535: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-02-20 13:44:18,535: DEBUG - + read dpkg_file
2020-02-20 13:44:18,536: DEBUG - + echo ''
2020-02-20 13:44:18,536: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-02-20 13:44:18,536: DEBUG - + read dpkg_file
2020-02-20 13:44:18,536: DEBUG - + return 0
2020-02-20 13:44:18,536: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-02-20 13:44:18,536: DEBUG - + apt-get -y update
2020-02-20 13:44:18,637: DEBUG - Réception de:1 http://security.debian.org stretch/updates InRelease [94,3 kB]
2020-02-20 13:44:18,637: DEBUG - Réception de:2 http://debian.mirrors.ovh.net/debian stretch-updates InRelease [91,0 kB]
2020-02-20 13:44:18,737: DEBUG - Atteint:3 http://forge.yunohost.org/debian stretch InRelease
2020-02-20 13:44:18,737: DEBUG - Ign:4 http://debian.mirrors.ovh.net/debian stretch InRelease
2020-02-20 13:44:18,738: DEBUG - Réception de:5 http://debian.mirrors.ovh.net/debian stretch Release [118 kB]
2020-02-20 13:44:19,139: DEBUG - Atteint:6 https://packages.sury.org/php stretch InRelease
2020-02-20 13:44:19,239: DEBUG - Atteint:7 https://deb.nodesource.com/node_6.x stretch InRelease
2020-02-20 13:44:19,540: DEBUG - 303 ko réceptionnés en 0s (344 ko/s)
2020-02-20 13:44:21,245: DEBUG - Lecture des listes de paquets…
2020-02-20 13:44:21,246: DEBUG - ++ mktemp -d
2020-02-20 13:44:21,246: DEBUG - + local TMPDIR=/tmp/tmp.1LY0Z9IpLm
2020-02-20 13:44:21,246: DEBUG - + echo 10
2020-02-20 13:44:21,246: DEBUG - + ynh_wait_dpkg_free
2020-02-20 13:44:21,246: DEBUG - + local try
2020-02-20 13:44:21,247: DEBUG - ++ seq 1 17
2020-02-20 13:44:21,247: DEBUG - + for try in `seq 1 17`
2020-02-20 13:44:21,247: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-02-20 13:44:21,448: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-02-20 13:44:21,448: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-02-20 13:44:21,448: DEBUG - + read dpkg_file
2020-02-20 13:44:21,448: DEBUG - + echo ''
2020-02-20 13:44:21,448: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-02-20 13:44:21,449: DEBUG - + read dpkg_file
2020-02-20 13:44:21,449: DEBUG - + return 0
2020-02-20 13:44:21,449: DEBUG - + cp /tmp/kresus-ynh-deps.control /tmp/tmp.1LY0Z9IpLm/control
2020-02-20 13:44:21,449: DEBUG - + cd /tmp/tmp.1LY0Z9IpLm
2020-02-20 13:44:21,449: DEBUG - + equivs-build ./control
2020-02-20 13:44:22,952: DEBUG - + dpkg --force-depends -i ./kresus-ynh-deps_0.15.2~ynh4_all.deb
2020-02-20 13:44:23,052: DEBUG - Sélection du paquet kresus-ynh-deps précédemment désélectionné.
2020-02-20 13:44:26,659: DEBUG - (Lecture de la base de données... 83422 fichiers et répertoires déjà installés.)
2020-02-20 13:44:26,659: DEBUG - Préparation du dépaquetage de .../kresus-ynh-deps_0.15.2~ynh4_all.deb ...
2020-02-20 13:44:26,660: DEBUG - Dépaquetage de kresus-ynh-deps (0.15.2~ynh4) ...
2020-02-20 13:44:26,960: DEBUG - dpkg: kresus-ynh-deps : problèmes de dépendances, mais configuration comme demandé :
2020-02-20 13:44:26,961: DEBUG -  kresus-ynh-deps dépend de python3-lxml ; cependant :
2020-02-20 13:44:26,961: DEBUG -   Le paquet python3-lxml n'est pas installé.
2020-02-20 13:44:26,961: DEBUG - 
2020-02-20 13:44:26,961: DEBUG - Paramétrage de kresus-ynh-deps (0.15.2~ynh4) ...
2020-02-20 13:44:27,162: DEBUG - + ynh_package_install -f
2020-02-20 13:44:27,162: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-02-20 13:44:27,162: DEBUG - + ynh_wait_dpkg_free
2020-02-20 13:44:27,163: DEBUG - + local try
2020-02-20 13:44:27,163: DEBUG - ++ seq 1 17
2020-02-20 13:44:27,163: DEBUG - + for try in `seq 1 17`
2020-02-20 13:44:27,163: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-02-20 13:44:27,263: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-02-20 13:44:27,264: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-02-20 13:44:27,264: DEBUG - + read dpkg_file
2020-02-20 13:44:27,264: DEBUG - + echo ''
2020-02-20 13:44:27,264: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-02-20 13:44:27,264: DEBUG - + read dpkg_file
2020-02-20 13:44:27,264: DEBUG - + return 0
2020-02-20 13:44:27,264: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-02-20 13:44:27,264: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-02-20 13:44:27,465: DEBUG - Lecture des listes de paquets…
2020-02-20 13:44:27,565: DEBUG - Construction de l'arbre des dépendances…
2020-02-20 13:44:27,565: DEBUG - Lecture des informations d'état…
2020-02-20 13:44:27,766: DEBUG - Correction des dépendances... Fait
2020-02-20 13:44:27,867: DEBUG - The following additional packages will be installed:
2020-02-20 13:44:27,867: DEBUG -   python3-bs4 python3-html5lib python3-lxml python3-webencodings
2020-02-20 13:44:27,867: DEBUG - Paquets suggérés :
2020-02-20 13:44:27,867: DEBUG -   python3-genshi python3-lxml-dbg python-lxml-doc
2020-02-20 13:44:27,967: DEBUG - Les NOUVEAUX paquets suivants seront installés :
2020-02-20 13:44:27,968: DEBUG -   python3-bs4 python3-html5lib python3-lxml python3-webencodings
2020-02-20 13:44:28,068: DEBUG - 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour.
2020-02-20 13:44:28,068: DEBUG - Il est nécessaire de prendre 1 083 ko dans les archives.
2020-02-20 13:44:28,069: DEBUG - Après cette opération, 4 197 ko d'espace disque supplémentaires seront utilisés.
2020-02-20 13:44:28,069: DEBUG - Réception de:1 http://debian.mirrors.ovh.net/debian stretch/main amd64 python3-bs4 all 4.5.3-1 [86,6 kB]
2020-02-20 13:44:28,169: DEBUG - Réception de:2 http://debian.mirrors.ovh.net/debian stretch/main amd64 python3-webencodings all 0.5-2 [10,4 kB]
2020-02-20 13:44:28,170: DEBUG - Réception de:3 http://debian.mirrors.ovh.net/debian stretch/main amd64 python3-html5lib all 0.999999999-1 [86,3 kB]
2020-02-20 13:44:28,170: DEBUG - Réception de:4 http://debian.mirrors.ovh.net/debian stretch/main amd64 python3-lxml amd64 3.7.1-1 [900 kB]
2020-02-20 13:44:28,471: WARNING - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,471: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,472: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,472: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,472: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,472: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,472: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,473: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,473: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,473: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,573: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,574: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,574: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,574: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,575: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,575: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,575: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,575: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,575: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,676: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,676: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,677: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,677: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,677: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,678: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,678: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,678: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:28,678: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,779: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,779: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,780: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,880: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:28,880: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:29,482: DEBUG - 1 083 ko réceptionnés en 0s (3 605 ko/s)
2020-02-20 13:44:29,582: DEBUG - Sélection du paquet python3-bs4 précédemment désélectionné.
2020-02-20 13:44:29,583: DEBUG - (Lecture de la base de données... 
(Lecture de la base de données... 5%
(Lecture de la base de données... 10%
(Lecture de la base de données... 15%
(Lecture de la base de données... 20%
(Lecture de la base de données... 25%
(Lecture de la base de données... 30%
(Lecture de la base de données... 35%
(Lecture de la base de données... 40%
(Lecture de la base de données... 45%
(Lecture de la base de données... 50%
(Lecture de la base de données... 55%
(Lecture de la base de données... 60%
(Lecture de la base de données... 65%
(Lecture de la base de données... 70%
(Lecture de la base de données... 75%
(Lecture de la base de données... 80%
(Lecture de la base de données... 85%
(Lecture de la base de données... 90%
(Lecture de la base de données... 95%
(Lecture de la base de données... 100%
(Lecture de la base de données... 83426 fichiers et répertoires déjà installés.)
2020-02-20 13:44:29,583: DEBUG - Préparation du dépaquetage de .../python3-bs4_4.5.3-1_all.deb ...
2020-02-20 13:44:29,683: DEBUG - Dépaquetage de python3-bs4 (4.5.3-1) ...
2020-02-20 13:44:29,984: DEBUG - Sélection du paquet python3-webencodings précédemment désélectionné.
2020-02-20 13:44:29,984: DEBUG - Préparation du dépaquetage de .../python3-webencodings_0.5-2_all.deb ...
2020-02-20 13:44:29,984: DEBUG - Dépaquetage de python3-webencodings (0.5-2) ...
2020-02-20 13:44:30,385: DEBUG - Sélection du paquet python3-html5lib précédemment désélectionné.
2020-02-20 13:44:30,385: DEBUG - Préparation du dépaquetage de .../python3-html5lib_0.999999999-1_all.deb ...
2020-02-20 13:44:30,385: DEBUG - Dépaquetage de python3-html5lib (0.999999999-1) ...
2020-02-20 13:44:30,686: DEBUG - Sélection du paquet python3-lxml précédemment désélectionné.
2020-02-20 13:44:30,686: DEBUG - Préparation du dépaquetage de .../python3-lxml_3.7.1-1_amd64.deb ...
2020-02-20 13:44:30,687: DEBUG - Dépaquetage de python3-lxml (3.7.1-1) ...
2020-02-20 13:44:31,087: DEBUG - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,088: DEBUG - Paramétrage de python3-webencodings (0.5-2) ...
2020-02-20 13:44:31,188: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,589: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,589: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,790: DEBUG - Paramétrage de python3-lxml (3.7.1-1) ...
2020-02-20 13:44:31,890: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,891: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:31,891: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,092: DEBUG - Paramétrage de python3-bs4 (4.5.3-1) ...
2020-02-20 13:44:32,192: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,192: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,193: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,493: DEBUG - Paramétrage de python3-html5lib (0.999999999-1) ...
2020-02-20 13:44:32,494: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,594: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,594: DEBUG - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:32,995: DEBUG - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,096: WARNING - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,096: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,097: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:33,097: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,097: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,098: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-02-20 13:44:33,198: DEBUG - + [[ -n /tmp/tmp.1LY0Z9IpLm ]]
2020-02-20 13:44:33,199: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:33,199: DEBUG - + rm -rf /tmp/tmp.1LY0Z9IpLm
2020-02-20 13:44:33,199: DEBUG - + ynh_package_is_installed kresus-ynh-deps
2020-02-20 13:44:33,199: DEBUG - + local legacy_args=p
2020-02-20 13:44:33,199: DEBUG - + args_array=([p]=package=)
2020-02-20 13:44:33,199: DEBUG - + declare -Ar args_array
2020-02-20 13:44:33,200: DEBUG - + local package
2020-02-20 13:44:33,200: DEBUG - + ynh_handle_getopts_args kresus-ynh-deps
2020-02-20 13:44:33,200: DEBUG - + set +x
2020-02-20 13:44:33,200: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:33,200: DEBUG - + set +x
2020-02-20 13:44:33,200: DEBUG - + ynh_wait_dpkg_free
2020-02-20 13:44:33,200: DEBUG - + local try
2020-02-20 13:44:33,201: DEBUG - ++ seq 1 17
2020-02-20 13:44:33,201: DEBUG - + for try in `seq 1 17`
2020-02-20 13:44:33,201: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-02-20 13:44:33,301: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-02-20 13:44:33,302: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-02-20 13:44:33,302: DEBUG - + read dpkg_file
2020-02-20 13:44:33,302: DEBUG - + echo ''
2020-02-20 13:44:33,302: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-02-20 13:44:33,302: DEBUG - + read dpkg_file
2020-02-20 13:44:33,302: DEBUG - + return 0
2020-02-20 13:44:33,302: DEBUG - + dpkg-query -W -f '${Status}' kresus-ynh-deps
2020-02-20 13:44:33,303: DEBUG - + grep -c 'ok installed'
2020-02-20 13:44:33,403: DEBUG - + rm /tmp/kresus-ynh-deps.control
2020-02-20 13:44:33,403: DEBUG - + ynh_app_setting_set --app=kresus --key=apt_dependencies '--value=dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:33,404: DEBUG - + local legacy_args=akv
2020-02-20 13:44:33,404: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:33,404: DEBUG - + declare -Ar args_array
2020-02-20 13:44:33,404: DEBUG - + local app
2020-02-20 13:44:33,404: DEBUG - + local key
2020-02-20 13:44:33,405: DEBUG - + local value
2020-02-20 13:44:33,405: DEBUG - + ynh_handle_getopts_args --app=kresus --key=apt_dependencies '--value=dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:33,405: DEBUG - + set +x
2020-02-20 13:44:33,405: DEBUG - + ynh_app_setting set kresus apt_dependencies 'dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:33,405: DEBUG - + ACTION=set
2020-02-20 13:44:33,405: DEBUG - + APP=kresus
2020-02-20 13:44:33,405: DEBUG - + KEY=apt_dependencies
2020-02-20 13:44:33,406: DEBUG - + VALUE='dh-autoreconf, python3-pip, python3-dev, python3-lxml, python3-pillow, virtualenv'
2020-02-20 13:44:33,406: DEBUG - + python -
2020-02-20 13:44:33,506: DEBUG - + ynh_app_setting_set kresus final_path /var/www/kresus
2020-02-20 13:44:33,507: DEBUG - + local legacy_args=akv
2020-02-20 13:44:33,507: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:33,507: DEBUG - + declare -Ar args_array
2020-02-20 13:44:33,507: DEBUG - + local app
2020-02-20 13:44:33,507: DEBUG - + local key
2020-02-20 13:44:33,508: DEBUG - + local value
2020-02-20 13:44:33,508: DEBUG - + ynh_handle_getopts_args kresus final_path /var/www/kresus
2020-02-20 13:44:33,508: DEBUG - + set +x
2020-02-20 13:44:33,508: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:33,508: DEBUG - + set +x
2020-02-20 13:44:33,508: DEBUG - + ynh_app_setting set kresus final_path /var/www/kresus
2020-02-20 13:44:33,509: DEBUG - + ACTION=set
2020-02-20 13:44:33,509: DEBUG - + APP=kresus
2020-02-20 13:44:33,509: DEBUG - + KEY=final_path
2020-02-20 13:44:33,509: DEBUG - + VALUE=/var/www/kresus
2020-02-20 13:44:33,509: DEBUG - + python -
2020-02-20 13:44:33,610: DEBUG - + ynh_setup_source /var/www/kresus
2020-02-20 13:44:33,610: DEBUG - + local legacy_args=ds
2020-02-20 13:44:33,610: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2020-02-20 13:44:33,610: DEBUG - + declare -Ar args_array
2020-02-20 13:44:33,610: DEBUG - + local dest_dir
2020-02-20 13:44:33,611: DEBUG - + local source_id
2020-02-20 13:44:33,611: DEBUG - + ynh_handle_getopts_args /var/www/kresus
2020-02-20 13:44:33,611: DEBUG - + set +x
2020-02-20 13:44:33,611: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:33,611: DEBUG - + set +x
2020-02-20 13:44:33,611: DEBUG - + source_id=app
2020-02-20 13:44:33,612: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,612: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src ']'
2020-02-20 13:44:33,612: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,612: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,612: DEBUG - + local src_url=https://framagit.org/kresusapp/kresus/-/archive/0.15.2/kresus-0.15.2.tar.bz2
2020-02-20 13:44:33,612: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,612: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,613: DEBUG - + local src_sum=420ed94313e3343f47d84095bd9adade166cc1e5d83f211d39cb2dd254bb63a6
2020-02-20 13:44:33,613: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,613: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,613: DEBUG - + local src_sumprg=sha256sum
2020-02-20 13:44:33,613: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,613: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,613: DEBUG - + local src_format=tar.bz2
2020-02-20 13:44:33,613: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,613: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,613: DEBUG - + local src_extract=
2020-02-20 13:44:33,613: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,614: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,614: DEBUG - + local src_in_subdir=true
2020-02-20 13:44:33,614: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/app.src
2020-02-20 13:44:33,614: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:33,614: DEBUG - + local src_filename=
2020-02-20 13:44:33,614: DEBUG - + src_sumprg=sha256sum
2020-02-20 13:44:33,614: DEBUG - + src_in_subdir=true
2020-02-20 13:44:33,614: DEBUG - + src_format=tar.bz2
2020-02-20 13:44:33,614: DEBUG - ++ echo tar.bz2
2020-02-20 13:44:33,614: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-02-20 13:44:33,615: DEBUG - + src_format=tar.bz2
2020-02-20 13:44:33,615: DEBUG - + src_extract=true
2020-02-20 13:44:33,615: DEBUG - + '[' '' = '' ']'
2020-02-20 13:44:33,615: DEBUG - + src_filename=app.tar.bz2
2020-02-20 13:44:33,615: DEBUG - + local local_src=/opt/yunohost-apps-src/kresus/app.tar.bz2
2020-02-20 13:44:33,615: DEBUG - + test -e /opt/yunohost-apps-src/kresus/app.tar.bz2
2020-02-20 13:44:33,615: DEBUG - ++ wget -nv -O app.tar.bz2 https://framagit.org/kresusapp/kresus/-/archive/0.15.2/kresus-0.15.2.tar.bz2
2020-02-20 13:44:34,917: DEBUG - + local 'out=2020-02-20 13:44:34 URL:https://framagit.org/kresusapp/kresus/-/archive/0.15.2/kresus-0.15.2.tar.bz2 [2190577] -> "app.tar.bz2" [1]'
2020-02-20 13:44:34,918: DEBUG - + echo '420ed94313e3343f47d84095bd9adade166cc1e5d83f211d39cb2dd254bb63a6 app.tar.bz2'
2020-02-20 13:44:34,918: DEBUG - + sha256sum -c --status
2020-02-20 13:44:35,018: DEBUG - + mkdir -p /var/www/kresus
2020-02-20 13:44:35,018: DEBUG - + true
2020-02-20 13:44:35,018: DEBUG - + '[' tar.bz2 = zip ']'
2020-02-20 13:44:35,019: DEBUG - + local strip=
2020-02-20 13:44:35,019: DEBUG - + '[' true '!=' false ']'
2020-02-20 13:44:35,019: DEBUG - + '[' true == true ']'
2020-02-20 13:44:35,019: DEBUG - + local sub_dirs=1
2020-02-20 13:44:35,019: DEBUG - + strip='--strip-components 1'
2020-02-20 13:44:35,019: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-02-20 13:44:35,019: DEBUG - + tar -xf app.tar.bz2 -C /var/www/kresus --strip-components 1
2020-02-20 13:44:35,320: DEBUG - ++ find /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../sources/patches/ -type f -name 'app-*.patch'
2020-02-20 13:44:35,320: DEBUG - ++ wc -l
2020-02-20 13:44:35,321: DEBUG - + ((  0 > 0  ))
2020-02-20 13:44:35,321: DEBUG - + test -e /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../sources/extra_files/app
2020-02-20 13:44:35,321: DEBUG - + mkdir /var/www/kresus/data
2020-02-20 13:44:35,321: DEBUG - + ynh_add_nginx_config
2020-02-20 13:44:35,321: DEBUG - + finalnginxconf=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,321: DEBUG - + local others_var=
2020-02-20 13:44:35,322: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,322: DEBUG - + local legacy_args=f
2020-02-20 13:44:35,322: DEBUG - + args_array=([f]=file=)
2020-02-20 13:44:35,322: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,322: DEBUG - + local file
2020-02-20 13:44:35,322: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,323: DEBUG - + set +x
2020-02-20 13:44:35,323: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_s.10qt.net.d_kresus.conf
2020-02-20 13:44:35,323: DEBUG - ++ ynh_app_setting_get --app=kresus --key=**********
2020-02-20 13:44:35,323: DEBUG - ++ local legacy_args=ak
2020-02-20 13:44:35,323: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-02-20 13:44:35,323: DEBUG - ++ declare -Ar args_array
2020-02-20 13:44:35,324: DEBUG - ++ local app
2020-02-20 13:44:35,324: DEBUG - ++ local key
2020-02-20 13:44:35,324: DEBUG - ++ ynh_handle_getopts_args --app=kresus --key=**********
2020-02-20 13:44:35,324: DEBUG - ++ set +x
2020-02-20 13:44:35,324: DEBUG - ++ ynh_app_setting get kresus **********
2020-02-20 13:44:35,324: DEBUG - ++ ACTION=get
2020-02-20 13:44:35,324: DEBUG - ++ APP=kresus
2020-02-20 13:44:35,325: DEBUG - ++ KEY=**********
2020-02-20 13:44:35,325: DEBUG - ++ VALUE=
2020-02-20 13:44:35,325: DEBUG - ++ python -
2020-02-20 13:44:35,425: DEBUG - + local checksum_value=
2020-02-20 13:44:35,426: DEBUG - + backup_file_checksum=
2020-02-20 13:44:35,426: DEBUG - + '[' -n '' ']'
2020-02-20 13:44:35,426: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,426: DEBUG - + test -n /
2020-02-20 13:44:35,426: DEBUG - + local path_url_slash_less=
2020-02-20 13:44:35,426: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,427: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,427: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,427: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,427: DEBUG - + local match_string
2020-02-20 13:44:35,427: DEBUG - + local replace_string
2020-02-20 13:44:35,427: DEBUG - + local target_file
2020-02-20 13:44:35,428: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,428: DEBUG - + set +x
2020-02-20 13:44:35,428: DEBUG - + local delimit=@
2020-02-20 13:44:35,428: DEBUG - + match_string=__PATH__/
2020-02-20 13:44:35,428: DEBUG - + replace_string=/
2020-02-20 13:44:35,428: DEBUG - + sudo sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,429: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,429: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,429: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,429: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,429: DEBUG - + local match_string
2020-02-20 13:44:35,429: DEBUG - + local replace_string
2020-02-20 13:44:35,429: DEBUG - + local target_file
2020-02-20 13:44:35,430: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,430: DEBUG - + set +x
2020-02-20 13:44:35,430: DEBUG - + local delimit=@
2020-02-20 13:44:35,430: DEBUG - + match_string=__PATH__
2020-02-20 13:44:35,430: DEBUG - + replace_string=/
2020-02-20 13:44:35,431: DEBUG - + sudo sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,431: DEBUG - + test -n s.10qt.net
2020-02-20 13:44:35,431: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=s.10qt.net --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,431: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,431: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,432: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,432: DEBUG - + local match_string
2020-02-20 13:44:35,432: DEBUG - + local replace_string
2020-02-20 13:44:35,432: DEBUG - + local target_file
2020-02-20 13:44:35,432: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=s.10qt.net --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,432: DEBUG - + set +x
2020-02-20 13:44:35,433: DEBUG - + local delimit=@
2020-02-20 13:44:35,433: DEBUG - + match_string=__DOMAIN__
2020-02-20 13:44:35,433: DEBUG - + replace_string=s.10qt.net
2020-02-20 13:44:35,433: DEBUG - + sudo sed --in-place s@[email protected]@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,433: DEBUG - + test -n 9876
2020-02-20 13:44:35,433: DEBUG - + ynh_replace_string --match_string=__PORT__ --replace_string=9876 --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,434: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,434: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,434: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,434: DEBUG - + local match_string
2020-02-20 13:44:35,434: DEBUG - + local replace_string
2020-02-20 13:44:35,434: DEBUG - + local target_file
2020-02-20 13:44:35,434: DEBUG - + ynh_handle_getopts_args --match_string=__PORT__ --replace_string=9876 --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,435: DEBUG - + set +x
2020-02-20 13:44:35,435: DEBUG - + local delimit=@
2020-02-20 13:44:35,435: DEBUG - + match_string=__PORT__
2020-02-20 13:44:35,435: DEBUG - + replace_string=9876
2020-02-20 13:44:35,435: DEBUG - + sudo sed --in-place s@__PORT__@9876@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,435: DEBUG - + test -n kresus
2020-02-20 13:44:35,435: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=kresus --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,435: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,435: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,435: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,436: DEBUG - + local match_string
2020-02-20 13:44:35,436: DEBUG - + local replace_string
2020-02-20 13:44:35,436: DEBUG - + local target_file
2020-02-20 13:44:35,436: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=kresus --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,436: DEBUG - + set +x
2020-02-20 13:44:35,436: DEBUG - + local delimit=@
2020-02-20 13:44:35,436: DEBUG - + match_string=__NAME__
2020-02-20 13:44:35,436: DEBUG - + replace_string=kresus
2020-02-20 13:44:35,436: DEBUG - + sudo sed --in-place s@__NAME__@kresus@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,537: DEBUG - + test -n /var/www/kresus
2020-02-20 13:44:35,537: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/kresus --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,537: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,537: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,538: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,538: DEBUG - + local match_string
2020-02-20 13:44:35,538: DEBUG - + local replace_string
2020-02-20 13:44:35,538: DEBUG - + local target_file
2020-02-20 13:44:35,538: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/kresus --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,538: DEBUG - + set +x
2020-02-20 13:44:35,538: DEBUG - + local delimit=@
2020-02-20 13:44:35,539: DEBUG - + match_string=__FINALPATH__
2020-02-20 13:44:35,539: DEBUG - + replace_string=/var/www/kresus
2020-02-20 13:44:35,539: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/kresus@g /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,539: DEBUG - + '[' / '!=' / ']'
2020-02-20 13:44:35,539: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,539: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:35,539: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:35,540: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,540: DEBUG - + local match_string
2020-02-20 13:44:35,540: DEBUG - + local replace_string
2020-02-20 13:44:35,540: DEBUG - + local target_file
2020-02-20 13:44:35,540: DEBUG - + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,540: DEBUG - + set +x
2020-02-20 13:44:35,541: DEBUG - + local delimit=@
2020-02-20 13:44:35,541: DEBUG - + match_string='^#root_path_only'
2020-02-20 13:44:35,541: DEBUG - + replace_string=
2020-02-20 13:44:35,541: DEBUG - + sudo sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,541: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,541: DEBUG - + local legacy_args=f
2020-02-20 13:44:35,541: DEBUG - + args_array=([f]=file=)
2020-02-20 13:44:35,541: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,542: DEBUG - + local file
2020-02-20 13:44:35,542: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,542: DEBUG - + set +x
2020-02-20 13:44:35,542: DEBUG - + local checksum_setting_name=**********
2020-02-20 13:44:35,542: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,542: DEBUG - ++ cut '-d ' -f1
2020-02-20 13:44:35,542: DEBUG - + ynh_app_setting_set --app=kresus --key=********** --value=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,543: DEBUG - + local legacy_args=akv
2020-02-20 13:44:35,543: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:35,543: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,543: DEBUG - + local app
2020-02-20 13:44:35,543: DEBUG - + local key
2020-02-20 13:44:35,543: DEBUG - + local value
2020-02-20 13:44:35,543: DEBUG - + ynh_handle_getopts_args --app=kresus --key=********** --value=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,544: DEBUG - + set +x
2020-02-20 13:44:35,544: DEBUG - + ynh_app_setting set kresus ********** 1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,544: DEBUG - + ACTION=set
2020-02-20 13:44:35,544: DEBUG - + APP=kresus
2020-02-20 13:44:35,544: DEBUG - + KEY=**********
2020-02-20 13:44:35,544: DEBUG - + VALUE=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,544: DEBUG - + python -
2020-02-20 13:44:35,645: DEBUG - + '[' -n '' ']'
2020-02-20 13:44:35,645: DEBUG - + unset backup_file_checksum
2020-02-20 13:44:35,645: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2020-02-20 13:44:35,645: DEBUG - + local legacy_args=nalpte
2020-02-20 13:44:35,646: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-02-20 13:44:35,646: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,646: DEBUG - + local service_name
2020-02-20 13:44:35,646: DEBUG - + local action
2020-02-20 13:44:35,646: DEBUG - + local line_match
2020-02-20 13:44:35,646: DEBUG - + local length
2020-02-20 13:44:35,646: DEBUG - + local log_path
2020-02-20 13:44:35,647: DEBUG - + local timeout
2020-02-20 13:44:35,647: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
2020-02-20 13:44:35,647: DEBUG - + set +x
2020-02-20 13:44:35,647: DEBUG - + local service_name=nginx
2020-02-20 13:44:35,647: DEBUG - + local action=reload
2020-02-20 13:44:35,647: DEBUG - + local log_path=/var/log/nginx/nginx.log
2020-02-20 13:44:35,647: DEBUG - + local length=20
2020-02-20 13:44:35,648: DEBUG - + local timeout=300
2020-02-20 13:44:35,648: DEBUG - + [[ -n '' ]]
2020-02-20 13:44:35,648: DEBUG - + '[' reload == reload ']'
2020-02-20 13:44:35,648: DEBUG - + action=reload-or-restart
2020-02-20 13:44:35,648: DEBUG - + systemctl reload-or-restart nginx
2020-02-20 13:44:35,749: DEBUG - + [[ -n '' ]]
2020-02-20 13:44:35,749: DEBUG - + '[' / '!=' / ']'
2020-02-20 13:44:35,749: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,749: DEBUG - + local legacy_args=f
2020-02-20 13:44:35,749: DEBUG - + args_array=([f]=file=)
2020-02-20 13:44:35,750: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,750: DEBUG - + local file
2020-02-20 13:44:35,750: DEBUG - + ynh_handle_getopts_args /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,750: DEBUG - + set +x
2020-02-20 13:44:35,750: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:35,750: DEBUG - + set +x
2020-02-20 13:44:35,751: DEBUG - + local checksum_setting_name=**********
2020-02-20 13:44:35,751: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/s.10qt.net.d/kresus.conf
2020-02-20 13:44:35,751: DEBUG - ++ cut '-d ' -f1
2020-02-20 13:44:35,751: DEBUG - + ynh_app_setting_set --app=kresus --key=********** --value=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,751: DEBUG - + local legacy_args=akv
2020-02-20 13:44:35,751: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:35,751: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,752: DEBUG - + local app
2020-02-20 13:44:35,752: DEBUG - + local key
2020-02-20 13:44:35,752: DEBUG - + local value
2020-02-20 13:44:35,752: DEBUG - + ynh_handle_getopts_args --app=kresus --key=********** --value=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,752: DEBUG - + set +x
2020-02-20 13:44:35,752: DEBUG - + ynh_app_setting set kresus ********** 1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,753: DEBUG - + ACTION=set
2020-02-20 13:44:35,753: DEBUG - + APP=kresus
2020-02-20 13:44:35,753: DEBUG - + KEY=**********
2020-02-20 13:44:35,753: DEBUG - + VALUE=1930f85cd7cd4d2930a87a71cf2494b0
2020-02-20 13:44:35,753: DEBUG - + python -
2020-02-20 13:44:35,854: DEBUG - + '[' -n '' ']'
2020-02-20 13:44:35,854: DEBUG - + unset backup_file_checksum
2020-02-20 13:44:35,854: DEBUG - + ynh_system_user_create kresus
2020-02-20 13:44:35,854: DEBUG - + local legacy_args=uhs
2020-02-20 13:44:35,854: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2020-02-20 13:44:35,855: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,855: DEBUG - + local username
2020-02-20 13:44:35,855: DEBUG - + local home_dir
2020-02-20 13:44:35,855: DEBUG - + local use_shell
2020-02-20 13:44:35,855: DEBUG - + ynh_handle_getopts_args kresus
2020-02-20 13:44:35,855: DEBUG - + set +x
2020-02-20 13:44:35,855: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:35,856: DEBUG - + set +x
2020-02-20 13:44:35,856: DEBUG - + use_shell=0
2020-02-20 13:44:35,856: DEBUG - + home_dir=
2020-02-20 13:44:35,856: DEBUG - + ynh_system_user_exists kresus
2020-02-20 13:44:35,856: DEBUG - + local legacy_args=u
2020-02-20 13:44:35,857: DEBUG - + args_array=([u]=username=)
2020-02-20 13:44:35,857: DEBUG - + declare -Ar args_array
2020-02-20 13:44:35,857: DEBUG - + local username
2020-02-20 13:44:35,857: DEBUG - + ynh_handle_getopts_args kresus
2020-02-20 13:44:35,857: DEBUG - + set +x
2020-02-20 13:44:35,857: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:35,858: DEBUG - + set +x
2020-02-20 13:44:35,858: DEBUG - + getent passwd kresus
2020-02-20 13:44:35,858: DEBUG - + '[' -n '' ']'
2020-02-20 13:44:35,858: DEBUG - + local user_home_dir=--no-create-home
2020-02-20 13:44:35,858: DEBUG - + '[' 0 -eq 1 ']'
2020-02-20 13:44:35,858: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2020-02-20 13:44:35,859: DEBUG - + useradd --no-create-home --system --user-group kresus --shell /usr/sbin/nologin
2020-02-20 13:44:37,061: DEBUG - + ynh_install_nodejs 10
2020-02-20 13:44:37,061: INFO - Installation of N - Node.js version management
2020-02-20 13:44:37,061: DEBUG - + local legacy_args=n
2020-02-20 13:44:37,061: DEBUG - + args_array=([n]=nodejs_version=)
2020-02-20 13:44:37,061: DEBUG - + declare -Ar args_array
2020-02-20 13:44:37,062: DEBUG - + local nodejs_version
2020-02-20 13:44:37,062: DEBUG - + ynh_handle_getopts_args 10
2020-02-20 13:44:37,062: DEBUG - + set +x
2020-02-20 13:44:37,062: DEBUG - + echo '! Helper used in legacy mode !'
2020-02-20 13:44:37,062: DEBUG - + set +x
2020-02-20 13:44:37,062: DEBUG - + mkdir -p /opt/node_n
2020-02-20 13:44:37,062: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:37,062: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:37,062: DEBUG - ++ sed s@/usr/local/bin:@@
2020-02-20 13:44:37,063: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:37,063: DEBUG - + test -x /usr/bin/node
2020-02-20 13:44:37,063: DEBUG - + mv /usr/bin/node /usr/bin/node_n
2020-02-20 13:44:37,063: DEBUG - + test -x /usr/bin/npm
2020-02-20 13:44:37,063: DEBUG - + mv /usr/bin/npm /usr/bin/npm_n
2020-02-20 13:44:37,063: DEBUG - ++ n --version
2020-02-20 13:44:37,063: DEBUG - + test
2020-02-20 13:44:37,063: DEBUG - + ynh_install_n
2020-02-20 13:44:37,063: DEBUG - + ynh_print_info '--message=Installation of N - Node.js version management'
2020-02-20 13:44:37,063: DEBUG - + local legacy_args=m
2020-02-20 13:44:37,063: DEBUG - + args_array=([m]=message=)
2020-02-20 13:44:37,064: DEBUG - + declare -Ar args_array
2020-02-20 13:44:37,064: DEBUG - + local message
2020-02-20 13:44:37,064: DEBUG - + ynh_handle_getopts_args '--message=Installation of N - Node.js version management'
2020-02-20 13:44:37,064: DEBUG - + set +x
2020-02-20 13:44:37,064: DEBUG - + echo 'Installation of N - Node.js version management'
2020-02-20 13:44:37,064: DEBUG - + mkdir -p ../conf
2020-02-20 13:44:37,064: DEBUG - + echo 'SOURCE_URL=https://github.com/tj/n/archive/v2.1.7.tar.gz
2020-02-20 13:44:37,064: DEBUG - SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f'
2020-02-20 13:44:37,064: DEBUG - + ynh_setup_source --dest_dir=/opt/node_n/git --source_id=n
2020-02-20 13:44:37,064: DEBUG - + local legacy_args=ds
2020-02-20 13:44:37,065: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2020-02-20 13:44:37,065: DEBUG - + declare -Ar args_array
2020-02-20 13:44:37,065: DEBUG - + local dest_dir
2020-02-20 13:44:37,065: DEBUG - + local source_id
2020-02-20 13:44:37,065: DEBUG - + ynh_handle_getopts_args --dest_dir=/opt/node_n/git --source_id=n
2020-02-20 13:44:37,065: DEBUG - + set +x
2020-02-20 13:44:37,065: DEBUG - + source_id=n
2020-02-20 13:44:37,065: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,065: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src ']'
2020-02-20 13:44:37,065: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,066: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,066: DEBUG - + local src_url=https://github.com/tj/n/archive/v2.1.7.tar.gz
2020-02-20 13:44:37,066: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,066: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,066: DEBUG - + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
2020-02-20 13:44:37,066: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,066: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,066: DEBUG - + local src_sumprg=
2020-02-20 13:44:37,066: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,066: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,067: DEBUG - + local src_format=
2020-02-20 13:44:37,067: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,067: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,067: DEBUG - + local src_extract=
2020-02-20 13:44:37,067: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,067: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,067: DEBUG - + local src_in_subdir=
2020-02-20 13:44:37,067: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../conf/n.src
2020-02-20 13:44:37,067: DEBUG - ++ cut -d= -f2-
2020-02-20 13:44:37,067: DEBUG - + local src_filename=
2020-02-20 13:44:37,067: DEBUG - + src_sumprg=sha256sum
2020-02-20 13:44:37,068: DEBUG - + src_in_subdir=true
2020-02-20 13:44:37,068: DEBUG - + src_format=tar.gz
2020-02-20 13:44:37,068: DEBUG - ++ echo tar.gz
2020-02-20 13:44:37,068: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-02-20 13:44:37,068: DEBUG - + src_format=tar.gz
2020-02-20 13:44:37,068: DEBUG - + src_extract=true
2020-02-20 13:44:37,068: DEBUG - + '[' '' = '' ']'
2020-02-20 13:44:37,068: DEBUG - + src_filename=n.tar.gz
2020-02-20 13:44:37,068: DEBUG - + local local_src=/opt/yunohost-apps-src/kresus/n.tar.gz
2020-02-20 13:44:37,068: DEBUG - + test -e /opt/yunohost-apps-src/kresus/n.tar.gz
2020-02-20 13:44:37,069: DEBUG - ++ wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
2020-02-20 13:44:37,770: DEBUG - + local 'out=2020-02-20 13:44:37 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]'
2020-02-20 13:44:37,770: DEBUG - + echo '2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz'
2020-02-20 13:44:37,770: DEBUG - + sha256sum -c --status
2020-02-20 13:44:37,770: DEBUG - + mkdir -p /opt/node_n/git
2020-02-20 13:44:37,770: DEBUG - + true
2020-02-20 13:44:37,771: DEBUG - + '[' tar.gz = zip ']'
2020-02-20 13:44:37,771: DEBUG - + local strip=
2020-02-20 13:44:37,771: DEBUG - + '[' true '!=' false ']'
2020-02-20 13:44:37,771: DEBUG - + '[' true == true ']'
2020-02-20 13:44:37,771: DEBUG - + local sub_dirs=1
2020-02-20 13:44:37,771: DEBUG - + strip='--strip-components 1'
2020-02-20 13:44:37,771: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-02-20 13:44:37,771: DEBUG - + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
2020-02-20 13:44:37,872: DEBUG - ++ find /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../sources/patches/ -type f -name 'n-*.patch'
2020-02-20 13:44:37,872: DEBUG - ++ wc -l
2020-02-20 13:44:37,872: DEBUG - + ((  0 > 0  ))
2020-02-20 13:44:37,872: DEBUG - + test -e /var/cache/yunohost/from_file/kresus_ynh-a78bfe6b890bd6d69fd9ef6d64324f2138bbf7c9/scripts/../sources/extra_files/n
2020-02-20 13:44:37,872: DEBUG - + cd /opt/node_n/git
2020-02-20 13:44:37,872: DEBUG - + PREFIX=/opt/node_n
2020-02-20 13:44:37,873: DEBUG - + make install
2020-02-20 13:44:37,873: DEBUG - mkdir -p /opt/node_n/bin/
2020-02-20 13:44:37,873: DEBUG - cp bin/n /opt/node_n/bin/n
2020-02-20 13:44:37,873: DEBUG - + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
2020-02-20 13:44:37,873: DEBUG - + local legacy_args=mrf
2020-02-20 13:44:37,873: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-02-20 13:44:37,873: DEBUG - + declare -Ar args_array
2020-02-20 13:44:37,873: DEBUG - + local match_string
2020-02-20 13:44:37,874: DEBUG - + local replace_string
2020-02-20 13:44:37,874: DEBUG - + local target_file
2020-02-20 13:44:37,874: DEBUG - + ynh_handle_getopts_args '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
2020-02-20 13:44:37,874: DEBUG - + set +x
2020-02-20 13:44:37,874: DEBUG - + local delimit=@
2020-02-20 13:44:37,874: DEBUG - + match_string='^N_PREFIX=${N_PREFIX-.*}$'
2020-02-20 13:44:37,874: DEBUG - + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
2020-02-20 13:44:37,874: DEBUG - + sudo sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
2020-02-20 13:44:37,875: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:37,875: DEBUG - + test -x /usr/bin/node_n
2020-02-20 13:44:37,875: DEBUG - + mv /usr/bin/node_n /usr/bin/node
2020-02-20 13:44:37,875: DEBUG - + test -x /usr/bin/npm_n
2020-02-20 13:44:37,875: DEBUG - + mv /usr/bin/npm_n /usr/bin/npm
2020-02-20 13:44:37,875: DEBUG - ++ uname -m
2020-02-20 13:44:37,875: DEBUG - + uname=x86_64
2020-02-20 13:44:37,875: DEBUG - + [[ x86_64 =~ aarch64 ]]
2020-02-20 13:44:37,875: DEBUG - + [[ x86_64 =~ arm64 ]]
2020-02-20 13:44:37,876: DEBUG - + n 10
2020-02-20 13:44:38,076: DEBUG - 
2020-02-20 13:44:38,076: DEBUG -   �[36m   install�[0m : �[2mnode-v10.19.0�[22m�[0m
2020-02-20 13:44:38,077: DEBUG -   �[36m     mkdir�[0m : �[2m/opt/node_n/n/versions/node/10.19.0�[22m�[0m
2020-02-20 13:44:38,177: DEBUG -   �[36m     fetch�[0m : �[2mhttps://nodejs.org/dist/v10.19.0/node-v10.19.0-linux-x64.tar.gz�[22m�[0m
2020-02-20 13:44:40,185: WARNING - 
###                                                                        4,5%
#######                                                                    9,9%
##########                                                                15,0%
###############                                                           21,7%
###################                                                       27,2%
#######################                                                   32,7%
###########################                                               38,1%
##############################                                            43,0%
##################################                                        47,7%
######################################                                    53,2%
#########################################                                 57,8%
#############################################                             63,2%
#################################################                         68,7%
#####################################################                     74,1%
########################################################                  78,0%
############################################################              83,4%
###############################################################           88,7%
###################################################################       94,2%
######################################################################## 100,0%
2020-02-20 13:44:41,388: DEBUG -   �[36m installed�[0m : �[2mv10.19.0�[22m�[0m
2020-02-20 13:44:41,388: DEBUG - 
2020-02-20 13:44:41,388: DEBUG - ++ sort --version-sort
2020-02-20 13:44:41,388: DEBUG - ++ find /opt/node_n/n/versions/node/10.19.0 -maxdepth 0
2020-02-20 13:44:41,389: DEBUG - ++ tail --lines=1
2020-02-20 13:44:41,389: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/10.19.0
2020-02-20 13:44:41,389: DEBUG - ++ basename /opt/node_n/n/versions/node/10.19.0
2020-02-20 13:44:41,389: DEBUG - + real_nodejs_version=10.19.0
2020-02-20 13:44:41,389: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/10 ']'
2020-02-20 13:44:41,389: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/10.19.0 /opt/node_n/n/versions/node/10
2020-02-20 13:44:41,390: DEBUG - + echo kresus:10
2020-02-20 13:44:41,390: DEBUG - + tee --append /opt/node_n/ynh_app_version
2020-02-20 13:44:41,390: DEBUG - kresus:10
2020-02-20 13:44:41,390: DEBUG - + ynh_app_setting_set --app=kresus --key=nodejs_version --value=10
2020-02-20 13:44:41,390: DEBUG - + local legacy_args=akv
2020-02-20 13:44:41,390: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-02-20 13:44:41,390: DEBUG - + declare -Ar args_array
2020-02-20 13:44:41,390: DEBUG - + local app
2020-02-20 13:44:41,391: DEBUG - + local key
2020-02-20 13:44:41,391: DEBUG - + local value
2020-02-20 13:44:41,391: DEBUG - + ynh_handle_getopts_args --app=kresus --key=nodejs_version --value=10
2020-02-20 13:44:41,391: DEBUG - + set +x
2020-02-20 13:44:41,391: DEBUG - + ynh_app_setting set kresus nodejs_version 10
2020-02-20 13:44:41,391: DEBUG - + ACTION=set
2020-02-20 13:44:41,391: DEBUG - + APP=kresus
2020-02-20 13:44:41,392: DEBUG - + KEY=nodejs_version
2020-02-20 13:44:41,392: DEBUG - + VALUE=10
2020-02-20 13:44:41,392: DEBUG - + python -
2020-02-20 13:44:41,492: DEBUG - + ynh_cron_upgrade_node
2020-02-20 13:44:41,493: DEBUG - + cat
2020-02-20 13:44:41,493: DEBUG - + chmod +x /opt/node_n/node_update.sh
2020-02-20 13:44:41,493: DEBUG - + cat
2020-02-20 13:44:41,493: DEBUG - + chmod +x /etc/cron.daily/node_update
2020-02-20 13:44:41,493: DEBUG - + ynh_use_nodejs
2020-02-20 13:44:41,493: DEBUG - ++ ynh_app_setting_get --app=kresus --key=**********
2020-02-20 13:44:41,493: DEBUG - ++ local legacy_args=ak
2020-02-20 13:44:41,493: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-02-20 13:44:41,493: DEBUG - ++ declare -Ar args_array
2020-02-20 13:44:41,494: DEBUG - ++ local app
2020-02-20 13:44:41,494: DEBUG - ++ local key
2020-02-20 13:44:41,494: DEBUG - ++ ynh_handle_getopts_args --app=kresus --key=**********
2020-02-20 13:44:41,494: DEBUG - ++ set +x
2020-02-20 13:44:41,494: DEBUG - ++ ynh_app_setting get kresus **********
2020-02-20 13:44:41,494: DEBUG - ++ ACTION=get
2020-02-20 13:44:41,494: DEBUG - ++ APP=kresus
2020-02-20 13:44:41,494: DEBUG - ++ KEY=**********
2020-02-20 13:44:41,495: DEBUG - ++ VALUE=
2020-02-20 13:44:41,495: DEBUG - ++ python -
2020-02-20 13:44:41,595: DEBUG - + **********=10
2020-02-20 13:44:41,595: DEBUG - + nodejs_use_version='echo "Deprecated command, should be removed"'
2020-02-20 13:44:41,595: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/10/bin
2020-02-20 13:44:41,595: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\0\/\b\i\n* ]]
2020-02-20 13:44:41,596: DEBUG - + PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:41,596: DEBUG - + virtualenv --python=python3 --system-site-packages /var/www/kresus/venv
2020-02-20 13:44:43,399: DEBUG - Already using interpreter /usr/bin/python3
2020-02-20 13:44:43,399: DEBUG - Using base prefix '/usr'
2020-02-20 13:44:43,399: DEBUG - New python executable in /var/www/kresus/venv/bin/python3
2020-02-20 13:44:43,399: DEBUG - Also creating executable in /var/www/kresus/venv/bin/python
2020-02-20 13:44:48,412: DEBUG - Installing setuptools, pkg_resources, pip, wheel...done.
2020-02-20 13:44:48,412: DEBUG - + set +o nounset
2020-02-20 13:44:48,412: DEBUG - + source /var/www/kresus/venv/bin/activate
2020-02-20 13:44:48,413: DEBUG - ++ deactivate nondestructive
2020-02-20 13:44:48,413: DEBUG - ++ unset -f pydoc
2020-02-20 13:44:48,413: DEBUG - ++ '[' -z '' ']'
2020-02-20 13:44:48,413: DEBUG - ++ '[' -z '' ']'
2020-02-20 13:44:48,413: DEBUG - ++ '[' -n /bin/bash ']'
2020-02-20 13:44:48,413: DEBUG - ++ hash -r
2020-02-20 13:44:48,414: DEBUG - ++ '[' -z '' ']'
2020-02-20 13:44:48,414: DEBUG - ++ unset VIRTUAL_ENV
2020-02-20 13:44:48,414: DEBUG - ++ '[' '!' nondestructive = nondestructive ']'
2020-02-20 13:44:48,414: DEBUG - ++ VIRTUAL_ENV=/var/www/kresus/venv
2020-02-20 13:44:48,414: DEBUG - ++ export VIRTUAL_ENV
2020-02-20 13:44:48,414: DEBUG - ++ _OLD_VIRTUAL_PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:48,415: DEBUG - ++ PATH=/var/www/kresus/venv/bin:/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-02-20 13:44:48,415: DEBUG - ++ export PATH
2020-02-20 13:44:48,415: DEBUG - ++ '[' -z '' ']'
2020-02-20 13:44:48,415: DEBUG - ++ '[' -z '' ']'
2020-02-20 13:44:48,415: DEBUG - ++ _OLD_VIRTUAL_PS1=
2020-02-20 13:44:48,415: DEBUG - ++ '[' x '!=' x ']'
2020-02-20 13:44:48,416: DEBUG - +++ basename /var/www/kresus/venv
2020-02-20 13:44:48,416: DEBUG - ++ PS1='(venv) '
2020-02-20 13:44:48,416: DEBUG - ++ export PS1
2020-02-20 13:44:48,416: DEBUG - ++ alias pydoc
2020-02-20 13:44:48,416: DEBUG - ++ '[' -n /bin/bash ']'
2020-02-20 13:44:48,416: DEBUG - ++ hash -r
2020-02-20 13:44:48,417: DEBUG - + set -o nounset
2020-02-20 13:44:48,417: DEBUG - + pip install --upgrade pip
2020-02-20 13:44:49,018: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:50,020: DEBUG - Requirement already up-to-date: pip in /var/www/kresus/venv/lib/python3.5/site-packages (20.0.2)
2020-02-20 13:44:50,521: DEBUG - + pip install weboob html2text simplejson BeautifulSoup4 PyExecJS pdfminer
2020-02-20 13:44:50,922: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:44:51,424: DEBUG - Collecting weboob
2020-02-20 13:44:51,424: DEBUG -   Downloading weboob-2.0-py2.py3-none-any.whl (611 kB)
2020-02-20 13:44:51,725: DEBUG - Collecting html2text
2020-02-20 13:44:51,725: DEBUG -   Downloading html2text-2020.1.16-py3-none-any.whl (32 kB)
2020-02-20 13:44:51,926: DEBUG - Collecting simplejson
2020-02-20 13:44:52,026: DEBUG -   Downloading simplejson-3.17.0.tar.gz (83 kB)
2020-02-20 13:44:52,627: DEBUG - Requirement already satisfied: BeautifulSoup4 in /usr/lib/python3/dist-packages (4.5.3)
2020-02-20 13:44:52,728: DEBUG - Collecting PyExecJS
2020-02-20 13:44:52,728: DEBUG -   Downloading PyExecJS-1.5.1.tar.gz (13 kB)
2020-02-20 13:44:53,229: DEBUG - Collecting pdfminer
2020-02-20 13:44:53,230: DEBUG -   Downloading pdfminer-20191016.tar.gz (4.2 MB)
2020-02-20 13:44:54,632: DEBUG - Collecting unidecode
2020-02-20 13:44:54,633: DEBUG -   Downloading Unidecode-1.1.1-py2.py3-none-any.whl (238 kB)
2020-02-20 13:44:54,733: DEBUG - Requirement already satisfied: python-dateutil in /usr/lib/python3/dist-packages (from weboob) (2.5.3)
2020-02-20 13:44:54,833: DEBUG - Collecting cssselect
2020-02-20 13:44:54,834: DEBUG -   Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
2020-02-20 13:44:54,834: DEBUG - Requirement already satisfied: requests>=2.0.0 in /usr/lib/python3/dist-packages (from weboob) (2.12.4)
2020-02-20 13:44:54,934: DEBUG - Collecting Babel
2020-02-20 13:44:54,935: DEBUG -   Downloading Babel-2.8.0-py2.py3-none-any.whl (8.6 MB)
2020-02-20 13:44:56,437: DEBUG - Collecting PyYAML
2020-02-20 13:44:56,438: DEBUG -   Downloading PyYAML-5.3.tar.gz (268 kB)
2020-02-20 13:44:57,139: DEBUG - Requirement already satisfied: Pillow in /usr/local/lib/python3.5/dist-packages (from weboob) (6.2.1)
2020-02-20 13:44:57,139: DEBUG - Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from weboob) (3.7.1)
2020-02-20 13:44:57,139: DEBUG - Requirement already satisfied: six in /usr/lib/python3/dist-packages (from weboob) (1.10.0)
2020-02-20 13:44:57,440: DEBUG - Collecting pycryptodome
2020-02-20 13:44:57,440: DEBUG -   Downloading pycryptodome-3.9.6-cp35-cp35m-manylinux1_x86_64.whl (13.7 MB)
2020-02-20 13:44:59,344: DEBUG - Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3/dist-packages (from Babel->weboob) (2016.7)
2020-02-20 13:44:59,344: DEBUG - Building wheels for collected packages: simplejson, PyExecJS, pdfminer, PyYAML
2020-02-20 13:44:59,344: DEBUG -   Building wheel for simplejson (setup.py): started
2020-02-20 13:45:01,949: DEBUG -   Building wheel for simplejson (setup.py): finished with status 'done'
2020-02-20 13:45:01,949: DEBUG -   Created wheel for simplejson: filename=simplejson-3.17.0-cp35-cp35m-linux_x86_64.whl size=115675 sha256=7d6dc10f8ddc724ed2fc1ba035e208e9e67c12edd3f00756f6cd3d3f66b7a23a
2020-02-20 13:45:01,949: DEBUG -   Stored in directory: /root/.cache/pip/wheels/a0/be/35/ff5bcba1b2a600e3fd964678944e9ec568801c6b186208eac1
2020-02-20 13:45:01,949: DEBUG -   Building wheel for PyExecJS (setup.py): started
2020-02-20 13:45:02,451: DEBUG -   Building wheel for PyExecJS (setup.py): finished with status 'done'
2020-02-20 13:45:02,451: DEBUG -   Created wheel for PyExecJS: filename=PyExecJS-1.5.1-py3-none-any.whl size=14588 sha256=993026556926c5703a96f66ccee4b49928231dfa9ca40cdcbd718c35c55b1956
2020-02-20 13:45:02,451: DEBUG -   Stored in directory: /root/.cache/pip/wheels/5c/31/53/10d40bf679d7d93bdbe3e14d381e00de5b0fa6854ccea7bb41
2020-02-20 13:45:02,451: DEBUG -   Building wheel for pdfminer (setup.py): started
2020-02-20 13:45:27,794: DEBUG -   Building wheel for pdfminer (setup.py): finished with status 'done'
2020-02-20 13:45:27,794: DEBUG -   Created wheel for pdfminer: filename=pdfminer-20191016-py3-none-any.whl size=5447905 sha256=d53ef83c43264ea5c0f8c9828a53c919819a08a04ce2e1ac7de587d88e3f91ad
2020-02-20 13:45:27,794: DEBUG -   Stored in directory: /root/.cache/pip/wheels/9f/59/b5/09fcd391b937439da8402f3959d99577176ad357d5e50dcbc8
2020-02-20 13:45:27,794: DEBUG -   Building wheel for PyYAML (setup.py): started
2020-02-20 13:45:34,405: DEBUG -   Building wheel for PyYAML (setup.py): finished with status 'done'
2020-02-20 13:45:34,406: DEBUG -   Created wheel for PyYAML: filename=PyYAML-5.3-cp35-cp35m-linux_x86_64.whl size=382547 sha256=3768f74c0191e8dffec9ca0e5cb9d04cee18e2f3838d30bde961a8fd5cfb5978
2020-02-20 13:45:34,406: DEBUG -   Stored in directory: /root/.cache/pip/wheels/4d/28/ad/d9c3d2a22dbe17b0d7019bbe876af34feabf61a214973481e9
2020-02-20 13:45:34,406: DEBUG - Successfully built simplejson PyExecJS pdfminer PyYAML
2020-02-20 13:45:34,506: DEBUG - Installing collected packages: unidecode, cssselect, html2text, Babel, PyYAML, weboob, simplejson, PyExecJS, pycryptodome, pdfminer
2020-02-20 13:45:37,011: DEBUG - Successfully installed Babel-2.8.0 PyExecJS-1.5.1 PyYAML-5.3 cssselect-1.1.0 html2text-2020.1.16 pdfminer-20191016 pycryptodome-3.9.6 simplejson-3.17.0 unidecode-1.1.1 weboob-2.0
2020-02-20 13:45:37,211: DEBUG - + ynh_use_nodejs
2020-02-20 13:45:37,212: DEBUG - ++ ynh_app_setting_get --app=kresus --key=**********
2020-02-20 13:45:37,212: DEBUG - ++ local legacy_args=ak
2020-02-20 13:45:37,212: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-02-20 13:45:37,212: DEBUG - ++ declare -Ar args_array
2020-02-20 13:45:37,212: DEBUG - ++ local app
2020-02-20 13:45:37,213: DEBUG - ++ local key
2020-02-20 13:45:37,213: DEBUG - ++ ynh_handle_getopts_args --app=kresus --key=**********
2020-02-20 13:45:37,213: DEBUG - ++ set +x
2020-02-20 13:45:37,213: DEBUG - ++ ynh_app_setting get kresus **********
2020-02-20 13:45:37,213: DEBUG - ++ ACTION=get
2020-02-20 13:45:37,213: DEBUG - ++ APP=kresus
2020-02-20 13:45:37,214: DEBUG - ++ KEY=**********
2020-02-20 13:45:37,214: DEBUG - ++ VALUE=
2020-02-20 13:45:37,214: DEBUG - ++ python -
2020-02-20 13:45:37,314: DEBUG - + **********=10
2020-02-20 13:45:37,315: DEBUG - + nodejs_use_version='echo "Deprecated command, should be removed"'
2020-02-20 13:45:37,315: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/10/bin
2020-02-20 13:45:37,315: DEBUG - + [[ :/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\0\/\b\i\n* ]]
2020-02-20 13:45:37,315: DEBUG - + cd /var/www/kresus
2020-02-20 13:45:37,315: DEBUG - + chown -R kresus: /var/www/kresus
2020-02-20 13:45:37,416: DEBUG - + npm install --production --unsafe-perm
2020-02-20 13:45:46,231: WARNING - npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-02-20 13:45:47,133: WARNING - npm WARN deprecated [email protected]: Use uuid module instead
2020-02-20 13:45:48,536: WARNING - npm WARN deprecated [email protected]: no longer maintained
2020-02-20 13:45:52,243: WARNING - npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-02-20 13:45:52,444: WARNING - npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-02-20 13:45:54,748: WARNING - npm WARN deprecated [email protected]: This module has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version of hapi to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-02-20 13:45:54,749: WARNING - npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2020-02-20 13:45:56,252: WARNING - npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
2020-02-20 13:45:56,453: WARNING - npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-02-20 13:45:57,455: WARNING - npm WARN deprecated @types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
2020-02-20 13:46:06,070: DEBUG - 
2020-02-20 13:46:06,070: WARNING - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:46:06,071: DEBUG - > [email protected] install /var/www/kresus/node_modules/node-expat
2020-02-20 13:46:06,071: WARNING - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:46:06,071: DEBUG - > node-gyp rebuild
2020-02-20 13:46:06,071: DEBUG - 
2020-02-20 13:46:07,073: WARNING - /bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2020-02-20 13:46:07,074: WARNING - gyp: Call to 'node -e "require('nan')"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
2020-02-20 13:46:07,074: WARNING - gyp ERR! configure error
2020-02-20 13:46:07,075: WARNING - gyp ERR! stack Error: `gyp` failed with exit code: 1
2020-02-20 13:46:07,075: WARNING - gyp ERR! stack     at ChildProcess.onCpExit (/opt/node_n/n/versions/node/10.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
2020-02-20 13:46:07,075: WARNING - gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
2020-02-20 13:46:07,076: WARNING - gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
2020-02-20 13:46:07,076: WARNING - gyp ERR! System Linux 3.14.32-xxxx-grs-ipv6-64
2020-02-20 13:46:07,076: WARNING - gyp ERR! command "/opt/node_n/n/versions/node/10.19.0/bin/node" "/opt/node_n/n/versions/node/10.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-02-20 13:46:07,077: WARNING - gyp ERR! cwd /var/www/kresus/node_modules/node-expat
2020-02-20 13:46:07,077: WARNING - gyp ERR! node -v v10.19.0
2020-02-20 13:46:07,077: WARNING - gyp ERR! node-gyp -v v5.0.5
2020-02-20 13:46:07,078: WARNING - gyp ERR! not ok
2020-02-20 13:46:08,080: WARNING - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
2020-02-20 13:46:08,080: WARNING - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-02-20 13:46:08,081: WARNING - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/onchange/node_modules/chokidar/node_modules/fsevents):
2020-02-20 13:46:08,081: WARNING - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-02-20 13:46:08,082: WARNING - 
2020-02-20 13:46:08,182: WARNING - npm ERR! code ELIFECYCLE
2020-02-20 13:46:08,183: WARNING - npm ERR! errno 1
2020-02-20 13:46:08,183: WARNING - npm ERR! [email protected] install: `node-gyp rebuild`
2020-02-20 13:46:08,184: WARNING - npm ERR! Exit status 1
2020-02-20 13:46:08,184: WARNING - npm ERR!
2020-02-20 13:46:08,185: WARNING - npm ERR! Failed at the [email protected] install script.
2020-02-20 13:46:08,185: WARNING - npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-02-20 13:46:08,286: DEBUG - + ynh_exit_properly
2020-02-20 13:46:08,286: WARNING - 
2020-02-20 13:46:08,286: DEBUG - + local exit_code=1
2020-02-20 13:46:08,286: WARNING - npm ERR! A complete log of this run can be found in:
2020-02-20 13:46:08,286: DEBUG - + '[' 1 -eq 0 ']'
2020-02-20 13:46:08,287: WARNING - npm ERR!     /root/.npm/_logs/2020-02-20T12_46_08_197Z-debug.log
2020-02-20 13:46:08,287: DEBUG - + trap '' EXIT
2020-02-20 13:46:08,287: DEBUG - + set +eu
2020-02-20 13:46:08,287: DEBUG - + sleep 0.5
2020-02-20 13:46:08,788: DEBUG - + ynh_print_err '--message=!!\n  kresus'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-02-20 13:46:08,788: WARNING - �[91m�[1m[ERR]�[0m !!
2020-02-20 13:46:08,789: DEBUG - + local legacy_args=m
2020-02-20 13:46:08,789: WARNING -   kresus's script has encountered an error. Its execution was cancelled.
2020-02-20 13:46:08,789: DEBUG - + args_array=([m]=message=)
2020-02-20 13:46:08,789: WARNING - !!
2020-02-20 13:46:08,789: DEBUG - + declare -Ar args_array
2020-02-20 13:46:08,789: WARNING - 
2020-02-20 13:46:08,790: DEBUG - + local message
2020-02-20 13:46:08,790: DEBUG - + ynh_handle_getopts_args '--message=!!\n  kresus'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-02-20 13:46:08,790: DEBUG - + set +x
2020-02-20 13:46:08,790: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  kresus'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-02-20 13:46:08,790: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  kresus'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-02-20 13:46:08,790: DEBUG - + '[' api == cli ']'
2020-02-20 13:46:08,790: DEBUG - + type -t ynh_clean_setup
2020-02-20 13:46:08,790: DEBUG - + ynh_die
2020-02-20 13:46:08,790: DEBUG - + local legacy_args=mc
2020-02-20 13:46:08,790: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-02-20 13:46:08,791: DEBUG - + declare -Ar args_array
2020-02-20 13:46:08,791: DEBUG - + local message
2020-02-20 13:46:08,791: DEBUG - + local ret_code
2020-02-20 13:46:08,791: DEBUG - + ynh_handle_getopts_args
2020-02-20 13:46:08,791: DEBUG - + set +x
2020-02-20 13:46:08,791: DEBUG - + echo ''
2020-02-20 13:46:08,791: DEBUG - + exit 1

Potential outdated weboob version

Hi!

Thanks a lot for packaging Kresus, it's awesome!

I've just skimmed at the install script today, and I've seen weboob was installed from the pipy directory. I think the weboob authors don't release this often, so kresus users on YNH might get an outdated version of weboob.

Moreover, there are a few Python dependencies which might not be included by default and need to be installed by hand.

See the instructions the Dockerfile is using as an example of which python dependencies are needed, etc: https://github.com/bnjbvr/kresus/blob/master/docker/Dockerfile-stable#L4-L16
Then we have a script that clones/updates Weboob's source directory, then fetches all dependencies explicitly needed by weboob: https://github.com/bnjbvr/kresus/blob/master/docker/entrypoint.sh#L19-L35

Not sure if this is applicable to YNH. Hope this helps, though!

Keep up the good work!

Consider using NodeJS from the official repos

Hi,

nodejs (respectively nodejs-legacy) from the Debian packages is stuck at version 0.10 (for now, in jessie which is used by Yunohost) and will be at version 4 (in stretch, current Debian stable).

Latest Kresus release (0.12) requires Node v4, so it won't work out of the box with the jessie packages. Using the version from the backport could do the trick, but npm is not packaged in the backports :/

Next release of Kresus will require Node v6, which is the current LTS and which is not available either in jessie or stretch repos.

So, I think the best and safest option would be to use the official Node repos for the v6. This will install v6 which is the current LTS, compatible with both current and next release of Kresus. It will also install an updated npm.

Just keep in mind that this method will not work on ARMv6 hardware (Raspberry Pi 1).

cc @elvirolo

EDIT: Apparently, something is already available on YNH side to install Node: https://github.com/YunoHost-Apps/etherpad_mypads_ynh/blob/master/scripts/_common.sh#L98-L221.

Fail to upgrade to 0.16.0

Trying to upgrade kresus_ynh gives me:
The user kresus exists, please provide his password

This seems to be an issue with the database password:
sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql -tAc 'SELECT rolname FROM pg_roles WHERE rolname='\''kresus'\'';'

Full log here: https://paste.yunohost.org/raw/yosusuqija

Kresus has been updated to 0.14.0

Hi there! Kresus has just been updated (French blog post). I think a version bump is necessary, and it'd be nice if the YNH script could generate a salt option in the config.ini file (16+ random characters) to make it possible to export encrypted backups. Thanks and keep up the good work! 👍

Improve user experience after an upgrade

After resolving #57 (thanks ! 👍 ), Kresus upgrade is successful, but some things are confusing, as it can be seen in this topic : https://forum.yunohost.org/t/maj-kresus-kresus-update/11164/2

  • The mail sent at the end of the update has the subject "kresus was just installed".
    In the email body, it's however mentioned that "Kresus was updated!", but just after there is a message about beahvior of YNH when installing a new app.
    I suppose that the same template is used when installing or upgrading, but this is disturbing, even more with the behavior of the app described below.
    Would it be possible to have a two distinct email contents, regarding install and upgrade case?

  • After upgrading, when accessing to Kresus the first time, the "welcome page" is displayed (#/onboarding/) : https://framapic.org/n0llowULbqN1/DPkdAtZMhuQy.png
    Which leads us to believe that Kresus has been in fact reinstalled and that the data may be lost.
    After a click on "Administration", I arrived on the Kresus interface with all my data... ouf 😅
    Would it be possible to not display this page after an upgrade?

Fail to upgrade

I cannot upgrade kresus app from 0.13.3~ynh1 to 0.13.3~ynh2, it fails to create the python virtuenv as it is already existing:

58306 DEBUG + virtualenv --system-site-packages /var/www/kresus/venv
58908 DEBUG New python executable in /var/www/kresus/venv/bin/python2
58908 WARNING Traceback (most recent call last):
58909 DEBUG Not overwriting existing python script /var/www/kresus/venv/bin/python (you must use /var/www/kresus/venv/bin/python2)
58910 WARNING   File "/usr/lib/python3/dist-packages/virtualenv.py", line 2375, in <module>
58910 DEBUG Running virtualenv with interpreter /usr/bin/python2
58910 WARNING     main()
58910 WARNING   File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main
58911 WARNING     symlink=options.symlink)
58911 WARNING   File "/usr/lib/python3/dist-packages/virtualenv.py", line 946, in create_environment
58911 WARNING     site_packages=site_packages, clear=clear, symlink=symlink))
58911 WARNING   File "/usr/lib/python3/dist-packages/virtualenv.py", line 1417, in install_python
58912 WARNING     os.symlink(py_executable_base, full_pth)
58912 WARNING OSError: [Errno 17] File exists
59014 DEBUG + ynh_exit_properly
59014 DEBUG + local exit_code=1
59015 DEBUG + '[' 1 -eq 0 ']'
59015 DEBUG + trap '' EXIT
59015 DEBUG + set +eu
59015 DEBUG + sleep 0.5
59517 DEBUG + ynh_print_err '--message=!!\n  kresus'\''s script has encountered an error. Its execution was cancelled.\n!!'

I'm using yunohost version:

yunohost:
  repo: stable
  version: 3.6.4.3
yunohost-admin:
  repo: stable
  version: 3.6.4
moulinette:
  repo: stable
  version: 3.6.4
ssowat:
  repo: stable
  version: 3.6.4

Impossible to add a bank

I just installed Kresus in YunoHost and I am not able to connect any bank.
I tried my bank and a few random (with random login/password).
Each time I have the following message :

Votre banque utilise un module non supporté par Kresus (et Weboob) ou il manque une dépendance. Essayez de mettre à jour Weboob ou contactez un mainteneur.

I have no idea on how to update Weboob, so I contact a maintainer 🙂

Bug in sender's email address when an alert email is sent

When I receive an email alert from Kresus, everything is ok except the sender address which is __APP__@__domain__

Here is the source of one email :

Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: by wiphi.fr (Postfix, from userid 998)
	id 7A93F3E09D7; Fri, 27 Dec 2019 03:43:28 +0100 (CET)
Content-Type: text/plain; charset=utf-8
From: __APP__@__domain__
To: [email protected]
Subject: Kresus - Alert on balance amount
Message-ID: <d2b98b51-dfb5-c058-4cda-6a5d88ed0a83@__domain__>
Content-Transfer-Encoding: quoted-printable
Date: Fri, 27 Dec 2019 02:43:28 +0000
MIME-Version: 1.0
[...]

Upgrade to Kresus 0.16

Hello,
After a toot on mastodon, I hurried to update kresus.
2 errors:

Kresus is still working and my data are ok.

i'm using a virtual machine to use yunohost.

Thanks for your work

Update failed : pdfminer

Pdfminer can't be installed, because Python3 is in version 3.5.3 on Stretch, but it requires >=3.6.

It breaks the update.

Attention : [DEBUG]: WARNING - ERROR: Package 'pdfminer' requires a different Python: 3.5.3 not in '>=3.6'

[testing] Warning while removing the application

root@yunohost:/ynh-dev# yunohost app upgrade kresus -u https://github.com/YunoHost-Apps/kresus_ynh/tree/testing
Info: Now upgrading kresus...
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Backing up the app
Info: [##++................] > Installing app dependencies
Info: [####+...............] > Downloading app from sources
Info: [#####++.............] > Upgrading NGINX web server configuration...
Info: [#######+............] > Creating system user
Info: [########++..........] > Installing nodejs
Info: [##########+.........] > Installing weboob
^[[BInfo: [###########+........] > Installing app
Info: [############++......] > Creating systemd configuration
Info: [##############+.....] > Starting a systemd service...
Info: [###############++...] > Reloading NGINX web server...
Info: [####################] > Upgrade of kresus completed
Success! kresus upgraded
Success! Upgrade complete
root@yunohost:/ynh-dev# yunohost app remove kresus
Info: Removing kresus...
Info: [+++.................] > Removing systemd configuration
Info: [###+++..............] > Removing associated database
Warning: Database  not found
Warning: User  not found
Info: [######++++..........] > Removing dependencies
Info: '/usr/local/n' wasn't deleted because it doesn't exist.
Info: [##########+++.......] > Removing NGINX configuration
Info: [#############+++....] > Removing the dedicated system user...
Success! kresus removed

multiple operations reverted

few days ago, suddenly, some operations has been reverted, meaning that paying is nullified by another operation. Of course, it is not really the case.
v0.15.2~ynh4
Weboob v2.0
kresus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.