Running apache script + /create-symlinks.sh Symlinking bundled extensions... Symlinking bundled skins... Symlinking user extensions and overwriting any redundant bundled extensions... Symlinking user skins and overwriting any redundant bundled skins... + echo 'Syncing files...' Syncing files... + rsync -ah --inplace --ignore-existing --remove-source-files -og --chown=www-data:www-data --chmod=Fg=rw,Dg=rwx /mw_origin_files/ /mediawiki/ rsync: [generator] chgrp "/mediawiki/images" failed: Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7] + rm -rf /mw_origin_files rm: cannot remove '/mw_origin_files': Permission denied + /update-docker-gateway.sh ++ get_docker_gateway ++ getent hosts gateway.docker.internal ++ awk '{ print $1 }' + DOCKER_GATEWAY= + '[' -z '' ']' + DOCKER_GATEWAY=172.17.0.1 ++ get_mediawiki_variable wgServer ++ php /getMediawikiSettings.php --variable=wgServer --format=string PHP Fatal error: Declaration of GetMediawikiSettings::finalSetup() must be compatible with Maintenance::finalSetup(?MediaWiki\Settings\SettingsBuilder $settingsBuilder = null) in /getMediawikiSettings.php on line 142 + WG_SITE_SERVER= + cp /etc/hosts /var/www/hosts.new + sed -i '/# MW_SITE_HOST/d' /var/www/hosts.new + '[' -n '' ']' + cp -f /var/www/hosts.new /etc/hosts cp: cannot remove '/etc/hosts': Permission denied + sed -i s/DOCKER_GATEWAY/172.17.0.1/ /etc/msmtprc sed: couldn't open temporary file /etc/sedcPgcsz: Permission denied Checking permissions of /mediawiki... + echo 'Checking permissions of /mediawiki...' + dir_is_writable /mediawiki + INFO=($(stat -L -c "0%a %G %U" "$1")) ++ stat -L -c '0%a %G %U' /mediawiki + PERM=0775 + GROUP=www-data + OWNER=www-data + (( (0775 & 0002) != 0 )) + (( (0775 & 0020) != 0 )) + [[ www-data == www-data ]] + return 0 Permissions are OK! + echo 'Permissions are OK!' Checking permissions of /var/log/apache2... + echo 'Checking permissions of /var/log/apache2...' + dir_is_writable /var/log/apache2 + INFO=($(stat -L -c "0%a %G %U" "$1")) ++ stat -L -c '0%a %G %U' /var/log/apache2 + PERM=0750 + GROUP=www-data + OWNER=www-data + (( (0750 & 0002) != 0 )) + (( (0750 & 0020) != 0 )) + (( (0750 & 0200) != 0 )) + [[ www-data == www-data ]] + return 0 Permissions are OK! + echo 'Permissions are OK!' + waitdatabase + isFalse '' + case $1 in + return 0 + /wait-for-it.sh -t 60 db:3306 wait-for-it.sh: waiting 60 seconds for db:3306 wait-for-it.sh: timeout occurred after waiting 60 seconds for db:3306 + check_mount_points + '[' '!' -d /var/www/mediawiki/w/user-extensions ']' + '[' '!' -d /var/www/mediawiki/w/user-skins ']' + sleep 1 + cd /var/www/mediawiki/w + echo 'Checking for LocalSettings...' Checking for LocalSettings... Running auto-update... + '[' -e /mediawiki/config/LocalSettings.php ']' + run_autoupdate + echo 'Running auto-update...' + runuser -c 'php maintenance/update.php --quick' -s /bin/bash www-data runuser: may not be used by non-root users + echo 'Auto-update completed' + '[' -e /mediawiki/config/wikis.yaml ']' Auto-update completed Starting services... + echo 'Starting services...' + echo 'Checking permissions of /mediawiki/sitemap...' + run_maintenance_scripts Checking permissions of /mediawiki/sitemap... + dir_is_writable /mediawiki/sitemap + INFO=($(stat -L -c "0%a %G %U" "$1")) ++ stat -L -c '0%a %G %U' /mediawiki/sitemap ++ find /maintenance-scripts/ -maxdepth 1 -mindepth 1 -type f -name '*.sh' stat: cannot statx '/mediawiki/sitemap': No such file or directory + PERM= + GROUP= + OWNER= + (( ( & 0002) != 0 )) /run-all.sh: line 35: ((: ( & 0002) != 0 : syntax error: operand expected (error token is "& 0002) != 0 ") + (( ( & 0020) != 0 )) /run-all.sh: line 38: ((: ( & 0020) != 0 : syntax error: operand expected (error token is "& 0020) != 0 ") + (( ( & 0200) != 0 )) /run-all.sh: line 44: ((: ( & 0200) != 0 : syntax error: operand expected (error token is "& 0200) != 0 ") + return 1 + chown -R www-data:www-data /mediawiki/sitemap + for maintenance_script in $(find /maintenance-scripts/ -maxdepth 1 -mindepth 1 -type f -name "*.sh") ++ basename /maintenance-scripts/monitor-directories.sh chown: cannot access '/mediawiki/sitemap': No such file or directory + chmod -R g=rwX /mediawiki/sitemap + script_name=monitor-directories.sh + [[ monitor-directories.sh == mw* ]] + echo 'Running monitor-directories.sh with user www-data...' Running monitor-directories.sh with user www-data... + for maintenance_script in $(find /maintenance-scripts/ -maxdepth 1 -mindepth 1 -type f -name "*.sh") + nice -n 20 runuser -c /maintenance-scripts/monitor-directories.sh -s /bin/bash www-data ++ basename /maintenance-scripts/mw_job_runner.sh chmod: cannot access '/mediawiki/sitemap': No such file or directory + /run-php-fpm.sh + rm -rf /run/apache2/socks '/tmp/apache2*' + script_name=mw_job_runner.sh + [[ mw_job_runner.sh == mw* ]] + for maintenance_script in $(find /maintenance-scripts/ -maxdepth 1 -mindepth 1 -type f -name "*.sh") + run_mw_script mw_job_runner.sh + sleep 3 ++ basename /maintenance-scripts/mw_sitemap_generator.sh rm: cannot remove '/run/apache2/socks': Permission denied + exec /usr/sbin/apachectl -DFOREGROUND + echo 'starting php-fpm' + mkdir -p /run/php starting php-fpm + script_name=mw_sitemap_generator.sh + exec /usr/sbin/php-fpm8.1 + [[ mw_sitemap_generator.sh == mw* ]] + for maintenance_script in $(find /maintenance-scripts/ -maxdepth 1 -mindepth 1 -type f -name "*.sh") + run_mw_script mw_sitemap_generator.sh runuser: may not be used by non-root users + sleep 3 ++ basename /maintenance-scripts/mw_transcoder.sh + script_name=mw_transcoder.sh + [[ mw_transcoder.sh == mw* ]] + run_mw_script mw_transcoder.sh + sleep 3 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.90.230. Set the 'ServerName' directive globally to suppress this message Action '-DFOREGROUND' failed. The Apache error log may have more information. run all complete