Install 'etherpad_mypads' => ynh_clean_check_starting : commande introuvable

Configuration de mon YunoHost

Matériel: la brique internet (lime 2)
Accès Internet: ethernet à la maison

YunoHost version:
yunohost:
repo: stable
version: 3.2.0
yunohost-admin:
repo: stable
version: 3.2.0
moulinette:
repo: stable
version: 3.2.0
ssowat:
repo: stable
version: 3.2.0

As tu modifié ton yunohost avec des configuration spécifiques ou bien utilise tu uniquement la web administration et/ou la ligne de commande yunohost ? basique

Description de mon problème

Bonjour !
Je n’arrive pas à installer etherpad, il semble que le script d’installation cherche une commande yunohost qui n’existe pas (plus?).
Des idées ?

Merci de votre aide !
Fabien

root@leap:/etc/yunohost# yunohost app install etherpad_mypads
Domaines disponibles :
- leap.nohost.me
Choisissez un domaine pour Etherpad Mypads. (default: leap.nohost.me) : 
Choisissez un chemin pour Etherpad (default: /pad) : 
Available users:
- fbataill
Administrateur du site (doit être un utilisateur YunoHost existant) : fbataill
Définissez le mot de passe administrateur (entre 8 et 30 caractères) : 
Choisissez la langue [en | fr] (default: en) : fr
Est-ce un site public ? [yes | no] (default: yes) : 
Utiliser abiword (~260Mo) ou libre office (~400Mo) (plus stable) pour étendre les possibilités d'export (pdf, doc) ? [none | abiword | libreoffice] (default: none) : 
Voulez-vous installer le plugin mypads ? [yes | no] (default: yes) : 
Voulez-vous utiliser ldap avec mypads ? [yes | no] (default: yes) : 
Attention : Installation of N - Node.js version management
Attention : 2018-09-16 11:34:48 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]
Attention : ERROR 1007 (HY000) at line 1: Can't create database 'etherpad_mypads'; database exists
Attention : !!
Attention :   etherpad_mypads's script has encountered an error. Its execution was cancelled.
Attention : !!
Attention : **./install: ligne 20: ynh_clean_check_starting : commande introuvable**
Attention : 
Info: The operation 'Install 'etherpad_mypads' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20180916-113410-app_install-etherpad_mypads --share'
Attention : /usr/local/n wasn't deleted because it doesn't exist.
Attention : Removing database etherpad_mypads
Attention : /var/www/etherpad_mypads wasn't deleted because it doesn't exist.
Attention : /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf wasn't deleted because it doesn't exist.
Attention : /etc/fail2ban/jail.d/etherpad_mypads.conf wasn't deleted because it doesn't exist.
Attention : /etc/fail2ban/filter.d/etherpad_mypads.conf wasn't deleted because it doesn't exist.
Attention : The user etherpad_mypads was not found
Succès ! La configuration de SSOwat a été générée
Erreur : The operation 'Install 'etherpad_mypads' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20180916-113410-app_install-etherpad_mypads --share'

Hello FabienBataille

Unfortunately, the current stable release doesn’t work.
You can try the testing branch if you want by using this command by CLI

sudo yunohost app install https://github.com/YunoHost-Apps/etherpad_mypads_ynh/tree/testing

Hello Maniak_Crudelis !

I have tried your command:

sudo yunohost app install https://github.com/YunoHost-Apps/etherpad_mypads_ynh/tree/testing

The script also ends in error, but this does not seems to be the same error:

args:
  app: https://github.com/YunoHost-Apps/etherpad_mypads_ynh/tree/testing
  args: null
  label: null
  no_remove_on_failure: false
ended_at: 2018-09-16 20:56:09.566148
env:
  YNH_APP_ARG_ADMIN: fbataill
  YNH_APP_ARG_DOMAIN: leap.nohost.me
  YNH_APP_ARG_EXPORT: none
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ARG_LANGUAGE: fr
  YNH_APP_ARG_MYPADS: 1
  YNH_APP_ARG_PASSWORD: "<masqué>"
  YNH_APP_ARG_PATH: /pad
  YNH_APP_ARG_USELDAP: 1
  YNH_APP_ID: etherpad_mypads
  YNH_APP_INSTANCE_NAME: etherpad_mypads
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts
  YNH_STDINFO: /tmp/tmpw_dwux/stdinfo
error: Une erreur inattendue est survenue
operation: app_install
related_to:
- - app
  - etherpad_mypads
started_at: 2018-09-16 20:29:43.437415
success: false

============

2018-09-16 20:29:44,230: DEBUG - Exécution de la commande « sh -c YNH_APP_ARG_EXPORT=none YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=fr YNH_APP_INSTANCE_NAME=etherpad_mypads YNH_STDINFO=/tmp/tmpw_dwux/stdinfo YNH_APP_ARG_USELDAP=1 YNH_APP_ARG_MYPADS=1 YNH_APP_ARG_PASSWORD='e[Ae[AeMaBriqueInternet' YNH_CWD=/var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_APP_ARG_ADMIN=fbataill YNH_APP_ID=etherpad_mypads YNH_APP_ARG_PATH=/pad YNH_APP_ARG_DOMAIN=leap.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" leap.nohost.me /pad fbataill 'e[Ae[AeMaBriqueInternet' fr 1 none 1 1 etherpad_mypads 7>&1 »...
2018-09-16 20:29:44,232: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_ARG_EXPORT=none YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=fr YNH_APP_INSTANCE_NAME=etherpad_mypads YNH_STDINFO=/tmp/tmpw_dwux/stdinfo YNH_APP_ARG_USELDAP=1 YNH_APP_ARG_MYPADS=1 YNH_APP_ARG_PASSWORD=\'\x1b[A\x1b[A\x1bMaBriqueInternet\' YNH_CWD=/var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_APP_ARG_ADMIN=fbataill YNH_APP_ID=etherpad_mypads YNH_APP_ARG_PATH=/pad YNH_APP_ARG_DOMAIN=leap.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" leap.nohost.me /pad fbataill \'\x1b[A\x1b[A\x1bMaBriqueInternet\' fr 1 none 1 1 etherpad_mypads 7>&1']'
2018-09-16 20:29:44,494: DEBUG - + source _common.sh
2018-09-16 20:29:44,497: DEBUG - + source /usr/share/yunohost/helpers
2018-09-16 20:29:44,500: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2018-09-16 20:29:44,501: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,503: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
2018-09-16 20:29:44,505: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2018-09-16 20:29:44,507: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,510: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
2018-09-16 20:29:44,512: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2018-09-16 20:29:44,514: DEBUG - +++ CAN_BIND=1
2018-09-16 20:29:44,515: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,517: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
2018-09-16 20:29:44,520: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2018-09-16 20:29:44,522: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,524: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2018-09-16 20:29:44,525: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2018-09-16 20:29:44,527: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2018-09-16 20:29:44,530: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,532: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2018-09-16 20:29:44,534: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2018-09-16 20:29:44,536: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,538: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2018-09-16 20:29:44,540: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2018-09-16 20:29:44,542: DEBUG - +++ n_install_dir=/opt/node_n
2018-09-16 20:29:44,544: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2018-09-16 20:29:44,546: DEBUG - +++ export N_PREFIX=/opt/node_n
2018-09-16 20:29:44,548: DEBUG - +++ N_PREFIX=/opt/node_n
2018-09-16 20:29:44,550: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,552: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
2018-09-16 20:29:44,554: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2018-09-16 20:29:44,555: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,557: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
2018-09-16 20:29:44,559: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2018-09-16 20:29:44,561: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,562: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
2018-09-16 20:29:44,564: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2018-09-16 20:29:44,566: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,567: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2018-09-16 20:29:44,570: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2018-09-16 20:29:44,573: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,575: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2018-09-16 20:29:44,577: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2018-09-16 20:29:44,579: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,580: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
2018-09-16 20:29:44,582: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2018-09-16 20:29:44,584: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,585: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2018-09-16 20:29:44,587: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2018-09-16 20:29:44,588: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-09-16 20:29:44,590: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2018-09-16 20:29:44,591: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2018-09-16 20:29:44,593: DEBUG - + source _variables
2018-09-16 20:29:44,595: DEBUG - ++ abiword_app_depencencies=abiword
2018-09-16 20:29:44,597: DEBUG - ++ libreoffice_app_dependencies='unoconv libreoffice-writer'
2018-09-16 20:29:44,599: DEBUG - ++ nodejs_version=6
2018-09-16 20:29:44,601: DEBUG - ++ mypads_version=1.6.2
2018-09-16 20:29:44,603: DEBUG - + ynh_abort_if_errors
2018-09-16 20:29:44,604: DEBUG - + set -eu
2018-09-16 20:29:44,606: DEBUG - + trap ynh_exit_properly EXIT
2018-09-16 20:29:44,607: DEBUG - + domain=leap.nohost.me
2018-09-16 20:29:44,609: DEBUG - + path_url=/pad
2018-09-16 20:29:44,612: DEBUG - + admin=fbataill
2018-09-16 20:29:44,614: DEBUG - + ynh_print_OFF
2018-09-16 20:29:44,616: DEBUG - + set +x
2018-09-16 20:29:44,620: DEBUG - + echo ynh_print_ON
2018-09-16 20:29:44,622: DEBUG - + language=fr
2018-09-16 20:29:44,624: DEBUG - + is_public=1
2018-09-16 20:29:44,627: DEBUG - + export=none
2018-09-16 20:29:44,629: DEBUG - + mypads=1
2018-09-16 20:29:44,630: DEBUG - + useldap=1
2018-09-16 20:29:44,632: DEBUG - + app=etherpad_mypads
2018-09-16 20:29:44,634: DEBUG - + ynh_print_OFF
2018-09-16 20:29:44,636: DEBUG - + set +x
2018-09-16 20:29:44,639: DEBUG - + echo ynh_print_ON
2018-09-16 20:29:44,641: DEBUG - + final_path=/var/www/etherpad_mypads
2018-09-16 20:29:44,643: DEBUG - + test '!' -e /var/www/etherpad_mypads
2018-09-16 20:29:44,644: DEBUG - ++ ynh_normalize_url_path /pad
2018-09-16 20:29:44,646: DEBUG - ++ local path_url=/pad
2018-09-16 20:29:44,648: DEBUG - ++ test -n /pad
2018-09-16 20:29:44,650: DEBUG - ++ '[' / '!=' / ']'
2018-09-16 20:29:44,652: DEBUG - ++ '[' d == / ']'
2018-09-16 20:29:44,654: DEBUG - ++ echo /pad
2018-09-16 20:29:44,656: DEBUG - + path_url=/pad
2018-09-16 20:29:44,657: DEBUG - + ynh_webpath_available leap.nohost.me /pad
2018-09-16 20:29:44,659: DEBUG - + local domain=leap.nohost.me
2018-09-16 20:29:44,661: DEBUG - + local path=/pad
2018-09-16 20:29:44,663: DEBUG - + sudo yunohost domain url-available leap.nohost.me /pad
2018-09-16 20:29:47,377: DEBUG - True
2018-09-16 20:29:47,484: DEBUG - + ynh_webpath_register etherpad_mypads leap.nohost.me /pad
2018-09-16 20:29:47,486: DEBUG - + local app=etherpad_mypads
2018-09-16 20:29:47,494: DEBUG - + local domain=leap.nohost.me
2018-09-16 20:29:47,496: DEBUG - + local path=/pad
2018-09-16 20:29:47,497: DEBUG - + sudo yunohost app register-url etherpad_mypads leap.nohost.me /pad
2018-09-16 20:29:52,018: DEBUG - + ynh_app_setting_set etherpad_mypads domain leap.nohost.me
2018-09-16 20:29:52,020: DEBUG - + sudo yunohost app setting etherpad_mypads domain --value=leap.nohost.me --quiet
2018-09-16 20:29:54,332: DEBUG - + ynh_app_setting_set etherpad_mypads path /pad
2018-09-16 20:29:54,334: DEBUG - + sudo yunohost app setting etherpad_mypads path --value=/pad --quiet
2018-09-16 20:29:56,648: DEBUG - + ynh_app_setting_set etherpad_mypads admin fbataill
2018-09-16 20:29:56,650: DEBUG - + sudo yunohost app setting etherpad_mypads admin --value=fbataill --quiet
2018-09-16 20:29:59,063: DEBUG - + ynh_app_setting_set etherpad_mypads is_public 1
2018-09-16 20:29:59,067: DEBUG - + sudo yunohost app setting etherpad_mypads is_public --value=1 --quiet
2018-09-16 20:30:01,389: DEBUG - + ynh_print_OFF
2018-09-16 20:30:01,391: DEBUG - + set +x
2018-09-16 20:30:05,788: DEBUG - + echo ynh_print_ON
2018-09-16 20:30:05,790: DEBUG - + ynh_app_setting_set etherpad_mypads language fr
2018-09-16 20:30:05,792: DEBUG - + sudo yunohost app setting etherpad_mypads language --value=fr --quiet
2018-09-16 20:30:08,519: DEBUG - + ynh_app_setting_set etherpad_mypads export none
2018-09-16 20:30:08,521: DEBUG - + sudo yunohost app setting etherpad_mypads export --value=none --quiet
2018-09-16 20:30:11,140: DEBUG - + ynh_app_setting_set etherpad_mypads mypads 1
2018-09-16 20:30:11,142: DEBUG - + sudo yunohost app setting etherpad_mypads mypads --value=1 --quiet
2018-09-16 20:30:15,984: DEBUG - + ynh_app_setting_set etherpad_mypads useldap 1
2018-09-16 20:30:15,985: DEBUG - + sudo yunohost app setting etherpad_mypads useldap --value=1 --quiet
2018-09-16 20:30:27,190: DEBUG - + ynh_maintenance_mode_ON
2018-09-16 20:30:27,192: DEBUG - ++ date
2018-09-16 20:30:27,194: DEBUG - + echo '<!DOCTYPE html>
2018-09-16 20:30:27,196: DEBUG - <html>
2018-09-16 20:30:27,197: DEBUG - <head>
2018-09-16 20:30:27,204: DEBUG - <meta http-equiv=refresh content=3>
2018-09-16 20:30:27,206: DEBUG - <title>Your app etherpad_mypads is currently under maintenance!</title>
2018-09-16 20:30:27,213: DEBUG - <style>
2018-09-16 20:30:27,216: DEBUG - 	body {
2018-09-16 20:30:27,219: DEBUG - 		width: 70em;
2018-09-16 20:30:27,220: DEBUG - 		margin: 0 auto;
2018-09-16 20:30:27,223: DEBUG - 	}
2018-09-16 20:30:27,225: DEBUG - </style>
2018-09-16 20:30:27,226: DEBUG - </head>
2018-09-16 20:30:27,228: DEBUG - <body>
2018-09-16 20:30:27,230: DEBUG - <h1>Your app etherpad_mypads is currently under maintenance!</h1>
2018-09-16 20:30:27,232: DEBUG - <p>This app has been put under maintenance by your administrator at dimanche 16 septembre 2018, 20:30:27 (UTC+0200)</p>
2018-09-16 20:30:27,236: DEBUG - <p>Please wait until the maintenance operation is done. This page will be reloaded as soon as your app will be back.</p>
2018-09-16 20:30:27,238: DEBUG - 
2018-09-16 20:30:27,241: DEBUG - </body>
2018-09-16 20:30:27,243: DEBUG - </html>'
2018-09-16 20:30:27,245: DEBUG - + echo '# All request to the app will be redirected to /pad_maintenance and fall on the maintenance notice
2018-09-16 20:30:27,246: DEBUG - rewrite ^/pad/(.*)$ /pad_maintenance/? redirect;
2018-09-16 20:30:27,249: DEBUG - # Use another location, to not be in conflict with the original config file
2018-09-16 20:30:27,251: DEBUG - location /pad_maintenance/ {
2018-09-16 20:30:27,253: DEBUG - alias /var/www/html/ ;
2018-09-16 20:30:27,255: DEBUG - 
2018-09-16 20:30:27,256: DEBUG - try_files maintenance.etherpad_mypads.html =503;
2018-09-16 20:30:27,258: DEBUG - 
2018-09-16 20:30:27,260: DEBUG - # Include SSOWAT user panel.
2018-09-16 20:30:27,262: DEBUG - include conf.d/yunohost_panel.conf.inc;
2018-09-16 20:30:27,264: DEBUG - }'
2018-09-16 20:30:27,266: DEBUG - + systemctl reload nginx
2018-09-16 20:30:27,670: DEBUG - ++ ynh_find_port 9001
2018-09-16 20:30:27,672: DEBUG - ++ local port=9001
2018-09-16 20:30:27,674: DEBUG - ++ test -n 9001
2018-09-16 20:30:27,676: DEBUG - ++ netcat -z 127.0.0.1 9001
2018-09-16 20:30:27,677: DEBUG - ++ echo 9001
2018-09-16 20:30:27,691: DEBUG - + port=9001
2018-09-16 20:30:27,694: DEBUG - + ynh_app_setting_set etherpad_mypads port 9001
2018-09-16 20:30:27,706: DEBUG - + sudo yunohost app setting etherpad_mypads port --value=9001 --quiet
2018-09-16 20:30:30,220: DEBUG - + '[' none = abiword ']'
2018-09-16 20:30:30,222: DEBUG - + '[' none = libreoffice ']'
2018-09-16 20:30:30,225: DEBUG - + ynh_install_nodejs 6
2018-09-16 20:30:30,227: DEBUG - + nodejs_version=6
2018-09-16 20:30:31,292: DEBUG - + mkdir -p /opt/node_n
2018-09-16 20:30:31,403: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-09-16 20:30:31,405: WARNING - Installation of N - Node.js version management
2018-09-16 20:30:31,416: DEBUG - ++ sed s@/usr/local/bin:@@
2018-09-16 20:30:31,432: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-09-16 20:30:31,459: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2018-09-16 20:30:31,498: DEBUG - + test -x /usr/bin/node
2018-09-16 20:30:31,500: DEBUG - + test -x /usr/bin/npm
2018-09-16 20:30:31,501: DEBUG - ++ n --version
2018-09-16 20:30:31,518: DEBUG - + test
2018-09-16 20:30:31,550: DEBUG - + ynh_install_n
2018-09-16 20:30:31,551: DEBUG - + echo 'Installation of N - Node.js version management'
2018-09-16 20:30:31,552: DEBUG - + mkdir -p ../conf
2018-09-16 20:30:31,555: DEBUG - + echo 'SOURCE_URL=https://github.com/tj/n/archive/v2.1.7.tar.gz
2018-09-16 20:30:31,556: DEBUG - SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f'
2018-09-16 20:30:31,572: DEBUG - + ynh_setup_source /opt/node_n/git n
2018-09-16 20:30:31,590: DEBUG - + local dest_dir=/opt/node_n/git
2018-09-16 20:30:31,592: DEBUG - + local src_id=n
2018-09-16 20:30:31,594: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,595: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,597: DEBUG - + local src_url=https://github.com/tj/n/archive/v2.1.7.tar.gz
2018-09-16 20:30:31,598: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,599: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,701: DEBUG - + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
2018-09-16 20:30:31,703: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,704: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,706: DEBUG - + local src_sumprg=
2018-09-16 20:30:31,708: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,710: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,712: DEBUG - + local src_format=
2018-09-16 20:30:31,725: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,727: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,729: DEBUG - + local src_extract=
2018-09-16 20:30:31,730: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,732: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,738: DEBUG - + local src_in_subdir=
2018-09-16 20:30:31,842: DEBUG - ++ cut -d= -f2-
2018-09-16 20:30:31,844: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/n.src
2018-09-16 20:30:31,845: DEBUG - + local src_filename=
2018-09-16 20:30:31,847: DEBUG - + src_sumprg=sha256sum
2018-09-16 20:30:31,859: DEBUG - + src_in_subdir=true
2018-09-16 20:30:31,861: DEBUG - + src_format=tar.gz
2018-09-16 20:30:31,862: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2018-09-16 20:30:31,864: DEBUG - ++ echo tar.gz
2018-09-16 20:30:31,865: DEBUG - + src_format=tar.gz
2018-09-16 20:30:31,866: DEBUG - + src_extract=true
2018-09-16 20:30:31,878: DEBUG - + '[' '' = '' ']'
2018-09-16 20:30:31,880: DEBUG - + src_filename=n.tar.gz
2018-09-16 20:30:31,882: DEBUG - + local local_src=/opt/yunohost-apps-src/etherpad_mypads/n.tar.gz
2018-09-16 20:30:31,883: DEBUG - + test -e /opt/yunohost-apps-src/etherpad_mypads/n.tar.gz
2018-09-16 20:30:31,885: DEBUG - + wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
2018-09-16 20:30:33,192: DEBUG - + echo '2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz'
2018-09-16 20:30:33,194: WARNING - 2018-09-16 20:30:33 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]
2018-09-16 20:30:33,196: DEBUG - + sha256sum -c --status
2018-09-16 20:30:33,198: DEBUG - + mkdir -p /opt/node_n/git
2018-09-16 20:30:33,199: DEBUG - + true
2018-09-16 20:30:33,201: DEBUG - + '[' tar.gz = zip ']'
2018-09-16 20:30:33,202: DEBUG - + local strip=
2018-09-16 20:30:33,204: DEBUG - + true
2018-09-16 20:30:33,206: DEBUG - + strip='--strip-components 1'
2018-09-16 20:30:33,207: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2018-09-16 20:30:33,209: DEBUG - + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
2018-09-16 20:30:33,312: DEBUG - ++ find /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../sources/patches/ -type f -name 'n-*.patch'
2018-09-16 20:30:33,314: DEBUG - ++ wc -l
2018-09-16 20:30:33,315: DEBUG - + ((  0 > 0  ))
2018-09-16 20:30:33,317: DEBUG - + test -e /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../sources/extra_files/n
2018-09-16 20:30:33,324: DEBUG - + cd /opt/node_n/git
2018-09-16 20:30:33,326: DEBUG - + PREFIX=/opt/node_n
2018-09-16 20:30:33,329: DEBUG - + make install
2018-09-16 20:30:33,330: DEBUG - mkdir -p /opt/node_n/bin/
2018-09-16 20:30:33,333: DEBUG - cp bin/n /opt/node_n/bin/n
2018-09-16 20:30:33,435: DEBUG - + ynh_replace_string '^N_PREFIX=${N_PREFIX-.*}$' 'N_PREFIX=${N_PREFIX-/opt/node_n}' /opt/node_n/bin/n
2018-09-16 20:30:33,502: DEBUG - + local delimit=@
2018-09-16 20:30:33,504: DEBUG - + local 'match_string=^N_PREFIX=${N_PREFIX-.*}$'
2018-09-16 20:30:33,506: DEBUG - + local 'replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}'
2018-09-16 20:30:33,517: DEBUG - + local workfile=/opt/node_n/bin/n
2018-09-16 20:30:33,519: DEBUG - + match_string='^N_PREFIX=${N_PREFIX-.*}$'
2018-09-16 20:30:33,521: DEBUG - + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
2018-09-16 20:30:33,523: DEBUG - + sudo sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
2018-09-16 20:30:33,640: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-09-16 20:30:33,642: DEBUG - + test -x /usr/bin/node_n
2018-09-16 20:30:33,645: DEBUG - + test -x /usr/bin/npm_n
2018-09-16 20:30:33,646: DEBUG - + n 6
2018-09-16 20:30:34,176: DEBUG - 
2018-09-16 20:30:34,178: DEBUG -   e[36m   installe[0m : e[2mnode-v6.14.4e[22me[0m
2018-09-16 20:30:34,884: DEBUG -   e[36m     mkdire[0m : e[2m/opt/node_n/n/versions/node/6.14.4e[22me[0m
2018-09-16 20:30:34,886: DEBUG -   e[36m     fetche[0m : e[2mhttps://nodejs.org/dist/v6.14.4/node-v6.14.4-linux-armv7l.tar.gze[22me[0m
2018-09-16 20:30:43,884: WARNING - 
                                                                           0,7%
######                                                                     9,1%
############                                                              17,2%
#################                                                         24,8%
#######################                                                   33,2%
#############################                                             40,8%
###############################                                           43,1%
################################                                          45,0%
#################################                                         47,1%
###################################                                       49,1%
########################################                                  56,8%
############################################                              61,7%
##############################################                            64,3%
###############################################                           65,6%
################################################                          67,4%
##################################################                        69,5%
###################################################                       72,0%
#####################################################                     73,9%
######################################################                    75,3%
#######################################################                   77,2%
########################################################                  79,0%
##########################################################                80,8%
###########################################################               82,6%
#############################################################             84,9%
##############################################################            86,7%
###############################################################           88,5%
#################################################################         90,7%
##################################################################        92,6%
######################################################################## 100,0%
2018-09-16 20:31:04,801: DEBUG -   e[36m installede[0m : e[2mv6.14.4e[22me[0m
2018-09-16 20:31:04,803: DEBUG - 
2018-09-16 20:31:04,805: DEBUG - ++ sort --version-sort
2018-09-16 20:31:04,806: DEBUG - ++ tail --lines=1
2018-09-16 20:31:04,810: DEBUG - ++ find /opt/node_n/n/versions/node/6.14.4 -maxdepth 0
2018-09-16 20:31:04,813: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/6.14.4
2018-09-16 20:31:04,816: DEBUG - ++ basename /opt/node_n/n/versions/node/6.14.4
2018-09-16 20:31:04,918: DEBUG - + real_nodejs_version=6.14.4
2018-09-16 20:31:04,920: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/6 ']'
2018-09-16 20:31:04,921: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/6.14.4 /opt/node_n/n/versions/node/6
2018-09-16 20:31:06,328: DEBUG - + tee --append /opt/node_n/ynh_app_version
2018-09-16 20:31:09,754: DEBUG - + echo etherpad_mypads:6
2018-09-16 20:31:09,756: DEBUG - etherpad_mypads:6
2018-09-16 20:31:09,759: DEBUG - + ynh_app_setting_set etherpad_mypads nodejs_version 6
2018-09-16 20:31:09,761: DEBUG - + sudo yunohost app setting etherpad_mypads nodejs_version --value=6 --quiet
2018-09-16 20:31:12,399: DEBUG - + ynh_cron_upgrade_node
2018-09-16 20:31:12,401: DEBUG - + cat
2018-09-16 20:31:12,402: DEBUG - + chmod +x /opt/node_n/node_update.sh
2018-09-16 20:31:12,404: DEBUG - + cat
2018-09-16 20:31:12,406: DEBUG - + chmod +x /etc/cron.daily/node_update
2018-09-16 20:31:12,407: DEBUG - + ynh_use_nodejs
2018-09-16 20:31:12,409: DEBUG - ++ ynh_app_setting_get etherpad_mypads nodejs_version
2018-09-16 20:31:12,411: DEBUG - ++ sudo yunohost app setting etherpad_mypads nodejs_version --output-as plain --quiet
2018-09-16 20:31:15,125: DEBUG - + nodejs_version=6
2018-09-16 20:31:15,127: DEBUG - + nodejs_use_version='echo "Deprecated command, should be removed"'
2018-09-16 20:31:15,128: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/6/bin
2018-09-16 20:31:15,130: 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\/\6\/\b\i\n* ]]
2018-09-16 20:31:15,132: DEBUG - + PATH=/opt/node_n/n/versions/node/6/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-09-16 20:31:15,134: DEBUG - ++ ynh_sanitize_dbid etherpad_mypads
2018-09-16 20:31:15,136: DEBUG - ++ local dbid=etherpad_mypads
2018-09-16 20:31:15,137: DEBUG - ++ echo etherpad_mypads
2018-09-16 20:31:15,139: DEBUG - + db_name=etherpad_mypads
2018-09-16 20:31:15,141: DEBUG - + ynh_app_setting_set etherpad_mypads db_name etherpad_mypads
2018-09-16 20:31:15,142: DEBUG - + sudo yunohost app setting etherpad_mypads db_name --value=etherpad_mypads --quiet
2018-09-16 20:31:17,658: DEBUG - + ynh_mysql_setup_db etherpad_mypads etherpad_mypads
2018-09-16 20:31:17,660: DEBUG - + local db_user=etherpad_mypads
2018-09-16 20:31:17,663: DEBUG - + local db_name=etherpad_mypads
2018-09-16 20:31:17,665: DEBUG - ++ ynh_string_random
2018-09-16 20:31:17,667: DEBUG - ++ dd if=/dev/urandom bs=1 count=200
2018-09-16 20:31:17,669: DEBUG - ++ tr -c -d A-Za-z0-9
2018-09-16 20:31:17,671: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p'
2018-09-16 20:31:18,477: DEBUG - + local new_db_pwd=SVeIcjhkfp19drnVSLE4YiGf
2018-09-16 20:31:18,479: DEBUG - + db_pwd=SVeIcjhkfp19drnVSLE4YiGf
2018-09-16 20:31:18,480: DEBUG - + ynh_mysql_create_db etherpad_mypads etherpad_mypads SVeIcjhkfp19drnVSLE4YiGf
2018-09-16 20:31:18,482: DEBUG - + local db=etherpad_mypads
2018-09-16 20:31:18,484: DEBUG - + local 'sql=CREATE DATABASE etherpad_mypads;'
2018-09-16 20:31:18,486: DEBUG - + [[ 3 -gt 1 ]]
2018-09-16 20:31:18,488: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON etherpad_mypads.* TO '\''etherpad_mypads'\''@'\''localhost'\'''
2018-09-16 20:31:18,490: DEBUG - + [[ -n SVeIcjhkfp19drnVSLE4YiGf ]]
2018-09-16 20:31:18,492: DEBUG - + sql+=' IDENTIFIED BY '\''SVeIcjhkfp19drnVSLE4YiGf'\'''
2018-09-16 20:31:18,494: DEBUG - + sql+=' WITH GRANT OPTION;'
2018-09-16 20:31:18,496: DEBUG - + ynh_mysql_execute_as_root 'CREATE DATABASE etherpad_mypads; GRANT ALL PRIVILEGES ON etherpad_mypads.* TO '\''etherpad_mypads'\''@'\''localhost'\'' IDENTIFIED BY '\''SVeIcjhkfp19drnVSLE4YiGf'\'' WITH GRANT OPTION;'
2018-09-16 20:31:18,498: DEBUG - ++ sudo cat /etc/yunohost/mysql
2018-09-16 20:31:18,600: DEBUG - + ynh_mysql_connect_as root 4vcIq3sxRc ''
2018-09-16 20:31:18,604: DEBUG - + mysql -u root --password=4vcIq3sxRc -B ''
2018-09-16 20:31:25,029: DEBUG - + ynh_app_setting_set etherpad_mypads mysqlpwd SVeIcjhkfp19drnVSLE4YiGf
2018-09-16 20:31:25,031: DEBUG - + sudo yunohost app setting etherpad_mypads mysqlpwd --value=SVeIcjhkfp19drnVSLE4YiGf --quiet
2018-09-16 20:31:28,249: DEBUG - + ynh_app_setting_set etherpad_mypads final_path /var/www/etherpad_mypads
2018-09-16 20:31:28,264: DEBUG - + sudo yunohost app setting etherpad_mypads final_path --value=/var/www/etherpad_mypads --quiet
2018-09-16 20:31:30,697: DEBUG - + ynh_setup_source /var/www/etherpad_mypads
2018-09-16 20:31:30,699: DEBUG - + local dest_dir=/var/www/etherpad_mypads
2018-09-16 20:31:30,701: DEBUG - + local src_id=app
2018-09-16 20:31:30,712: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,714: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,716: DEBUG - + local src_url=https://github.com/ether/etherpad-lite/archive/1.7.0.tar.gz
2018-09-16 20:31:30,719: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,721: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,724: DEBUG - + local src_sum=71fe286cf3e8dc45b0b5963de54f2ff6
2018-09-16 20:31:30,726: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,728: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,730: DEBUG - + local src_sumprg=md5sum
2018-09-16 20:31:30,732: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,734: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,737: DEBUG - + local src_format=
2018-09-16 20:31:30,739: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,740: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,743: DEBUG - + local src_extract=
2018-09-16 20:31:30,745: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,748: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,750: DEBUG - + local src_in_subdir=true
2018-09-16 20:31:30,752: DEBUG - ++ cut -d= -f2-
2018-09-16 20:31:30,754: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../conf/app.src
2018-09-16 20:31:30,856: DEBUG - + local src_filename=
2018-09-16 20:31:30,858: DEBUG - + src_sumprg=md5sum
2018-09-16 20:31:30,859: DEBUG - + src_in_subdir=true
2018-09-16 20:31:30,860: DEBUG - + src_format=tar.gz
2018-09-16 20:31:30,861: DEBUG - ++ echo tar.gz
2018-09-16 20:31:30,863: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2018-09-16 20:31:30,864: DEBUG - + src_format=tar.gz
2018-09-16 20:31:30,865: DEBUG - + src_extract=true
2018-09-16 20:31:30,866: DEBUG - + '[' '' = '' ']'
2018-09-16 20:31:30,867: DEBUG - + src_filename=app.tar.gz
2018-09-16 20:31:30,869: DEBUG - + local local_src=/opt/yunohost-apps-src/etherpad_mypads/app.tar.gz
2018-09-16 20:31:30,870: DEBUG - + test -e /opt/yunohost-apps-src/etherpad_mypads/app.tar.gz
2018-09-16 20:31:30,872: DEBUG - + wget -nv -O app.tar.gz https://github.com/ether/etherpad-lite/archive/1.7.0.tar.gz
2018-09-16 20:31:39,005: DEBUG - + echo '71fe286cf3e8dc45b0b5963de54f2ff6 app.tar.gz'
2018-09-16 20:31:39,007: WARNING - 2018-09-16 20:31:38 URL:https://codeload.github.com/ether/etherpad-lite/tar.gz/1.7.0 [1234521] -> "app.tar.gz" [1]
2018-09-16 20:31:39,011: DEBUG - + md5sum -c --status
2018-09-16 20:31:39,915: DEBUG - + mkdir -p /var/www/etherpad_mypads
2018-09-16 20:31:39,917: DEBUG - + true
2018-09-16 20:31:39,919: DEBUG - + '[' tar.gz = zip ']'
2018-09-16 20:31:39,921: DEBUG - + local strip=
2018-09-16 20:31:39,925: DEBUG - + true
2018-09-16 20:31:39,927: DEBUG - + strip='--strip-components 1'
2018-09-16 20:31:39,929: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2018-09-16 20:31:39,931: DEBUG - + tar -xf app.tar.gz -C /var/www/etherpad_mypads --strip-components 1
2018-09-16 20:31:40,334: DEBUG - ++ find /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../sources/patches/ -type f -name 'app-*.patch'
2018-09-16 20:31:40,336: DEBUG - ++ wc -l
2018-09-16 20:31:40,343: DEBUG - + ((  0 > 0  ))
2018-09-16 20:31:40,351: DEBUG - + test -e /var/cache/yunohost/from_file/etherpad_mypads_ynh-testing/scripts/../sources/extra_files/app
2018-09-16 20:31:40,354: DEBUG - + '[' /pad '!=' / ']'
2018-09-16 20:31:40,356: DEBUG - + ynh_replace_string '^#sub_path_only' '' ../conf/nginx.conf
2018-09-16 20:31:40,359: DEBUG - + local delimit=@
2018-09-16 20:31:40,361: DEBUG - + local 'match_string=^#sub_path_only'
2018-09-16 20:31:40,363: DEBUG - + local replace_string=
2018-09-16 20:31:40,366: DEBUG - + local workfile=../conf/nginx.conf
2018-09-16 20:31:40,368: DEBUG - + match_string='^#sub_path_only'
2018-09-16 20:31:40,371: DEBUG - + replace_string=
2018-09-16 20:31:40,374: DEBUG - + sudo sed --in-place 's@^#sub_path_only@@g' ../conf/nginx.conf
2018-09-16 20:31:40,476: DEBUG - + ynh_replace_string __PATH__/ /pad/ ../conf/nginx.conf
2018-09-16 20:31:40,500: DEBUG - + local delimit=@
2018-09-16 20:31:40,529: DEBUG - + local match_string=__PATH__/
2018-09-16 20:31:40,531: DEBUG - + local replace_string=/pad/
2018-09-16 20:31:40,533: DEBUG - + local workfile=../conf/nginx.conf
2018-09-16 20:31:40,535: DEBUG - + match_string=__PATH__/
2018-09-16 20:31:40,536: DEBUG - + replace_string=/pad/
2018-09-16 20:31:40,538: DEBUG - + sudo sed --in-place s@__PATH__/@/pad/@g ../conf/nginx.conf
2018-09-16 20:31:40,651: DEBUG - + ynh_add_nginx_config
2018-09-16 20:31:40,653: DEBUG - + finalnginxconf=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:40,655: DEBUG - + local others_var=
2018-09-16 20:31:40,657: DEBUG - + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:40,659: DEBUG - + local file=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:40,661: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf
2018-09-16 20:31:40,663: DEBUG - ++ ynh_app_setting_get etherpad_mypads checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf
2018-09-16 20:31:40,665: DEBUG - ++ sudo yunohost app setting etherpad_mypads checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf --output-as plain --quiet
2018-09-16 20:31:43,078: DEBUG - + local checksum_value=
2018-09-16 20:31:43,348: DEBUG - + '[' -n '' ']'
2018-09-16 20:31:43,350: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,453: DEBUG - + test -n /pad
2018-09-16 20:31:43,455: DEBUG - + local path_url_slash_less=/pad
2018-09-16 20:31:43,456: DEBUG - + ynh_replace_string __PATH__/ /pad/ /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,458: DEBUG - + local delimit=@
2018-09-16 20:31:43,465: DEBUG - + local match_string=__PATH__/
2018-09-16 20:31:43,470: DEBUG - + local replace_string=/pad/
2018-09-16 20:31:43,472: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,484: DEBUG - + match_string=__PATH__/
2018-09-16 20:31:43,486: DEBUG - + replace_string=/pad/
2018-09-16 20:31:43,487: DEBUG - + sudo sed --in-place s@__PATH__/@/pad/@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,590: DEBUG - + ynh_replace_string __PATH__ /pad /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,592: DEBUG - + local delimit=@
2018-09-16 20:31:43,593: DEBUG - + local match_string=__PATH__
2018-09-16 20:31:43,595: DEBUG - + local replace_string=/pad
2018-09-16 20:31:43,596: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:43,598: DEBUG - + match_string=__PATH__
2018-09-16 20:31:43,600: DEBUG - + replace_string=/pad
2018-09-16 20:31:43,602: DEBUG - + sudo sed --in-place s@__PATH__@/pad@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,521: DEBUG - + test -n leap.nohost.me
2018-09-16 20:31:46,523: DEBUG - + ynh_replace_string __DOMAIN__ leap.nohost.me /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,525: DEBUG - + local delimit=@
2018-09-16 20:31:46,526: DEBUG - + local match_string=__DOMAIN__
2018-09-16 20:31:46,528: DEBUG - + local replace_string=leap.nohost.me
2018-09-16 20:31:46,530: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,531: DEBUG - + match_string=__DOMAIN__
2018-09-16 20:31:46,533: DEBUG - + replace_string=leap.nohost.me
2018-09-16 20:31:46,534: DEBUG - + sudo sed --in-place s@__DOMAIN__@leap.nohost.me@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,837: DEBUG - + test -n 9001
2018-09-16 20:31:46,839: DEBUG - + ynh_replace_string __PORT__ 9001 /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,840: DEBUG - + local delimit=@
2018-09-16 20:31:46,842: DEBUG - + local match_string=__PORT__
2018-09-16 20:31:46,845: DEBUG - + local replace_string=9001
2018-09-16 20:31:46,846: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:46,848: DEBUG - + match_string=__PORT__
2018-09-16 20:31:46,850: DEBUG - + replace_string=9001
2018-09-16 20:31:46,851: DEBUG - + sudo sed --in-place s@__PORT__@9001@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,063: DEBUG - + test -n etherpad_mypads
2018-09-16 20:31:47,065: DEBUG - + ynh_replace_string __NAME__ etherpad_mypads /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,066: DEBUG - + local delimit=@
2018-09-16 20:31:47,168: DEBUG - + local match_string=__NAME__
2018-09-16 20:31:47,170: DEBUG - + local replace_string=etherpad_mypads
2018-09-16 20:31:47,172: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,174: DEBUG - + match_string=__NAME__
2018-09-16 20:31:47,175: DEBUG - + replace_string=etherpad_mypads
2018-09-16 20:31:47,177: DEBUG - + sudo sed --in-place s@__NAME__@etherpad_mypads@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,280: DEBUG - + test -n /var/www/etherpad_mypads
2018-09-16 20:31:47,282: DEBUG - + ynh_replace_string __FINALPATH__ /var/www/etherpad_mypads /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,283: DEBUG - + local delimit=@
2018-09-16 20:31:47,285: DEBUG - + local match_string=__FINALPATH__
2018-09-16 20:31:47,286: DEBUG - + local replace_string=/var/www/etherpad_mypads
2018-09-16 20:31:47,298: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,300: DEBUG - + match_string=__FINALPATH__
2018-09-16 20:31:47,302: DEBUG - + replace_string=/var/www/etherpad_mypads
2018-09-16 20:31:47,303: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/etherpad_mypads@g /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,405: DEBUG - + '[' /pad '!=' / ']'
2018-09-16 20:31:47,407: DEBUG - + ynh_replace_string '^#sub_path_only' '' /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,409: DEBUG - + local delimit=@
2018-09-16 20:31:47,411: DEBUG - + local 'match_string=^#sub_path_only'
2018-09-16 20:31:47,412: DEBUG - + local replace_string=
2018-09-16 20:31:47,414: DEBUG - + local workfile=/etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,422: DEBUG - + match_string='^#sub_path_only'
2018-09-16 20:31:47,430: DEBUG - + replace_string=
2018-09-16 20:31:47,432: DEBUG - + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,645: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,646: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf
2018-09-16 20:31:47,648: DEBUG - ++ cut '-d ' -f1
2018-09-16 20:31:47,649: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/leap.nohost.me.d/etherpad_mypads.conf
2018-09-16 20:31:47,751: DEBUG - + ynh_app_setting_set etherpad_mypads checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf 70c2a9d232017ff152a751c08b8210ca
2018-09-16 20:31:47,754: DEBUG - + sudo yunohost app setting etherpad_mypads checksum__etc_nginx_conf.d_leap.nohost.me.d_etherpad_mypads.conf --value=70c2a9d232017ff152a751c08b8210ca --quiet
2018-09-16 20:31:51,178: DEBUG - + sudo systemctl reload nginx
2018-09-16 20:31:51,837: DEBUG - + ynh_system_user_create etherpad_mypads /var/www/etherpad_mypads
2018-09-16 20:31:51,839: DEBUG - + ynh_system_user_exists etherpad_mypads
2018-09-16 20:31:51,841: DEBUG - + getent passwd etherpad_mypads
2018-09-16 20:31:51,944: DEBUG - + '[' 2 -ge 2 ']'
2018-09-16 20:31:51,946: DEBUG - + local 'user_home_dir=-d /var/www/etherpad_mypads'
2018-09-16 20:31:51,947: DEBUG - + sudo useradd -d /var/www/etherpad_mypads --system --user-group etherpad_mypads --shell /usr/sbin/nologin
2018-09-16 20:32:44,975: DEBUG - + mkdir -p /var/log/etherpad_mypads
2018-09-16 20:32:44,978: DEBUG - + touch /var/log/etherpad_mypads/etherpad.log
2018-09-16 20:32:44,980: DEBUG - + install_log=/var/log/etherpad_mypads/installation.log
2018-09-16 20:32:44,982: DEBUG - + touch /var/log/etherpad_mypads/installation.log
2018-09-16 20:32:44,984: DEBUG - + chown etherpad_mypads -R /var/log/etherpad_mypads
2018-09-16 20:32:44,986: DEBUG - + ynh_use_logrotate
2018-09-16 20:32:44,988: DEBUG - + local 'customtee=tee -a'
2018-09-16 20:32:44,990: DEBUG - + local user_group=
2018-09-16 20:32:44,992: DEBUG - + '[' 0 -gt 0 ']'
2018-09-16 20:32:44,995: DEBUG - + '[' 0 -gt 1 ']'
2018-09-16 20:32:44,997: DEBUG - + '[' 0 -gt 0 ']'
2018-09-16 20:32:44,999: DEBUG - + local 'logfile=/var/log/etherpad_mypads/*.log'
2018-09-16 20:32:45,001: DEBUG - + local su_directive=
2018-09-16 20:32:45,003: DEBUG - + [[ -n '' ]]
2018-09-16 20:32:45,005: DEBUG - + cat
2018-09-16 20:32:45,006: DEBUG - ++ dirname '/var/log/etherpad_mypads/*.log'
2018-09-16 20:32:45,009: DEBUG - + sudo mkdir -p /var/log/etherpad_mypads
2018-09-16 20:32:45,212: DEBUG - + sudo tee -a /etc/logrotate.d/etherpad_mypads
2018-09-16 20:32:45,214: DEBUG - + cat etherpad_mypads-logrotate
2018-09-16 20:32:45,316: DEBUG - + ynh_use_nodejs
2018-09-16 20:32:45,319: DEBUG - ++ ynh_app_setting_get etherpad_mypads nodejs_version
2018-09-16 20:32:45,320: DEBUG - ++ sudo yunohost app setting etherpad_mypads nodejs_version --output-as plain --quiet
2018-09-16 20:32:47,734: DEBUG - + nodejs_version=6
2018-09-16 20:32:47,735: DEBUG - + nodejs_use_version='echo "Deprecated command, should be removed"'
2018-09-16 20:32:47,737: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/6/bin
2018-09-16 20:32:47,739: DEBUG - + [[ :/opt/node_n/n/versions/node/6/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\/\6\/\b\i\n* ]]
2018-09-16 20:32:47,741: DEBUG - + /var/www/etherpad_mypads/bin/installDeps.sh
2018-09-16 20:56:09,371: DEBUG - + ynh_exit_properly
2018-09-16 20:56:09,384: WARNING - !!
2018-09-16 20:56:09,386: DEBUG - + local exit_code=1
2018-09-16 20:56:09,388: WARNING -   etherpad_mypads's script has encountered an error. Its execution was cancelled.
2018-09-16 20:56:09,390: DEBUG - + '[' 1 -eq 0 ']'
2018-09-16 20:56:09,391: WARNING - !!
2018-09-16 20:56:09,394: DEBUG - + trap '' EXIT
2018-09-16 20:56:09,396: WARNING - 
2018-09-16 20:56:09,398: DEBUG - + set +eu
2018-09-16 20:56:09,400: DEBUG - + echo -e '!!\n  etherpad_mypads'\''s script has encountered an error. Its execution was cancelled.\n!!'
2018-09-16 20:56:09,401: DEBUG - + type -t ynh_clean_setup
2018-09-16 20:56:09,403: DEBUG - + ynh_clean_setup
2018-09-16 20:56:09,405: DEBUG - + ynh_clean_check_starting
2018-09-16 20:56:09,411: DEBUG - + kill -s 15
2018-09-16 20:56:09,413: DEBUG - kill : utilisation :kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
2018-09-16 20:56:09,415: DEBUG - + ynh_secure_remove ''
2018-09-16 20:56:09,417: DEBUG - + local path_to_remove=
2018-09-16 20:56:09,418: DEBUG - + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
2018-09-16 20:56:09,419: DEBUG - + [[  	/var/www 	/home/yunohost.app =~ '' ]]
2018-09-16 20:56:09,421: DEBUG - + echo 'Avoid deleting .'
2018-09-16 20:56:09,422: DEBUG - Avoid deleting .
2018-09-16 20:56:09,423: DEBUG - + ynh_die
2018-09-16 20:56:09,424: DEBUG - + echo ''
2018-09-16 20:56:09,426: DEBUG - + exit 1

Unfortunately, I can’t reproduce your error on my side.

Could you please check the log file /var/log/etherpad_mypads/installation.log ?

This is very light:

root@leap:/var/log/etherpad_mypads# cat installation.log 
Copy the settings template to settings.json...
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
Killed

It seems the process was killed by someone, perhaps after a timeout by /var/www/etherpad_mypads/bin/installDeps.sh ?
Unfortunately I do not have this script any more to check what’s inside.

That’s really strange !
Could you please check your file system ?

df -h

By the way, the testing branch will be merged in 3 days into the stable one.
So this fix will be available from the official apps list

root@leap:~# df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev               485M       0  485M   0% /dev
tmpfs              101M     11M   90M  11% /run
/dev/mmcblk0p1      29G    2,8G   25G  11% /
tmpfs              502M    4,0K  502M   1% /dev/shm
tmpfs              5,0M       0  5,0M   0% /run/lock
tmpfs              502M       0  502M   0% /sys/fs/cgroup
tmpfs              101M       0  101M   0% /run/user/0

I think /var/www/etherpad_mypads is deleted during the rollback after the issue happens.

Is there a way to add more verbosity into /var/www/etherpad_mypads/bin/installDeps.sh, to identify where happens the timeout (if any), and stop the rollback to avoid deleting the script ?

Hi

I have found installDeps.sh script in etherpad.org web site to look inside.

So in my log I can see the following echo:

echo "Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient."
(
  mkdir -p node_modules
  cd node_modules
  [ -e ep_etherpad-lite ] || ln -s ../src ep_etherpad-lite
  cd ep_etherpad-lite
  npm install --no-save --loglevel warn
) || {
  rm -rf node_modules
  exit 1
}

but not this one:

echo "Ensure jQuery is downloaded and up to date..."
DOWNLOAD_JQUERY="true"
NEEDED_VERSION="1.9.1"
if [ -f "src/static/js/jquery.js" ]; then
  if [ $(uname) = "SunOS" ]; then
    VERSION=$(head -n 3 src/static/js/jquery.js | ggrep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
  else
    VERSION=$(head -n 3 src/static/js/jquery.js | grep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
  fi

  if [ ${VERSION#v} = $NEEDED_VERSION ]; then
    DOWNLOAD_JQUERY="false"
  fi
fi

if [ $DOWNLOAD_JQUERY = "true" ]; then
  curl -lo src/static/js/jquery.js https://code.jquery.com/jquery-$NEEDED_VERSION.js || exit 1
fi

So I guess I am stuck in

npm install --no-save --loglevel warn

@Maniack_Crudelis could you change the --loglevel into --loglevel debug in the testing branch so that I can see what happens in this step ? Or indicate me how to do it myself by a fork

Thanks
Fabien

You can try the branch debug instead of testing which change the log level before using the script.

There’s also a way to ask to yunohost to not remove the app in case of failure of the install script. But you should really not using that unless you’re using a dedicated machine for your test !

Thanks @Maniack_Crudelis !

For now this is just test, I make regularly a full image backup of my SD card.
As you suggest could you indicate me how to ask yunohost not removing app ?

You can use the argument --no-remove-on-failure in your CLI command during the installation of a app.
Be careful however that the app will not be fully installed, so you can’t remove it. Nor you can reinstall it, unless you clean the broken install manually.

1 Like