Rainloop installation fails

,

I’m trying to install rainloop.

I tried several times, but I always get the same issue, and I don’t know how to solve it.

Here is the output:
root@mondomaine:~/log# yunohost app install rainloop --verbose
Téléchargement…
Extraction…
Terminé
Vérification des paquets requis…
Domaines disponibles :

  • mondomaine.tld
    Choisissez un domaine pour Rainloop (default: mondomaine.tld) : mondomaine.tld
    Choisissez un chemin pour Rainloop (default: /rainloop) :
    Est-ce une page publique ? [Yes | No] (default: No) :
    Choisissez un mot de passe fort pour l’administrateur ‘admin’ :
    Souhaitez-vous ajouter les utilisateurs YunoHost dans les suggestions de destinataires ? [Yes | No] (default: Yes) :
    Definir la langue par defaut [English | Francais] (default: English) :
    Erreur : Une erreur inattendue est survenue
    Exécution du script « /var/cache/yunohost/from_file/rainloop_ynh-2b0d91b22bdac5b3d7b304bbf0665c7246a837e0/scripts/remove »…
  • set -u
  • source /usr/share/yunohost/helpers
    +++ run-parts --list /usr/share/yunohost/helpers.d
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    ++ . /usr/share/yunohost/helpers.d/backend
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    ++ . /usr/share/yunohost/helpers.d/filesystem
    +++ CAN_BIND=1
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    ++ . /usr/share/yunohost/helpers.d/ip
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    ++ . /usr/share/yunohost/helpers.d/mysql
    +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    ++ . /usr/share/yunohost/helpers.d/network
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    ++ . /usr/share/yunohost/helpers.d/package
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    ++ . /usr/share/yunohost/helpers.d/print
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    ++ . /usr/share/yunohost/helpers.d/setting
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    ++ . /usr/share/yunohost/helpers.d/string
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    ++ . /usr/share/yunohost/helpers.d/system
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    ++ . /usr/share/yunohost/helpers.d/user
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    ++ . /usr/share/yunohost/helpers.d/utils
  • app=rainloop
    ++ ynh_app_setting_get rainloop domain
    ++ sudo yunohost app setting rainloop domain --output-as plain --quiet
  • domain=
  • REMOVE_BDD rainloop
  • db_user=rainloop
    ++ sudo cat /etc/yunohost/mysql
  • grep -q ‘^| rainloop’
  • mysqlshow -u root -p25xOxZSKFD
  • SECURE_REMOVE ‘/var/www/$app’
  • chaine=’/var/www/$app’
  • no_var=0
  • grep -q ‘$’
  • echo ‘/var/www/$app’
  • no_var=1
    ++ echo ‘/var/www/$app’
    ++ cut -d ‘$’ -f 2
  • global_var=app
    ++ expr app : ‘([A-Za-z0-9_]*)’
  • only_var=’$app’
    ++ eval ‘echo $app’
    +++ echo rainloop
  • real_var=rainloop
  • test -z rainloop
  • ‘[’ rainloop = / ‘]’
    ++ echo ‘/var/www/$app’
    ++ sed ‘s@$app@rainloop@’
  • chaine=/var/www/rainloop
  • echo /var/www/rainloop
  • grep -q ‘$’
  • ‘[’ 1 -eq 1 ‘]’
  • ‘[’ -e /var/www/rainloop ‘]’
  • return 0
  • REMOVE_NGINX_CONF
  • ‘[’ -e /etc/nginx/conf.d/.d/rainloop.conf ‘]’
  • REMOVE_FPM_CONF
  • ‘[’ -e /etc/php5/fpm/pool.d/rainloop.conf ‘]’
  • sudo gpg --batch --delete-key --yes Rainloop
    Attention : gpg: clef « Rainloop » introuvable : eof
    Attention : gpg: Rainloop: delete key failed: eof
  • sudo service php5-fpm reload
  • sudo service nginx reload
    Succès ! La configuration de SSOwat a été générée
    Erreur : Échec de l’installation
    root@mondomaine:~/log#

And the content of the log:

2017-08-11 18:59:07,037 INFO moulinette.actionsmap process - processing action [18045.1]: yunohost.app.install
2017-08-11 18:59:07,064 INFO yunohost.app _fetch_app_from_git - [18045.1] Téléchargement…
2017-08-11 18:59:08,112 INFO yunohost.app _extract_app_from_file - [18045.1] Extraction…
2017-08-11 18:59:08,132 INFO yunohost.app _extract_app_from_file - [18045.1] Terminé
2017-08-11 18:59:08,136 INFO yunohost.app check_manifest_requirements - [18045.1] Vérification des paquets requis…
2017-08-11 18:59:32,275 ERROR yunohost.app app_install - [18045.1] Une erreur inattendue est survenue
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/app.py”, line 729, in app_install
args=args_list, env=env_dict, user=“root”)
File “/usr/lib/moulinette/yunohost/hook.py”, line 350, in hook_exec
command.append(cmd.format(script=cmd_script, args=cmd_args))
ValueError: Single ‘}’ encountered in format string
2017-08-11 18:59:32,276 INFO yunohost.hook hook_exec - [18045.1] Exécution du script « /var/cache/yunohost/from_file/rainloop_ynh-2b0d91b22bdac5b3d7b304bbf0665c7246a837e0/scripts/remove »…
2017-08-11 18:59:32,301 INFO yunohost.hook - [18045.1] + set -u
2017-08-11 18:59:32,302 INFO yunohost.hook - [18045.1] + source /usr/share/yunohost/helpers
2017-08-11 18:59:32,302 INFO yunohost.hook - [18045.1] +++ run-parts --list /usr/share/yunohost/helpers.d
2017-08-11 18:59:32,303 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,303 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ']'
2017-08-11 18:59:32,303 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/backend
2017-08-11 18:59:32,304 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,304 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ']'
2017-08-11 18:59:32,304 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/filesystem
2017-08-11 18:59:32,305 INFO yunohost.hook - [18045.1] +++ CAN_BIND=1
2017-08-11 18:59:32,305 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,305 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ']'
2017-08-11 18:59:32,308 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/ip
2017-08-11 18:59:32,308 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,308 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ']'
2017-08-11 18:59:32,309 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/mysql
2017-08-11 18:59:32,309 INFO yunohost.hook - [18045.1] +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2017-08-11 18:59:32,309 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,309 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ']'
2017-08-11 18:59:32,310 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/network
2017-08-11 18:59:32,310 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,310 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ']'
2017-08-11 18:59:32,311 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/package
2017-08-11 18:59:32,311 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,311 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ']'
2017-08-11 18:59:32,312 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/print
2017-08-11 18:59:32,312 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,312 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ']'
2017-08-11 18:59:32,313 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/setting
2017-08-11 18:59:32,313 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,313 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ']'
2017-08-11 18:59:32,314 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/string
2017-08-11 18:59:32,314 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,314 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ']'
2017-08-11 18:59:32,314 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/system
2017-08-11 18:59:32,315 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,315 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ']'
2017-08-11 18:59:32,315 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/user
2017-08-11 18:59:32,315 INFO yunohost.hook - [18045.1] ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
2017-08-11 18:59:32,315 INFO yunohost.hook - [18045.1] ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ']'
2017-08-11 18:59:32,316 INFO yunohost.hook - [18045.1] ++ . /usr/share/yunohost/helpers.d/utils
2017-08-11 18:59:32,316 INFO yunohost.hook - [18045.1] + app=rainloop
2017-08-11 18:59:32,316 INFO yunohost.hook - [18045.1] ++ ynh_app_setting_get rainloop domain
2017-08-11 18:59:32,317 INFO yunohost.hook - [18045.1] ++ sudo yunohost app setting rainloop domain --output-as plain --quiet
2017-08-11 18:59:33,591 INFO moulinette.actionsmap process - processing action [18108.1]: yunohost.app.setting
2017-08-11 18:59:33,593 INFO yunohost.app app_setting - [18108.1] cannot get app setting ‘domain’ for 'rainloop’
2017-08-11 18:59:33,686 INFO yunohost.hook - [18045.1] + domain=
2017-08-11 18:59:33,686 INFO yunohost.hook - [18045.1] + REMOVE_BDD rainloop
2017-08-11 18:59:33,686 INFO yunohost.hook - [18045.1] + db_user=rainloop
2017-08-11 18:59:33,687 INFO yunohost.hook - [18045.1] ++ sudo cat /etc/yunohost/mysql
2017-08-11 18:59:33,687 INFO yunohost.hook - [18045.1] + grep -q '^| rainloop’
2017-08-11 18:59:33,706 INFO yunohost.hook - [18045.1] + mysqlshow -u root -p25xOxZSKFD
2017-08-11 18:59:33,712 INFO yunohost.hook - [18045.1] + SECURE_REMOVE ‘/var/www/$app’
2017-08-11 18:59:33,712 INFO yunohost.hook - [18045.1] + chaine=’/var/www/$app’
2017-08-11 18:59:33,712 INFO yunohost.hook - [18045.1] + no_var=0
2017-08-11 18:59:33,713 INFO yunohost.hook - [18045.1] + grep -q '$'
2017-08-11 18:59:33,713 INFO yunohost.hook - [18045.1] + echo '/var/www/$app’
2017-08-11 18:59:33,716 INFO yunohost.hook - [18045.1] + no_var=1
2017-08-11 18:59:33,718 INFO yunohost.hook - [18045.1] ++ echo '/var/www/$app’
2017-08-11 18:59:33,718 INFO yunohost.hook - [18045.1] ++ cut -d ‘$’ -f 2
2017-08-11 18:59:33,720 INFO yunohost.hook - [18045.1] + global_var=app
2017-08-11 18:59:33,721 INFO yunohost.hook - [18045.1] ++ expr app : '([A-Za-z0-9
]*)‘
2017-08-11 18:59:33,722 INFO yunohost.hook - [18045.1] + only_var=’$app’
2017-08-11 18:59:33,723 INFO yunohost.hook - [18045.1] ++ eval 'echo $app’
2017-08-11 18:59:33,723 INFO yunohost.hook - [18045.1] +++ echo rainloop
2017-08-11 18:59:33,724 INFO yunohost.hook - [18045.1] + real_var=rainloop
2017-08-11 18:59:33,725 INFO yunohost.hook - [18045.1] + test -z rainloop
2017-08-11 18:59:33,725 INFO yunohost.hook - [18045.1] + ‘[’ rainloop = / ']'
2017-08-11 18:59:33,725 INFO yunohost.hook - [18045.1] ++ sed 's@$app@rainloop@'
2017-08-11 18:59:33,726 INFO yunohost.hook - [18045.1] ++ echo '/var/www/$app’
2017-08-11 18:59:33,728 INFO yunohost.hook - [18045.1] + chaine=/var/www/rainloop
2017-08-11 18:59:33,729 INFO yunohost.hook - [18045.1] + echo /var/www/rainloop
2017-08-11 18:59:33,729 INFO yunohost.hook - [18045.1] + grep -q '$'
2017-08-11 18:59:33,731 INFO yunohost.hook - [18045.1] + ‘[’ 1 -eq 1 ']'
2017-08-11 18:59:33,731 INFO yunohost.hook - [18045.1] + ‘[’ -e /var/www/rainloop ']'
2017-08-11 18:59:33,732 INFO yunohost.hook - [18045.1] + return 0
2017-08-11 18:59:33,732 INFO yunohost.hook - [18045.1] + REMOVE_NGINX_CONF
2017-08-11 18:59:33,732 INFO yunohost.hook - [18045.1] + ‘[’ -e /etc/nginx/conf.d/.d/rainloop.conf ']'
2017-08-11 18:59:33,732 INFO yunohost.hook - [18045.1] + REMOVE_FPM_CONF
2017-08-11 18:59:33,733 INFO yunohost.hook - [18045.1] + ‘[’ -e /etc/php5/fpm/pool.d/rainloop.conf ']'
2017-08-11 18:59:33,733 INFO yunohost.hook - [18045.1] + sudo gpg --batch --delete-key --yes Rainloop
2017-08-11 18:59:33,750 WARNING yunohost.hook - [18045.1] gpg: clef « Rainloop » introuvable : eof
2017-08-11 18:59:33,751 WARNING yunohost.hook - [18045.1] gpg: Rainloop: delete key failed: eof
2017-08-11 18:59:33,754 INFO yunohost.hook - [18045.1] + sudo service php5-fpm reload
2017-08-11 18:59:33,805 INFO yunohost.hook - [18045.1] + sudo service nginx reload
2017-08-11 18:59:34,201 SUCCESS yunohost.app success - [18045.1] La configuration de SSOwat a été générée
2017-08-11 18:59:34,202 ERROR yunohost cli - Échec de l’installation
root@mondomaine:/var/log/yunohost#

What can I do to solve this issue ?

Very weird… Your log does not show anything useful
Can you try installing from https://github.com/YunoHost-Apps/rainloop_ynh ?

Thank you for your reply.

Indeed, I agree, nothing really usefull in the logs and output.

However, how do I install an application directly from GitHub ?

“yunohost app install https://github.com/YunoHost-Apps/rainloop_ynh --verbose”

gives exactly the same results…

:frowning:

What is your yunohost version ?

The very latest:

{
“host”: “Debian 8.9”,
“kernel”: “3.16.0-4-amd64”,
“packages”: {
“yunohost”: “2.6.5”,
“yunohost-admin”: “2.6.2”,
“moulinette”: “2.6.1”,
“ssowat”: “2.6.8”
},
“system”: {
“disks”: {
“sda2”: “Mounted on /boot, 236.3MiB (203.6MiB free)”,
“dm-2”: “Mounted on /home, 2.7TiB (2.7TiB free)”,
“dm-0”: “Mounted on /, 9.0GiB (5.0GiB free)”
},
“memory”: {
“ram”: “3.6GiB (2.9GiB free)”,
“swap”: “7.4GiB (7.4GiB free)”
}
},
“services”: {
“glances”: “running (enabled)”,
“nslcd”: “running (enabled)”,
“metronome”: “inactive (enabled)”,
“postfix”: “running (enabled)”,
“rspamd”: “running (enabled)”,
“yunohost-firewall”: “running (disabled)”,
“nginx”: “running (enabled)”,
“rmilter”: “running (enabled)”,
“slapd”: “running (enabled)”,
“dnsmasq”: “running (enabled)”,
“fail2ban”: “running (enabled)”,
“yunohost-api”: “running (enabled)”,
“mysql”: “running (enabled)”,
“avahi-daemon”: “running (enabled)”,
“dovecot”: “running (enabled)”,
“redis-server”: “running (enabled)”,
“php5-fpm”: “running (enabled)”,
“ssh”: “running (enabled)”
},
“applications”: {
“movim”: “Movim”,
“opensondage”: “OpenSondage”,
“wekan”: “Wekan”,
“wordpress”: “WordPress”,
“nextcloud”: “Nextcloud”
}
}

I tried to install other applications and was able to install EtherCalc.

However the installation of RoundCube fails the same way RainLoop does. With the same GPG key deletion errors.

Trying to install RoundCube:

localadm@domain:~$ sudo yunohost app install roundcube --verbose
Téléchargement…
Extraction…
Terminé
Vérification des paquets requis…
Domaines disponibles :

  • domain.tld
    Choisissez un domaine pour Roundcube (default: domain.tld) :
    Choisissez un chemin pour Roundcube (default: /webmail) :
    Installer le plugin de synchronisation CardDAV ? [0 | 1] (default: 0) : 1
    Exécution du script « /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/scripts/install »…
  • set -eu
  • app=roundcube
  • domain=domain.tld
  • path=/webmail
  • with_carddav=1
  • . ./_common.sh
    ++ VERSION=1.2.3
    ++ DEPS_PKG_NAME=roundcube-deps
    ++ ROUNDCUBE_SOURCE_SHA256=2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d
    ++ ROUNDCUBE_SOURCE_URL=https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz
    +++ cd …/
    +++ pwd
    ++ PKGDIR=/var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa
  • dbname=roundcube
  • dbuser=roundcube
  • . /usr/share/yunohost/helpers
    +++ run-parts --list /usr/share/yunohost/helpers.d
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    ++ . /usr/share/yunohost/helpers.d/backend
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    ++ . /usr/share/yunohost/helpers.d/filesystem
    +++ CAN_BIND=1
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    ++ . /usr/share/yunohost/helpers.d/ip
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    ++ . /usr/share/yunohost/helpers.d/mysql
    +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    ++ . /usr/share/yunohost/helpers.d/network
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    ++ . /usr/share/yunohost/helpers.d/package
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    ++ . /usr/share/yunohost/helpers.d/print
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    ++ . /usr/share/yunohost/helpers.d/setting
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    ++ . /usr/share/yunohost/helpers.d/string
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    ++ . /usr/share/yunohost/helpers.d/system
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    ++ . /usr/share/yunohost/helpers.d/user
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    ++ . /usr/share/yunohost/helpers.d/utils
  • sudo yunohost app checkurl domain.tld/webmail -a roundcube
    Attention : « yunohost app checkurl » est déprécié et sera bientôt supprimé
  • DESTDIR=/var/www/roundcube
  • [[ -d /var/www/roundcube ]]
  • grep -q -R jessie-backports /etc/apt/sources.list /etc/apt/sources.list.d
  • ynh_package_install_from_equivs …/conf/roundcube-deps.control
  • controlfile=…/conf/roundcube-deps.control
  • ynh_package_is_installed equivs
  • dpkg-query -W -f ‘${Status}’ equivs
  • grep -c ‘ok installed’
    ++ grep '^Package: ’ …/conf/roundcube-deps.control
    ++ cut '-d ’ -f 2
  • pkgname=roundcube-deps
    ++ grep '^Version: ’ …/conf/roundcube-deps.control
    ++ cut '-d ’ -f 2
  • pkgversion=1.2-1
  • [[ -z roundcube-deps ]]
  • [[ -z 1.2-1 ]]
  • ynh_package_update
  • ynh_apt update
  • DEBIAN_FRONTEND=noninteractive
  • sudo apt-get -y -qq update
    ++ mktemp -d
  • TMPDIR=/tmp/tmp.tqtJFbxNLt
  • cp …/conf/roundcube-deps.control /tmp/tmp.tqtJFbxNLt/control
  • cd /tmp/tmp.tqtJFbxNLt
  • equivs-build ./control
  • sudo dpkg --force-depends -i ./roundcube-deps_1.2-1_all.deb
    Sélection du paquet roundcube-deps précédemment désélectionné.
    (Lecture de la base de données… 51203 fichiers et répertoires déjà installés.)
    Préparation du dépaquetage de ./roundcube-deps_1.2-1_all.deb …
    Dépaquetage de roundcube-deps (1.2-1) …
    dpkg: roundcube-deps : problèmes de dépendances, mais configuration comme demandé :
    roundcube-deps dépend de php-mail-mime ; cependant :
    Le paquet php-mail-mime n’est pas installé.
    roundcube-deps dépend de php-patchwork-utf8 ; cependant :
    Le paquet php-patchwork-utf8 n’est pas installé.
    roundcube-deps dépend de php-net-smtp ; cependant :
    Le paquet php-net-smtp n’est pas installé.
    roundcube-deps dépend de php-net-socket ; cependant :
    Le paquet php-net-socket n’est pas installé.
    roundcube-deps dépend de php-net-ldap2 ; cependant :
    Le paquet php-net-ldap2 n’est pas installé.
    roundcube-deps dépend de php-net-ldap3 ; cependant :
    Le paquet php-net-ldap3 n’est pas installé.

Paramétrage de roundcube-deps (1.2-1) …

  • ynh_package_install -f
  • ynh_apt --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
  • DEBIAN_FRONTEND=noninteractive
  • sudo apt-get -y -qq --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
    [master 4f1a241] saving uncommitted changes in /etc prior to apt run
    1 file changed, 1 insertion(+), 1 deletion(-)
    Sélection du paquet php-mail-mime précédemment désélectionné.
    (Lecture de la base de données… 51207 fichiers et répertoires déjà installés.) de données…
    Préparation du dépaquetage de …/php-mail-mime_1.8.9-
    1+deb8u1_all.deb …
    Dépaquetage de php-mail-mime (1.8.9-1+deb8u1) …
    Sélection du paquet php-net-ldap2 précédemment désélectionné.
    Prép
    aration du dépaquetage de …/php-net-ldap2_2.0.12-1+deb8u1_all.deb …
    Dépaquetage de php-net-ldap2 (2.0.12-1+deb8u1) …
    Sélection du
    paquet php-net-ldap3 précédemment désélectionné.
    Préparation du dépaquetage de …/php-net-ldap3_1.0.3-1~bpo8+1_all.deb …
    Dépaquetage
    de php-net-ldap3 (1.0.3-1~bpo8+1) …
    Sélection du paquet php-net-socket précédemment désélectionné.
    Préparation du dépaquetage de …/p
    hp-net-socket_1.0.14-1_all.deb …
    Dépaquetage de php-net-socket (1.0.14-1) …
    Sélection du paquet php-net-smtp précédemment désélectio
    nné.
    Préparation du dépaquetage de …/php-net-smtp_1.6.2-2_all.deb …
    Dépaquetage de php-net-smtp (1.6.2-2) …
    Sélection du paquet php
    -patchwork-utf8 précédemment désélectionné.
    Préparation du dépaquetage de …/php-patchwork-utf8_1.1.25-1_all.deb …
    Dépaquetage de php
    -patchwork-utf8 (1.1.25-1) …
    Paramétrage de php-mail-mime (1.8.9-1+deb8u1) …
    Paramétrage de php-net-ldap2 (2.0.12-1+deb8u1) …
    Param
    étrage de php-net-ldap3 (1.0.3-1~bpo8+1) …
    Paramétrage de php-net-socket (1.0.14-1) …
    Paramétrage de php-net-smtp (1.6.2-2) …
    Param
    étrage de php-patchwork-utf8 (1.1.25-1) …
    + [[ -n /tmp/tmp.tqtJFbxNLt ]]
  • rm -rf /tmp/tmp.tqtJFbxNLt
  • ynh_package_is_installed roundcube-deps
  • grep -c ‘ok installed’
  • dpkg-query -W -f ‘${Status}’ roundcube-deps
    ++ ynh_mkdir_tmp
    Attention : The helper ynh_mkdir_tmp is deprecated.
    ++ echo ‘The helper ynh_mkdir_tmp is deprecated.’
    ++ echo ‘You should use ‘’‘mktemp -d’’’ instead and manage permissions properly with chmod/chown.'
    Attention : You should use ‘mktemp -d’ instead and manage permissions properly with chmod/chown.
    +++ mktemp -d
    ++ local TMP_DIR=/tmp/tmp.8emduumYNG
    ++ chmod 755 /tmp/tmp.8emduumYNG
    ++ echo /tmp/tmp.8emduumYNG
  • TMPDIR=/tmp/tmp.8emduumYNG
  • extract_roundcube /tmp/tmp.8emduumYNG
  • local DESTDIR=/tmp/tmp.8emduumYNG
  • rc_tarball=/tmp/tmp.8emduumYNG/roundcube.tar.gz
  • wget -q -O /tmp/tmp.8emduumYNG/roundcube.tar.gz https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2
    .3.tar.gz
  • echo ‘2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d /tmp/tmp.8emduumYNG/roundcube.tar.gz’
  • sha256sum -c
  • tar xf /tmp/tmp.8emduumYNG/roundcube.tar.gz -C /tmp/tmp.8emduumYNG --strip-components 1
  • rm /tmp/tmp.8emduumYNG/roundcube.tar.gz
  • cd /tmp/tmp.8emduumYNG
  • for p in ‘${PKGDIR}/patches/*.patch’
  • patch -p1
    patching file bin/installto.sh
    Hunk #2 succeeded at 38 with fuzz 1.
    Hunk #3 succeeded at 103 (offset 21 lines).
  • cp /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/sources/composer.json-dist /tmp/tmp.8emduumY
    NG/composer.json-dist
  • init_composer /tmp/tmp.8emduumYNG
  • local DESTDIR=/tmp/tmp.8emduumYNG
  • local AS_USER=admin
  • curl -sS https://getcomposer.org/installer
  • exec_as admin COMPOSER_HOME=/tmp/tmp.8emduumYNG/.composer php – --quiet --install-dir=/tmp/tmp.8emduumYNG
  • local USER=admin
  • shift 1
    ++ whoami
  • [[ admin = root ]]
  • sudo sudo -u admin COMPOSER_HOME=/tmp/tmp.8emduumYNG/.composer php – --quiet --install-dir=/tmp/tmp.8emduumYNG
    The installation directory “/tmp/tmp.8emduumYNG” is not writable
    Attention : Unable to install Composer
  • ynh_die ‘Unable to install Composer’
  • echo ‘Unable to install Composer’
  • exit 1
    Exécution du script « /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/scripts/remove »…
  • . ./_common.sh
    ++ VERSION=1.2.3
    ++ DEPS_PKG_NAME=roundcube-deps
    ++ ROUNDCUBE_SOURCE_SHA256=2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d
    ++ ROUNDCUBE_SOURCE_URL=https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz
    +++ cd …/
    +++ pwd
    ++ PKGDIR=/var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa
  • app=roundcube
  • dbname=roundcube
  • dbuser=roundcube
  • . /usr/share/yunohost/helpers
    +++ run-parts --list /usr/share/yunohost/helpers.d
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    ++ . /usr/share/yunohost/helpers.d/backend
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    ++ . /usr/share/yunohost/helpers.d/filesystem
    +++ CAN_BIND=1
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    ++ . /usr/share/yunohost/helpers.d/ip
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    ++ . /usr/share/yunohost/helpers.d/mysql
    +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    ++ . /usr/share/yunohost/helpers.d/network
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    ++ . /usr/share/yunohost/helpers.d/package
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    ++ . /usr/share/yunohost/helpers.d/print
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    ++ . /usr/share/yunohost/helpers.d/setting
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    ++ . /usr/share/yunohost/helpers.d/string
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    ++ . /usr/share/yunohost/helpers.d/system
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    ++ . /usr/share/yunohost/helpers.d/user
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    ++ . /usr/share/yunohost/helpers.d/utils
  • ynh_mysql_drop_db roundcube
  • ynh_mysql_execute_as_root ‘DROP DATABASE roundcube;’
    ++ sudo cat /etc/yunohost/mysql
  • ynh_mysql_connect_as root 25xOxZSKFD ‘’
  • mysql -u root --password=25xOxZSKFD -B ''
    ERROR 1008 (HY000) at line 1: Can’t drop database ‘roundcube’; database doesn’t exist
  • true
  • ynh_mysql_drop_user roundcube
  • ynh_mysql_execute_as_root ‘DROP USER ‘’‘roundcube’’’@’’‘localhost’’’;’
    ++ sudo cat /etc/yunohost/mysql
  • ynh_mysql_connect_as root 25xOxZSKFD ‘’
  • mysql -u root --password=25xOxZSKFD -B ''
    ERROR 1396 (HY000) at line 1: Operation DROP USER failed for ‘roundcube’@‘localhost’
  • true
    ++ ynh_app_setting_get roundcube domain
    ++ sudo yunohost app setting roundcube domain --output-as plain --quiet
  • domain=domain.tld
  • sudo rm -rf /var/www/roundcube
  • sudo rm -f /etc/php5/fpm/pool.d/roundcube.conf
  • [[ -n domain.tld ]]
  • sudo rm -f /etc/nginx/conf.d/domain.tld.d/roundcube.conf
  • sudo service php5-fpm restart
  • sudo service nginx reload
  • ynh_package_is_installed roundcube-deps
  • grep -c ‘ok installed’
  • dpkg-query -W -f ‘${Status}’ roundcube-deps
  • ynh_package_autoremove roundcube-deps
  • ynh_apt autoremove roundcube-deps
  • DEBIAN_FRONTEND=noninteractive
  • sudo apt-get -y -qq autoremove roundcube-deps
    (Lecture de la base de données… 51384 fichiers et répertoires déjà installés.)
    Suppression de roundcube-deps (1.2-1) …
    Suppression d
    e php-mail-mime (1.8.9-1+deb8u1) …
    Suppression de php-net-ldap3 (1.0.3-1~bpo8+1) …
    Suppression de php-net-ldap2 (2.0.12-1+deb8u1) …
    .
    Suppression de php-net-smtp (1.6.2-2) …
    Suppression de php-net-socket (1.0.14-1) …
    Suppression de php-patchwork-utf8 (1.1.25-1) …

Succès ! La configuration de SSOwat a été générée
Erreur : Échec de l’installation

Bonsoir @siphon et @scith ,

Firste make a backup, then

apt-get autoremove
[[ $(dpkg -l | grep ^rc) ]] && sudo dpkg -P $(dpkg -l | awk ‘/^rc/{print $2}’) || echo “pas de paquets à purger”

Source :
https://doc.ubuntu-fr.org/nettoyer_ubuntu#supprimer_les_fichiers_temporaires_des_fichiers_d_installation

Finally you can try to reinstall Rainloop because Roundcube is still bug.

ppr

Here you are:

root@mondomaine:~# apt-get -y autoremove
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
root@mondomaine:~# apt-get -y autoclean
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
root@mondomaine:~# [[ $(dpkg -l | grep ^rc) ]] && sudo dpkg -P $(dpkg -l | awk ‘/^rc/{print $2}’) || echo “pas de paquets à purger”
(Lecture de la base de données… 51202 fichiers et répertoires déjà installés.)
Suppression de exim4 (4.84.2-2+deb8u4) …
Purge des fichiers de configuration de exim4 (4.84.2-2+deb8u4) …
Suppression de exim4-base (4.84.2-2+deb8u4) …
Purge des fichiers de configuration de exim4-base (4.84.2-2+deb8u4) …
Suppression de exim4-config (4.84.2-2+deb8u4) …
Purge des fichiers de configuration de exim4-config (4.84.2-2+deb8u4) …
dpkg-statoverride : avertissement : pas de dérogation (« override ») présente
Suppression de exim4-daemon-light (4.84.2-2+deb8u4) …
Purge des fichiers de configuration de exim4-daemon-light (4.84.2-2+deb8u4) …
Suppression de sudo (1.8.10p3-1+deb8u4) …
Purge des fichiers de configuration de sudo (1.8.10p3-1+deb8u4) …

root@mondomaine:~# yunohost app install rainloop --verbose
Téléchargement…
Extraction…
Terminé
Vérification des paquets requis…
Domaines disponibles :

  • mondomaine.tld
    Choisissez un domaine pour Rainloop (default: mondomaine.tld) :
    Choisissez un chemin pour Rainloop (default: /rainloop) :
    Est-ce une page publique ? [Yes | No] (default: No) :
    Choisissez un mot de passe fort pour l’administrateur ‘admin’ :
    Souhaitez-vous ajouter les utilisateurs YunoHost dans les suggestions de destinataires ? [Yes | No] (default: Yes) :
    Definir la langue par defaut [English | Francais] (default: English) :
    Erreur : Une erreur inattendue est survenue
    Exécution du script « /var/cache/yunohost/from_file/rainloop_ynh-2b0d91b22bdac5b3d7b304bbf0665c7246a837e0/scripts/remove »…
  • set -u
  • source /usr/share/yunohost/helpers
    +++ run-parts --list /usr/share/yunohost/helpers.d
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
    ++ . /usr/share/yunohost/helpers.d/backend
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
    ++ . /usr/share/yunohost/helpers.d/filesystem
    +++ CAN_BIND=1
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
    ++ . /usr/share/yunohost/helpers.d/ip
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
    ++ . /usr/share/yunohost/helpers.d/mysql
    +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
    ++ . /usr/share/yunohost/helpers.d/network
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
    ++ . /usr/share/yunohost/helpers.d/package
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
    ++ . /usr/share/yunohost/helpers.d/print
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
    ++ . /usr/share/yunohost/helpers.d/setting
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
    ++ . /usr/share/yunohost/helpers.d/string
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
    ++ . /usr/share/yunohost/helpers.d/system
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
    ++ . /usr/share/yunohost/helpers.d/user
    ++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’
    ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
    ++ . /usr/share/yunohost/helpers.d/utils
  • app=rainloop
    ++ ynh_app_setting_get rainloop domain
    ++ sudo yunohost app setting rainloop domain --output-as plain --quiet
  • domain=
  • REMOVE_BDD rainloop
  • db_user=rainloop
    ++ sudo cat /etc/yunohost/mysql
  • grep -q ‘^| rainloop’
  • mysqlshow -u root -p25xOxZSKFD
  • SECURE_REMOVE ‘/var/www/$app’
  • chaine=’/var/www/$app’
  • no_var=0
  • grep -q ‘$’
  • echo ‘/var/www/$app’
  • no_var=1
    ++ echo ‘/var/www/$app’
    ++ cut -d ‘$’ -f 2
  • global_var=app
    ++ expr app : ‘([A-Za-z0-9_]*)’
  • only_var=’$app’
    ++ eval ‘echo $app’
    +++ echo rainloop
  • real_var=rainloop
  • test -z rainloop
  • ‘[’ rainloop = / ‘]’
    ++ sed ‘s@$app@rainloop@’
    ++ echo ‘/var/www/$app’
  • chaine=/var/www/rainloop
  • echo /var/www/rainloop
  • grep -q ‘$’
  • ‘[’ 1 -eq 1 ‘]’
  • ‘[’ -e /var/www/rainloop ‘]’
  • return 0
  • REMOVE_NGINX_CONF
  • ‘[’ -e /etc/nginx/conf.d/.d/rainloop.conf ‘]’
  • REMOVE_FPM_CONF
  • ‘[’ -e /etc/php5/fpm/pool.d/rainloop.conf ‘]’
  • sudo gpg --batch --delete-key --yes Rainloop
    Attention : gpg: clef « Rainloop » introuvable : eof
    Attention : gpg: Rainloop: delete key failed: eof
  • sudo service php5-fpm reload
  • sudo service nginx reload
    Succès ! La configuration de SSOwat a été générée
    Erreur : Échec de l’installation

root@mondomaine:~# yunohost app install rainloop --verbose
Téléchargement…
Extraction…
Terminé
Vérification des paquets requis…
Domaines disponibles :

  • mondomaine.tld
    Choisissez un domaine pour Rainloop (default: mondomaine.tld) :
    Choisissez un chemin pour Rainloop (default: /rainloop) :
    Est-ce une page publique ? [Yes | No] (default: No) :
    Choisissez un mot de passe fort pour l’administrateur ‘admin’ :
    Souhaitez-vous ajouter les utilisateurs YunoHost dans les suggestions de destinataires ? [Yes | No] (default: Yes) :
    Definir la langue par defaut [English | Francais] (default: English) :
    Erreur : Une erreur inattendue est survenue

How can I identify this first unexpected error ?

@siphon ,

I don’t know how to do this :frowning:
Maybe @scith knows it.

ppr

I restarted the rainloop installation in debug mode. Here’s the output:

root@mondomaine:~# yunohost app install rainloop --verbose --debug
58 DEBUG loading actions map namespace ‘yunohost’
79 DEBUG extra parameter classes loaded: [‘ask’, ‘password’, ‘required’, ‘pattern’]
80 DEBUG initializing base actions map parser for cli
81 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [’-v’, ‘–version’]
178 DEBUG initialize authenticator ‘ldap-anonymous’ with: uri=‘ldap://localhost:389’, base_dn=‘dc=yunohost,dc=org’, user_rdn='None’
180 DEBUG lock has been acquired
1269 INFO processing action [5251.1]: yunohost.app.install with args={‘app’: ‘rainloop’, ‘args’: None, ‘auth’: <moulinette.authenticators.ldap.Authenticator object at 0x7f9d460ac8d0>, ‘label’: None, ‘no_remove_on_failure’: False}
1298 INFO Téléchargement…
2307 INFO Extraction…
2326 INFO Terminé
2329 INFO Vérification des paquets requis…
Domaines disponibles :

  • mondomaine.tld
    Choisissez un domaine pour Rainloop (default: mondomaine.tld) :
    Choisissez un chemin pour Rainloop (default: /rainloop) :
    Est-ce une page publique ? [Yes | No] (default: No) :
    Choisissez un mot de passe fort pour l’administrateur ‘admin’ :
    Souhaitez-vous ajouter les utilisateurs YunoHost dans les suggestions de destinataires ? [Yes | No] (default: Yes) :
    Definir la langue par defaut [English | Francais] (default: English) :
    20982 ERROR Une erreur inattendue est survenue
    Traceback (most recent call last):
    File “/usr/lib/moulinette/yunohost/app.py”, line 729, in app_install
    args=args_list, env=env_dict, user=“root”)
    File “/usr/lib/moulinette/yunohost/hook.py”, line 350, in hook_exec
    command.append(cmd.format(script=cmd_script, args=cmd_args))
    ValueError: Single ‘}’ encountered in format string
    21002 INFO Exécution de la commande « sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=rainloop YNH_CWD=/var/cache/yunohost/from_file/rainloop_ynh-2b0d91b22bdac5b3d7b304bbf0665c7246a837e0/scripts YNH_APP_INSTANCE_NAME=rainloop BASH_XTRACEFD=7 /bin/bash -x “./remove” rainloop 7>&1 »…
    21021 INFO + set -u
    21022 INFO + source /usr/share/yunohost/helpers
    21023 INFO +++ run-parts --list /usr/share/yunohost/helpers.d
    21029 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21029 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ']'
    21029 INFO ++ . /usr/share/yunohost/helpers.d/backend
    21030 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21030 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ']'
    21030 INFO ++ . /usr/share/yunohost/helpers.d/filesystem
    21030 INFO +++ CAN_BIND=1
    21031 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21031 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ']'
    21031 INFO ++ . /usr/share/yunohost/helpers.d/ip
    21031 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21032 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ']'
    21032 INFO ++ . /usr/share/yunohost/helpers.d/mysql
    21032 INFO +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
    21032 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21033 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ']'
    21033 INFO ++ . /usr/share/yunohost/helpers.d/network
    21033 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21033 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ']'
    21034 INFO ++ . /usr/share/yunohost/helpers.d/package
    21034 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21034 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ']'
    21034 INFO ++ . /usr/share/yunohost/helpers.d/print
    21035 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21035 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ']'
    21035 INFO ++ . /usr/share/yunohost/helpers.d/setting
    21035 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21036 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ']'
    21036 INFO ++ . /usr/share/yunohost/helpers.d/string
    21036 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21037 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ']'
    21037 INFO ++ . /usr/share/yunohost/helpers.d/system
    21037 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21037 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ']'
    21038 INFO ++ . /usr/share/yunohost/helpers.d/user
    21038 INFO ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
    21038 INFO ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ']'
    21039 INFO ++ . /usr/share/yunohost/helpers.d/utils
    21040 INFO + app=rainloop
    21041 INFO ++ ynh_app_setting_get rainloop domain
    21041 INFO ++ sudo yunohost app setting rainloop domain --output-as plain --quiet
    22470 INFO + domain=
    22470 INFO + REMOVE_BDD rainloop
    22470 INFO + db_user=rainloop
    22471 INFO ++ sudo cat /etc/yunohost/mysql
    22471 INFO + grep -q '^| rainloop’
    22490 INFO + mysqlshow -u root -p25xOxZSKFD
    22535 INFO + SECURE_REMOVE ‘/var/www/$app’
    22536 INFO + chaine=’/var/www/$app’
    22536 INFO + no_var=0
    22537 INFO + grep -q '$'
    22538 INFO + echo '/var/www/$app’
    22540 INFO + no_var=1
    22541 INFO ++ echo '/var/www/$app’
    22541 INFO ++ cut -d ‘$’ -f 2
    22545 INFO + global_var=app
    22546 INFO ++ expr app : '([A-Za-z0-9_]*)‘
    22548 INFO + only_var=’$app’
    22549 INFO ++ eval 'echo $app’
    22549 INFO +++ echo rainloop
    22549 INFO + real_var=rainloop
    22550 INFO + test -z rainloop
    22550 INFO + ‘[’ rainloop = / ']'
    22550 INFO ++ sed 's@$app@rainloop@'
    22551 INFO ++ echo '/var/www/$app’
    22553 INFO + chaine=/var/www/rainloop
    22554 INFO + echo /var/www/rainloop
    22554 INFO + grep -q '$'
    22556 INFO + ‘[’ 1 -eq 1 ']'
    22557 INFO + ‘[’ -e /var/www/rainloop ']'
    22557 INFO + return 0
    22557 INFO + REMOVE_NGINX_CONF
    22557 INFO + ‘[’ -e /etc/nginx/conf.d/.d/rainloop.conf ']'
    22558 INFO + REMOVE_FPM_CONF
    22558 INFO + ‘[’ -e /etc/php5/fpm/pool.d/rainloop.conf ']'
    22558 INFO + sudo gpg --batch --delete-key --yes Rainloop
    22627 WARNING gpg: clef « Rainloop » introuvable : eof
    22628 WARNING gpg: Rainloop: delete key failed: eof
    22630 INFO + sudo service php5-fpm reload
    22703 INFO + sudo service nginx reload
    23266 SUCCESS La configuration de SSOwat a été générée
    23267 DEBUG action [5251.1] ended after 21.997s
    23267 DEBUG lock has been released
    23267 ERROR Échec de l’installation

I’m not sure it will be so helpfull…

Does anyone know what I could do to fix the Rainloop installation issue ???

Simple hypothèse, mais tu n’aurais pas mis un “}” dans le password demandé au début de l’install de l’app ? (Pas que t’aurais pas du, mais c’est pour essayer de comprendre si c’est pas un bug à ce sujet dans yunohost ;))

Yes indeed I did.

I retry with a password without any ‘{’ character…

I let you know if it works ASAP…

I generated a new password with keepass, and choose a password with no ‘{’ character. The rainloop installation failed again.

Then I generated a new 30 characters long password with only figures and letters. The rainloop installation worked !!

So, the rainloop admin password must be chosen carefully !

Thank you for your help

Thanks for the feedback, it’s good to know … We should implement something on Yunohost’s side to handle this correctly I think. I’ll open a ticket on rainloop (though that might be relevant for apps or the yunohost core in general - to be investigated)

(edit : opened issue here https://github.com/YunoHost-Apps/rainloop_ynh/issues/33 )

OK. Thank you for your reply.

Indeed, an improvement in password management seems required.

Unfortunatly, I did not investigate which special characters were accepted, and which would cause an installation failure.

I think that the issue exists for other applications. Roundcube for example.