tiredofit / docker-freepbx

Dockerized FreePBX 15 w/Asterisk 17, Seperate MySQL Database support, and Data Persistence and UCP
MIT License
515 stars 236 forks source link

"Invalid Database Permissions. The error was: SQLSTATE[HY000] [2002] Connection timed out" and "[ERROR] /etc/cont-init.d/10-freepbx ** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. exiting" #209

Open megapearl opened 1 year ago

megapearl commented 1 year ago

Just set up a new container, but can't get it to install. It looks like it is not connecting to the database, but I can connect to it from within the container just fine.

What I tried so far:

Tried it on another server (hardware) and other database host (Virtual Machine). Started over using the 14, 15, and develop branch. Connecting to the local ip (In my case 10.0.1.44) instead of the mariadb hostname. Using a simple password with just letters and numbers. Tested using root user and password of MariaDB. Using mysqlcheck --repair --all-databases and mysqlcheck reported no errors.

Still giving the SQLSTATE[HY000] [2002] error.

What could be wrong, how to troubleshoot/debug? My setup is:

docker-compose:

  mariadb:
    image: mariadb:latest
    container_name: mariadb
    hostname: lab-mariadb
    user: 1033:103
    environment:
      - PUID=1033
      - PGID=103
      - TZ=Europe/Amsterdam
      - MARIADB_AUTO_UPGRADE=true
    ports:
      - 3307:3306/tcp
    volumes:
      - /home/dockers/mariadb/conf:/etc/mysql/conf.d
      - /home/dockers/mariadb/db:/var/lib/mysql
      - /etc/ssl/private/newca.crt:/etc/ssl/certs/newca.crt
      - /etc/ssl/private/mysql.crt:/etc/ssl/certs/mysql.crt
      - /etc/ssl/private/mysql.key:/etc/ssl/certs/mysql.key
    restart: unless-stopped

  freepbx:
    image: tiredofit/freepbx:15-latest
    container_name: freepbx
    hostname: lab-sip
    ports:
      - 8020:80
      - 8021:443
      - 4445:4445
      - 4569:4569
      - 5060:5060
      - 5160:5160
      - 8001:8001
      - 8003:8003
      - 8008:8008
      - 8009:8009
      - 5100-5150:5100-5150/udp
    volumes:
      - /home/dockers/freepbx:/data
      - /home/dockers/swag/etc/letsencrypt/live/flissinger.com:/certs
    environment:
      - PUID=1028
      - PGID=101
      - TZ=Europe/Amsterdam
      - ADMIN_DIRECTORY=/admin
      - DB_EMBEDDED=FALSE
      - DB_HOST=lab-mariadb.flissinger.com
      - DB_PORT=3307
      - DB_NAME=freepbx
      - DB_USER=freepbx
      - DB_PASS=*redacted*
      - ENABLE_FAIL2BAN=TRUE
      - ENABLE_FOP=FALSE
      - ENABLE_SSL=FALSE
      - ENABLE_XMPP=FALSE
      - ENABLE_VM_TRANSCRIBE=FALSE
      - FOP_DIRECTORY=/fop
      - HTTP_PORT=80
      - HTTPS_PORT=443
      - INSTALL_ADDITIONAL_MODULES=
      - RTP_START=5100
      - RTP_FINISH=5200
      - UCP_FIRST=TRUE
      - TLS_CERT=
      - TLS_KEY=
      - WEBROOT=/var/www/html
      - VM_TRANSCRIBE_APIKEY=
      - VM_TRANSCRIBE_MODEL=nl-NL_Multimedia
      - DEBUG_MODE=TRUE
    cap_add:
      - SYS_ADMIN
      - NET_ADMIN
    restart: "no"
    privileged: true

logs:

+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/02-permissions
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/02-permissions
++ DEBUG_PERMISSIONS=FALSE
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/03-monitoring'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/03-monitoring
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/03-monitoring
++ ZABBIX_AGENT_LOG_FILE=zabbix_agentd.log
++ ZABBIX_AGENT_LOG_PATH=/var/log/zabbix/agent/
++ ZABBIX_ALLOW_ROOT=1
++ ZABBIX_BUFFER_SEND=5
++ ZABBIX_BUFFER_SIZE=100
++ ZABBIX_CERT_PATH=/etc/zabbix/certs/
++ ZABBIX_CONFIG_FILE=zabbix_agentd.conf
++ ZABBIX_CONFIG_PATH=/etc/zabbix/
++ ZABBIX_DEBUGLEVEL=1
++ ZABBIX_ENABLE_AUTOREGISTER=TRUE
++ ZABBIX_ENABLE_AUTOREGISTER_DNS=TRUE
++ ZABBIX_HOSTNAME=lab-sip
++ ZABBIX_LISTEN_IP=0.0.0.0
++ ZABBIX_LISTEN_PORT=10050
++ ZABBIX_LOG_FILE_SIZE=0
++ ZABBIX_MAXLINES_SECOND=20
++ ZABBIX_PID=/var/lib/zabbix/run/zabbix-agent.pid
++ ZABBIX_REFRESH_ACTIVE_CHECKS=120
++ ZABBIX_REMOTECOMMANDS_ALLOW='*'
++ ZABBIX_REMOTECOMMANDS_LOG=1
++ ZABBIX_SERVER=0.0.0.0/0
++ ZABBIX_SERVER_ACTIVE=zabbix-proxy
++ ZABBIX_SETUP_TYPE=AUTO
++ ZABBIX_SOCKET=/var/lib/zabbix/run/zabbix-agent.sock
++ ZABBIX_START_AGENTS=1
++ ZABBIX_STATUS_PORT=8050
++ ZABBIX_USER=zabbix
++ ZABBIX_USER_DOAS=TRUE
++ ZABBIX_USER_SUDO=TRUE
+++ cat /etc/os-release
+++ grep '^ID='
+++ cut -d = -f2
++ os=debian
++ case ${os} in
++ ZABBIX_AGENT_TYPE=modern
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/04-scheduling'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/04-scheduling
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/04-scheduling
++ SCHEDULING_LOG_TYPE=FILE
++ SCHEDULING_LOG_LOCATION=/var/log/cron/
++ SCHEDULING_LOG_LEVEL=8
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/05-fail2ban'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/05-fail2ban
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/05-fail2ban
++ ENABLE_FAIL2BAN=TRUE
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/05-logging'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/05-logging
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/05-logging
++ FLUENTBIT_CONFIG_PARSERS=parsers.conf
++ FLUENTBIT_CONFIG_PLUGINS=plugins.conf
++ FLUENTBIT_ENABLE_HTTP_SERVER=TRUE
++ FLUENTBIT_ENABLE_STORAGE_METRICS=TRUE
++ FLUENTBIT_FLUSH_SECONDS=1
++ FLUENTBIT_FORWARD_BUFFER_CHUNK_SIZE=1M
++ FLUENTBIT_FORWARD_BUFFER_MAX_SIZE=6M
++ FLUENTBIT_FORWARD_PORT=24224
++ FLUENTBIT_GRACE_SECONDS=1
++ FLUENTBIT_HTTP_LISTEN_IP=0.0.0.0
++ FLUENTBIT_HTTP_LISTEN_PORT=2020
++ FLUENTBIT_LOG_FILE=fluentbit.log
++ FLUENTBIT_LOG_LEVEL=info
++ FLUENTBIT_LOG_PATH=/var/log/fluentbit/
++ FLUENTBIT_MODE=NORMAL
++ FLUENTBIT_OUTPUT=FORWARD
++ FLUENTBIT_OUTPUT_FORWARD_HOST=fluent-proxy
++ FLUENTBIT_OUTPUT_FORWARD_TLS=FALSE
++ FLUENTBIT_OUTPUT_FORWARD_TLS_VERIFY=FALSE
++ FLUENTBIT_OUTPUT_LOKI_HOST=loki
++ FLUENTBIT_OUTPUT_LOKI_PORT=3100
++ FLUENTBIT_OUTPUT_LOKI_TLS=FALSE
++ FLUENTBIT_OUTPUT_LOKI_TLS_VERIFY=FALSE
++ FLUENTBIT_SETUP_TYPE=AUTO
++ FLUENTBIT_STORAGE_BACKLOG_LIMIT=5M
++ FLUENTBIT_STORAGE_CHECKSUM=FALSE
++ FLUENTBIT_STORAGE_PATH=/tmp/fluentbit/storage
++ FLUENTBIT_STORAGE_SYNC=normal
++ FLUENTBIT_TAIL_BUFFER_CHUNK_SIZE=32k
++ FLUENTBIT_TAIL_BUFFER_MAX_SIZE=32k
++ FLUENTBIT_TAIL_READ_FROM_HEAD=FALSE
++ FLUENTBIT_TAIL_SKIP_EMPTY_LINES=TRUE
++ FLUENTBIT_TAIL_SKIP_LONG_LINES=TRUE
++ FLUENTBIT_TAIL_DB_ENABLE=TRUE
++ FLUENTBIT_TAIL_DB_SYNC=normal
++ FLUENTBIT_TAIL_DB_LOCK=TRUE
++ FLUENTBIT_TAIL_DB_JOURNAL_MODE=WAL
++ FLUENTBIT_TAIL_KEY_PATH_ENABLE=TRUE
++ FLUENTBIT_TAIL_KEY_PATH=filename
++ FLUENTBIT_TAIL_KEY_OFFSET_ENABLE=FALSE
++ FLUENTBIT_TAIL_KEY_OFFSET=offset
++ LOGROTATE_RETAIN_DAYS=7
++ LOGSHIPPING_AUTO_CONFIG_LOGROTATE=TRUE
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/06-messaging'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/06-messaging
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/06-messaging
++ SMTP_AUTO_FROM=FALSE
++ SMTP_DOMAIN=docker
++ SMTP_HOST=postfix-relay
++ SMTP_MAILDOMAIN=local
++ SMTP_PORT=25
++ SMTP_STARTTLS=FALSE
++ SMTP_TLS=FALSE
++ SMTP_TLSCERTCHECK=FALSE
+ for d in /assets/defaults/*
+ print_debug 'Container: Getting defaults for /assets/defaults/10-freepbx'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting defaults for /assets/defaults/10-freepbx
+ source /assets/defaults/00-container
++ CONTAINER_CUSTOM_PATH=/assets/custom/
++ CONTAINER_CUSTOM_SCRIPTS_PATH=/assets/custom-scripts/
++ CONTAINER_ENABLE_CUSTOM_BASH_PROMPT=TRUE
++ CONTAINER_ENABLE_DOCKER_SECRETS=TRUE
++ CONTAINER_ENABLE_LOGROTATE=TRUE
++ CONTAINER_ENABLE_LOGSHIPPING=FALSE
++ CONTAINER_ENABLE_LOG_PREFIX=TRUE
++ CONTAINER_ENABLE_MESSAGING=TRUE
++ CONTAINER_ENABLE_MONITORING=TRUE
++ CONTAINER_ENABLE_PERMISSIONS=TRUE
++ CONTAINER_ENABLE_PROCESS_COUNTER=TRUE
++ CONTAINER_ENABLE_PROCESS_HELPER=TRUE
++ CONTAINER_ENABLE_SCHEDULING=TRUE
++ CONTAINER_LOGSHIPPING_BACKEND=fluent-bit
++ CONTAINER_LOG_LEVEL=DEBUG
++ CONTAINER_LOG_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_LOG_FILE_NAME=container.log
++ CONTAINER_LOG_FILE_LEVEL=DEBUG
++ CONTAINER_LOG_FILE_PATH=/var/log/container/
++ CONTAINER_LOG_FILE_PREFIX_DATE_FMT=%Y-%m-%d
++ CONTAINER_LOG_FILE_PREFIX_SEPERATOR=.
++ CONTAINER_LOG_FILE_PREFIX_TIME_FMT=%H:%M:%S
++ CONTAINER_MESSAGING_BACKEND=msmtp
++ CONTAINER_MONITORING_BACKEND=zabbix
++ CONTAINER_NAME=lab-sip
++ CONTAINER_PROCESS_HELPER_DATE_FMT=%Y-%m-%d
++ CONTAINER_PROCESS_HELPER_PATH=/assets/container/processhelper/
++ CONTAINER_PROCESS_HELPER_SCRIPT=processhelper.sh
++ CONTAINER_PROCESS_HELPER_TIME_FMT=%H:%M:%S
++ CONTAINER_PROCESS_RUNAWAY_PROTECTOR=TRUE
++ CONTAINER_PROCESS_RUNAWAY_LIMIT=50
++ CONTAINER_SCHEDULING_BACKEND=cron
++ CONTAINER_SCHEDULING_LOCATION=/assets/cron/
++ CONTAINER_SKIP_SANITY_CHECK=FALSE
++ DEBUG_MODE=TRUE
++ PROCESS_NAME=container
++++ dirname /etc/cont-init.d/05-logging
+++ cd /etc/cont-init.d
+++ pwd -P
++ SCRIPTPATH=/etc/cont-init.d
+ source /assets/defaults/10-freepbx
++ ADMIN_DIRECTORY=/admin
++ DB_EMBEDDED=FALSE
++ DB_PORT=3307
++ ENABLE_FOP=FALSE
++ ENABLE_SMTP=TRUE
++ ENABLE_SSL=FALSE
++ ENABLE_VM_TRANSCRIBE=FALSE
++ ENABLE_XMPP=FALSE
++ FOP_DIRECTORY=/fop
++ FREEPBX_VERSION=15.0.16.56
++ HTTPS_PORT=443
++ HTTP_PORT=80
++ UCP_FIRST=TRUE
++ VM_TRANSCRIBE_MODEL=nl-NL_Multimedia
++ WEBROOT=/var/www/html
+ get_functions
+ '[' -n '' ']'
+ for f in /assets/functions/*
+ '[' /assets/functions/00-container '!=' /assets/functions/00-container ']'
+ for f in /assets/functions/*
+ '[' /assets/functions/10-freepbx '!=' /assets/functions/00-container ']'
+ print_debug 'Container: Getting functions for /assets/functions/10-freepbx'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [container] Container: Getting functions for /assets/functions/10-freepbx
+ source /assets/functions/10-freepbx
+ PROCESS_NAME=logging
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/05-logging ** [logging] Enabling log rotation
+ mkdir -p /assets/cron/
+ cat
++ basename /etc/cont-init.d/05-logging
++ TZ=Etc/GMT
++ date '+%Y-%m-%d %H:%M:%S %Z'
+ var_false FALSE
+ '[' false = false ']'
++ basename /etc/cont-init.d/05-logging
+ service_stop 05-logging
++ basename /etc/cont-init.d/05-logging
+ '[' 05-logging '!=' 05-logging ']'
+ DONOTSTART=TRUE
+ output_on
+ '[' true = true ']'
+ set -x
+ liftoff
+ output_off
+ '[' true = true ']'
+ set +x
+ prepare_service single
+ '[' -n single ']'
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/06-messaging
+ get_defaults single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/06-messaging
++ basename /etc/cont-init.d/06-messaging
+ '[' -f /assets/defaults/06-messaging ']'
++ basename /etc/cont-init.d/06-messaging
+ print_debug 'Container: Getting defaults for '\''06-messaging'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:42 [DEBUG] /etc/cont-init.d/06-messaging ** [container] Container: Getting defaults for '06-messaging'
++ basename /etc/cont-init.d/06-messaging
+ source /assets/defaults/06-messaging
++ SMTP_AUTO_FROM=FALSE
++ SMTP_DOMAIN=docker
++ SMTP_HOST=postfix-relay
++ SMTP_MAILDOMAIN=local
++ SMTP_PORT=25
++ SMTP_STARTTLS=FALSE
++ SMTP_TLS=FALSE
++ SMTP_TLSCERTCHECK=FALSE
+ get_functions single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/06-messaging
++ basename /etc/cont-init.d/06-messaging
+ '[' -f /assets/functions/06-messaging ']'
++ basename /etc/cont-init.d/06-messaging
+ print_debug 'Container: No functions available for '\''06-messaging'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/06-messaging ** [container] Container: No functions available for '06-messaging'
+ PROCESS_NAME=messaging
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_TLS value to 'Off'
+ unset SMTP_TLS
+ '[' -n '' ']'
+ export SMTP_TLS=off
+ SMTP_TLS=off
+ truefalse_onoff SMTP_STARTTLS
++ set
++ grep SMTP_STARTTLS=
++ cut -d = -f2
+ value=FALSE
++ set
++ grep SMTP_STARTTLS=
++ sed 's/=.*//g'
+ var=SMTP_STARTTLS
+ '[' false = true ']'
+ '[' false = yes ']'
+ '[' false = false ']'
+ print_debug 'Converting Variable Name SMTP_STARTTLS value to '\''Off'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_STARTTLS value to 'Off'
+ unset SMTP_STARTTLS
+ '[' -n '' ']'
+ export SMTP_STARTTLS=off
+ SMTP_STARTTLS=off
+ truefalse_onoff SMTP_TLSCERTCHECK
++ set
++ grep SMTP_TLSCERTCHECK=
++ cut -d = -f2
+ value=FALSE
++ set
++ grep SMTP_TLSCERTCHECK=
++ sed 's/=.*//g'
+ var=SMTP_TLSCERTCHECK
+ '[' false = true ']'
+ '[' false = yes ']'
+ '[' false = false ']'
+ print_debug 'Converting Variable Name SMTP_TLSCERTCHECK value to '\''Off'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/06-messaging ** [messaging] Converting Variable Name SMTP_TLSCERTCHECK value to 'Off'
+ unset SMTP_TLSCERTCHECK
+ '[' -n '' ']'
+ export SMTP_TLSCERTCHECK=off
+ SMTP_TLSCERTCHECK=off
+ echo '### Automatically generated on container start. See documentation on how to set!'
+ echo 'account default '
+ echo 'host postfix-relay'
+ echo 'port 25'
+ echo 'domain docker'
+ '[' -n '' ']'
+ echo 'maildomain local'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ echo 'tls off'
+ echo 'tls_starttls off'
+ echo 'tls_certcheck off'
+ var_true ''
+ '[' '' = true ']'
+ '[' '' = yes ']'
+ var_true FALSE
+ '[' false = true ']'
+ '[' false = yes ']'
+ print_notice 'Container configured to route mail via SMTP to '\''postfix-relay'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [NOTICE] /etc/cont-init.d/06-messaging ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
+ output_on
+ '[' true = true ']'
+ set -x
+ liftoff
+ output_off
+ '[' true = true ']'
+ set +x
+ PROCESS_NAME=mongo
+ var_true FALSE
+ '[' false = true ']'
+ '[' false = yes ']'
+ service_stop 08-mongodb
++ basename /etc/cont-init.d/08-mongodb
+ '[' 08-mongodb '!=' 08-mongodb ']'
+ DONOTSTART=TRUE
+ liftoff
+ output_off
+ '[' true = true ']'
+ set +x
+ prepare_service 10-freepbx
+ '[' -n 10-freepbx ']'
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/09-mariadb
+ get_defaults 10-freepbx
+ '[' -n 10-freepbx ']'
+ case "${1,,}" in
++ echo 10-freepbx
++ tr , '\n'
+ defaults=10-freepbx
+ for d in $defaults
+ '[' -f /assets/defaults/10-freepbx ']'
+ print_debug 'Container: Getting defaults for 10-freepbx'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/09-mariadb ** [container] Container: Getting defaults for 10-freepbx
+ source /assets/defaults/10-freepbx
++ ADMIN_DIRECTORY=/admin
++ DB_EMBEDDED=FALSE
++ DB_PORT=3307
++ ENABLE_FOP=FALSE
++ ENABLE_SMTP=TRUE
++ ENABLE_SSL=FALSE
++ ENABLE_VM_TRANSCRIBE=FALSE
++ ENABLE_XMPP=FALSE
++ FOP_DIRECTORY=/fop
++ FREEPBX_VERSION=15.0.16.56
++ HTTPS_PORT=443
++ HTTP_PORT=80
++ UCP_FIRST=TRUE
++ VM_TRANSCRIBE_MODEL=nl-NL_Multimedia
++ WEBROOT=/var/www/html
+ get_functions 10-freepbx
+ '[' -n 10-freepbx ']'
+ case "${1,,}" in
++ echo 10-freepbx
++ tr , '\n'
+ functions=10-freepbx
+ for f in $functions
+ '[' -f /assets/functions/10-freepbx ']'
+ print_debug 'Container: Getting functions for 10-freepbx'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/09-mariadb ** [container] Container: Getting functions for 10-freepbx
+ source /assets/functions/10-freepbx
+ PROCESS_NAME=mariadb
+ var_true FALSE
+ '[' false = true ']'
+ '[' false = yes ']'
+ print_info 'No embedded database detected, skip..'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [INFO] /etc/cont-init.d/09-mariadb ** [mariadb] No embedded database detected, skip..
+ liftoff
+ output_off
+ '[' true = true ']'
+ set +x
+ prepare_service single
+ '[' -n single ']'
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/10-freepbx
+ get_defaults single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/10-freepbx
++ basename /etc/cont-init.d/10-freepbx
+ '[' -f /assets/defaults/10-freepbx ']'
++ basename /etc/cont-init.d/10-freepbx
+ print_debug 'Container: Getting defaults for '\''10-freepbx'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/10-freepbx ** [container] Container: Getting defaults for '10-freepbx'
++ basename /etc/cont-init.d/10-freepbx
+ source /assets/defaults/10-freepbx
++ ADMIN_DIRECTORY=/admin
++ DB_EMBEDDED=FALSE
++ DB_PORT=3307
++ ENABLE_FOP=FALSE
++ ENABLE_SMTP=TRUE
++ ENABLE_SSL=FALSE
++ ENABLE_VM_TRANSCRIBE=FALSE
++ ENABLE_XMPP=FALSE
++ FOP_DIRECTORY=/fop
++ FREEPBX_VERSION=15.0.16.56
++ HTTPS_PORT=443
++ HTTP_PORT=80
++ UCP_FIRST=TRUE
++ VM_TRANSCRIBE_MODEL=nl-NL_Multimedia
++ WEBROOT=/var/www/html
+ get_functions single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/10-freepbx
++ basename /etc/cont-init.d/10-freepbx
+ '[' -f /assets/functions/10-freepbx ']'
++ basename /etc/cont-init.d/10-freepbx
+ print_debug 'Container: Getting functions for '\''10-freepbx'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/10-freepbx ** [container] Container: Getting functions for '10-freepbx'
++ basename /etc/cont-init.d/10-freepbx
+ source /assets/functions/10-freepbx
+ PROCESS_NAME=freepbx
+ var_false FALSE
+ '[' false = false ']'
+ sanity_db
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/10-freepbx ** [freepbx] Using Legacy db_ready command - please upgrade
+ '[' -z lab-mariadb.flissinger.com ']'
+ '[' -z freepbx ']'
+ '[' -z freepbx ']'
+ '[' -z '*xvhXYMTn32d_PA3' ']'
+ output_on
+ '[' true = true ']'
+ set -x
+ db_ready mariadb
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [DEBUG] /etc/cont-init.d/10-freepbx ** [freepbx] Checking to see if Database Type mariadb is ready
+ case "$1" in
+ '[' -n 3307 ']'
+ maria_port=3307
+ '[' -n '' ']'
+ '[' -n '' ']'
+ maria_port=3307
+ '[' -n lab-mariadb.flissinger.com ']'
+ maria_host=lab-mariadb.flissinger.com
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n freepbx ']'
+ maria_user=freepbx
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '*xvhXYMTn32d_PA3' ']'
+ maria_pass='*redacted*'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n freepbx ']'
+ maria_name=freepbx
+ '[' -n '' ']'
+ '[' -n '' ']'
+ counter=0
+ mysqladmin -ufreepbx -P3307 -hlab-mariadb.flissinger.com '-p*xvhXYMTn32d_PA3' status
+ output_on
+ '[' true = true ']'
+ set -x
+ '[' '!' -f /data/.installed ']'
+ print_notice 'Creating default configuration files'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:43 [NOTICE] /etc/cont-init.d/10-freepbx ** [freepbx] Creating default configuration files
+ mkdir -p /data
+ cp -R /assets/config/home /assets/config/var /data/
+ '[' -f /data/etc/asterisk/.asterisk_version ']'
+ print_notice 'Setting file permissions'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:44 [NOTICE] /etc/cont-init.d/10-freepbx ** [freepbx] Setting file permissions
+ mkdir -p /data/etc/asterisk
+ mkdir -p /data/var/lib/asterisk/bin /data/var/lib/asterisk/playback
+ mkdir -p /data/var/spool/asterisk/backup /data/var/spool/asterisk/cache /data/var/spool/asterisk/dictate /data/var/spool/asterisk/fax /data/var/spool/asterisk/meetme /data/var/spool/asterisk/monitor /data/var/spool/asterisk/outgoing /data/var/spool/asterisk/recording /data/var/spool/asterisk/system /data/var/spool/asterisk/tmp /data/var/spool/asterisk/voicemail
+ mkdir -p /data/var/run/asterisk
+ mkdir -p /data/home/asterisk
+ mkdir -p /home/asterisk
+ ln -sf /data/home/asterisk /home/asterisk
+ chown -R asterisk. /data
+ chmod +x /usr/lib/asterisk/modules/app_adsiprog.so /usr/lib/asterisk/modules/app_agent_pool.so /usr/lib/asterisk/modules/app_alarmreceiver.so /usr/lib/asterisk/modules/app_amd.so /usr/lib/asterisk/modules/app_attended_transfer.so /usr/lib/asterisk/modules/app_authenticate.so /usr/lib/asterisk/modules/app_blind_transfer.so /usr/lib/asterisk/modules/app_bridgeaddchan.so /usr/lib/asterisk/modules/app_bridgewait.so /usr/lib/asterisk/modules/app_cdr.so /usr/lib/asterisk/modules/app_celgenuserevent.so /usr/lib/asterisk/modules/app_chanisavail.so /usr/lib/asterisk/modules/app_channelredirect.so /usr/lib/asterisk/modules/app_chanspy.so /usr/lib/asterisk/modules/app_confbridge.so /usr/lib/asterisk/modules/app_controlplayback.so /usr/lib/asterisk/modules/app_db.so /usr/lib/asterisk/modules/app_dial.so /usr/lib/asterisk/modules/app_dictate.so /usr/lib/asterisk/modules/app_directed_pickup.so /usr/lib/asterisk/modules/app_directory.so /usr/lib/asterisk/modules/app_disa.so /usr/lib/asterisk/modules/app_dumpchan.so /usr/lib/asterisk/modules/app_echo.so /usr/lib/asterisk/modules/app_exec.so /usr/lib/asterisk/modules/app_externalivr.so /usr/lib/asterisk/modules/app_festival.so /usr/lib/asterisk/modules/app_followme.so /usr/lib/asterisk/modules/app_forkcdr.so /usr/lib/asterisk/modules/app_getcpeid.so /usr/lib/asterisk/modules/app_ices.so /usr/lib/asterisk/modules/app_image.so /usr/lib/asterisk/modules/app_ivrdemo.so /usr/lib/asterisk/modules/app_jack.so /usr/lib/asterisk/modules/app_macro.so /usr/lib/asterisk/modules/app_milliwatt.so /usr/lib/asterisk/modules/app_minivm.so /usr/lib/asterisk/modules/app_mixmonitor.so /usr/lib/asterisk/modules/app_morsecode.so /usr/lib/asterisk/modules/app_mp3.so /usr/lib/asterisk/modules/app_nbscat.so /usr/lib/asterisk/modules/app_originate.so /usr/lib/asterisk/modules/app_osplookup.so /usr/lib/asterisk/modules/app_page.so /usr/lib/asterisk/modules/app_playback.so /usr/lib/asterisk/modules/app_playtones.so /usr/lib/asterisk/modules/app_privacy.so /usr/lib/asterisk/modules/app_queue.so /usr/lib/asterisk/modules/app_read.so /usr/lib/asterisk/modules/app_readexten.so /usr/lib/asterisk/modules/app_record.so /usr/lib/asterisk/modules/app_saycounted.so /usr/lib/asterisk/modules/app_sayunixtime.so /usr/lib/asterisk/modules/app_senddtmf.so /usr/lib/asterisk/modules/app_sendtext.so /usr/lib/asterisk/modules/app_skel.so /usr/lib/asterisk/modules/app_sms.so /usr/lib/asterisk/modules/app_softhangup.so /usr/lib/asterisk/modules/app_speech_utils.so /usr/lib/asterisk/modules/app_stack.so /usr/lib/asterisk/modules/app_stasis.so /usr/lib/asterisk/modules/app_statsd.so /usr/lib/asterisk/modules/app_stream_echo.so /usr/lib/asterisk/modules/app_system.so /usr/lib/asterisk/modules/app_talkdetect.so /usr/lib/asterisk/modules/app_test.so /usr/lib/asterisk/modules/app_transfer.so /usr/lib/asterisk/modules/app_url.so /usr/lib/asterisk/modules/app_userevent.so /usr/lib/asterisk/modules/app_verbose.so /usr/lib/asterisk/modules/app_voicemail.so /usr/lib/asterisk/modules/app_waitforring.so /usr/lib/asterisk/modules/app_waitforsilence.so /usr/lib/asterisk/modules/app_waituntil.so /usr/lib/asterisk/modules/app_while.so /usr/lib/asterisk/modules/app_zapateller.so /usr/lib/asterisk/modules/bridge_builtin_features.so /usr/lib/asterisk/modules/bridge_builtin_interval_features.so /usr/lib/asterisk/modules/bridge_holding.so /usr/lib/asterisk/modules/bridge_native_rtp.so /usr/lib/asterisk/modules/bridge_simple.so /usr/lib/asterisk/modules/bridge_softmix.so /usr/lib/asterisk/modules/cdr_adaptive_odbc.so /usr/lib/asterisk/modules/cdr_csv.so /usr/lib/asterisk/modules/cdr_custom.so /usr/lib/asterisk/modules/cdr_manager.so /usr/lib/asterisk/modules/cdr_odbc.so /usr/lib/asterisk/modules/cdr_radius.so /usr/lib/asterisk/modules/cdr_sqlite3_custom.so /usr/lib/asterisk/modules/cdr_tds.so /usr/lib/asterisk/modules/cel_custom.so /usr/lib/asterisk/modules/cel_manager.so /usr/lib/asterisk/modules/cel_odbc.so /usr/lib/asterisk/modules/cel_radius.so /usr/lib/asterisk/modules/cel_sqlite3_custom.so /usr/lib/asterisk/modules/cel_tds.so /usr/lib/asterisk/modules/chan_alsa.so /usr/lib/asterisk/modules/chan_bridge_media.so /usr/lib/asterisk/modules/chan_console.so /usr/lib/asterisk/modules/chan_dongle.so /usr/lib/asterisk/modules/chan_iax2.so /usr/lib/asterisk/modules/chan_mgcp.so /usr/lib/asterisk/modules/chan_mobile.so /usr/lib/asterisk/modules/chan_motif.so /usr/lib/asterisk/modules/chan_ooh323.so /usr/lib/asterisk/modules/chan_oss.so /usr/lib/asterisk/modules/chan_pjsip.so /usr/lib/asterisk/modules/chan_rtp.so /usr/lib/asterisk/modules/chan_sip.so /usr/lib/asterisk/modules/chan_skinny.so /usr/lib/asterisk/modules/chan_unistim.so /usr/lib/asterisk/modules/chan_vpb.so /usr/lib/asterisk/modules/codec_a_mu.so /usr/lib/asterisk/modules/codec_adpcm.so /usr/lib/asterisk/modules/codec_alaw.so /usr/lib/asterisk/modules/codec_codec2.so /usr/lib/asterisk/modules/codec_g722.so /usr/lib/asterisk/modules/codec_g726.so /usr/lib/asterisk/modules/codec_g729.so /usr/lib/asterisk/modules/codec_gsm.so /usr/lib/asterisk/modules/codec_ilbc.so /usr/lib/asterisk/modules/codec_lpc10.so /usr/lib/asterisk/modules/codec_opus.manifest.xml /usr/lib/asterisk/modules/codec_opus.so /usr/lib/asterisk/modules/codec_resample.so /usr/lib/asterisk/modules/codec_silk.manifest.xml /usr/lib/asterisk/modules/codec_silk.so /usr/lib/asterisk/modules/codec_siren14.manifest.xml /usr/lib/asterisk/modules/codec_siren14.so /usr/lib/asterisk/modules/codec_siren7.manifest.xml /usr/lib/asterisk/modules/codec_siren7.so /usr/lib/asterisk/modules/codec_speex.so /usr/lib/asterisk/modules/codec_ulaw.so /usr/lib/asterisk/modules/format_g719.so /usr/lib/asterisk/modules/format_g723.so /usr/lib/asterisk/modules/format_g726.so /usr/lib/asterisk/modules/format_g729.so /usr/lib/asterisk/modules/format_gsm.so /usr/lib/asterisk/modules/format_h263.so /usr/lib/asterisk/modules/format_h264.so /usr/lib/asterisk/modules/format_ilbc.so /usr/lib/asterisk/modules/format_mp3.so /usr/lib/asterisk/modules/format_ogg_opus.so /usr/lib/asterisk/modules/format_ogg_speex.so /usr/lib/asterisk/modules/format_ogg_vorbis.so /usr/lib/asterisk/modules/format_pcm.so /usr/lib/asterisk/modules/format_siren14.so /usr/lib/asterisk/modules/format_siren7.so /usr/lib/asterisk/modules/format_sln.so /usr/lib/asterisk/modules/format_vox.so /usr/lib/asterisk/modules/format_wav.so /usr/lib/asterisk/modules/format_wav_gsm.so /usr/lib/asterisk/modules/func_aes.so /usr/lib/asterisk/modules/func_base64.so /usr/lib/asterisk/modules/func_blacklist.so /usr/lib/asterisk/modules/func_callcompletion.so /usr/lib/asterisk/modules/func_callerid.so /usr/lib/asterisk/modules/func_cdr.so /usr/lib/asterisk/modules/func_channel.so /usr/lib/asterisk/modules/func_config.so /usr/lib/asterisk/modules/func_curl.so /usr/lib/asterisk/modules/func_cut.so /usr/lib/asterisk/modules/func_db.so /usr/lib/asterisk/modules/func_devstate.so /usr/lib/asterisk/modules/func_dialgroup.so /usr/lib/asterisk/modules/func_dialplan.so /usr/lib/asterisk/modules/func_enum.so /usr/lib/asterisk/modules/func_env.so /usr/lib/asterisk/modules/func_extstate.so /usr/lib/asterisk/modules/func_frame_trace.so /usr/lib/asterisk/modules/func_global.so /usr/lib/asterisk/modules/func_groupcount.so /usr/lib/asterisk/modules/func_hangupcause.so /usr/lib/asterisk/modules/func_holdintercept.so /usr/lib/asterisk/modules/func_iconv.so /usr/lib/asterisk/modules/func_jitterbuffer.so /usr/lib/asterisk/modules/func_lock.so /usr/lib/asterisk/modules/func_logic.so /usr/lib/asterisk/modules/func_math.so /usr/lib/asterisk/modules/func_md5.so /usr/lib/asterisk/modules/func_module.so /usr/lib/asterisk/modules/func_odbc.so /usr/lib/asterisk/modules/func_periodic_hook.so /usr/lib/asterisk/modules/func_pitchshift.so /usr/lib/asterisk/modules/func_pjsip_aor.so /usr/lib/asterisk/modules/func_pjsip_contact.so /usr/lib/asterisk/modules/func_pjsip_endpoint.so /usr/lib/asterisk/modules/func_presencestate.so /usr/lib/asterisk/modules/func_rand.so /usr/lib/asterisk/modules/func_realtime.so /usr/lib/asterisk/modules/func_sha1.so /usr/lib/asterisk/modules/func_shell.so /usr/lib/asterisk/modules/func_sorcery.so /usr/lib/asterisk/modules/func_speex.so /usr/lib/asterisk/modules/func_sprintf.so /usr/lib/asterisk/modules/func_srv.so /usr/lib/asterisk/modules/func_strings.so /usr/lib/asterisk/modules/func_sysinfo.so /usr/lib/asterisk/modules/func_talkdetect.so /usr/lib/asterisk/modules/func_timeout.so /usr/lib/asterisk/modules/func_uri.so /usr/lib/asterisk/modules/func_version.so /usr/lib/asterisk/modules/func_vmcount.so /usr/lib/asterisk/modules/func_volume.so /usr/lib/asterisk/modules/pbx_ael.so /usr/lib/asterisk/modules/pbx_config.so /usr/lib/asterisk/modules/pbx_dundi.so /usr/lib/asterisk/modules/pbx_loopback.so /usr/lib/asterisk/modules/pbx_lua.so /usr/lib/asterisk/modules/pbx_realtime.so /usr/lib/asterisk/modules/pbx_spool.so /usr/lib/asterisk/modules/res_adsi.so /usr/lib/asterisk/modules/res_ael_share.so /usr/lib/asterisk/modules/res_agi.so /usr/lib/asterisk/modules/res_ari.so /usr/lib/asterisk/modules/res_ari_applications.so /usr/lib/asterisk/modules/res_ari_asterisk.so /usr/lib/asterisk/modules/res_ari_bridges.so /usr/lib/asterisk/modules/res_ari_channels.so /usr/lib/asterisk/modules/res_ari_device_states.so /usr/lib/asterisk/modules/res_ari_endpoints.so /usr/lib/asterisk/modules/res_ari_events.so /usr/lib/asterisk/modules/res_ari_model.so /usr/lib/asterisk/modules/res_ari_playbacks.so /usr/lib/asterisk/modules/res_ari_recordings.so /usr/lib/asterisk/modules/res_ari_sounds.so /usr/lib/asterisk/modules/res_calendar.so /usr/lib/asterisk/modules/res_calendar_caldav.so /usr/lib/asterisk/modules/res_calendar_ews.so /usr/lib/asterisk/modules/res_calendar_exchange.so /usr/lib/asterisk/modules/res_calendar_icalendar.so /usr/lib/asterisk/modules/res_chan_stats.so /usr/lib/asterisk/modules/res_clialiases.so /usr/lib/asterisk/modules/res_clioriginate.so /usr/lib/asterisk/modules/res_config_curl.so /usr/lib/asterisk/modules/res_config_ldap.so /usr/lib/asterisk/modules/res_config_odbc.so /usr/lib/asterisk/modules/res_config_sqlite3.so /usr/lib/asterisk/modules/res_convert.so /usr/lib/asterisk/modules/res_corosync.so /usr/lib/asterisk/modules/res_crypto.so /usr/lib/asterisk/modules/res_curl.so /usr/lib/asterisk/modules/res_endpoint_stats.so /usr/lib/asterisk/modules/res_fax.so /usr/lib/asterisk/modules/res_fax_spandsp.so /usr/lib/asterisk/modules/res_format_attr_celt.so /usr/lib/asterisk/modules/res_format_attr_g729.so /usr/lib/asterisk/modules/res_format_attr_h263.so /usr/lib/asterisk/modules/res_format_attr_h264.so /usr/lib/asterisk/modules/res_format_attr_ilbc.so /usr/lib/asterisk/modules/res_format_attr_opus.so /usr/lib/asterisk/modules/res_format_attr_silk.so /usr/lib/asterisk/modules/res_format_attr_siren14.so /usr/lib/asterisk/modules/res_format_attr_siren7.so /usr/lib/asterisk/modules/res_format_attr_vp8.so /usr/lib/asterisk/modules/res_hep.so /usr/lib/asterisk/modules/res_hep_pjsip.so /usr/lib/asterisk/modules/res_hep_rtcp.so /usr/lib/asterisk/modules/res_http_media_cache.so /usr/lib/asterisk/modules/res_http_post.so /usr/lib/asterisk/modules/res_http_websocket.so /usr/lib/asterisk/modules/res_limit.so /usr/lib/asterisk/modules/res_manager_devicestate.so /usr/lib/asterisk/modules/res_manager_presencestate.so /usr/lib/asterisk/modules/res_monitor.so /usr/lib/asterisk/modules/res_musiconhold.so /usr/lib/asterisk/modules/res_mutestream.so /usr/lib/asterisk/modules/res_mwi_devstate.so /usr/lib/asterisk/modules/res_mwi_external.so /usr/lib/asterisk/modules/res_mwi_external_ami.so /usr/lib/asterisk/modules/res_odbc.so /usr/lib/asterisk/modules/res_odbc_transaction.so /usr/lib/asterisk/modules/res_parking.so /usr/lib/asterisk/modules/res_phoneprov.so /usr/lib/asterisk/modules/res_pjproject.so /usr/lib/asterisk/modules/res_pjsip.so /usr/lib/asterisk/modules/res_pjsip_acl.so /usr/lib/asterisk/modules/res_pjsip_authenticator_digest.so /usr/lib/asterisk/modules/res_pjsip_caller_id.so /usr/lib/asterisk/modules/res_pjsip_config_wizard.so /usr/lib/asterisk/modules/res_pjsip_dialog_info_body_generator.so /usr/lib/asterisk/modules/res_pjsip_diversion.so /usr/lib/asterisk/modules/res_pjsip_dlg_options.so /usr/lib/asterisk/modules/res_pjsip_dtmf_info.so /usr/lib/asterisk/modules/res_pjsip_empty_info.so /usr/lib/asterisk/modules/res_pjsip_endpoint_identifier_anonymous.so /usr/lib/asterisk/modules/res_pjsip_endpoint_identifier_ip.so /usr/lib/asterisk/modules/res_pjsip_endpoint_identifier_user.so /usr/lib/asterisk/modules/res_pjsip_exten_state.so /usr/lib/asterisk/modules/res_pjsip_header_funcs.so /usr/lib/asterisk/modules/res_pjsip_history.so /usr/lib/asterisk/modules/res_pjsip_logger.so /usr/lib/asterisk/modules/res_pjsip_messaging.so /usr/lib/asterisk/modules/res_pjsip_mwi.so /usr/lib/asterisk/modules/res_pjsip_mwi_body_generator.so /usr/lib/asterisk/modules/res_pjsip_nat.so /usr/lib/asterisk/modules/res_pjsip_notify.so /usr/lib/asterisk/modules/res_pjsip_one_touch_record_info.so /usr/lib/asterisk/modules/res_pjsip_outbound_authenticator_digest.so /usr/lib/asterisk/modules/res_pjsip_outbound_publish.so /usr/lib/asterisk/modules/res_pjsip_outbound_registration.so /usr/lib/asterisk/modules/res_pjsip_path.so /usr/lib/asterisk/modules/res_pjsip_phoneprov_provider.so /usr/lib/asterisk/modules/res_pjsip_pidf_body_generator.so /usr/lib/asterisk/modules/res_pjsip_pidf_digium_body_supplement.so /usr/lib/asterisk/modules/res_pjsip_pidf_eyebeam_body_supplement.so /usr/lib/asterisk/modules/res_pjsip_publish_asterisk.so /usr/lib/asterisk/modules/res_pjsip_pubsub.so /usr/lib/asterisk/modules/res_pjsip_refer.so /usr/lib/asterisk/modules/res_pjsip_registrar.so /usr/lib/asterisk/modules/res_pjsip_rfc3326.so /usr/lib/asterisk/modules/res_pjsip_sdp_rtp.so /usr/lib/asterisk/modules/res_pjsip_send_to_voicemail.so /usr/lib/asterisk/modules/res_pjsip_session.so /usr/lib/asterisk/modules/res_pjsip_sips_contact.so /usr/lib/asterisk/modules/res_pjsip_t38.so /usr/lib/asterisk/modules/res_pjsip_transport_websocket.so /usr/lib/asterisk/modules/res_pjsip_xpidf_body_generator.so /usr/lib/asterisk/modules/res_pktccops.so /usr/lib/asterisk/modules/res_prometheus.so /usr/lib/asterisk/modules/res_realtime.so /usr/lib/asterisk/modules/res_remb_modifier.so /usr/lib/asterisk/modules/res_resolver_unbound.so /usr/lib/asterisk/modules/res_rtp_asterisk.so /usr/lib/asterisk/modules/res_rtp_multicast.so /usr/lib/asterisk/modules/res_security_log.so /usr/lib/asterisk/modules/res_smdi.so /usr/lib/asterisk/modules/res_snmp.so /usr/lib/asterisk/modules/res_sorcery_astdb.so /usr/lib/asterisk/modules/res_sorcery_config.so /usr/lib/asterisk/modules/res_sorcery_memory.so /usr/lib/asterisk/modules/res_sorcery_memory_cache.so /usr/lib/asterisk/modules/res_sorcery_realtime.so /usr/lib/asterisk/modules/res_speech.so /usr/lib/asterisk/modules/res_srtp.so /usr/lib/asterisk/modules/res_stasis.so /usr/lib/asterisk/modules/res_stasis_answer.so /usr/lib/asterisk/modules/res_stasis_device_state.so /usr/lib/asterisk/modules/res_stasis_mailbox.so /usr/lib/asterisk/modules/res_stasis_playback.so /usr/lib/asterisk/modules/res_stasis_recording.so /usr/lib/asterisk/modules/res_stasis_snoop.so /usr/lib/asterisk/modules/res_statsd.so /usr/lib/asterisk/modules/res_stun_monitor.so /usr/lib/asterisk/modules/res_timing_pthread.so /usr/lib/asterisk/modules/res_timing_timerfd.so /usr/lib/asterisk/modules/res_xmpp.so
+ '[' '!' -f /var/www/html/admin/index.php ']'
+ print_info 'New install detected - please wait while we fetch FreePBX - will take up to 30 minutes!'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:47 [INFO] /etc/cont-init.d/10-freepbx ** [freepbx] New install detected - please wait while we fetch FreePBX - will take up to 30 minutes!
+ '[' /var/www/html '!=' /var/www/html ']'
+ var_false FALSE
+ '[' false = false ']'
+ cat
+ mkdir -p /usr/src/freepbx
+ cd /usr/src
+ curl -ssL https://github.com/FreePBX/framework/archive/release/15.0.16.56.tar.gz
+ tar xfz - --strip 1 -C /usr/src/freepbx
+ silent sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80
gpg: directory '/home/asterisk/.gnupg' created
gpg: keybox '/home/asterisk/.gnupg/pubring.kbx' created
+ silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/1588A7366BD35B34.key
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/1588A7366BD35B34.key
gpg: /home/asterisk/.gnupg/trustdb.gpg: trustdb created
gpg: key 1588A7366BD35B34: public key "FreePBX Module Signing (This is the master key to sign FreePBX Modules) v2 <modules@freepbx.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/3DDB2122FE6D84F7.key
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/3DDB2122FE6D84F7.key
gpg: key 3DDB2122FE6D84F7: 1 signature not checked due to a missing key
gpg: key 3DDB2122FE6D84F7: public key "FreePBX Mirror 1 (Module Signing - 2016/2017) <security@freepbx.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found
+ silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/86CE877469D2EAD9.key
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/86CE877469D2EAD9.key
gpg: key 86CE877469D2EAD9: 1 signature not checked due to a missing key
gpg: key 86CE877469D2EAD9: public key "FreePBX Mirror 1 (Module Signing - 2014/2015) <security@freepbx.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found
+ silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/9F9169F4B33B4659.key
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/9F9169F4B33B4659.key
gpg: key 9F9169F4B33B4659: 1 signature not checked due to a missing key
gpg: key 9F9169F4B33B4659: public key "FreePBX Module Signing (This is the master key to sign FreePBX Modules) <modules@freepbx.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found
+ silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/B53D215A755231A3.key
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/B53D215A755231A3.key
gpg: key B53D215A755231A3: public key "FreePBX Mirror Servers <security@freepbx.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found
+ cd /usr/src/freepbx
+ cp -R /etc/odbc.ini /usr/src/freepbx/installlib/files/odbc.ini
+ touch /etc/asterisk/acl.conf /etc/asterisk/agents.conf /etc/asterisk/amd.conf /etc/asterisk/app_skel.conf /etc/asterisk/ari.conf /etc/asterisk/calendar.conf /etc/asterisk/cdr.conf /etc/asterisk/cdr_odbc.conf /etc/asterisk/cel.conf /etc/asterisk/cel_odbc.conf /etc/asterisk/cel_tds.conf /etc/asterisk/codecs.conf /etc/asterisk/console.conf /etc/asterisk/dundi.conf /etc/asterisk/dongle.conf /etc/asterisk/hep.conf /etc/asterisk/modules.conf /etc/asterisk/motif.conf /etc/asterisk/ooh323.conf /etc/asterisk/pjsip_wizard.conf /etc/asterisk/pjproject.conf /etc/asterisk/prometheus.conf /etc/asterisk/res_parking.conf /etc/asterisk/res_snmp.conf.conf /etc/asterisk/res_stun_monitor.conf /etc/asterisk/smdi.conf /etc/asterisk/statsd.conf /etc/asterisk/unistim.conf /etc/asterisk/xmpp.conf
+ '[' '!' -f /etc/asterisk/extensions.lua ']'
+ cat
+ '[' '!' -f /etc/asterisk/dongle.conf ']'
+ print_notice 'Starting Asterisk 17.9.4 for the first time'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:50 [NOTICE] /etc/cont-init.d/10-freepbx ** [freepbx] Starting Asterisk 17.9.4 for the first time
+ silent ./start_asterisk start
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ ./start_asterisk start

STARTING ASTERISK
Asterisk Started
+ '[' '!' -f /var/run/asterisk/asterisk.pid ']'
+ var_false FALSE
+ '[' false = false ']'
+ print_notice 'Installing FreePBX 15.0.16.56 source code'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:34:56 [NOTICE] /etc/cont-init.d/10-freepbx ** [freepbx] Installing FreePBX 15.0.16.56 source code
+ sed -i 's/'\''default'\'' => '\''localhost'\'',/'\''default'\'' => '\''lab-mariadb.flissinger.com'\'',/g' /usr/src/freepbx/installlib/installcommand.class.php
+ sed -i 's/'\''default'\'' => '\''asteriskcdrdb'\'',/'\''default'\'' => '\''freepbx'\'',/g' /usr/src/freepbx/installlib/installcommand.class.php
+ sed -i 's/$amp_conf\['\''CDRDBNAME'\''\] = $answers\['\''cdrdbname'\''\];/$amp_conf\['\''CDRDBNAME'\''\] = '\''freepbx'\'';/g' /usr/src/freepbx/installlib/installcommand.class.php
+ silent ./install -n --dbuser=freepbx '--dbpass=*redacted*' --dbname=freepbx --cdrdbname=freepbx --webroot=/var/www/html
+ '[' TRUE = true ']'
+ '[' '' = true ']'
+ '[' debug = debug ']'
+ ./install -n --dbuser=freepbx '--dbpass=*redacted*' --dbname=freepbx --cdrdbname=freepbx --webroot=/var/www/html
Checking if SELinux is enabled...Its not (good)!
No /etc/asterisk/asterisk.conf file detected. Installing...Writing /etc/asterisk/asterisk.conf...Done
Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Yes. Determined Asterisk version to be: 17.9.4
Checking if NodeJS is installed and we can get a version from it...Yes. Determined NodeJS version to be: 10.24.1
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install...Yes (No /etc/freepbx.conf file detected)
Database installation checking credentials and permissions..Error!
Invalid Database Permissions. The error was: SQLSTATE[HY000] [2002] Connection timed out
+ cat
+ sed -i '/^preload = chan_local.so$/d' /etc/asterisk/modules.conf
+ '[' '!' -f /usr/sbin/fwconsole ']'
+ print_error 'Can'\''t seem to locate /usr/sbin/fwconsole.. exiting'
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:35:57 [ERROR] /etc/cont-init.d/10-freepbx ** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. exiting
+ exit 1
+ prepare_service single
+ '[' -n single ']'
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/15-socat
+ get_defaults single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/15-socat
++ basename /etc/cont-init.d/15-socat
+ '[' -f /assets/defaults/15-socat ']'
++ basename /etc/cont-init.d/15-socat
+ print_debug 'Container: No defaults available for '\''15-socat'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:35:57 [DEBUG] /etc/cont-init.d/15-socat ** [container] Container: No defaults available for '15-socat'
+ get_functions single
+ '[' -n single ']'
+ case "${1,,}" in
+ case "$(dirname "$0")" in
++ dirname /etc/cont-init.d/15-socat
++ basename /etc/cont-init.d/15-socat
+ '[' -f /assets/functions/15-socat ']'
++ basename /etc/cont-init.d/15-socat
+ print_debug 'Container: No functions available for '\''15-socat'\'''
+ output_off
+ '[' true = true ']'
+ set +x
2023-05-27.18:35:57 [DEBUG] /etc/cont-init.d/15-socat ** [container] Container: No functions available for '15-socat'
+ PROCESS_NAME=socat
+ '[' '' '!=' localhost -a '' '!=' 127.0.0.1 -o '' '!=' 25 ']'
+ var_true ''
+ '[' '' = true ']'
+ '[' '' = yes ']'
+ service_stop 15-socat
++ basename /etc/cont-init.d/15-socat
+ '[' 15-socat '!=' 15-socat ']'
+ DONOTSTART=TRUE
+ liftoff
+ output_off
+ '[' true = true ']'
+ set +x
+ PROCESS_NAME=container
+ var_false FALSE
+ '[' false = false ']'
+ output_off
+ '[' true = true ']'
+ set +x
**********************************************************************************************************************
**********************************************************************************************************************
****                                                                                                              ****
****       ERROR - Some initialization scripts haven't completed - All services are now halted                    ****
****             - The following scripts in '/etc/cont-init.d' did not pass their completion check                ****
****                                                                                                              ****
**********************************************************************************************************************
**********************************************************************************************************************

10-freepbx

**********************************************************************************************************************
**********************************************************************************************************************
****                                                                                                              ****
****       This could have happened for a variety of reasons. Please make sure you have followed the README       ****
****       relating to this image and have proper configuration such as environment variables and volumes set     ****
****                                                                                                              ****
****       If you feel that you have encountered a bug, please submit an issue on the revision control system     ****
****       and provide full debug logs by setting the environment variable 'DEBUG_MODE=TRUE'                      ****
****                                                                                                              ****
**********************************************************************************************************************
**********************************************************************************************************************

Image: tiredofit/debian
Repository/Issues/Support: https://github.com/tiredofit/docker-debian/

When I shell into the container I can connect to the mariadb container just fine.

[tiredofit/debian 18:58:48] # mysql -h lab-mariadb.flissinger.com -P 3307 -u freepbx -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 30
Server version: 10.11.3-MariaDB-1:10.11.3+maria~ubu2204 mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 
HermesHonshappo commented 1 year ago

Heya I've been struggling to install, and got the same fwconsole error That's how I ended up here

So far here's what I found out

10-freepbx

- I am now fiddling around to find a way to make it read properly the SSL certificates which are generated by acme.sh on the host, and are sitting in a specific directory mounted. Currently trying with this in the docker run:

  --volume freepbx-data:/data \   --volume /synologydisk1/docker/freepbx/certs:/certs \


EDIT: yep that part works.

Not sure if that helps, but it seems easier to setup using a mount volume, avoiding potential permission errors.