tiredofit / docker-freepbx

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

Database Root installation checking credentials and permissions..Error! #155

Open myafik opened 4 years ago

myafik commented 4 years ago

Hi @tiredofit. I'm new to free-pbx. After an unsuccessful installation without debug option due to the above error, I tried fresh install with the debug option. It seems there are similar issues users having but I couldn't find if there is a fix available. I appreciate it if you give me any advice. Here is my log:

`freepbx-db | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. freepbx-db-backup | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. freepbx-db-backup | [s6-init] ensuring user provided files have correct perms...exited 0. freepbx-db-backup | [fix-attrs.d] applying ownership & permissions fixes... freepbx-db-backup | [fix-attrs.d] 00-functions: applying... freepbx-db-backup | [fix-attrs.d] 00-functions: exited 0. freepbx-db-backup | [fix-attrs.d] 01-s6: applying... freepbx-db-backup | [fix-attrs.d] 01-s6: exited 0. freepbx-db-backup | [fix-attrs.d] 02-zabbix: applying... freepbx-db-backup | [fix-attrs.d] 02-zabbix: exited 0. freepbx-db | [s6-init] ensuring user provided files have correct perms...exited 0. freepbx-db | [fix-attrs.d] applying ownership & permissions fixes... freepbx-db-backup | [fix-attrs.d] 03-logrotate: applying... freepbx-db | [fix-attrs.d] 00-functions: applying... freepbx-db-backup | [fix-attrs.d] 03-logrotate: exited 0. freepbx-db | [fix-attrs.d] 00-functions: exited 0. freepbx-db | [fix-attrs.d] 01-s6: applying... freepbx-db | [fix-attrs.d] 01-s6: exited 0. freepbx-db-backup | [fix-attrs.d] done. freepbx-db-backup | [cont-init.d] executing container initialization scripts... freepbx-db | [fix-attrs.d] 02-zabbix: applying... freepbx-db | [fix-attrs.d] 02-zabbix: exited 0. freepbx-db | [fix-attrs.d] 03-logrotate: applying... freepbx-db | [fix-attrs.d] 03-logrotate: exited 0. freepbx-db | [fix-attrs.d] done. freepbx-db | [cont-init.d] executing container initialization scripts... freepbx-db | [cont-init.d] 00-startup: executing... freepbx-db-backup | [cont-init.d] 00-startup: executing... freepbx-db | [cont-init.d] 00-startup: exited 0. freepbx-db-backup | [cont-init.d] 00-startup: exited 0. freepbx-db-backup | [cont-init.d] 01-timezone: executing... freepbx-db-backup | [cont-init.d] 01-timezone: exited 0. freepbx-db | [cont-init.d] 01-timezone: executing... freepbx-db-backup | [cont-init.d] 02-permissions: executing... freepbx-db | [cont-init.d] 01-timezone: exited 0. freepbx-db | [cont-init.d] 02-permissions: executing... freepbx-db-backup | [cont-init.d] 02-permissions: exited 0. freepbx-db-backup | [cont-init.d] 03-zabbix: executing... freepbx-db | [cont-init.d] 02-permissions: exited 0. freepbx-db-backup | [cont-init.d] 03-zabbix: exited 0. freepbx-db | [cont-init.d] 03-zabbix: executing... freepbx-db-backup | [cont-init.d] 04-cron: executing... freepbx-db | [cont-init.d] 03-zabbix: exited 0. freepbx-db-backup | [NOTICE] [cron] Disabling Cron freepbx-db-backup | [cont-init.d] 04-cron: exited 0. freepbx-db | [cont-init.d] 04-cron: executing... freepbx-db | [NOTICE] [cron] Disabling Cron freepbx-db-backup | [cont-init.d] 05-smtp: executing... freepbx-db | [cont-init.d] 04-cron: exited 0. freepbx-db | [cont-init.d] 05-smtp: executing... freepbx-db-backup | [NOTICE] [smtp] Disabling SMTP Features freepbx-db-backup | [cont-init.d] 05-smtp: exited 0. freepbx-db | [NOTICE] [smtp] Disabling SMTP Features freepbx-db | [cont-init.d] 05-smtp: exited 0. freepbx-db | [cont-init.d] 10-mariadb: executing... freepbx-db-backup | [cont-init.d] 99-container: executing... freepbx-db | [WARN] [mariadb] MariaDB data directory is not found, creating initial DB(s) freepbx-db-backup | [cont-init.d] 99-container: exited 0. freepbx-db-backup | [cont-init.d] done. freepbx-db-backup | [services.d] starting services freepbx-db-backup | [services.d] done. freepbx-db-backup | [INFO] [zabbix] Starting Zabbix Agent freepbx-app | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. freepbx-app | [s6-init] ensuring user provided files have correct perms...exited 0. freepbx-app | [fix-attrs.d] applying ownership & permissions fixes... freepbx-app | [fix-attrs.d] 00-functions: applying... freepbx-app | [fix-attrs.d] 00-functions: exited 0. freepbx-app | [fix-attrs.d] 01-s6: applying... freepbx-app | [fix-attrs.d] 01-s6: exited 0. freepbx-app | [fix-attrs.d] 02-zabbix: applying... freepbx-app | [fix-attrs.d] 02-zabbix: exited 0. freepbx-app | [fix-attrs.d] 03-logrotate: applying... freepbx-app | [fix-attrs.d] 03-logrotate: exited 0. freepbx-app | [fix-attrs.d] done. freepbx-app | [cont-init.d] executing container initialization scripts... freepbx-app | [cont-init.d] 00-startup: executing... freepbx-app | + PROCESS_NAME=container-init freepbx-app | + '[' -d /tmp/state ']' freepbx-app | + print_debug 'Cold Container startup detected - Proceeding to initialize services normally' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/00-startup [container-init] Cold Container startup detected - Proceeding to initialize services normally freepbx-app | [cont-init.d] 00-startup: exited 0. freepbx-app | [cont-init.d] 01-timezone: executing... freepbx-app | + PROCESS_NAME=timezone freepbx-app | + '[' -n Etc/GMT ']' freepbx-app | + set_timezone Etc/GMT freepbx-app | + '[' -f /usr/share/zoneinfo/Etc/GMT ']' freepbx-app | ++ cat /etc/timezone freepbx-app | + '[' Etc/GMT '!=' Etc/GMT ']' freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 01-timezone: exited 0. freepbx-app | [cont-init.d] 02-permissions: executing... freepbx-app | + PROCESS_NAME=permissions freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 02-permissions: exited 0. freepbx-app | [cont-init.d] 03-zabbix: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + '[' -f /assets/defaults/03-zabbix ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + print_debug 'Container: Getting defaults for 03-zabbix' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/03-zabbix [container] Container: Getting defaults for 03-zabbix freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + source /assets/defaults/03-zabbix freepbx-app | ++ ENABLE_ZABBIX=TRUE freepbx-app | ++ ZABBIX_ALLOW_ROOT=1 freepbx-app | ++ ZABBIX_BUFFER_SEND=5 freepbx-app | ++ ZABBIX_BUFFER_SIZE=100 freepbx-app | ++ ZABBIX_DEBUGLEVEL=1 freepbx-app | ++ ZABBIX_HOSTNAME=freepbx-app freepbx-app | ++ ZABBIX_LISTEN_IP=0.0.0.0 freepbx-app | ++ ZABBIX_LISTEN_PORT=10050 freepbx-app | ++ ZABBIX_LOGFILE=/var/log/zabbix/zabbix_agentd.log freepbx-app | ++ ZABBIX_LOGFILESIZE=1 freepbx-app | ++ ZABBIX_MAXLINES_SECOND=20 freepbx-app | ++ ZABBIX_REFRESH_ACTIVE_CHECKS=120 freepbx-app | ++ ZABBIX_REMOTECOMMANDS=1 freepbx-app | ++ ZABBIX_REMOTECOMMANDS_LOG=1 freepbx-app | ++ ZABBIX_SERVER=0.0.0.0/0 freepbx-app | ++ ZABBIX_SERVER_ACTIVE=zabbix-proxy freepbx-app | ++ ZABBIX_START_AGENTS=2 freepbx-app | ++ ZABBIX_USER=zabbix freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + '[' -f /assets/functions/03-zabbix ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/03-zabbix freepbx-app | + print_debug 'Container: No functions available for 03-zabbix' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/03-zabbix [container] Container: No functions available for 03-zabbix freepbx-app | + PROCESS_NAME=zabbix freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 03-zabbix: exited 0. freepbx-app | [cont-init.d] 04-cron: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/04-cron freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + '[' -f /assets/defaults/04-cron ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + print_debug 'Container: Getting defaults for 04-cron' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/04-cron [container] Container: Getting defaults for 04-cron freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + source /assets/defaults/04-cron freepbx-app | ++ ENABLE_CRON=FALSE freepbx-app | ++ ENABLE_LOGROTATE=TRUE freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/04-cron freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + '[' -f /assets/functions/04-cron ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/04-cron freepbx-app | + print_debug 'Container: No functions available for 04-cron' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/04-cron [container] Container: No functions available for 04-cron freepbx-app | + var_true FALSE freepbx-app | + '[' FALSE = TRUE ']' freepbx-app | + '[' FALSE = true ']' freepbx-app | + '[' FALSE = YES ']' freepbx-app | + '[' FALSE = yes ']' freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 04-cron: exited 0. freepbx-app | [cont-init.d] 05-fail2ban: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + '[' -f /assets/defaults/05-fail2ban ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + print_debug 'Container: Getting defaults for 05-fail2ban' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/05-fail2ban [container] Container: Getting defaults for 05-fail2ban freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + source /assets/defaults/05-fail2ban freepbx-app | ++ ENABLE_FAIL2BAN=TRUE freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + '[' -f /assets/functions/05-fail2ban ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-fail2ban freepbx-app | + print_debug 'Container: No functions available for 05-fail2ban' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/05-fail2ban [container] Container: No functions available for 05-fail2ban freepbx-app | + PROCESS_NAME=fail2ban freepbx-app | + var_true TRUE freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sed -i -e 's/logtarget = \/var\/log\/fail2ban.log/logtarget = \/var\/log\/fail2ban\/fail2ban.log/g' /etc/fail2ban/fail2ban.conf freepbx-app | + rm -rf /etc/fail2ban/jail.d/defaults-debian.conf freepbx-app | + mkdir -p /var/log/asterisk/ freepbx-app | + mkdir -p /var/log/fail2ban/ freepbx-app | + touch /var/log/asterisk/full freepbx-app | + touch /var/log/asterisk/freepbx_security.log freepbx-app | + cat freepbx-app | + print_info 'Starting Fail2ban' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [INFO] /etc/cont-init.d/05-fail2ban [fail2ban] Starting Fail2ban freepbx-app | + silent service fail2ban start freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + service fail2ban start freepbx-db | [NOTICE] [mariadb] Creating asterisk database freepbx-db | 2020-07-10 15:35:27 0 [Note] /usr/bin/mysqld (mysqld 10.4.13-MariaDB) starting as process 738 ... freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Using Linux native AIO freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Uses event mutexes freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Number of pools: 1 freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Using SSE2 crc32 instructions freepbx-db | 2020-07-10 15:35:27 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) freepbx-app | Starting authentication failure monitor: fail2ban 'failregex' not defined in 'Definition'. Using default one: '' freepbx-app | 'failregex' not defined in 'Definition'. Using default one: '' freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Completed initialization of buffer pool freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: 128 out of 128 rollback segments are active. freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Creating shared tablespace for temporary tables freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Waiting for purge to start freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: 10.4.13 started; log sequence number 60972; transaction id 21 freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool freepbx-db | 2020-07-10 15:35:27 0 [Note] InnoDB: Buffer pool(s) load completed at 200710 15:35:27 freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'user' entry 'root@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'user' entry '@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'proxies_priv' entry '@% root@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'user' entry 'root@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'user' entry '@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-db | 2020-07-10 15:35:27 6 [Warning] 'proxies_priv' entry '@% root@3f94b1ef63ca' ignored in --skip-name-resolve mode. freepbx-app | . freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 05-fail2ban: exited 0. freepbx-app | [cont-init.d] 05-smtp: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + '[' -f /assets/defaults/05-smtp ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + print_debug 'Container: Getting defaults for 05-smtp' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/05-smtp [container] Container: Getting defaults for 05-smtp freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + source /assets/defaults/05-smtp freepbx-app | ++ DEBUG_SMTP=FALSE freepbx-app | ++ ENABLE_SMTP=FALSE freepbx-app | ++ SMTP_HOST=postfix-relay freepbx-app | ++ SMTP_PORT=25 freepbx-app | ++ SMTP_DOMAIN=docker freepbx-app | ++ SMTP_MAILDOMAIN=local freepbx-app | ++ SMTP_TLS=off freepbx-app | ++ SMTP_STARTTLS=off freepbx-app | ++ SMTP_TLSCERTCHECK=off freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + '[' -f /assets/functions/05-smtp ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/05-smtp freepbx-app | + print_debug 'Container: No functions available for 05-smtp' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/05-smtp [container] Container: No functions available for 05-smtp freepbx-app | + PROCESS_NAME=smtp freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [NOTICE] /etc/cont-init.d/05-smtp [smtp] Disabling SMTP Features freepbx-app | + output_on freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set -x freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 05-smtp: exited 0. freepbx-app | [cont-init.d] 08-mongodb: executing... freepbx-app | + PROCESS_NAME=mongo freepbx-app | + var_true TRUE freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + print_notice 'Enabling MongoDB for XMPP support' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + mkdir -p /data/var/lib/mongodb freepbx-app | [NOTICE] /etc/cont-init.d/08-mongodb * [mongo] Enabling MongoDB for XMPP support freepbx-app | + mkdir -p /var/log/mongodb freepbx-app | + chown -R mongodb. /var/log/mongodb freepbx-app | + rm -rf '/var/run/mongodb/' freepbx-app | + touch /var/log/mongodb/mongod.log freepbx-app | + service_start 08-mongodb freepbx-app | + ln -sf /etc/services.available/08-mongodb /etc/services.d/ freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 08-mongodb: exited 0. freepbx-app | [cont-init.d] 09-mariadb: executing... freepbx-app | + prepare_service 10-freepbx freepbx-app | + '[' -n 10-freepbx ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/09-mariadb freepbx-app | + get_defaults 10-freepbx freepbx-app | + '[' -n 10-freepbx ']' freepbx-app | + case "$1" in freepbx-app | ++ echo 10-freepbx freepbx-app | ++ tr , '\n' freepbx-app | + defaults=10-freepbx freepbx-app | + for d in $defaults freepbx-app | + '[' -f /assets/defaults/10-freepbx ']' freepbx-app | + print_debug 'Container: Getting defaults for 10-freepbx' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/09-mariadb [container] Container: Getting defaults for 10-freepbx freepbx-app | + source /assets/defaults/10-freepbx freepbx-app | ++ ADMIN_DIRECTORY=/admin freepbx-app | ++ DB_EMBEDDED=TRUE freepbx-app | ++ DB_PORT=3306 freepbx-app | ++ ENABLE_FOP=FALSE freepbx-app | ++ ENABLE_SMTP=FALSE freepbx-app | ++ ENABLE_SSL=TRUE freepbx-app | ++ ENABLE_XMPP=TRUE freepbx-app | ++ FOP_DIRECTORY=/fop freepbx-app | ++ FREEPBX_VERSION=15.0.16.56 freepbx-app | ++ HTTP_PORT=80 freepbx-app | ++ HTTPS_PORT=443 freepbx-app | ++ UCP_FIRST=TRUE freepbx-app | ++ WEBROOT=/var/www/html freepbx-app | + get_functions 10-freepbx freepbx-app | + '[' -n 10-freepbx ']' freepbx-app | + case "$1" in freepbx-app | ++ tr , '\n' freepbx-app | ++ echo 10-freepbx freepbx-app | + functions=10-freepbx freepbx-app | + for f in $functions freepbx-app | + '[' -f /assets/functions/10-freepbx ']' freepbx-app | + print_debug 'Container: Getting functions for 10-freepbx' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/09-mariadb [container] Container: Getting functions for 10-freepbx freepbx-app | + source /assets/functions/10-freepbx freepbx-app | + PROCESS_NAME=mariadb freepbx-app | + var_true TRUE freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + silent service mysql stop freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + service mysql stop freepbx-app | Stopping MariaDB database server: mysqld. freepbx-app | + mkdir -p /var/lib/mysql freepbx-app | + '[' '!' -d /var/lib/mysql/mysql ']' freepbx-app | + chown -R mysql. /var/lib/mysql freepbx-app | + silent service mysql start freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + service mysql start freepbx-db | 2020-07-10 15:35:30 0 [ERROR] InnoDB: Operating system error number 13 in a file operation. freepbx-db | 2020-07-10 15:35:30 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory. freepbx-db | [cont-init.d] 10-mariadb: exited 0. freepbx-db | [cont-init.d] 20-mariadb-backup: executing... freepbx-db | [NOTICE] [mariadb-backup] Disabling Scheduled Backups freepbx-db | [cont-init.d] 20-mariadb-backup: exited 0. freepbx-db | [cont-init.d] 99-container: executing... freepbx-db | [cont-init.d] 99-container: exited 0. freepbx-db | [cont-init.d] done. freepbx-db | [services.d] starting services freepbx-db | [services.d] done. freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [zabbix] Starting Zabbix Agent freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db-backup | [INFO] [db-backup] Backup routines Initialized on Fri Jul 10 15:35:35 GMT 2020 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed! freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 09-mariadb: exited 0. freepbx-app | [cont-init.d] 10-freepbx: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + '[' -f /assets/defaults/10-freepbx ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + print_debug 'Container: Getting defaults for 10-freepbx' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/10-freepbx [container] Container: Getting defaults for 10-freepbx freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + source /assets/defaults/10-freepbx freepbx-app | ++ ADMIN_DIRECTORY=/admin freepbx-app | ++ DB_EMBEDDED=TRUE freepbx-app | ++ DB_PORT=3306 freepbx-app | ++ ENABLE_FOP=FALSE freepbx-app | ++ ENABLE_SMTP=FALSE freepbx-app | ++ ENABLE_SSL=TRUE freepbx-app | ++ ENABLE_XMPP=TRUE freepbx-app | ++ FOP_DIRECTORY=/fop freepbx-app | ++ FREEPBX_VERSION=15.0.16.56 freepbx-app | ++ HTTP_PORT=80 freepbx-app | ++ HTTPS_PORT=443 freepbx-app | ++ UCP_FIRST=TRUE freepbx-app | ++ WEBROOT=/var/www/html freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + '[' -f /assets/functions/10-freepbx ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + print_debug 'Container: Getting functions for 10-freepbx' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/10-freepbx [container] Container: Getting functions for 10-freepbx freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/10-freepbx freepbx-app | + source /assets/functions/10-freepbx freepbx-app | + PROCESS_NAME=freepbx freepbx-app | + var_false TRUE freepbx-app | + '[' TRUE = FALSE ']' freepbx-app | + '[' TRUE = false ']' freepbx-app | + '[' TRUE = NO ']' freepbx-app | + '[' TRUE = no ']' freepbx-app | + '[' '!' -f /data/.installed ']' freepbx-app | + print_notice 'Creating default configuration files' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [NOTICE] /etc/cont-init.d/10-freepbx [freepbx] Creating default configuration files freepbx-app | + mkdir -p /data freepbx-app | + cp -R /assets/config/home /assets/config/var /data/ freepbx-app | + '[' -f /data/etc/asterisk/.asterisk_version ']' freepbx-app | + print_notice 'Setting file permissions' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [NOTICE] /etc/cont-init.d/10-freepbx ** [freepbx] Setting file permissions freepbx-app | + mkdir -p /data/etc/asterisk freepbx-app | + mkdir -p /data/var/lib/asterisk/bin /data/var/lib/asterisk/playback freepbx-app | + 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 freepbx-app | + mkdir -p /data/var/run/asterisk freepbx-app | + mkdir -p /data/home/asterisk freepbx-app | + mkdir -p /home/asterisk freepbx-app | + ln -sf /data/home/asterisk /home/asterisk freepbx-app | + chown -R asterisk. /data freepbx-app | + 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_voicemail_imap.so /usr/lib/asterisk/modules/app_voicemail_odbc.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 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /var/www/html/admin/index.php ']' freepbx-app | + print_info 'New install detected - please wait while we fetch FreePBX - will take up to 30 minutes!' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [INFO] /etc/cont-init.d/10-freepbx [freepbx] New install detected - please wait while we fetch FreePBX - will take up to 30 minutes! freepbx-app | + '[' /var/www/html '!=' /var/www/html ']' freepbx-app | + var_false TRUE freepbx-app | + '[' TRUE = FALSE ']' freepbx-app | + '[' TRUE = false ']' freepbx-app | + '[' TRUE = NO ']' freepbx-app | + '[' TRUE = no ']' freepbx-app | + mkdir -p /usr/src/freepbx freepbx-app | + cd /usr/src freepbx-app | + curl -ssL https://github.com/FreePBX/framework/archive/release/15.0.16.56.tar.gz freepbx-app | + tar xfz - --strip 1 -C /usr/src/freepbx freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + silent sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80 freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80 freepbx-app | gpg: directory '/home/asterisk/.gnupg' created freepbx-app | gpg: keybox '/home/asterisk/.gnupg/pubring.kbx' created freepbx-app | + silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/1588A7366BD35B34.key freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/1588A7366BD35B34.key freepbx-app | gpg: /home/asterisk/.gnupg/trustdb.gpg: trustdb created freepbx-app | gpg: key 1588A7366BD35B34: public key "FreePBX Module Signing (This is the master key to sign FreePBX Modules) v2 modules@freepbx.org" imported freepbx-app | gpg: Total number processed: 1 freepbx-app | gpg: imported: 1 freepbx-app | + silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/3DDB2122FE6D84F7.key freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/3DDB2122FE6D84F7.key freepbx-app | gpg: key 3DDB2122FE6D84F7: 1 signature not checked due to a missing key freepbx-app | gpg: key 3DDB2122FE6D84F7: public key "FreePBX Mirror 1 (Module Signing - 2016/2017) security@freepbx.org" imported freepbx-app | gpg: Total number processed: 1 freepbx-app | gpg: imported: 1 freepbx-app | gpg: no ultimately trusted keys found freepbx-app | + silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/86CE877469D2EAD9.key freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/86CE877469D2EAD9.key freepbx-app | gpg: key 86CE877469D2EAD9: 1 signature not checked due to a missing key freepbx-app | gpg: key 86CE877469D2EAD9: public key "FreePBX Mirror 1 (Module Signing - 2014/2015) security@freepbx.org" imported freepbx-app | gpg: Total number processed: 1 freepbx-app | gpg: imported: 1 freepbx-app | gpg: no ultimately trusted keys found freepbx-app | + silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/9F9169F4B33B4659.key freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/9F9169F4B33B4659.key freepbx-app | gpg: key 9F9169F4B33B4659: 1 signature not checked due to a missing key freepbx-app | gpg: key 9F9169F4B33B4659: public key "FreePBX Module Signing (This is the master key to sign FreePBX Modules) modules@freepbx.org" imported freepbx-app | gpg: Total number processed: 1 freepbx-app | gpg: imported: 1 freepbx-app | gpg: no ultimately trusted keys found freepbx-app | + silent sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/B53D215A755231A3.key freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + sudo -u asterisk gpg --import /usr/src/freepbx/amp_conf/htdocs/admin/libraries/BMO/B53D215A755231A3.key freepbx-app | gpg: key B53D215A755231A3: public key "FreePBX Mirror Servers security@freepbx.org" imported freepbx-app | gpg: Total number processed: 1 freepbx-app | gpg: imported: 1 freepbx-app | gpg: no ultimately trusted keys found freepbx-app | + cd /usr/src/freepbx freepbx-app | + cp -R /etc/odbc.ini /usr/src/freepbx/installlib/files/odbc.ini freepbx-app | + 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 freepbx-app | + '[' '!' -f /etc/asterisk/extensions.lua ']' freepbx-app | + cat freepbx-app | + '[' '!' -f /etc/asterisk/dongle.conf ']' freepbx-app | + print_notice 'Starting Asterisk 17.5.1 for the first time' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [NOTICE] /etc/cont-init.d/10-freepbx [freepbx] Starting Asterisk 17.5.1 for the first time freepbx-app | + silent ./start_asterisk start freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + ./start_asterisk start freepbx-app | freepbx-app | freepbx-app | STARTING ASTERISK freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | Asterisk Started freepbx-app | + '[' '!' -f /var/run/asterisk/asterisk.pid ']' freepbx-app | + var_false TRUE freepbx-app | + '[' TRUE = FALSE ']' freepbx-app | + '[' TRUE = false ']' freepbx-app | + '[' TRUE = NO ']' freepbx-app | + '[' TRUE = no ']' freepbx-app | + print_notice 'Installing FreePBX 15.0.16.56 source code (db embedded)' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [NOTICE] /etc/cont-init.d/10-freepbx [freepbx] Installing FreePBX 15.0.16.56 source code (db embedded) freepbx-app | + silent ./install -n --webroot=/var/www/html freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + ./install -n --webroot=/var/www/html freepbx-app | Assuming you are Database Root freepbx-app | Checking if SELinux is enabled...Its not (good)! freepbx-app | No /etc/asterisk/asterisk.conf file detected. Installing...Writing /etc/asterisk/asterisk.conf...Done freepbx-app | Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Yes. Determined Asterisk version to be: 17.5.1 freepbx-app | Checking if NodeJS is installed and we can get a version from it...Yes. Determined NodeJS version to be: 10.21.0 freepbx-app | Preliminary checks done. Starting FreePBX Installation freepbx-app | Checking if this is a new install...Yes (No /etc/freepbx.conf file detected) freepbx-app | Database Root installation checking credentials and permissions..Error! freepbx-app | Invalid Database Permissions. The error was: SQLSTATE[HY000] [2002] No such file or directory freepbx-app | + sed -i '/^preload = chan_local.so$/d' /etc/asterisk/modules.conf freepbx-app | + '[' '!' -f /usr/sbin/fwconsole ']' freepbx-app | + print_error 'Can'\''t seem to locate /usr/sbin/fwconsole.. exiting' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [ERROR] /etc/cont-init.d/10-freepbx [freepbx] Can't seem to locate /usr/sbin/fwconsole.. exiting freepbx-app | + exit 1 freepbx-app | [cont-init.d] 10-freepbx: exited 1. freepbx-app | [cont-init.d] 15-socat: executing... freepbx-app | + prepare_service single freepbx-app | + '[' -n single ']' freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + get_defaults single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/15-socat freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + '[' -f /assets/defaults/15-socat ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + print_debug 'Container: No defaults available for 15-socat' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/15-socat [container] Container: No defaults available for 15-socat freepbx-app | + get_functions single freepbx-app | + '[' -n single ']' freepbx-app | + case "$1" in freepbx-app | + case "$(dirname "$0")" in freepbx-app | ++ dirname /var/run/s6/etc/cont-init.d/15-socat freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + '[' -f /assets/functions/15-socat ']' freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + print_debug 'Container: No functions available for 15-socat' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/cont-init.d/15-socat [container] Container: No functions available for 15-socat freepbx-app | + PROCESS_NAME=socat freepbx-app | + '[' '' '!=' localhost ']' freepbx-app | + var_true FALSE freepbx-app | + '[' FALSE = TRUE ']' freepbx-app | + '[' FALSE = true ']' freepbx-app | + '[' FALSE = YES ']' freepbx-app | + '[' FALSE = yes ']' freepbx-app | + service_stop 15-socat freepbx-app | ++ basename /var/run/s6/etc/cont-init.d/15-socat freepbx-app | + '[' 15-socat '!=' 15-socat ']' freepbx-app | + DONOTSTART=TRUE freepbx-app | + liftoff freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [cont-init.d] 15-socat: exited 0. freepbx-app | [cont-init.d] 99-container: executing... freepbx-app | + PROCESS_NAME=container freepbx-app | + var_false FALSE freepbx-app | + '[' FALSE = FALSE ']' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | ** freepbx-app | ** freepbx-app | freepbx-app | ERROR - Some initialization scripts haven't completed - All services are now halted freepbx-app | - The following scripts in '/etc/cont-init.d' did not pass their completion check freepbx-app | freepbx-app | ** freepbx-app | ** freepbx-app | freepbx-app | 10-freepbx freepbx-app | freepbx-app | freepbx-app | ** freepbx-app | ** freepbx-app | freepbx-app | This could have happened for a variety of reasons. Please make sure you have followed the README freepbx-app | relating to this image and have proper configuration such as environment variables and volumes set freepbx-app | freepbx-app | If you feel that you have encountered a bug, please submit an issue on the revision control system freepbx-app | and provide full debug logs by setting the environment variable 'DEBUG_MODE=TRUE' freepbx-app | freepbx-app | ** freepbx-app | ** freepbx-app | [cont-init.d] 99-container: exited 1. freepbx-app | [cont-init.d] done. freepbx-app | [services.d] starting services freepbx-app | [services.d] done. freepbx-app | + PROCESS_NAME=mongo freepbx-app | + check_container_initialized freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + sleep 1 freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + sleep 1 freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-app | + sleep 1 freepbx-db | [INFO] [mariadb] Starting MariaDB 10.4.13 freepbx-app | + '[' '!' -f /tmp/state/99-container-init ']' freepbx-app | + print_debug 'Checking to see if container initialization scripts have completed' freepbx-app | + output_off freepbx-app | + '[' TRUE = TRUE ']' freepbx-app | + set +x freepbx-app | + sleep 1 freepbx-app | [DEBUG] /etc/services.available/08-mongodb/run [mongo] Checking to see if container initialization scripts have completed freepbx-db | [INFO] ** [mariadb] Starting MariaDB 10.4.13 ^CGracefully stopping... (press Ctrl+C again to force) Stopping freepbx-db-backup ... done Stopping freepbx-app ... done Stopping freepbx-db ... done

myafik commented 4 years ago

Linux X230 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Description: Ubuntu 20.04 LTS Docker version 19.03.3, build a872fc2f86

ptruman commented 4 years ago

Have you created the volumes per the Docker instructions?

myafik commented 4 years ago

@ptruman do you mean I need to create the data-volumes? I thought so as well but I noticed that after initial installation folders created automatically. I'm fairly new to Linux. Can you elaborate what needs to be created? Thank you! These folder were created after initial run of docker-compose up

~/apps/freepbx  tree -d . ├── certs ├── data │   ├── etc │   │   └── asterisk │   ├── home │   │   └── asterisk │   ├── var │   │   ├── lib │   │   │   ├── asterisk │   │   │   │   ├── agi-bin │   │   │   │   ├── bin │   │   │   │   ├── documentation │   │   │   │   │   └── thirdparty │   │   │   │   │   ├── codec_opus │   │   │   │   │   ├── codec_silk │   │   │   │   │   ├── codec_siren14 │   │   │   │   │   └── codec_siren7 │   │   │   │   ├── firmware │   │   │   │   │   └── iax │   │   │   │   ├── images │   │   │   │   ├── keys │   │   │   │   ├── moh │   │   │   │   ├── phoneprov │   │   │   │   ├── playback │   │   │   │   ├── rest-api │   │   │   │   ├── scripts │   │   │   │   ├── sounds │   │   │   │   │   └── en │   │   │   │   │   ├── dictate │   │   │   │   │   ├── digits │   │   │   │   │   ├── followme │   │   │   │   │   ├── letters │   │   │   │   │   ├── phonetic │   │   │   │   │   └── silence │   │   │   │   ├── static-http │   │   │   │   └── third-party │   │   │   │   └── pjproject │   │   │   ├── mongodb │   │   │   └── mysql │   │   │   ├── mysql [error opening dir] │   │   │   └── performance_schema [error opening dir] │   │   ├── run │   │   │   └── asterisk │   │   └── spool │   │   ├── asterisk │   │   │   ├── backup │   │   │   ├── cache │   │   │   ├── dictate │   │   │   ├── fax │   │   │   ├── meetme │   │   │   ├── monitor │   │   │   ├── outgoing │   │   │   ├── recording │   │   │   ├── system │   │   │   ├── tmp │   │   │   └── voicemail │   │   └── cron │   │   └── crontabs [error opening dir] │   └── www ├── db │   ├── asterisk [error opening dir] │   ├── mysql [error opening dir] │   └── performance_schema [error opening dir] ├── dbbackup └── logs ├── asterisk ├── fail2ban ├── mongodb └── zabbix

tiredofit commented 4 years ago

If looks as if you are mapping your ./db folders twice. We've spoken privately and your docker-compose is mapping a ./db folder for both the mariadb image and the freepbx-app container. Remove the volume declaration for ./db:/var/lib/mysql from the freepbx container and wipe all dirs and start fresh and see if you get success.

tiredofit commented 4 years ago

I saw the previous message that was sent over with the logs and docker-compose that made it to me as a notification. I just ran the docker-compose.yml myself and didn't experience the issue and was able to have a working installation so I'm a bit stumped here.

myafik commented 4 years ago

Truth be told It's confusing for me as well... Docker is installed using the official guide (I run docker command without explicit sudo). Shall I run docker-compose with sudo? As I'm newbe, not sure what can go wrong with my Ubuntu in comparison with your arch linux (not sure if you use it, but I think you've mentioned it in your older posts)

On July 18, 2020 20:30:05 Dave Conroy notifications@github.com wrote:

I saw the previous message that was sent over with the logs and docker-compose that made it to me as a notification. I just ran the docker-compose.yml myself and didn't experience the issue and was able to have a working installation so I'm a bit stumped here. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

techs2resolve commented 4 years ago

I am trying to configure your docker image in kubernetes but i am not able to configure environment variable for external database. Here I am attaching the deployment.yaml. Can you help me out with external database configuration however pod is running. apiVersion: apps/v1 kind: Deployment metadata: labels: run: freepbx name: freepbx-deploy namespace: freepbx spec: replicas: 1 selector: matchLabels: run: freepbx template: metadata: labels: run: freepbx spec: containers:

rusxakep commented 4 years ago

I am trying to configure your docker image in kubernetes but i am not able to configure environment variable for external database. Here I am attaching the deployment.yaml. Can you help me out with external database configuration however pod is running. apiVersion: apps/v1 kind: Deployment metadata: labels: run: freepbx name: freepbx-deploy namespace: freepbx spec: replicas: 1 selector: matchLabels: run: freepbx template: metadata: labels: run: freepbx spec: containers:

  • image: tiredofit/freepbx name: freepbx ports:
  • containerPort: 80 name: http
  • containerPort: 3306 name: mysql
  • containerPort: 5060 name: sip
  • containerPort: 5061 name: sip1
  • containerPort: 5161 name: sip2
  • containerPort: 4569 name: sip3
  • containerPort: 18000 name: udp-ports

Your part of the configuration where the RTP (18000 - 18100) ports are specified is incorrect. You mapped only 18000 port and not separate TCP and UDP in other ports. In general, Kubernetes can't map range of ports, you can use hostNetwork and write iptables rules by yourself.

techs2resolve commented 4 years ago

I am trying to configure your docker image in kubernetes but i am not able to configure environment variable for external database. Here I am attaching the deployment.yaml. Can you help me out with external database configuration however pod is running. apiVersion: apps/v1 kind: Deployment metadata: labels: run: freepbx name: freepbx-deploy namespace: freepbx spec: replicas: 1 selector: matchLabels: run: freepbx template: metadata: labels: run: freepbx spec: containers:

  • image: tiredofit/freepbx name: freepbx ports:
  • containerPort: 80 name: http
  • containerPort: 3306 name: mysql
  • containerPort: 5060 name: sip
  • containerPort: 5061 name: sip1
  • containerPort: 5161 name: sip2
  • containerPort: 4569 name: sip3
  • containerPort: 18000 name: udp-ports

Your part of the configuration where the RTP (18000 - 18100) ports are specified is incorrect. You mapped only 18000 port and not separate TCP and UDP in other ports. In general, Kubernetes can't map range of ports, you can use hostNetwork and write iptables rules by yourself.

But I am also not able to connect sip client like zoiper from outside. Is there anyway to configure port range in kubernetes How can we use freepbx inside kubernetes ?

rusxakep commented 4 years ago

You can't using port range in Kubernetes, only whole host ports or ports one by one.

I still testing bulk patches for next version docker-freepbx and will do PR very soon, please be patient.

Example deployment file (please check spaces (yaml syntax!)):

apiVersion: apps/v1 kind: Deployment metadata: name: freepbx-app spec: replicas: 1 selector: matchLabels: app: freepbx-app template: metadata: labels: app: freepbx-app spec: hostNetwork: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: