RoundCube: Error: Installation failed

Bonjour, j’ai de la difficulté à installer RoundCube.
(J’ai changé mon nom de domaine par DOMAIN)

Erreur en ligne de commande

root@yunohost:~# yunohost app install roundcube
Available domains:

  • DOMAINE.nohost.me
    Choose a domain for Roundcube (default: DOMAINE.nohost.me):
    Choose a path for Roundcube (default: /webmail):
    Install CardDAV synchronization plugin? [0 | 1] (default: 0):
    Warning: ‘yunohost app checkurl’ is deprecated and will be removed in the future
    Warning: The helper ynh_mkdir_tmp is deprecated.
    Warning: You should use ‘mktemp -d’ instead and manage permissions properly with chmod/chown.
    Warning: Unable to install Composer
    Success! The SSOwat configuration has been generated
    Error: Installation failed

L’erreur dans le webGUI:

Échec de l’installation

Removing php-patchwork-utf8 (1.1.25-1) …

Removing php-net-socket (1.0.14-1) …

Removing php-net-smtp (1.6.2-2) …

Removing php-net-ldap2 (2.0.12-1+deb8u1) …

Removing php-net-ldap3 (1.0.3-1~bpo8+1) …

Removing php-mail-mime (1.8.9-1+deb8u1) …

Removing php-crypt-gpg (1.3.2-1) …

Removing php-auth-sasl (1.0.6-1+deb8u1) …

Removing roundcube-deps (1.2-1) …

(Reading database … (Reading database … 5% (Reading database … 10% (Reading database … 15% (Reading database … 20% (Reading database … 25% (Reading database … 30% (Reading database … 35% (Reading database … 40% (Reading database … 45% (Reading database … 50% (Reading database … 55% (Reading database … 60% (Reading database … 65% (Reading database … 70% (Reading database … 75% (Reading database … 80% (Reading database … 85% (Reading database … 90% (Reading database … 95% (Reading database … 100% (Reading database … 35789 files and directories currently installed.)

  • sudo apt-get -y -qq autoremove roundcube-deps

  • DEBIAN_FRONTEND=noninteractive

  • ynh_apt autoremove roundcube-deps

  • ynh_package_autoremove roundcube-deps

  • dpkg-query -W -f ‘${Status}’ roundcube-deps

  • grep -c ‘ok installed’

  • ynh_package_is_installed roundcube-deps

  • sudo service nginx reload

  • sudo service php5-fpm restart

  • sudo rm -f /etc/nginx/conf.d/DOMAIN.nohost.me.d/roundcube.conf

  • [[ -n DOMAIN.nohost.me ]]

  • sudo rm -f /etc/php5/fpm/pool.d/roundcube.conf

  • sudo rm -rf /var/www/roundcube

  • domain=DOMAIN.nohost.me

++ sudo yunohost app setting roundcube domain --output-as plain --quiet

++ ynh_app_setting_get roundcube domain

  • true

ERROR 1396 (HY000) at line 1: Operation DROP USER failed for ‘roundcube’@‘localhost’

  • mysql -u root --password=r5axhg3p6G -B ‘’

  • ynh_mysql_connect_as root r5axhg3p6G ‘’

++ sudo cat /etc/yunohost/mysql

  • ynh_mysql_execute_as_root ‘DROP USER ‘’‘roundcube’’’@’’‘localhost’’’;’

  • ynh_mysql_drop_user roundcube

  • true

ERROR 1008 (HY000) at line 1: Can’t drop database ‘roundcube’; database doesn’t exist

  • mysql -u root --password=r5axhg3p6G -B ‘’

  • ynh_mysql_connect_as root r5axhg3p6G ‘’

++ sudo cat /etc/yunohost/mysql

  • ynh_mysql_execute_as_root ‘DROP DATABASE roundcube;’

  • ynh_mysql_drop_db roundcube

++ . /usr/share/yunohost/helpers.d/utils

++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/user

++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/system

++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/string

++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/setting

++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/print

++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/package

++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/network

++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql

++ . /usr/share/yunohost/helpers.d/mysql

++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/ip

++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ CAN_BIND=1

++ . /usr/share/yunohost/helpers.d/filesystem

++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/backend

++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ run-parts --list /usr/share/yunohost/helpers.d

  • . /usr/share/yunohost/helpers

  • dbuser=roundcube

  • dbname=roundcube

  • app=roundcube

++ PKGDIR=/var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa

+++ pwd

+++ cd …/

++ ROUNDCUBE_SOURCE_URL=https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz

++ ROUNDCUBE_SOURCE_SHA256=2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d

++ DEPS_PKG_NAME=roundcube-deps

++ VERSION=1.2.3

  • . ./_common.sh

Exécution du script « /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/scripts/remove »…

  • exit 1

  • echo ‘Unable to install Composer’

Unable to install Composer

  • ynh_die ‘Unable to install Composer’

The installation directory “/tmp/tmp.NGN3vCAJor” is not writable

  • sudo sudo -u admin COMPOSER_HOME=/tmp/tmp.NGN3vCAJor/.composer php – --quiet --install-dir=/tmp/tmp.NGN3vCAJor

  • [[ admin = root ]]

++ whoami

  • shift 1

  • local USER=admin

  • exec_as admin COMPOSER_HOME=/tmp/tmp.NGN3vCAJor/.composer php – --quiet --install-dir=/tmp/tmp.NGN3vCAJor

  • curl -sS https://getcomposer.org/installer

  • local AS_USER=admin

  • local DESTDIR=/tmp/tmp.NGN3vCAJor

  • init_composer /tmp/tmp.NGN3vCAJor

  • cp /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/sources/composer.json-dist /tmp/tmp.NGN3vCAJor/composer.json-dist

Hunk #3 succeeded at 103 (offset 21 lines).

Hunk #2 succeeded at 38 with fuzz 1.

patching file bin/installto.sh

  • patch -p1

  • for p in ‘${PKGDIR}/patches/*.patch’

  • cd /tmp/tmp.NGN3vCAJor

  • rm /tmp/tmp.NGN3vCAJor/roundcube.tar.gz

  • tar xf /tmp/tmp.NGN3vCAJor/roundcube.tar.gz -C /tmp/tmp.NGN3vCAJor --strip-components 1

  • sha256sum -c

  • echo ‘2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d /tmp/tmp.NGN3vCAJor/roundcube.tar.gz’

  • wget -q -O /tmp/tmp.NGN3vCAJor/roundcube.tar.gz https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz

  • rc_tarball=/tmp/tmp.NGN3vCAJor/roundcube.tar.gz

  • local DESTDIR=/tmp/tmp.NGN3vCAJor

  • extract_roundcube /tmp/tmp.NGN3vCAJor

  • TMPDIR=/tmp/tmp.NGN3vCAJor

++ echo /tmp/tmp.NGN3vCAJor

++ chmod 755 /tmp/tmp.NGN3vCAJor

++ local TMP_DIR=/tmp/tmp.NGN3vCAJor

+++ mktemp -d

++ echo ‘You should use ‘’‘mktemp -d’’’ instead and manage permissions properly with chmod/chown.’

You should use ‘mktemp -d’ instead and manage permissions properly with chmod/chown.

++ echo ‘The helper ynh_mkdir_tmp is deprecated.’

The helper ynh_mkdir_tmp is deprecated.

++ ynh_mkdir_tmp

  • grep -c ‘ok installed’

  • dpkg-query -W -f ‘${Status}’ roundcube-deps

  • ynh_package_is_installed roundcube-deps

  • rm -rf /tmp/tmp.AHq2O6f4ld

  • [[ -n /tmp/tmp.AHq2O6f4ld ]]

Setting up php-patchwork-utf8 (1.1.25-1) …

Setting up php-net-smtp (1.6.2-2) …

Setting up php-net-socket (1.0.14-1) …

Setting up php-net-ldap3 (1.0.3-1~bpo8+1) …

Setting up php-net-ldap2 (2.0.12-1+deb8u1) …

Setting up php-mail-mime (1.8.9-1+deb8u1) …

Setting up php-crypt-gpg (1.3.2-1) …

Setting up php-auth-sasl (1.0.6-1+deb8u1) …

Unpacking php-patchwork-utf8 (1.1.25-1) …

Preparing to unpack …/php-patchwork-utf8_1.1.25-1_all.deb …

Selecting previously unselected package php-patchwork-utf8.

Unpacking php-net-smtp (1.6.2-2) …

Preparing to unpack …/php-net-smtp_1.6.2-2_all.deb …

Selecting previously unselected package php-net-smtp.

Unpacking php-net-socket (1.0.14-1) …

Preparing to unpack …/php-net-socket_1.0.14-1_all.deb …

Selecting previously unselected package php-net-socket.

Unpacking php-net-ldap3 (1.0.3-1~bpo8+1) …

Preparing to unpack …/php-net-ldap3_1.0.3-1~bpo8+1_all.deb …

Selecting previously unselected package php-net-ldap3.

Unpacking php-net-ldap2 (2.0.12-1+deb8u1) …

Preparing to unpack …/php-net-ldap2_2.0.12-1+deb8u1_all.deb …

Selecting previously unselected package php-net-ldap2.

Unpacking php-mail-mime (1.8.9-1+deb8u1) …

Preparing to unpack …/php-mail-mime_1.8.9-1+deb8u1_all.deb …

Selecting previously unselected package php-mail-mime.

Unpacking php-crypt-gpg (1.3.2-1) …

Preparing to unpack …/php-crypt-gpg_1.3.2-1_all.deb …

Selecting previously unselected package php-crypt-gpg.

Unpacking php-auth-sasl (1.0.6-1+deb8u1) …

Preparing to unpack …/php-auth-sasl_1.0.6-1+deb8u1_all.deb …

(Reading database … (Reading database … 5% (Reading database … 10% (Reading database … 15% (Reading database … 20% (Reading database … 25% (Reading database … 30% (Reading database … 35% (Reading database … 40% (Reading database … 45% (Reading database … 50% (Reading database … 55% (Reading database … 60% (Reading database … 65% (Reading database … 70% (Reading database … 75% (Reading database … 80% (Reading database … 85% (Reading database … 90% (Reading database … 95% (Reading database … 100% (Reading database … 35526 files and directories currently installed.)

Selecting previously unselected package php-auth-sasl.

dpkg-preconfigure: unable to re-open stdin:

debconf: falling back to frontend: Teletype

debconf: (This frontend requires a controlling tty.)

debconf: unable to initialize frontend: Readline

debconf: falling back to frontend: Readline

debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)

debconf: unable to initialize frontend: Dialog

1 file changed, 1 insertion(+), 1 deletion(-)

[master 3f1106c] saving uncommitted changes in /etc prior to apt run

  • sudo apt-get -y -qq --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f

  • DEBIAN_FRONTEND=noninteractive

  • ynh_apt --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f

  • ynh_package_install -f

Setting up roundcube-deps (1.2-1) …

Package php-net-ldap3 is not installed.

roundcube-deps depends on php-net-ldap3; however:

Package php-net-ldap2 is not installed.

roundcube-deps depends on php-net-ldap2; however:

Package php-crypt-gpg is not installed.

roundcube-deps depends on php-crypt-gpg; however:

Package php-net-socket is not installed.

roundcube-deps depends on php-net-socket; however:

Package php-net-smtp is not installed.

roundcube-deps depends on php-net-smtp; however:

Package php-patchwork-utf8 is not installed.

roundcube-deps depends on php-patchwork-utf8; however:

Package php-mail-mime is not installed.

roundcube-deps depends on php-mail-mime; however:

Package php-auth-sasl is not installed.

roundcube-deps depends on php-auth-sasl; however:

dpkg: roundcube-deps: dependency problems, but configuring anyway as you requested:

Unpacking roundcube-deps (1.2-1) …

Preparing to unpack ./roundcube-deps_1.2-1_all.deb …

(Reading database … 35522 files and directories currently installed.)

Selecting previously unselected package roundcube-deps.

  • sudo dpkg --force-depends -i ./roundcube-deps_1.2-1_all.deb

  • equivs-build ./control

  • cd /tmp/tmp.AHq2O6f4ld

  • cp …/conf/roundcube-deps.control /tmp/tmp.AHq2O6f4ld/control

  • TMPDIR=/tmp/tmp.AHq2O6f4ld

++ mktemp -d

  • sudo apt-get -y -qq update

  • DEBIAN_FRONTEND=noninteractive

  • ynh_apt update

  • ynh_package_update

  • [[ -z 1.2-1 ]]

  • [[ -z roundcube-deps ]]

  • pkgversion=1.2-1

++ cut '-d ’ -f 2

++ grep '^Version: ’ …/conf/roundcube-deps.control

  • pkgname=roundcube-deps

++ cut '-d ’ -f 2

++ grep '^Package: ’ …/conf/roundcube-deps.control

  • dpkg-query -W -f ‘${Status}’ equivs

  • grep -c ‘ok installed’

  • ynh_package_is_installed equivs

  • controlfile=…/conf/roundcube-deps.control

  • ynh_package_install_from_equivs …/conf/roundcube-deps.control

  • grep -q -R jessie-backports /etc/apt/sources.list /etc/apt/sources.list.d

  • [[ -d /var/www/roundcube ]]

  • DESTDIR=/var/www/roundcube

‘yunohost app checkurl’ is deprecated and will be removed in the future

++ . /usr/share/yunohost/helpers.d/utils

++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/user

++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/system

++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/string

++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/setting

++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/print

++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/package

++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/network

++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql

++ . /usr/share/yunohost/helpers.d/mysql

++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/ip

++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ CAN_BIND=1

++ . /usr/share/yunohost/helpers.d/filesystem

++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

++ . /usr/share/yunohost/helpers.d/backend

++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’

++ for helper in ‘$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)’

+++ run-parts --list /usr/share/yunohost/helpers.d

  • . /usr/share/yunohost/helpers

  • dbuser=roundcube

  • dbname=roundcube

++ PKGDIR=/var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa

+++ pwd

+++ cd …/

++ ROUNDCUBE_SOURCE_URL=https://github.com/roundcube/roundcubemail/releases/download/1.2.3/roundcubemail-1.2.3.tar.gz

++ ROUNDCUBE_SOURCE_SHA256=2df820d2ccc7bb320f854a821a1dc9983792f42a3353a1d38fe0822d94980d4d

++ DEPS_PKG_NAME=roundcube-deps

++ VERSION=1.2.3

Exécution du script « /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/scripts/install »…

Vérification des paquets requis…

Terminé

Extraction…

Téléchargement…

Salut,

l’app roundcube est actuellement cassée en raison d’un problème avec composer.
Une PR est en cours pour une correction générale de l’application.

Tu peux te tourner vers l’application rainloop en remplacement ou installer l’application depuis la branche contenant la correction si tu préfères.

Et au passage, l’URL de la fameuse branche : https://github.com/YunoHost-Apps/roundcube_ynh/tree/magikcypress_branch
(déjà un peu testé)

Et on dit merci @cyp et @Maniack_Crudelis !! :kissing_heart:

2 Likes

bonjour, j’essaye d’installer roundcube en vain.
et les erreurs ressemblent à s’y meprendre à celle de ce post.

j’ai essayer la branche citée par jimbojoe, yunohost ne la prend pas (veuillez modifier la valeur pour correspondre à celle demandée)
ce roundcube cassé à t-il été modifié depuis fin aout?
(rainloop ne s’install pas non plus)

je precise avoir installer mon serveur tres recement en suivant à la lettre cette page:
https://yunohost.org/#/install_on_raspberry_fr

une idée? une solution?

Salut,

c’est bizarre que la branche testing pointée par JimboJoe et que rainloop ne s’installent pas correctement … Tu as plus d’infos sur ce qui cloche exactement ? (un message d’erreur / morceau de log )

bon rainloop s’est installer en ligne de commande (j’avais pas plus insister que ça ^^)
mais pas moyen par l’interface administration…
tant mieux je vais pouvoir comparer avec mes souvenirs de roundcube…

bref pour le lien de la branche testing de roundcube, si je clic dessus ça mene a une page 404… deja c’est bof .
et si je la rentre dans le panneau d’admin “installer une application personnalisée”, je clic sur “installer”, ça ne la prend même pas “veuillez modifier la valeur pour correspondre au format demander” (en infobulle)
donc pas d’autre message d’erreur.

pour la version officielle proposée par le site, si tu veux j’ai un grand texte à te proposer mais si roundcube est cassé, ça n’as pas grand interret…

Ok, peut-être que la branche n’existe plus, normalement c’est https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing maintenant :s

merci du lien qui pointe bien quelque part :slight_smile:

mais même cas pour installer une appli personnalisée depuis la plateforme administrateur: “veuillez modifier la valeur pour correspondre au format demander” (en infobulle)
sans doute un bug du panneau d’admin…

comment on fait en terminal pour installer une appli personnalisée?
j’ose pas faire un git clone && .config && make …etc… peur de faire un bordel dans mon serveur ^^

un yunohost app install quelquechose? des options?

Normalement il “suffit” de faire :

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

(mais jamais testé moi meme)

Success! Installation complete

merci beaucoup Aleks!!

edit: mon adresse mail se termine en @localhost :confused: et je voudrais que ce soit mon adresse yunohost se terminant en @jbalibeux.nohost.me
autre truc les parametres sont grisés , j’affiche bien la page parametre, mais pas moyen de changer quoi que ce soit…

bref je decide sur supprimer l’app et dereinstaller le roundcube de la branche stable en terminal :
yunohost app install https://github.com/YunoHost-Apps/roundcube_ynh/tree/master
Success! Installation complete
tout fonctionne presque correctement: erreur smtp 553 à l’envois de mail.

Bonjour,

La branche stable vient d’être mise à jour et est désormais fonctionnelle ! :tada:

1 Like