YunoHost-Apps / ampache_ynh

Ampache package for YunoHost
http://ampache.org/
GNU General Public License v3.0
17 stars 16 forks source link

Upgrade failed due to composer #62

Closed madmaxlamenace closed 3 years ago

madmaxlamenace commented 4 years ago

2020-06-28 20:24:15,485: DEBUG - + ynh_install_composer --phpversion=7.3 --workdir=/var/www/ampache '--install_args=--prefer-source --no-dev' 2020-06-28 20:24:15,486: DEBUG - + declare -Ar args_array 2020-06-28 20:24:15,487: DEBUG - + workdir=/var/www/ampache 2020-06-28 20:24:15,487: DEBUG - + phpversion=7.3 2020-06-28 20:24:15,487: DEBUG - + install_args='--prefer-source --no-dev' 2020-06-28 20:24:15,487: DEBUG - + curl -sS https://getcomposer.org/installer 2020-06-28 20:24:15,487: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer 2020-06-28 20:24:15,487: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/ampache 2020-06-28 20:24:16,891: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/ampache '--commands=install --no-dev --prefer-source --no-dev' 2020-06-28 20:24:16,891: INFO - [#########++++++++...] > Upgrading ampache with composer... 2020-06-28 20:24:16,892: DEBUG - + declare -Ar args_array 2020-06-28 20:24:16,893: DEBUG - + workdir=/var/www/ampache 2020-06-28 20:24:16,893: DEBUG - + phpversion=7.3 2020-06-28 20:24:16,893: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer 2020-06-28 20:24:16,893: DEBUG - + php7.3 /var/www/ampache/composer.phar install --no-dev --prefer-source --no-dev -d /var/www/ampache --quiet --no-interaction 2020-06-28 20:24:40,354: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.' 2020-06-28 20:24:40,354: WARNING - 2020-06-28 20:24:40,354: WARNING - 2020-06-28 20:24:40,355: WARNING - [RuntimeException] 2020-06-28 20:24:40,355: WARNING - Source directory /var/www/ampache/lib/vendor/gettext/languages has uncommitted changes. 2020-06-28 20:24:40,355: WARNING - 2020-06-28 20:24:40,356: WARNING - 2020-06-28 20:24:40,356: WARNING - install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []... 2020-06-28 20:24:40,356: WARNING - 2020-06-28 20:24:40,357: WARNING - Unable to update core dependencies with Composer.

benjbubu commented 4 years ago

Hello, I have the same problem.

In the web page i have : [Error] Upgrade failed.

Unable to update core dependencies with Composer.

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...

Source directory /var/www/ampache/lib/vendor/gettext/languages has uncommitted changes.

[RuntimeException]

pagiraud commented 3 years ago

Save problem here, but with an install, not an upgrade.

2020-10-25 13:45:45,150: DEBUG - + workdir=/var/www/ampache
2020-10-25 13:45:45,151: INFO - [#######+++++++++....] > Installing ampache with composer...
2020-10-25 13:45:45,153: DEBUG - + phpversion=7.3
2020-10-25 13:45:45,153: DEBUG - + install_args='--prefer-source --no-dev'
2020-10-25 13:45:45,154: DEBUG - + curl -sS https://getcomposer.org/installer
2020-10-25 13:45:45,154: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer
2020-10-25 13:45:45,155: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/ampache
2020-10-25 13:45:51,669: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/ampache '--commands=install --no-dev --prefer-source --no-dev'
2020-10-25 13:45:51,671: DEBUG - + declare -Ar args_array
2020-10-25 13:45:51,874: DEBUG - + workdir=/var/www/ampache
2020-10-25 13:45:51,875: DEBUG - + phpversion=7.3
2020-10-25 13:45:51,875: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer
2020-10-25 13:45:51,875: DEBUG - + php7.3 /var/www/ampache/composer.phar install --no-dev --prefer-source --no-dev -d /var/www/ampache --quiet --no-interaction
2020-10-25 13:45:52,377: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.'
2020-10-25 13:45:52,378: WARNING - Your lock file does not contain a compatible set of packages. Please run composer update.
2020-10-25 13:45:52,483: WARNING - Unable to update core dependencies with Composer.
2020-10-25 13:45:52,484: DEBUG - + ret_code=1
2020-10-25 13:45:52,484: DEBUG - + echo 'Unable to update core dependencies with Composer.'
2020-10-25 13:45:52,484: DEBUG - + exit 1
2020-10-25 13:45:52,485: DEBUG - + ynh_exit_properly
2020-10-25 13:45:52,485: DEBUG - + local exit_code=1
2020-10-25 13:45:52,485: DEBUG - + '[' 1 -eq 0 ']'
2020-10-25 13:45:52,486: DEBUG - + trap '' EXIT
2020-10-25 13:45:52,486: DEBUG - + set +o errexit
2020-10-25 13:45:52,486: DEBUG - + set +o nounset
2020-10-25 13:45:52,486: DEBUG - + sleep 0.5
2020-10-25 13:45:52,989: DEBUG - + type -t ynh_clean_setup
2020-10-25 13:45:52,990: DEBUG - + exit 1
2020-10-25 13:45:53,008: ERROR - Impossible d’installer ampache : Une erreur est survenue dans le script d’installation de l’application
lefalaf commented 3 years ago

Hi, same here :

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: INFO - [#######.............] > Loading default database...
Info: DEBUG - + database=ampache
Info: DEBUG - + mysql --user=ampache --password=********** --batch ampache
Info: INFO - [#######+++++++++....] > Installing ampache with composer...
Info: DEBUG - + echo '[#######+++++++++....] > Installing ampache with composer...'
Info: DEBUG - + ynh_install_composer --phpversion=7.3 --workdir=/var/www/ampache '--install_args=--prefer-source --no-dev'
Info: DEBUG - + declare -Ar args_array
Info: DEBUG - + workdir=/var/www/ampache
Info: DEBUG - + phpversion=7.3
Info: DEBUG - + install_args='--prefer-source --no-dev'
Info: DEBUG - + curl -sS https://getcomposer.org/installer
Info: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer
Info: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/ampache
Info: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/ampache '--commands=install --no-dev --prefer-source --no-dev'
Info: DEBUG - + declare -Ar args_array
Info: DEBUG - + workdir=/var/www/ampache
Info: DEBUG - + phpversion=7.3
Info: DEBUG - + COMPOSER_HOME=/var/www/ampache/.composer
Info: DEBUG - + php7.3 /var/www/ampache/composer.phar install --no-dev --prefer-source --no-dev -d /var/www/ampache --quiet --no-interaction
Info: WARNING - Your lock file does not contain a compatible set of packages. Please run composer update.
Info: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.'

infos :

    description: Base system
    id: basesystem
    items: 
      0: 
        details: Server board model is Olimex A20-OLinuXino-LIME2-eMMC
        status: INFO
        summary: Server hardware architecture is bare-metal armhf
      1: 
        status: INFO
        summary: Server is running Linux kernel 4.14.84-sunxi
      2: 
        status: INFO
        summary: Server is running Debian 9.13
      3: 
        details: 
          - yunohost version: 3.8.5.9 (stable)
          - yunohost-admin version: 3.8.3.5 (stable)
          - moulinette version: 3.8.1.3 (stable)
          - ssowat version: 3.8.0.3 (stable)
        status: INFO
        summary: Server is running YunoHost 3.8.5.9 (stable)