tiredofit/nginx-php-fpm:5.6-latest - FPM does not start
trojanbug opened this issue · 6 comments
I was depending on "latest" label on your great container, however my containers suddenly stopped working.
Observed behaviour (based on logs) - FPM starting (but never ever really starting), the requests to the container via NGINX refused (502 Bad Gateway).
I managed to identify that latest working version (changing to depend on this version restores my containers to working state), is tiredofit/nginx-php-fpm:5.6-5.3.6
Probably something with the new base Alpine image ?
Same issue on 5.6-5.4.1
Can I see some logs? Preferably with DEBUG_MODE=TRUE enabled
environment:
ENABLE_SMTP: 'FALSE'
TIMEZONE: 'Europe/Moscow'
5.6-5.4.1 (NO DEBUG_MODE)
Attaching to zozo_gg_wp_zozoweb_1
zozoweb_1 | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
zozoweb_1 | [s6-init] ensuring user provided files have correct perms...exited 0.
zozoweb_1 | [fix-attrs.d] applying ownership & permissions fixes...
zozoweb_1 | [fix-attrs.d] 00-functions: applying...
zozoweb_1 | [fix-attrs.d] 00-functions: exited 0.
zozoweb_1 | [fix-attrs.d] 01-s6: applying...
zozoweb_1 | [fix-attrs.d] 01-s6: exited 0.
zozoweb_1 | [fix-attrs.d] 02-zabbix: applying...
zozoweb_1 | [fix-attrs.d] 02-zabbix: exited 0.
zozoweb_1 | [fix-attrs.d] 03-logrotate: applying...
zozoweb_1 | [fix-attrs.d] 03-logrotate: exited 0.
zozoweb_1 | [fix-attrs.d] done.
zozoweb_1 | [cont-init.d] executing container initialization scripts...
zozoweb_1 | [cont-init.d] 00-startup: executing...
zozoweb_1 | [cont-init.d] 00-startup: exited 0.
zozoweb_1 | [cont-init.d] 01-timezone: executing...
zozoweb_1 | [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Moscow' from 'Etc/GMT'
zozoweb_1 | [cont-init.d] 01-timezone: exited 0.
zozoweb_1 | [cont-init.d] 02-permissions: executing...
zozoweb_1 | [cont-init.d] 02-permissions: exited 0.
zozoweb_1 | [cont-init.d] 03-zabbix: executing...
zozoweb_1 | [cont-init.d] 03-zabbix: exited 0.
zozoweb_1 | [cont-init.d] 04-cron: executing...
zozoweb_1 | [cont-init.d] 04-cron: exited 0.
zozoweb_1 | [cont-init.d] 05-smtp: executing...
zozoweb_1 | [NOTICE] ** [smtp] Disabling SMTP Features
zozoweb_1 | [cont-init.d] 05-smtp: exited 0.
zozoweb_1 | [cont-init.d] 10-nginx: executing...
zozoweb_1 | [NOTICE] ** [nginx] Disable Nginx FastCGI HTTPS Termination Support
zozoweb_1 | [cont-init.d] 10-nginx: exited 0.
zozoweb_1 | [cont-init.d] 11-nginx-config-reload: executing...
zozoweb_1 | [cont-init.d] 11-nginx-config-reload: exited 0.
zozoweb_1 | [cont-init.d] 20-php-fpm: executing...
zozoweb_1 | [NOTICE] ** [php-fpm] PHP-FPM Preparing to start with the following plugins enabled: apcu, bcmath, ctype, curl, dom, gd, iconv, imap, intl, json, ldap, mcrypt, opcache, openssl, pdo, pdo_mysql, pdo_sqlite, pgsql, phar, xml, xmlreader, zlib
zozoweb_1 | [cont-init.d] 20-php-fpm: exited 0.
zozoweb_1 | [cont-init.d] 99-container: executing...
zozoweb_1 | [cont-init.d] 99-container: exited 0.
zozoweb_1 | [cont-init.d] done.
zozoweb_1 | [services.d] starting services
zozoweb_1 | [services.d] done.
zozoweb_1 | [INFO] ** [nginx] Starting nginx 1.19.1
zozoweb_1 | [INFO] ** [zabbix] Starting Zabbix Agent
zozoweb_1 | [INFO] ** [cron] Starting cron
5.6-5.4.1 (DEBUG_MODE=TRUE)
Attaching to zozo_gg_wp_zozoweb_1
zozoweb_1 | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
zozoweb_1 | [s6-init] ensuring user provided files have correct perms...exited 0.
zozoweb_1 | [fix-attrs.d] applying ownership & permissions fixes...
zozoweb_1 | [fix-attrs.d] 00-functions: applying...
zozoweb_1 | [fix-attrs.d] 00-functions: exited 0.
zozoweb_1 | [fix-attrs.d] 01-s6: applying...
zozoweb_1 | [fix-attrs.d] 01-s6: exited 0.
zozoweb_1 | [fix-attrs.d] 02-zabbix: applying...
zozoweb_1 | [fix-attrs.d] 02-zabbix: exited 0.
zozoweb_1 | [fix-attrs.d] 03-logrotate: applying...
zozoweb_1 | [fix-attrs.d] 03-logrotate: exited 0.
zozoweb_1 | [fix-attrs.d] done.
zozoweb_1 | [cont-init.d] executing container initialization scripts...
zozoweb_1 | [cont-init.d] 00-startup: executing...
zozoweb_1 | + PROCESS_NAME=container-init
zozoweb_1 | + '[' -d /tmp/state ']'
zozoweb_1 | + print_notice 'Detected Container that has been restarted - Cleaning '\''/tmp/state'\'' files'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [NOTICE] /etc/cont-init.d/00-startup ** [container-init] Detected Container that has been restarted - Cleaning '/tmp/state' files
zozoweb_1 | + rm -rf /tmp/state/00-startup-init /tmp/state/01-timezone-init /tmp/state/02-permissions-init /tmp/state/03-zabbix-init /tmp/state/04-cron-init /tmp/state/05-smtp-init
zozoweb_1 | + rm -rf '/etc/services.d/*'
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 00-startup: exited 0.
zozoweb_1 | [cont-init.d] 01-timezone: executing...
zozoweb_1 | + PROCESS_NAME=timezone
zozoweb_1 | + '[' -n Europe/Moscow ']'
zozoweb_1 | + set_timezone Europe/Moscow
zozoweb_1 | + '[' -f /usr/share/zoneinfo/Europe/Moscow ']'
zozoweb_1 | ++ cat /etc/timezone
zozoweb_1 | + '[' Europe/Moscow '!=' Europe/Moscow ']'
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 01-timezone: exited 0.
zozoweb_1 | [cont-init.d] 02-permissions: executing...
zozoweb_1 | + PROCESS_NAME=permissions
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 02-permissions: exited 0.
zozoweb_1 | [cont-init.d] 03-zabbix: executing...
zozoweb_1 | + prepare_service single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + get_defaults single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + '[' -f /assets/defaults/03-zabbix ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + print_debug 'Container: Getting defaults for 03-zabbix'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/03-zabbix ** [container] Container: Getting defaults for 03-zabbix
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + source /assets/defaults/03-zabbix
zozoweb_1 | ++ ENABLE_ZABBIX=TRUE
zozoweb_1 | ++ ZABBIX_ALLOW_ROOT=1
zozoweb_1 | ++ ZABBIX_BUFFER_SEND=5
zozoweb_1 | ++ ZABBIX_BUFFER_SIZE=100
zozoweb_1 | ++ ZABBIX_DEBUGLEVEL=1
zozoweb_1 | ++ ZABBIX_HOSTNAME=nginx-php-fpm-app
zozoweb_1 | ++ ZABBIX_LISTEN_IP=0.0.0.0
zozoweb_1 | ++ ZABBIX_LISTEN_PORT=10050
zozoweb_1 | ++ ZABBIX_LOGFILE=/var/log/zabbix/zabbix_agentd.log
zozoweb_1 | ++ ZABBIX_LOGFILESIZE=1
zozoweb_1 | ++ ZABBIX_MAXLINES_SECOND=20
zozoweb_1 | ++ ZABBIX_REFRESH_ACTIVE_CHECKS=120
zozoweb_1 | ++ ZABBIX_REMOTECOMMANDS=1
zozoweb_1 | ++ ZABBIX_REMOTECOMMANDS_LOG=1
zozoweb_1 | ++ ZABBIX_SERVER=0.0.0.0/0
zozoweb_1 | ++ ZABBIX_SERVER_ACTIVE=zabbix-proxy
zozoweb_1 | ++ ZABBIX_START_AGENTS=2
zozoweb_1 | ++ ZABBIX_USER=zabbix
zozoweb_1 | + get_functions single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + '[' -f /assets/functions/03-zabbix ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix
zozoweb_1 | + print_debug 'Container: No functions available for 03-zabbix'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/03-zabbix ** [container] Container: No functions available for 03-zabbix
zozoweb_1 | + PROCESS_NAME=zabbix
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 03-zabbix: exited 0.
zozoweb_1 | [cont-init.d] 04-cron: executing...
zozoweb_1 | + prepare_service single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + get_defaults single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + '[' -f /assets/defaults/04-cron ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + print_debug 'Container: Getting defaults for 04-cron'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/04-cron ** [container] Container: Getting defaults for 04-cron
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + source /assets/defaults/04-cron
zozoweb_1 | ++ ENABLE_CRON=TRUE
zozoweb_1 | ++ ENABLE_LOGROTATE=TRUE
zozoweb_1 | + get_functions single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + '[' -f /assets/functions/04-cron ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/04-cron
zozoweb_1 | + print_debug 'Container: No functions available for 04-cron'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/04-cron ** [container] Container: No functions available for 04-cron
zozoweb_1 | + PROCESS_NAME=cron
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 04-cron: exited 0.
zozoweb_1 | [cont-init.d] 05-smtp: executing...
zozoweb_1 | + prepare_service single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + get_defaults single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + '[' -f /assets/defaults/05-smtp ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + print_debug 'Container: Getting defaults for 05-smtp'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/05-smtp ** [container] Container: Getting defaults for 05-smtp
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + source /assets/defaults/05-smtp
zozoweb_1 | ++ DEBUG_SMTP=FALSE
zozoweb_1 | ++ ENABLE_SMTP=FALSE
zozoweb_1 | ++ SMTP_HOST=postfix-relay
zozoweb_1 | ++ SMTP_PORT=25
zozoweb_1 | ++ SMTP_DOMAIN=docker
zozoweb_1 | ++ SMTP_MAILDOMAIN=local
zozoweb_1 | ++ SMTP_TLS=off
zozoweb_1 | ++ SMTP_STARTTLS=off
zozoweb_1 | ++ SMTP_TLSCERTCHECK=off
zozoweb_1 | + get_functions single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + '[' -f /assets/functions/05-smtp ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/05-smtp
zozoweb_1 | + print_debug 'Container: No functions available for 05-smtp'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/05-smtp ** [container] Container: No functions available for 05-smtp
zozoweb_1 | + PROCESS_NAME=smtp
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | + output_on
zozoweb_1 | [NOTICE] /etc/cont-init.d/05-smtp ** [smtp] Disabling SMTP Features
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set -x
zozoweb_1 | + liftoff
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [cont-init.d] 05-smtp: exited 0.
zozoweb_1 | [cont-init.d] 10-nginx: executing...
zozoweb_1 | + prepare_service single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + get_defaults single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + '[' -f /assets/defaults/10-nginx ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + print_debug 'Container: Getting defaults for 10-nginx'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/10-nginx ** [container] Container: Getting defaults for 10-nginx
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + source /assets/defaults/10-nginx
zozoweb_1 | ++ FORCE_RESET_PERMISSIONS=TRUE
zozoweb_1 | ++ NGINX_AUTHENTICATION_BASIC_PASS=password
zozoweb_1 | ++ NGINX_AUTHENTICATION_BASIC_USER=admin
zozoweb_1 | ++ NGINX_AUTHENTICATION_LDAP_ATTRIBUTE=uid
zozoweb_1 | ++ NGINX_AUTHENTICATION_LDAP_FILTER='(objectClass=person)'
zozoweb_1 | ++ NGINX_AUTHENTICATION_LDAP_GROUP_ATTRIBUTE=uniquemember
zozoweb_1 | ++ NGINX_AUTHENTICATION_LDAP_SCOPE=sub
zozoweb_1 | ++ NGINX_AUTHENTICATION_LLNG_HANDLER_HOST=llng-handler
zozoweb_1 | ++ NGINX_AUTHENTICATION_LLNG_HANDLER_PORT=2884
zozoweb_1 | ++ NGINX_AUTHENTICATION_LLNG_ATTRIBUTE1=HTTP_AUTH_USER,uid,upstream_http_uid
zozoweb_1 | ++ NGINX_AUTHENTICATION_TITLE='Please login'
zozoweb_1 | ++ NGINX_AUTHENTICATION_TYPE=NONE
zozoweb_1 | ++ NGINX_CLIENT_BODY_TIMEOUT=60
zozoweb_1 | ++ NGINX_COMPRESSION_BROTLI_LEVEL=6
zozoweb_1 | ++ NGINX_COMPRESSION_BROTLI_MIN_LENGTH=20
zozoweb_1 | ++ NGINX_COMPRESSION_BROTLI_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml'
zozoweb_1 | ++ NGINX_COMPRESSION_BROTLI_WINDOW=512k
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_BUFFERS='16 8k'
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_DISABLE='MSIE [1-6].(?!.*SV1)'
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_HTTP_VERSION=1.1
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_LEVEL=6
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_MIN_LENGTH=10240
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_PROXIED='expired no-cache no-store private auth'
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_TYPES='text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml'
zozoweb_1 | ++ NGINX_COMPRESSION_GZIP_VARY=TRUE
zozoweb_1 | ++ NGINX_DDOS_CONNECTIONS_PER_IP=10m
zozoweb_1 | ++ NGINX_DDOS_REQUESTS_PER_IP=5r/s
zozoweb_1 | ++ NGINX_ENABLE_APPLICATION_CONFIGURATION=TRUE
zozoweb_1 | ++ NGINX_ENABLE_COMPRESSION_BROTLI=TRUE
zozoweb_1 | ++ NGINX_ENABLE_COMPRESSION_GZIP=TRUE
zozoweb_1 | ++ NGINX_ENABLE_CREATE_SAMPLE_HTML=FALSE
zozoweb_1 | ++ NGINX_ENABLE_DDOS_PROTECTION=FALSE
zozoweb_1 | ++ NGINX_ENABLE_EPOLL=TRUE
zozoweb_1 | ++ NGINX_ENABLE_EXPLOIT_PROTECTION=TRUE
zozoweb_1 | ++ NGINX_ENABLE_FASTCGI_HTTPS=FALSE
zozoweb_1 | ++ NGINX_ENABLE_MULTI_ACCEPT=TRUE
zozoweb_1 | ++ NGINX_ENABLE_OPEN_FILE_CACHE=TRUE
zozoweb_1 | ++ NGINX_ENABLE_OPEN_FILE_CACHE_ERRORS=TRUE
zozoweb_1 | ++ NGINX_ENABLE_RESET_TIMEDOUT_CONNECTION=TRUE
zozoweb_1 | ++ NGINX_ENABLE_REVERSE_PROXY=TRUE
zozoweb_1 | ++ NGINX_ENABLE_SENDFILE=TRUE
zozoweb_1 | ++ NGINX_ENABLE_SERVER_TOKENS=FALSE
zozoweb_1 | ++ NGINX_ENABLE_SITE_OPTIMIZATION=TRUE
zozoweb_1 | ++ NGINX_ENABLE_TCPNODELAY=TRUE
zozoweb_1 | ++ NGINX_ENABLE_TCPNOPUSH=TRUE
zozoweb_1 | ++ NGINX_FASTCGI_BUFFERS='16 16k'
zozoweb_1 | ++ NGINX_FASTCGI_BUFFER_SIZE=32k
zozoweb_1 | ++ NGINX_KEEPALIVE_REQUESTS=100000
zozoweb_1 | ++ NGINX_KEEPALIVE_TIMEOUT=75
zozoweb_1 | ++ NGINX_LISTEN_PORT=80
zozoweb_1 | ++ NGINX_LOG_ACCESS_FILE=access.log
zozoweb_1 | ++ NGINX_LOG_ACCESS_LOCATION=/www/logs/nginx
zozoweb_1 | ++ NGINX_LOG_ERROR_FILE=error.log
zozoweb_1 | ++ NGINX_LOG_ERROR_LOCATION=/www/logs/nginx
zozoweb_1 | ++ NGINX_LOG_LEVEL_ERROR=warn
zozoweb_1 | ++ NGINX_MODE=NORMAL
zozoweb_1 | ++ NGINX_OPEN_FILE_CACHE_ERRORS=on
zozoweb_1 | ++ NGINX_OPEN_FILE_CACHE_INACTIVE=5m
zozoweb_1 | ++ NGINX_OPEN_FILE_CACHE_MAX=200000
zozoweb_1 | ++ NGINX_OPEN_FILE_CACHE_MIN_USES=2
zozoweb_1 | ++ NGINX_OPEN_FILE_CACHE_VALID=2m
zozoweb_1 | ++ NGINX_REAL_IP_HEADER=X-Forwarded-For
zozoweb_1 | ++ NGINX_RELOAD_ON_CONFIG_CHANGE=FALSE
zozoweb_1 | ++ NGINX_SEND_TIMEOUT=60
zozoweb_1 | ++ NGINX_SET_REAL_IP_FROM=172.16.0.0/12
zozoweb_1 | ++ NGINX_UPLOAD_MAX_SIZE=2G
zozoweb_1 | ++ NGINX_USER=nginx
zozoweb_1 | ++ NGINX_GROUP=www-data
zozoweb_1 | ++ NGINX_WEBROOT=/www/html
zozoweb_1 | ++ NGINX_WORKER_CONNECTIONS=1024
zozoweb_1 | ++ NGINX_WORKER_PROCESSES=auto
zozoweb_1 | ++ NGINX_WORKER_RLIMIT_NOFILE=100000
zozoweb_1 | ++ STAGE=DEVELOP
zozoweb_1 | + get_functions single
zozoweb_1 | + '[' -n single ']'
zozoweb_1 | + case "$1" in
zozoweb_1 | + case "$(dirname "$0")" in
zozoweb_1 | ++ dirname /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + '[' -f /assets/functions/10-nginx ']'
zozoweb_1 | ++ basename /var/run/s6/etc/cont-init.d/10-nginx
zozoweb_1 | + print_debug 'Container: No functions available for 10-nginx'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [DEBUG] /etc/cont-init.d/10-nginx ** [container] Container: No functions available for 10-nginx
zozoweb_1 | + PROCESS_NAME=nginx
zozoweb_1 | + sed -i 's#<ACCESS_LOG>#access.log#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<ACCESS_LOG_LOCATION>#/www/logs/nginx#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<CLIENT_BODY_TIMEOUT>#60#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<ERROR_LOG>#error.log#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<ERROR_LOG_LEVEL>#warn#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<ERROR_LOG_LOCATION>#/www/logs/nginx#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<GROUP>#www-data#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<KEEPALIVE_REQUESTS>#100000#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<KEEPALIVE_TIMEOUT>#75#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<SEND_TIMEOUT>#60#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<UPLOAD_MAX_SIZE>#2G#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<USER>#nginx#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<WORKER_CONNECTIONS>#1024#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<WORKER_PROCESSES>#auto#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<WORKER_RLIMIT_NOFILE>#100000#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<FASTCGI_BUFFERS>#16 16k#g' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i 's#<FASTCGI_BUFFER_SIZE>#32k#g' /etc/nginx/nginx.conf
zozoweb_1 | + var_true TRUE
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<BROTLI_LEVEL>#6#g' /etc/nginx/nginx.conf.d/compression_brotli.conf
zozoweb_1 | + sed -i 's#<BROTLI_MIN_LENGTH>#20#g' /etc/nginx/nginx.conf.d/compression_brotli.conf
zozoweb_1 | + sed -i 's#<BROTLI_TYPES>#text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml#g' /etc/nginx/nginx.conf.d/compression_brotli.conf
zozoweb_1 | + sed -i 's#<BROTLI_WINDOW>#512k#g' /etc/nginx/nginx.conf.d/compression_brotli.conf
zozoweb_1 | + var_true TRUE
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<GZIP_BUFFERS>#16 8k#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_DISABLE>#MSIE [1-6].(?!.*SV1)#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_HTTP_VERSION>#1.1#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_LEVEL>#6#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_MIN_LENGTH>#10240#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_PROXIED>#expired no-cache no-store private auth#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + sed -i 's#<GZIP_TYPES>#text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml#g' /etc/nginx/nginx.conf.d/compression_gzip.conf
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_true FALSE
zozoweb_1 | + '[' FALSE = TRUE ']'
zozoweb_1 | + '[' FALSE = true ']'
zozoweb_1 | + '[' FALSE = YES ']'
zozoweb_1 | + '[' FALSE = yes ']'
zozoweb_1 | + sed -i '\#include /etc/nginx/nginx.conf.d/ddos_protection.conf;#d' /etc/nginx/nginx.conf
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_true TRUE
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<OPEN_FILE_CACHE_MAX>#200000#g' /etc/nginx/nginx.conf.d/open_file_cache.conf
zozoweb_1 | + sed -i 's#<OPEN_FILE_CACHE_INACTIVE>#5m#g' /etc/nginx/nginx.conf.d/open_file_cache.conf
zozoweb_1 | + sed -i 's#<OPEN_FILE_CACHE_VALID>#2m#g' /etc/nginx/nginx.conf.d/open_file_cache.conf
zozoweb_1 | + sed -i 's#<OPEN_FILE_CACHE_MIN_USES>#2#g' /etc/nginx/nginx.conf.d/open_file_cache.conf
zozoweb_1 | + sed -i '\#open_file_cache_errors on;#d' /etc/nginx/nginx.conf.d/open_file_cache.conf
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_true TRUE
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<REAL_IP_HEADER>#X-Forwarded-For#g' /etc/nginx/nginx.conf.d/reverse_proxy.conf
zozoweb_1 | + sed -i 's#<SET_REAL_IP_FROM>#172.16.0.0/12#g' /etc/nginx/nginx.conf.d/reverse_proxy.conf
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false FALSE
zozoweb_1 | + '[' FALSE = FALSE ']'
zozoweb_1 | + sed -i '\#server_tokens off;#d' /etc/nginx/nginx.conf
zozoweb_1 | + sed -i '\#more_clear_headers Server;#d' /etc/nginx/nginx.conf
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + var_false TRUE
zozoweb_1 | + '[' TRUE = FALSE ']'
zozoweb_1 | + '[' TRUE = false ']'
zozoweb_1 | + '[' TRUE = NO ']'
zozoweb_1 | + '[' TRUE = no ']'
zozoweb_1 | + case "$NGINX_MODE" in
zozoweb_1 | + :
zozoweb_1 | + var_true TRUE
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + case "$NGINX_AUTHENTICATION_TYPE" in
zozoweb_1 | + :
zozoweb_1 | + silent sed -i 's#<WEBROOT>#/www/html#g' /etc/nginx/conf.d/default.conf
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<WEBROOT>#/www/html#g' /etc/nginx/conf.d/default.conf
zozoweb_1 | + silent sed -i 's#<LISTEN_PORT>#80#g' /etc/nginx/conf.d/default.conf
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<LISTEN_PORT>#80#g' /etc/nginx/conf.d/default.conf
zozoweb_1 | + silent sed -i 's#<WEBROOT>#/www/html#g' /etc/nginx/conf.d/maintenance.template /etc/nginx/conf.d/proxy.template /etc/nginx/conf.d/redirect.template
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<WEBROOT>#/www/html#g' /etc/nginx/conf.d/maintenance.template /etc/nginx/conf.d/proxy.template /etc/nginx/conf.d/redirect.template
zozoweb_1 | + silent sed -i 's#<LISTEN_PORT>#80#g' /etc/nginx/conf.d/maintenance.template /etc/nginx/conf.d/proxy.template /etc/nginx/conf.d/redirect.template
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + sed -i 's#<LISTEN_PORT>#80#g' /etc/nginx/conf.d/maintenance.template /etc/nginx/conf.d/proxy.template /etc/nginx/conf.d/redirect.template
zozoweb_1 | + [[ -v NGINX_INCLUDE_CONFIGURATION ]]
zozoweb_1 | + var_true FALSE
zozoweb_1 | + '[' FALSE = TRUE ']'
zozoweb_1 | + '[' FALSE = true ']'
zozoweb_1 | + '[' FALSE = YES ']'
zozoweb_1 | + '[' FALSE = yes ']'
zozoweb_1 | + print_notice 'Disable Nginx FastCGI HTTPS Termination Support'
zozoweb_1 | + output_off
zozoweb_1 | + '[' TRUE = TRUE ']'
zozoweb_1 | + set +x
zozoweb_1 | [NOTICE] /etc/cont-init.d/10-nginx ** [nginx] Disable Nginx FastCGI HTTPS Termination Support
zozoweb_1 | + echo 'fastcgi_param HTTPS '\''off'\'';'
zozoweb_1 | + PROTOCOL=http://
zozoweb_1 | + case "$STAGE" in
zozoweb_1 | + echo 'fastcgi_param STAGE "DEVELOP";'
zozoweb_1 | + var_true FALSE
zozoweb_1 | + '[' FALSE = TRUE ']'
zozoweb_1 | + '[' FALSE = true ']'
zozoweb_1 | + '[' FALSE = YES ']'
zozoweb_1 | + '[' FALSE = yes ']'
zozoweb_1 | + mkdir -p /www/html
zozoweb_1 | + '[' TRUE == TRUE ']'
zozoweb_1 | + chown -R nginx:www-data /www/html
OK, I don't even see the PHP container initialization script starting on the DEBUG_MODE=TRUE version. I will run some tests.
Problem found - Tagging as tiredofit/nginx-php-fpm:5.4.2
. One of the folders was named incorrectly.
Yea! Thanks, now it works!