YunoHost-Apps / kimai2_ynh

Kimai v2 package for YunoHost
https://www.kimai.org/
MIT License
13 stars 8 forks source link

ERROR - Could not install kimai2 #28

Closed o-s-m-o-s closed 3 years ago

o-s-m-o-s commented 3 years ago

Yunohost tells me it's all up to date.

Error log:

2020-10-26 14:14:34,610: DEBUG - + workdir=/var/www/kimai2
2020-10-26 14:14:34,610: DEBUG - + phpversion=7.3
2020-10-26 14:14:34,610: DEBUG - + COMPOSER_HOME=/var/www/kimai2/.composer
2020-10-26 14:14:34,610: DEBUG - + php7.3 -- --quiet --install-dir=/var/www/kimai2
2020-10-26 14:14:34,611: DEBUG - + curl -sS https://getcomposer.org/installer
2020-10-26 14:14:45,347: DEBUG - + ynh_composer_exec --phpversion=7.3 --workdir=/var/www/kimai2 '--commands=install --no-dev --optimize-autoloader'
2020-10-26 14:14:45,348: DEBUG - + declare -Ar args_array
2020-10-26 14:14:45,449: DEBUG - + workdir=/var/www/kimai2
2020-10-26 14:14:45,450: DEBUG - + phpversion=7.3
2020-10-26 14:14:45,450: DEBUG - + COMPOSER_HOME=/var/www/kimai2/.composer
2020-10-26 14:14:45,450: DEBUG - + php7.3 /var/www/kimai2/composer.phar install --no-dev --optimize-autoloader -d /var/www/kimai2 --quiet --no-interaction
2020-10-26 14:14:45,851: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.'
2020-10-26 14:14:45,852: WARNING - Your lock file does not contain a compatible set of packages. Please run composer update.
2020-10-26 14:14:45,853: WARNING - Unable to update core dependencies with Composer.
2020-10-26 14:14:45,855: DEBUG - + ret_code=1
2020-10-26 14:14:45,855: DEBUG - + echo 'Unable to update core dependencies with Composer.'
2020-10-26 14:14:45,856: DEBUG - + exit 1
2020-10-26 14:14:45,856: DEBUG - + ynh_exit_properly
2020-10-26 14:14:45,856: DEBUG - + local exit_code=1
2020-10-26 14:14:45,856: DEBUG - + '[' 1 -eq 0 ']'
2020-10-26 14:14:45,856: DEBUG - + trap '' EXIT
2020-10-26 14:14:45,856: DEBUG - + set +o errexit
2020-10-26 14:14:45,857: DEBUG - + set +o nounset
2020-10-26 14:14:45,857: DEBUG - + sleep 0.5
2020-10-26 14:14:46,358: DEBUG - + type -t ynh_clean_setup
2020-10-26 14:14:46,359: DEBUG - + ynh_clean_setup
2020-10-26 14:14:46,359: DEBUG - + true
2020-10-26 14:14:46,359: DEBUG - + exit 1
2020-10-26 14:14:46,410: ERROR - Could not install kimai2: An error occurred inside the app installation script
kevinpapst commented 3 years ago

Probably that happens because the latest stable of Kimai is not compatible with Composer 2 (which was just released).

This bug could probably solve itself by waiting for the next release, or by forcing composer to use version 1.

anmol26s commented 3 years ago

This PR should fix this. https://github.com/YunoHost-Apps/kimai2_ynh/pull/29