Comments (10)
OK, I installed it in verbose mode and it showed me I got new database errors:
Database connection | ERROR! | Can't connect to the database: An exception occured in driver: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)
See:
patching file vendor/friendsofsymfony/oauth-server-bundle/Storage/OAuthStorage.php
++ ynh_string_random 24
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
+ deskey=UGmynV7GrpC56X0X5Z3jF0Z7
++ ynh_string_random
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
+ dbpass=ytdPoHt4NLujSsUvHLoqIaAW
+ ynh_app_setting_set wallabag2 mysqlpwd ytdPoHt4NLujSsUvHLoqIaAW
+ sudo yunohost app setting wallabag2 mysqlpwd -v ytdPoHt4NLujSsUvHLoqIaAW --quiet
+ ynh_app_setting_set wallabag2 deskey UGmynV7GrpC56X0X5Z3jF0Z7
+ sudo yunohost app setting wallabag2 deskey -v UGmynV7GrpC56X0X5Z3jF0Z7 --quiet
+ ynh_mysql_create_db wallabag2 wallabag2 ytdPoHt4NLujSsUvHLoqIaAW
+ db=wallabag2
+ sql='CREATE DATABASE wallabag2;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON wallabag2.* TO '\''wallabag2'\''@'\''localhost'\'''
+ [[ -n ytdPoHt4NLujSsUvHLoqIaAW ]]
+ sql+=' IDENTIFIED BY '\''ytdPoHt4NLujSsUvHLoqIaAW'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE wallabag2; GRANT ALL PRIVILEGES ON wallabag2.* TO '\''wallabag2'\''@'\''localhost'\'' IDENTIFIED BY '\''ytdPoHt4NLujSsUvHLoqIaAW'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root ROOT_MYSQL_PWD ''
+ mysql -u root --password=ROOT_MYSQL_PWD -B ''
+ wb_conf=/tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ cp ../conf/parameters.yml /tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ sed -i 's@{DBNAME}@wallabag2@g' /tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ sed -i 's@{DBUSER}@wallabag2@g' /tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ sed -i 's@{DBPASS}@ytdPoHt4NLujSsUvHLoqIaAW@g' /tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ sed -i 's@{DESKEY}@UGmynV7GrpC56X0X5Z3jF0Z7@g' /tmp/tmp.HsKgKrkML8/app/config/parameters.yml
+ sudo mv /tmp/tmp.HsKgKrkML8 /var/www/wallabag2
+ cd /var/www/wallabag2
+ sudo chown -R www-data: /var/www/wallabag2
+ exec_console www-data /var/www/wallabag2 wallabag:install
+ local AS_USER=www-data
+ local WORKDIR=/var/www/wallabag2
+ shift 2
+ exec_as www-data php /var/www/wallabag2/bin/console --no-interaction --env=prod wallabag:install
+ local USER=www-data
+ shift 1
++ whoami
+ [[ www-data = admin ]]
+ sudo sudo -u www-data php /var/www/wallabag2/bin/console --no-interaction --env=prod wallabag:install
Installing wallabag...
Step 1 of 4. Checking system requirements.
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
| Checked | Status | Recommendation |
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
| PDO Driver (pdo_mysql) | OK! | |
| Database connection | ERROR! | Can't connect to the database: An exception occured in driver: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) |
| Database version | OK! | |
| curl_exec | OK! | |
| curl_multi_init | OK! | |
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
from wallabag2_ynh.
Seeing your previous message, did you manage to get your mysql root password consistent in /etc/yunohost/mysql
?
Is the MySQL server running OK?
Can you try upgrading with the ongoing package upgrade here?
from wallabag2_ynh.
I solved the issue regarding the root password for mysql, sorry for the noise.
I tried installing the code_refactoring branch as follows:
git clone https://github.com/YunoHost-Apps/wallabag2_ynh.git
cd wallabag2_ynh
git checkout code_refactoring
yunohost app install /tmp/wallabag2_ynh/ --verbose
I have the same issue + some others (see the warnings):
Executing script '/var/cache/yunohost/from_file/scripts/install'...
+ source _common.sh
++ VERSION=2.2.2
++ PKG_DEPENDENCIES='php5-cli php5-mysql php5-json php5-gd php5-tidy php5-curl php-gettext redis-server'
++ WALLABAG_SOURCE_URL=https://static.wallabag.org/releases/wallabag-release-2.2.2.tar.gz
++ WALLABAG_SOURCE_SHA256=40d98bd556116dbc28f92339f0e5b93836ece87dcb01e7aaa628ea98855a1f51
+++ cd ../
+++ pwd
++ PKGDIR=/var/cache/yunohost/from_file
++ . /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/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/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/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
+ 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/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/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/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_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ app=wallabag2
+ domain=wb.nicofrand.eu
+ path_url=/
+ admin=nicofrand
+ CHECK_USER nicofrand
+ ynh_user_exists nicofrand
+ sudo yunohost user list --output-as json
+ grep -q '"username": "nicofrand"'
++ ynh_normalize_url_path /
++ path_url=/
++ test -n /
++ '[' / '!=' / ']'
++ '[' / == / ']'
++ '[' 1 -gt 1 ']'
++ echo /
+ path_url=/
+ CHECK_DOMAINPATH
+ sudo yunohost app checkurl wb.nicofrand.eu/ -a wallabag2
+ CHECK_FINALPATH
+ final_path=/var/www/wallabag2
+ test '!' -e /var/www/wallabag2
+ ynh_app_setting_set wallabag2 domain wb.nicofrand.eu
+ sudo yunohost app setting wallabag2 domain -v wb.nicofrand.eu --quiet
+ ynh_app_setting_set wallabag2 path_url /
+ sudo yunohost app setting wallabag2 path_url -v / --quiet
+ ynh_app_setting_set wallabag2 admin nicofrand
+ sudo yunohost app setting wallabag2 admin -v nicofrand --quiet
+ ynh_install_app_dependencies 'php5-cli php5-mysql php5-json php5-gd php5-tidy php5-curl php-gettext redis-server'
+ dependencies='php5-cli php5-mysql php5-json php5-gd php5-tidy php5-curl php-gettext redis-server'
+ manifest_path=../manifest.json
+ '[' '!' -e ../manifest.json ']'
++ sudo python3 -c 'import sys, json;print(json.load(open("../manifest.json"))['\''version'\''])'
+ version=2.2.2
+ dep_app=wallabag2
+ ynh_package_is_installed wallabag2-ynh-deps
+ dpkg-query -W -f '${Status}' wallabag2-ynh-deps
+ grep -c 'ok installed'
+ cat
+ ynh_package_install_from_equivs ./wallabag2-ynh-deps.control
+ controlfile=./wallabag2-ynh-deps.control
+ ynh_package_is_installed equivs
+ dpkg-query -W -f '${Status}' equivs
+ grep -c 'ok installed'
++ grep '^Package: ' ./wallabag2-ynh-deps.control
++ cut '-d ' -f 2
+ pkgname=wallabag2-ynh-deps
++ grep '^Version: ' ./wallabag2-ynh-deps.control
++ cut '-d ' -f 2
+ pkgversion=2.2.2
+ [[ -z wallabag2-ynh-deps ]]
+ [[ -z 2.2.2 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
++ ynh_mkdir_tmp
++ echo 'The helper ynh_mkdir_tmp is deprecated.'
++ echo 'You should use '\''mktemp -d'\'' instead and manage permissions properly with chmod/chown.'
+++ mktemp -d
Warning: The helper ynh_mkdir_tmp is deprecated.
Warning: You should use 'mktemp -d' instead and manage permissions properly with chmod/chown.
++ local TMP_DIR=/tmp/tmp.ruzP5aO5dj
++ chmod 755 /tmp/tmp.ruzP5aO5dj
++ echo /tmp/tmp.ruzP5aO5dj
+ TMPDIR=/tmp/tmp.ruzP5aO5dj
+ cp ./wallabag2-ynh-deps.control /tmp/tmp.ruzP5aO5dj/control
+ cd /tmp/tmp.ruzP5aO5dj
+ equivs-build ./control
+ sudo dpkg --force-depends -i ./wallabag2-ynh-deps_2.2.2_all.deb
Selecting previously unselected package wallabag2-ynh-deps.
(Reading database ... 61964 files and directories currently installed.)
Preparing to unpack .../wallabag2-ynh-deps_2.2.2_all.deb ...
Unpacking wallabag2-ynh-deps (2.2.2) ...
Setting up wallabag2-ynh-deps (2.2.2) ...
+ ynh_package_install -f
+ ynh_apt -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ [[ -n /tmp/tmp.ruzP5aO5dj ]]
+ rm -rf /tmp/tmp.ruzP5aO5dj
+ ynh_package_is_installed wallabag2-ynh-deps
+ dpkg-query -W -f '${Status}' wallabag2-ynh-deps
+ grep -c 'ok installed'
+ ynh_app_setting_set wallabag2 apt_dependencies php5-cli php5-mysql php5-json php5-gd php5-tidy php5-curl php-gettext redis-server
+ sudo yunohost app setting wallabag2 apt_dependencies -v php5-cli --quiet
++ ynh_sanitize_dbid wallabag2
++ dbid=wallabag2
++ echo wallabag2
+ db_name=wallabag2
+ db_user=wallabag2
++ ynh_string_random 24
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
+ deskey=t6qnTIEK2SY1VmWnpPdfNOS1
++ ynh_string_random
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
+ dbpass=X8w0dorDJwpLGJOwd5i67701
+ ynh_app_setting_set wallabag2 mysqlpwd X8w0dorDJwpLGJOwd5i67701
+ sudo yunohost app setting wallabag2 mysqlpwd -v X8w0dorDJwpLGJOwd5i67701 --quiet
+ ynh_app_setting_set wallabag2 deskey t6qnTIEK2SY1VmWnpPdfNOS1
+ sudo yunohost app setting wallabag2 deskey -v t6qnTIEK2SY1VmWnpPdfNOS1 --quiet
+ ynh_app_setting_set wallabag2 db_name wallabag2
+ sudo yunohost app setting wallabag2 db_name -v wallabag2 --quiet
+ ynh_mysql_create_db wallabag2 wallabag2 X8w0dorDJwpLGJOwd5i67701
+ db=wallabag2
+ sql='CREATE DATABASE wallabag2;'
+ [[ 3 -gt 1 ]]
+ sql+=' GRANT ALL PRIVILEGES ON wallabag2.* TO '\''wallabag2'\''@'\''localhost'\'''
+ [[ -n X8w0dorDJwpLGJOwd5i67701 ]]
+ sql+=' IDENTIFIED BY '\''X8w0dorDJwpLGJOwd5i67701'\'''
+ sql+=' WITH GRANT OPTION;'
+ ynh_mysql_execute_as_root 'CREATE DATABASE wallabag2; GRANT ALL PRIVILEGES ON wallabag2.* TO '\''wallabag2'\''@'\''localhost'\'' IDENTIFIED BY '\''X8w0dorDJwpLGJOwd5i67701'\'' WITH GRANT OPTION;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root MYSQL_ROOT_PASSWORD ''
+ mysql -u root --password=MYSQL_ROOT_PASSWORD -B ''
+ ynh_app_setting_set wallabag2 final_path /var/www/wallabag2
+ sudo yunohost app setting wallabag2 final_path -v /var/www/wallabag2 --quiet
++ mktemp -d
+ TMPDIR=/tmp/tmp.nYUgTerP1e
+ extract_wallabag /tmp/tmp.nYUgTerP1e
+ local DESTDIR=/tmp/tmp.nYUgTerP1e
+ local AS_USER=admin
+ wb_tarball=/tmp/wallabag.tar.gz
+ rm -f /tmp/wallabag.tar.gz
+ wget -q -O /tmp/wallabag.tar.gz https://static.wallabag.org/releases/wallabag-release-2.2.2.tar.gz
+ echo '40d98bd556116dbc28f92339f0e5b93836ece87dcb01e7aaa628ea98855a1f51 /tmp/wallabag.tar.gz'
+ sha256sum -c
+ exec_as admin tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.nYUgTerP1e --strip-components 1
+ local USER=admin
+ shift 1
++ whoami
+ [[ admin = admin ]]
+ eval tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.nYUgTerP1e --strip-components 1
++ tar xf /tmp/wallabag.tar.gz -C /tmp/tmp.nYUgTerP1e --strip-components 1
+ rm -f /tmp/wallabag.tar.gz
+ cd /tmp/tmp.nYUgTerP1e
+ for p in '${PKGDIR}/patches/*.patch'
+ patch -p1
patching file app/config/services.yml
Hunk #1 succeeded at 42 (offset 6 lines).
patching file app/config/security.yml
Hunk #1 succeeded at 13 with fuzz 1 (offset 2 lines).
Hunk #2 succeeded at 46 (offset 2 lines).
+ for p in '${PKGDIR}/patches/*.patch'
+ patch -p1
patching file app/config/security.yml
Hunk #1 succeeded at 62 (offset 2 lines).
patching file app/config/services.yml
Hunk #1 succeeded at 43 (offset 6 lines).
patching file src/Wallabag/YunoHostBundle/Security/LogoutSuccessHandler.php
+ for p in '${PKGDIR}/patches/*.patch'
+ patch -p1
patching file vendor/friendsofsymfony/oauth-server-bundle/Storage/OAuthStorage.php
+ ynh_system_user_create wallabag2
+ ynh_system_user_exists wallabag2
+ getent passwd wallabag2
+ '[' 1 -ge 2 ']'
+ user_home_dir=--no-create-home
+ sudo useradd --no-create-home --system --user-group wallabag2 --shell /usr/sbin/nologin
+ wb_conf=/tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ cp ../conf/parameters.yml /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ ynh_replace_string '{DBNAME}' wallabag2 /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ delimit=@
+ match_string='{DBNAME}'
+ replace_string=wallabag2
+ workfile=/tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ sudo sed --in-place 's@{DBNAME}@wallabag2@g' /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ ynh_replace_string '{DBUSER}' wallabag2 /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ delimit=@
+ match_string='{DBUSER}'
+ replace_string=wallabag2
+ workfile=/tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ sudo sed --in-place 's@{DBUSER}@wallabag2@g' /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ ynh_replace_string '{DBPASS}' X8w0dorDJwpLGJOwd5i67701 /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ delimit=@
+ match_string='{DBPASS}'
+ replace_string=X8w0dorDJwpLGJOwd5i67701
+ workfile=/tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ sudo sed --in-place 's@{DBPASS}@X8w0dorDJwpLGJOwd5i67701@g' /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ ynh_replace_string '{DESKEY}' t6qnTIEK2SY1VmWnpPdfNOS1 /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ delimit=@
+ match_string='{DESKEY}'
+ replace_string=t6qnTIEK2SY1VmWnpPdfNOS1
+ workfile=/tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ sudo sed --in-place 's@{DESKEY}@t6qnTIEK2SY1VmWnpPdfNOS1@g' /tmp/tmp.nYUgTerP1e/app/config/parameters.yml
+ sudo mv /tmp/tmp.nYUgTerP1e /var/www/wallabag2
+ sudo chown -R wallabag2: /var/www/wallabag2
+ exec_console wallabag2 /var/www/wallabag2 wallabag:install
+ local AS_USER=wallabag2
+ local WORKDIR=/var/www/wallabag2
+ shift 2
+ exec_as wallabag2 php /var/www/wallabag2/bin/console --no-interaction --env=prod wallabag:install
+ local USER=wallabag2
+ shift 1
++ whoami
+ [[ wallabag2 = admin ]]
+ sudo sudo -u wallabag2 php /var/www/wallabag2/bin/console --no-interaction --env=prod wallabag:install
Installing wallabag...
Step 1 of 4. Checking system requirements.
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
| Checked | Status | Recommendation |
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
| PDO Driver (pdo_mysql) | OK! | |
| Database connection | ERROR! | Can't connect to the database: An exception occured in driver: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) |
| Database version | OK! | |
| curl_exec | OK! | |
| curl_multi_init | OK! | |
+------------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------+
Warning:
Warning:
Warning: [RuntimeException]
Warning: Some system requirements are not fulfilled. Please check output messages and fix them.
Warning:
Warning:
Warning: wallabag:install [--reset] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Warning:
Creating directory '/home/wallabag2'.
+ ynh_exit_properly
Warning: !!
+ exit_code=1
+ '[' 1 -eq 0 ']'
+ trap '' EXIT
Warning: wallabag2's script has encountered an error. Its execution was cancelled.
+ set +eu
+ echo -e '!!\n wallabag2'\''s script has encountered an error. Its execution was cancelled.\n!!'
+ type -t ynh_clean_setup
Warning: !!
+ ynh_die
Warning:
+ echo ''
+ exit 1
Executing script '/var/cache/yunohost/from_file/scripts/remove'...
+ set -u
+ source _common.sh
++ VERSION=2.2.2
++ PKG_DEPENDENCIES='php5-cli php5-mysql php5-json php5-gd php5-tidy php5-curl php-gettext redis-server'
++ WALLABAG_SOURCE_URL=https://static.wallabag.org/releases/wallabag-release-2.2.2.tar.gz
++ WALLABAG_SOURCE_SHA256=40d98bd556116dbc28f92339f0e5b93836ece87dcb01e7aaa628ea98855a1f51
+++ cd ../
+++ pwd
++ PKGDIR=/var/cache/yunohost/from_file
++ . /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/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/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/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
+ 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/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/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/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=wallabag2
++ ynh_app_setting_get wallabag2 domain
++ sudo yunohost app setting wallabag2 domain --output-as plain --quiet
+ domain=wb.nicofrand.eu
++ ynh_app_setting_get wallabag2 db_name
++ sudo yunohost app setting wallabag2 db_name --output-as plain --quiet
+ db_name=wallabag2
++ ynh_app_setting_get wallabag2 domain
++ sudo yunohost app setting wallabag2 domain --output-as plain --quiet
+ domain=wb.nicofrand.eu
+ ynh_remove_app_dependencies
+ dep_app=wallabag2
+ ynh_package_autoremove wallabag2-ynh-deps
+ ynh_apt autoremove wallabag2-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove wallabag2-ynh-deps
[master fde8dd6] saving uncommitted changes in /etc prior to apt run
Author: admin <[email protected]>
21 files changed, 927 insertions(+), 6 deletions(-)
create mode 100644 yunohost/apps/wallabag2/manifest.json
create mode 100644 yunohost/apps/wallabag2/scripts/_common.sh
create mode 100644 yunohost/apps/wallabag2/scripts/backup
create mode 100644 yunohost/apps/wallabag2/scripts/install
create mode 100644 yunohost/apps/wallabag2/scripts/remove
create mode 100644 yunohost/apps/wallabag2/scripts/restore
create mode 100644 yunohost/apps/wallabag2/scripts/upgrade
create mode 100644 yunohost/apps/wallabag2/settings.yml
(Reading database ... 61967 files and directories currently installed.)
Removing wallabag2-ynh-deps (2.2.2) ...
+ ynh_mysql_drop_db wallabag2
+ ynh_mysql_execute_as_root 'DROP DATABASE wallabag2;'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root MYSQL_ROOT_PASSWORD ''
+ mysql -u root --password=MYSQL_ROOT_PASSWORD -B ''
+ ynh_mysql_drop_user wallabag2
+ ynh_mysql_execute_as_root 'DROP USER '\''wallabag2'\''@'\''localhost'\'';'
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_connect_as root MYSQL_ROOT_PASSWORD ''
+ mysql -u root --password=MYSQL_ROOT_PASSWORD -B ''
+ ynh_secure_remove /var/www/wallabag2
+ path_to_remove=/var/www/wallabag2
+ forbidden_path=' /var/www /home/yunohost.app'
+ [[ /var/www /home/yunohost.app =~ /var/www/wallabag2 ]]
+ [[ /var/www/wallabag2 =~ ^/[[:alnum:]]+$ ]]
+ [[ 2 = \/ ]]
+ '[' -e /var/www/wallabag2 ']'
+ sudo rm -R /var/www/wallabag2
+ sudo rm -rf /var/www/wallabag2
+ sudo rm -f /etc/php5/fpm/pool.d/wallabag2.conf
+ [[ -n wb.nicofrand.eu ]]
+ sudo rm -f /etc/nginx/conf.d/wb.nicofrand.eu.d/wallabag2.conf
+ sudo systemctl restart php5-fpm
+ sudo systemctl reload nginx
+ ynh_remove_app_dependencies
+ dep_app=wallabag2
+ ynh_package_autoremove wallabag2-ynh-deps
+ ynh_apt autoremove wallabag2-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove wallabag2-ynh-deps
Warning: E: Unable to locate package wallabag2-ynh-deps
+ ynh_package_autoremove wallabag-deps
+ ynh_apt autoremove wallabag-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove wallabag-deps
Warning: E: Unable to locate package wallabag-deps
+ true
+ ynh_system_user_delete wallabag2
+ ynh_system_user_exists wallabag2
+ getent passwd wallabag2
+ echo 'Remove the user wallabag2'
Warning: Remove the user wallabag2
+ sudo userdel wallabag2
Error: Installation failed
from wallabag2_ynh.
For what it's worth, I can log in mysql with mysql -u root -p
and see that the user root has the same password for localhost, nicofrand.eu, 127.0.0.1 and ::1. This password is the one in /etc/yunohost/mysql
.
from wallabag2_ynh.
Is the mysql server running OK?
Is there any relevant information in /var/log/mysql.log/err
?
Is there any wallabag2
residual database? If yes, could you remove it before retrying the install?
from wallabag2_ynh.
OK I found the issue !
When creating the database, yuonohost grants the access to localhost:
ynh_mysql_execute_as_root 'CREATE DATABASE wallabag2; GRANT ALL PRIVILEGES ON wallabag2.* TO '\''wallabag2'\''@'\''localhost'\'' IDENTIFIED BY '\''blalblabla'\'' WITH GRANT OPTION;'
but later your config file tries to access the database through 127.0.0.1 in conf/parameters.yml
.
I modified parameters.yml to use localhost instead of 127.0.0.1 and it worked !
from wallabag2_ynh.
Great news, but that's indeed very weird!
How is configured you /etc/hosts
file?
from wallabag2_ynh.
There is this line : 127.0.0.1 localhost.localdomain localhost
.
But when I connect with the mysql root user I can see the root user is granted on both 127.0.0.1, localhost, nicofrand.eu and ::1, not only on localhost or 127.0.0.1…
from wallabag2_ynh.
Could you please test commit 6f9e1ac on PR #28?
from wallabag2_ynh.
I just had the same issue (127.0.0.1/localhost) with another app, I guess the issue came from my side (and do not know why), sorry for the trouble, I hope using localhost won't break anything in this app.
from wallabag2_ynh.
Related Issues (20)
- official 2.3.8 migration to 2.4.2 in YNH HOT 4
- upgrade from 2.3.8 to testing branch failed HOT 1
- YNH Testing(11.0.4): Install Fails on Debian 11 - php7.4 issue ? HOT 13
- Recent update gives a 500 error after login HOT 12
- Cannot update to 2.4.3 : php dependencies issue HOT 34
- Cannot update to 2.4.3: An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, ADD hashed_given_url TINYTEXT DEFAULT NULL' HOT 7
- Cannot upgrade to 2.5.0. error: An error occurred inside the app upgrade script HOT 4
- Packaging improvement : use ynh_add_config helper
- Error during update database HOT 1
- Error when creating a new YunoHost user HOT 5
- Wallabag removed while upgrading to 2.5.1~ynh2 HOT 3
- No registration email being sent HOT 6
- missing feature : Save by email HOT 7
- Wallabag log language and paywall HOT 1
- Upgrade failed with DB error - Syntax error or access violation: 1091 Can't DROP FOREIGN KEY `FK_368A4209A76ED395`; check that it exists HOT 5
- 500 errors on YunoHost base upgrade, php7.3->php7.4, "Cannot redeclare mb_str_split()" HOT 8
- Install error - Corrupt source - sha256sum check fails
- Upgrading to 2.5.4~ynh3 seems to delete images saved locally HOT 6
- [SECURITY] Wallabag database password readable by all users HOT 6
- Improve backup logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wallabag2_ynh.