Open 00Asgaroth00 opened 5 years ago
Hi,
I'm logging this error here as the docker hub image infomir/ministra points to this github page for examples and troubleshooting.
The infomir/ministra image needs to be updated to run an 'apt update' before attempting to install any packages.
The auto installation of ministra is failing in this image, see below:
ministra_1 | stalker_portal > build: ministra_1 | ministra_1 | [exec] Executing command: lsb_release -r -s 2>&1 ministra_1 | [echo] Ubuntu version: 16.04 ministra_1 | [php] Evaluating PHP expression: substr(phpversion(), 0, 3); ministra_1 | [echo] PHP version: 7.0 ministra_1 | [exec] Executing command: apt-get -y install php-soap php-intl php-gettext php-memcache php-curl php-mysql php-mcrypt php-tidy php-imagick php-geoip php-mbstring curl npm git zip unzip php-zip 2>&1 ministra_1 | [exec] Executing command: phpenmod mcrypt 2>&1 ministra_1 | [exec] Executing command: phpdismod opcache 2>&1 ministra_1 | [exec] Executing command: a2enmod rewrite 2>&1 ministra_1 | [echo] Reading package lists... ministra_1 | Building dependency tree... ministra_1 | Reading state information... ministra_1 | Package git is not available, but is referred to by another package. ministra_1 | This may mean that the package is missing, has been obsoleted, or ministra_1 | is only available from another source ministra_1 | ministra_1 | E: Unable to locate package php-gettext ministra_1 | E: Unable to locate package php-mysql ministra_1 | E: Unable to locate package php-mcrypt ministra_1 | E: Unable to locate package php-mbstring ministra_1 | E: Package 'git' has no installation candidate ministra_1 | E: Unable to locate package zip ministra_1 | E: Unable to locate package unzip ministra_1 | [exec] Executing command: stop stalkerd 2>&1 ministra_1 | [exec] Executing command: nodejs -v 2>&1 ministra_1 | no crontab for root ministra_1 | [copy] Copying 1 file to /etc/cron.d ministra_1 | [chmod] Changed file mode on '/etc/cron.d/stalker_1b0271f969f18e4b72a88df26e81c686' to 755 ministra_1 | [copy] Copying 1 file to /etc/logrotate.d ministra_1 | [copy] Copying 1 file to /tmp ministra_1 | [copy] Copying 1 file to /home/ministra/ministra/www/stalker_portal/db/delta ministra_1 | [dbdeploy] Getting applied changed numbers from DB: mysql:port=3306;host=mysql;dbname=ministra ministra_1 | [dbdeploy] Current db revision: 0 ministra_1 | [dbdeploy] Checkall: Off
if I manually login to the container and run an "apt update" then phing appears to move a little further:
# apt update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:3 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [126 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [795 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB] Get:8 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB] Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [544 kB] Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6117 B] Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [316 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1189 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [952 kB] Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.0 kB] Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8532 B] Fetched 25.9 MB in 36s (717 kB/s) Reading package lists... Done
re-run phing
# cd /home/ministra/ministra/www/stalker_portal/deploy # phing Buildfile: /home/ministra/ministra/www/stalker_portal/deploy/build.xml [property] Loading /home/ministra/ministra/www/stalker_portal/deploy/../server/custom.ini [property] Loading /home/ministra/ministra/www/stalker_portal/deploy/../server/config.ini stalker_portal > build: [exec] Executing command: lsb_release -r -s 2>&1 [echo] Ubuntu version: 16.04 [php] Evaluating PHP expression: substr(phpversion(), 0, 3); [echo] PHP version: 7.0 [exec] Executing command: apt-get -y install php-soap php-intl php-gettext php-memcache php-curl php-mysql php-mcrypt php-tidy php-imagick php-geoip php-mbstring curl npm git zip unzip php-zip 2>&1 [exec] Executing command: phpenmod mcrypt 2>&1 [exec] Executing command: phpdismod opcache 2>&1 [exec] Executing command: a2enmod rewrite 2>&1 [exec] Executing command: stop stalkerd 2>&1 [exec] Executing command: nodejs -v 2>&1 [copy] Copying 1 file to /etc/cron.d [chmod] Changed file mode on '/etc/cron.d/stalker_1b0271f969f18e4b72a88df26e81c686' to 755 [copy] Copying 1 file to /etc/logrotate.d [copy] Copying 1 file to /tmp [copy] Copying 1 file to /home/ministra/ministra/www/stalker_portal/db/delta [dbdeploy] Getting applied changed numbers from DB: mysql:port=3306;host=mysql;dbname=ministra [dbdeploy] Current db revision: 250 [dbdeploy] Checkall: Off [echo] dbdeploy result: 0 [echo] /home/ministra/ministra/www/stalker_portal [php] Evaluating PHP expression: ini_get('extension_dir'); [echo] PHP extension dir: /usr/lib/php/20151012 [php] Evaluating PHP expression: PHP_INT_SIZE === 8 ? 64 : 32 [echo] OS: 64 bit [copy] Copying 1 file to /usr/lib/php/20151012 [chmod] Changed file mode on '/usr/lib/php/20151012/ioncube_loader_lin_7.0.so' to 644 [exec] Executing command: php -v | grep -i ioncube | wc -l 2>&1 [echo] IonCube installed: 1 [exec] Executing command: cp -r -v /home/ministra/ministra/www/stalker_portal/deploy/src/core/56/* /home/ministra/ministra/www/stalker_portal 2>&1 [echo] The core was successfully updated! [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_portal/screenshots' to 777 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_portal/misc/logos' to 777 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_portal/misc/audio_covers' to 777 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_portal/misc/themes' to 777 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_portal/cert' to 777 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/admin/logs 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/admin/resources/cache/twig 2>&1 [exec] Executing command: find /home/ministra/ministra/www/stalker_portal/admin/resources/cache/twig/ -type f -name '*.php' -delete 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/admin/resources/cache/sidebar 2>&1 [exec] Executing command: find /home/ministra/ministra/www/stalker_portal/admin/resources/cache/sidebar/ -type f -name '*_bar' -delete 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/admin/resources/cache/assetic 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/server/adm/css/min/default 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/server/adm/js/min/default 2>&1 [exec] Executing command: mkdir /home/ministra/ministra/www/stalker_portal/deploy/composer 2>&1 [exec] Executing command: mkdir /home/ministra/ministra/www/stalker_portal/../stalker_apps/ 2>&1 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_apps' to 777 [exec] Executing command: mkdir /home/ministra/ministra/www/stalker_portal/../stalker_launcher_apps/ 2>&1 [chmod] Changed file mode on '/home/ministra/ministra/www/stalker_launcher_apps' to 777 [exec] Executing command: php /home/ministra/ministra/www/stalker_portal/deploy/composer/composer.phar self-update 2>&1 [exec] Executing command: rm -f /home/ministra/ministra/www/stalker_portal/deploy/composer.lock 2>&1 [exec] Executing command: php /home/ministra/ministra/www/stalker_portal/deploy/composer/composer.phar install 2>&1 [exec] Executing command: mkdir -p --mode=0777 /home/ministra/ministra/www/stalker_portal/../.npm 2>&1 [exec] Executing command: touch /var/log/.npmrc; chown www-data:www-data /var/log/.npmrc 2>&1 [exec] Executing command: touch /home/ministra/ministra/www/stalker_portal/../.npmrc; chown www-data:www-data /home/ministra/ministra/www/stalker_portal/../.npmrc 2>&1 [exec] Executing command: cd /home/ministra/ministra/www/stalker_portal/server/tools/; php ./init_apps.php; chown -R www-data:www-data /home/ministra/ministra/www/stalker_portal/../stalker_launcher_apps/ 2>&1 [exec] Executing command: cd /home/ministra/ministra/www/stalker_portal/server/tasks/; php ./reset_paused.php nodelay 2>&1 [echo] ${zoneinfo.error.msg} [exec] Executing command: mkdir /var/log/stalkerd 2>&1 [chmod] Changed file mode on '/var/log/stalkerd' to 777 [exec] Executing command: mkdir /home/ministra/ministra/www/stalker_portal/../player/ 2>&1 [copy] Copying 1 file to /home/ministra/ministra/www/player [exec] Executing command: chmod 755 /home/ministra/ministra/www/stalker_portal/../player/ -R 2>&1 [copy] Copying 1 file to /home/ministra/ministra/www/player [exec] Executing command: chown www-data:www-data /home/ministra/ministra/www/stalker_portal/../player/ -R 2>&1 [chmod] Changed file mode on '/home/ministra/ministra/www/player/.htaccess' to 644 BUILD FINISHED Total time: 1 minute 39.47 seconds
Hi! apt-get running from phing, which init database, needed packages already installed in image. I need replace packages install from phing, thanks!
Hi,
I'm logging this error here as the docker hub image infomir/ministra points to this github page for examples and troubleshooting.
The infomir/ministra image needs to be updated to run an 'apt update' before attempting to install any packages.
The auto installation of ministra is failing in this image, see below:
if I manually login to the container and run an "apt update" then phing appears to move a little further:
re-run phing