docker-freepbx icon indicating copy to clipboard operation
docker-freepbx copied to clipboard

Brand new deployment on CentOS 7, doesn't work

Open arjones85 opened this issue 5 years ago • 16 comments

When running docker-compose up, I get:

freepbx-db           | Version: '10.3.9-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Source distribution
freepbx-app          | .
freepbx-app          | [cont-init.d] 05-fail2ban: exited 0.
freepbx-app          | [cont-init.d] 08-mongodb: executing...
freepbx-app          | [cont-init.d] 08-mongodb: exited 0.
freepbx-app          | [cont-init.d] 09-mariadb: executing...
freepbx-db-backup    | ** [db-backup] Initialized at at Thu Mar 7 11:10:30 PST 2019
freepbx-app          | [cont-init.d] 09-mariadb: exited 0.
freepbx-app          | [cont-init.d] 10-freepbx: executing...
freepbx-app          | ** [freepbx] Creating Default Configuration Files
freepbx-app          | ** [freepbx] Setting File Permissions
freepbx-app          | ** [freepbx] New Install Detected - Please wait while we fetch FreePBX - Will take 3 to 30 minutes!
freepbx-app          | ** [freepbx] Starting Asterisk for the first time..
freepbx-app          | ** [freepbx] Installing FreePBX source code
**freepbx-app          | ** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. Exitting
freepbx-app          | [cont-init.d] 10-freepbx: exited 1.**
freepbx-app          | [cont-init.d] 99-container-init: executing...
freepbx-app          | [cont-init.d] 99-container-init: exited 0.
freepbx-app          | [cont-init.d] done.
freepbx-app          | [services.d] starting services
freepbx-app          | [services.d] done.
freepbx-app          |
freepbx-app          | **** [zabbix] Starting Zabbix Agent
freepbx-app          |
freepbx-app          | ** [cron] Starting cron

I'm not sure how to begin troubleshooting this. Thoughts?

Thanks for the help!

arjones85 avatar Mar 07 '19 19:03 arjones85

Lets start fresh, by deleting the data, db and logs folder and see if you get a better result. If it fails again, let's try DEBUG_MODE=TRUE in your environment variables which will spit up quite alot of output.

tiredofit avatar Mar 11 '19 22:03 tiredofit

Getting the same issue. Doesn't seem like it's seeing fwconsole... "Can't seem to locate /usr/sbin/fwconsole.. Exitting"

ayprof avatar Mar 12 '19 16:03 ayprof

Can you send me your entire logs with DEBUG_MODE=TRUE turned on to dave at my github username? Will see what I can find.

tiredofit avatar Mar 12 '19 18:03 tiredofit

Even with debug on the logs are empty.

ayprof avatar Mar 12 '19 18:03 ayprof

I have tried removing all the folders/data multiple times, as well as tried all 3 releases available. All 3 gave me the same error unfortunately.

I moved on to running a pre-packaged VM release of FreePBX now, so won't be able to troubleshoot any further. Good luck getting this fixed up! :+1:

arjones85 avatar Mar 13 '19 13:03 arjones85

I am also having the same issue. I have attached a log file and my docker version and docker-compose files are below. log.txt .

Docker

I am using Docker Desktop on Windows 10 Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:31 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community
Engine:
Version:          18.09.2
API version:      1.39 (minimum version 1.12)
Go version:       go1.10.6
Git commit:       6247962
Built:            Sun Feb 10 04:13:06 2019
OS/Arch:          linux/amd64
Experimental:     false

Freepbx compose file

version: '2'

services:
  freepbx-app:
    container_name: freepbx-app
    image: tiredofit/freepbx
    ports:
    #### If you aren't using a reverse proxy
    #- 80:80
    #### If you want SSL Support and not using a reverse proxy
    #- 443:443
      - 5060:5060
      - 5160:5160
      - 18000-18100:18000-18100/udp
    #### Flash Operator Panel
      - 4445:4445
    volumes:
      - ./certs:/certs
      - ./data:/data
      - ./logs:/var/log
      - ./data/www:/var/www/html
    ### Only Enable this option below if you set DB_EMBEDDED=TRUE
    #- ./db:/var/lib/mysql
    ### You can drop custom files overtop of the image if you have made modifications to modules/css/whatever - Use with care
    #- ./assets/custom:/assets/custom

    environment: 
      - VIRTUAL_HOST=hostname.example.com
      - VIRTUAL_NETWORK=nginx-proxy
    ### If you want to connect to the SSL Enabled Container 
    #- VIRTUAL_PORT=443
    #- VIRTUAL_PROTO=https
      - VIRTUAL_PORT=80
      - LETSENCRYPT_HOST=hostname.example.com
      - [email protected]

      - ZABBIX_HOSTNAME=freepbx-app

      - RTP_START=18000
      - RTP_FINISH=18100
    
    ## Use for External MySQL Server
      - DB_EMBEDDED=FALSE

    ### These are only necessary if DB_EMBEDDED=FALSE
      - DB_HOST=freepbx-db
      - DB_PORT=3306
      - DB_NAME=asterisk
      - DB_USER=asterisk
      - DB_PASS=asteriskpass

      - DEBUG_MODE=TRUE
    
    ### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
    #- TLS_CERT=cert.pem
    #- TLS_KEY=key.pem
    
    restart: always
    networks:
      - proxy-tier

    ### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
    cap_add:
      - NET_ADMIN
    privileged: true

  freepbx-db:
    container_name: freepbx-db
    image: tiredofit/mariadb
    restart: always
    # volumes:
    #   - ./db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=asterisk
      - MYSQL_USER=asterisk
      - MYSQL_PASSWORD=asteriskpass
    networks:
      - proxy-tier

  freepbx-db-backup:
    container_name: freepbx-db-backup
    image: tiredofit/db-backup
    links:
    - freepbx-db
    # volumes:
    #   - ./dbbackup:/backup
    environment:
      - ZABBIX_HOSTNAME=freepbx-db-backup
      - DB_HOST=freepbx-db
      - DB_TYPE=mariadb
      - DB_NAME=asterisk
      - DB_USER=asterisk
      - DB_PASS=asteriskpass
      - DB_DUMP_FREQ=1440
      - DB_DUMP_BEGIN=0000
      - DB_CLEANUP_TIME=8640
      - COMPRESSION=BZ
      - MD5=TRUE
    networks:
      - proxy-tier
    restart: always

networks:
  proxy-tier:
    external:
      name: nginx-proxy

Nginx compose file

version: '2'

services:
  app:
    image: jwilder/nginx-proxy
    ports:
      - 80:80
      - 443:443
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    networks:
      - proxy-tier

networks:
  proxy-tier:
    external:
      name: nginx-proxy

bencaldwell avatar Mar 13 '19 15:03 bencaldwell

Thank's for the log. dirmngr' failed: IPC connect call failed is standing out to me.

We've seen Freepbx perform changes in the past that has broken the image from installing correctly, this may be one of those issues again. I will review in coming hours.

tiredofit avatar Mar 13 '19 15:03 tiredofit

I've tried to recreate this 4 times and don't get the same results. Could this be an OS level issue? I'm using Arch, Kernel 5.0.0, Docker 18.09.3-ce.

tiredofit avatar Mar 13 '19 17:03 tiredofit

It appears this is an OS issue. It runs fine on Ubuntu 18.04, Docker 18.03.1-ce with exactly the same docker-compose files.

bencaldwell avatar Mar 14 '19 06:03 bencaldwell

Docker 18.09.3 Ubuntu 16.04.5 LTS

Having same issue as original post

image

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-s6: applying... [fix-attrs.d] 01-s6: exited 0. [fix-attrs.d] 02-zabbix: applying... [fix-attrs.d] 02-zabbix: exited 0. [fix-attrs.d] 03-logrotate: applying... [fix-attrs.d] 03-logrotate: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-permissions: executing... [cont-init.d] 01-permissions: exited 0. [cont-init.d] 02-zabbix: executing... [cont-init.d] 02-zabbix: exited 0. [cont-init.d] 03-cron: executing... **** [cron] Enabling Cron [cont-init.d] 03-cron: exited 0. [cont-init.d] 04-smtp: executing... **** [smtp] Sendmail replaced and enabled to route mail to: postfix-relay [cont-init.d] 04-smtp: exited 0. [cont-init.d] 05-fail2ban: executing... ** [fail2ban] Starting Fail2ban Starting authentication failure monitor: fail2ban. [cont-init.d] 05-fail2ban: exited 0. [cont-init.d] 08-mongodb: executing... [cont-init.d] 08-mongodb: exited 0. [cont-init.d] 09-mariadb: executing... ** [mysql] New Embedded Database Detected, setting up.. [cont-init.d] 09-mariadb: exited 0. [cont-init.d] 10-freepbx: executing... ** [freepbx] Creating Default Configuration Files ** [freepbx] Setting File Permissions ** [freepbx] New Install Detected - Please wait while we fetch FreePBX - Will take 3 to 30 minutes! ** [freepbx] Starting Asterisk for the first time.. ** [freepbx] Installing FreePBX source code ** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. Exitting [cont-init.d] 10-freepbx: exited 1. [cont-init.d] 99-container-init: executing... [cont-init.d] 99-container-init: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done.

**** [zabbix] Starting Zabbix Agent

WARNING 'failregex' not defined in 'Definition'. Using default one: '' WARNING 'failregex' not defined in 'Definition'. Using default one: '' cp: target '/data/' is not a directory


p.s. i downloaded docker-compose.yml from example folder and did docker-compose up -d Is it correct way of doing the job ?

Boffice avatar Mar 17 '19 15:03 Boffice

I've the same problem when I try to deploy this image on a synology nas. I've created the required folders but /var/www/html stays empty, also http is not reachable.

here is the debug log:

2019-04-03 11:56:19,stdout,[APIv1] KEEPALIVE /api/v1/events

2019-04-03 11:55:24,stdout,[APIv2] GET /api/v2/messages

2019-04-03 11:55:23,stdout,[APIv2] GET /api/v2/websocket

2019-04-03 11:55:19,stdout,[APIv1] KEEPALIVE /api/v1/events

2019-04-03 11:55:15,stdout,[APIv2] GET /api/v2/websocket

2019-04-03 11:55:14,stdout,[APIv2] GET /api/v2/jim

2019-04-03 11:55:14,stdout,[APIv2] GET /api/v2/messages

2019-04-03 11:54:19,stdout,[APIv1] KEEPALIVE /api/v1/events

2019-04-03 11:54:19,stdout,** [cron] Starting cron

2019-04-03 11:53:19,stdout,Creating API v2 with WebPath: 

2019-04-03 11:53:19,stdout,Creating API v1 with WebPath: 

2019-04-03 11:53:19,stdout,2019/04/03 04:53:19 Serving under http://0.0.0.0:8025/

2019-04-03 11:53:19,stdout,[HTTP] Binding to address: 0.0.0.0:8025

2019-04-03 11:53:19,stdout,2019/04/03 04:53:19 [SMTP] Binding to address: 0.0.0.0:1025

2019-04-03 11:53:19,stdout,2019/04/03 04:53:19 Using in-memory storage

2019-04-03 11:53:19,stdout, 

2019-04-03 11:53:19,stdout,**** [zabbix] Starting Zabbix Agent

2019-04-03 11:53:19,stdout,

2019-04-03 11:53:19,stdout,[services.d] done.

2019-04-03 11:53:19,stdout,[services.d] starting services

2019-04-03 11:53:19,stdout,[cont-init.d] done.

2019-04-03 11:53:19,stdout,[cont-init.d] 99-container-init: exited 0.

2019-04-03 11:53:19,stdout,[cont-init.d] 99-container-init: executing... 

2019-04-03 11:53:19,stdout,[cont-init.d] 10-freepbx: exited 1.

2019-04-03 11:53:19,stdout,+ exit 1

2019-04-03 11:53:19,stdout,** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. Exitting

2019-04-03 11:53:19,stdout,+ echo '** [freepbx] Can'\''t seem to locate /usr/sbin/fwconsole.. Exitting'

2019-04-03 11:53:19,stdout,+ '[' '!' -f /usr/sbin/fwconsole ']'

2019-04-03 11:53:19,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:53:19,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:53:19,stdout,[37;41mTry starting Asterisk with the './start_asterisk start' command in this directory[39;49m

2019-04-03 11:53:19,stdout,[37;41mAsterisk appears to be running as asterisk[39;49m

2019-04-03 11:53:19,stdout,[37;41mError communicating with Asterisk.  Ensure that Asterisk is properly installed and running as the asterisk user[39;49m

2019-04-03 11:53:19,stdout,[37;41mError![39;49m

2019-04-03 11:53:19,stdout,Checking if Asterisk is running and we can talk to it as the 'asterisk' user...runuser: System error

2019-04-03 11:53:19,stdout,No /etc/asterisk/asterisk.conf file detected. Installing...Writing /etc/asterisk/asterisk.conf...Done

2019-04-03 11:53:19,stdout,Checking if SELinux is enabled...Its not (good)!

2019-04-03 11:53:19,stdout,[32mAssuming you are Database Root[39m

2019-04-03 11:53:18,stdout,+ ./install -n --webroot=/var/www/html

2019-04-03 11:53:18,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:53:18,stdout,+ silent ./install -n --webroot=/var/www/html

2019-04-03 11:53:18,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:53:18,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:53:18,stdout,** [freepbx] Installing FreePBX source code

2019-04-03 11:53:18,stdout,+ echo '** [freepbx] Installing FreePBX source code'

2019-04-03 11:53:18,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:53:18,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:53:18,stdout,+ '[' '!' -f /var/run/asterisk/asterisk.pid ']'

2019-04-03 11:53:18,stdout,Asterisk Started

2019-04-03 11:53:12,stdout,STARTING ASTERISK

2019-04-03 11:53:12,stdout,

2019-04-03 11:53:12,stdout,

2019-04-03 11:53:12,stdout,+ ./start_asterisk start

2019-04-03 11:53:12,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:53:12,stdout,+ silent ./start_asterisk start

2019-04-03 11:53:12,stdout,** [freepbx] Starting Asterisk for the first time..

2019-04-03 11:53:12,stdout,+ echo '** [freepbx] Starting Asterisk for the first time..'

2019-04-03 11:53:12,stdout,+ touch /etc/asterisk/modules.conf /etc/asterisk/cdr.conf

2019-04-03 11:53:12,stdout,+ cp -R /etc/odbc.ini /usr/src/freepbx/installlib/files/odbc.ini

2019-04-03 11:53:12,stdout,+ cd /usr/src/freepbx

2019-04-03 11:52:59,stdout,+ tar xfz - --strip 1 -C /usr/src/freepbx

2019-04-03 11:52:59,stdout,+ curl -ssL http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz

2019-04-03 11:52:59,stdout,+ mkdir -p /usr/src/freepbx

2019-04-03 11:52:59,stdout,+ cd /usr/src

2019-04-03 11:52:59,stdout,sudo: policy plugin failed session initialization

2019-04-03 11:52:59,stdout,sudo: pam_open_session: System error

2019-04-03 11:52:59,stdout,sudo: unable to send audit message: Unknown error -1

2019-04-03 11:52:59,stdout,+ sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 86CE877469D2EAD9

2019-04-03 11:52:59,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:59,stdout,+ silent sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 86CE877469D2EAD9

2019-04-03 11:52:59,stdout,sudo: policy plugin failed session initialization

2019-04-03 11:52:59,stdout,sudo: pam_open_session: System error

2019-04-03 11:52:59,stdout,sudo: unable to send audit message: Unknown error -1

2019-04-03 11:52:59,stdout,+ sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 3DDB2122FE6D84F7

2019-04-03 11:52:59,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:59,stdout,+ silent sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 3DDB2122FE6D84F7

2019-04-03 11:52:59,stdout,sudo: policy plugin failed session initialization

2019-04-03 11:52:59,stdout,sudo: pam_open_session: System error

2019-04-03 11:52:59,stdout,sudo: unable to send audit message: Unknown error -1

2019-04-03 11:52:59,stdout,+ sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 9F9169F4B33B4659

2019-04-03 11:52:59,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:59,stdout,+ silent sudo -u asterisk gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 9F9169F4B33B4659

2019-04-03 11:52:59,stdout,sudo: policy plugin failed session initialization

2019-04-03 11:52:59,stdout,sudo: pam_open_session: System error

2019-04-03 11:52:59,stdout,sudo: unable to send audit message: Unknown error -1

2019-04-03 11:52:59,stdout,+ sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80

2019-04-03 11:52:59,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:59,stdout,+ silent sudo -u asterisk gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80

2019-04-03 11:52:59,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:52:59,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:52:59,stdout,+ '[' /var/www/html '!=' /var/www/html ']'

2019-04-03 11:52:59,stdout,** [freepbx] New Install Detected - Please wait while we fetch FreePBX - Will take 3 to 30 minutes!

2019-04-03 11:52:59,stdout,+ echo '** [freepbx] New Install Detected - Please wait while we fetch FreePBX - Will take 3 to 30 minutes!'

2019-04-03 11:52:59,stdout,+ '[' '!' -f /var/www/html/admin/index.php ']'

2019-04-03 11:52:57,stdout,+ chown -R asterisk:asterisk /data

2019-04-03 11:52:57,stdout,+ mkdir -p /data/var/run/asterisk

2019-04-03 11:52:57,stdout,+ mkdir -p /data/var/spool/asterisk/cache /data/var/spool/asterisk/dictate /data/var/spool/asterisk/meetme /data/var/spool/asterisk/monitor /data/var/spool/asterisk/recording /data/var/spool/asterisk/system /data/var/spool/asterisk/tmp /data/var/spool/asterisk/voicemail

2019-04-03 11:52:57,stdout,+ mkdir -p /data/var/lib/asterisk/agi-bin /data/var/lib/asterisk/bin /data/var/lib/asterisk/playback

2019-04-03 11:52:57,stdout,+ mkdir -p /data/etc/asterisk

2019-04-03 11:52:57,stdout,** [freepbx] Setting File Permissions

2019-04-03 11:52:57,stdout,+ echo '** [freepbx] Setting File Permissions'

2019-04-03 11:52:57,stdout,+ '[' -f /data/etc/asterisk/.asterisk_version ']'

2019-04-03 11:52:57,stdout,+ cp -R /assets/config/home /assets/config/var /data/

2019-04-03 11:52:57,stdout,** [freepbx] Creating Default Configuration Files

2019-04-03 11:52:57,stdout,+ echo '** [freepbx] Creating Default Configuration Files'

2019-04-03 11:52:57,stdout,+ '[' '!' -f /data/.installed ']'

2019-04-03 11:52:57,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:52:57,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:52:57,stdout,+ WEBROOT=/var/www/html

2019-04-03 11:52:57,stdout,+ UCP_FIRST=TRUE

2019-04-03 11:52:57,stdout,+ RTP_START=18000

2019-04-03 11:52:57,stdout,+ RTP_FINISH=20000

2019-04-03 11:52:57,stdout,+ HTTPS_PORT=443

2019-04-03 11:52:57,stdout,+ HTTP_PORT=80

2019-04-03 11:52:57,stdout,+ FOP_DIRECTORY=/fop

2019-04-03 11:52:57,stdout,+ ENABLE_FOP=TRUE

2019-04-03 11:52:57,stdout,+ DB_PORT=3306

2019-04-03 11:52:57,stdout,+ ADMIN_DIRECTORY=/admin

2019-04-03 11:52:57,stdout,+ [[ TRUE = \f\a\l\s\e ]]

2019-04-03 11:52:57,stdout,+ [[ TRUE = \F\A\L\S\E ]]

2019-04-03 11:52:57,stdout,+ DB_EMBEDDED=TRUE

2019-04-03 11:52:57,stdout,+ [[ TRUE = \T\R\U\E ]]

2019-04-03 11:52:57,stdout,[cont-init.d] 10-freepbx: executing... 

2019-04-03 11:52:57,stdout,[cont-init.d] 09-mariadb: exited 0.

2019-04-03 11:52:57,stdout,+ touch /tmp/state/09-mariadb-init

2019-04-03 11:52:57,stdout,+ mkdir -p /tmp/state

2019-04-03 11:52:57,stdout,[....] Starting MariaDB database server: mysqld[?25l7[1G[[32m ok [39;49m8[?12l[?25h.

2019-04-03 11:52:55,stdout,+ service mysql start

2019-04-03 11:52:55,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:55,stdout,+ silent service mysql start

2019-04-03 11:52:54,stdout,+ chown -R mysql:mysql /var/lib/mysql

2019-04-03 11:52:54,stdout,+ cp -R /assets/config/var/lib/mysql/aria_log.00000001 /assets/config/var/lib/mysql/aria_log_control /assets/config/var/lib/mysql/debian-10.1.flag /assets/config/var/lib/mysql/ib_logfile0 /assets/config/var/lib/mysql/ib_logfile1 /assets/config/var/lib/mysql/ibdata1 /assets/config/var/lib/mysql/mysql /assets/config/var/lib/mysql/performance_schema /var/lib/mysql

2019-04-03 11:52:54,stdout,"** [mysql] New Embedded Database Detected, setting up..
"
2019-04-03 11:52:54,stdout,"+ echo '** [mysql] New Embedded Database Detected, setting up..'
"
2019-04-03 11:52:54,stdout,+ '[' '!' -d /var/lib/mysql/mysql ']'

2019-04-03 11:52:54,stdout,+ mkdir -p /var/lib/mysql

2019-04-03 11:52:54,stdout,[....] Stopping MariaDB database server: mysqld[?25l7[1G[[32m ok [39;49m8[?12l[?25h.

2019-04-03 11:52:54,stdout,+ service mysql stop

2019-04-03 11:52:54,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:54,stdout,+ silent service mysql stop

2019-04-03 11:52:54,stdout,+ [[ TRUE = \T\R\U\E ]]

2019-04-03 11:52:54,stdout,+ DB_EMBEDDED=TRUE

2019-04-03 11:52:54,stdout,+ [[ TRUE = \T\R\U\E ]]

2019-04-03 11:52:54,stdout,[cont-init.d] 09-mariadb: executing... 

2019-04-03 11:52:54,stdout,[cont-init.d] 08-mongodb: exited 0.

2019-04-03 11:52:54,stdout,[cont-init.d] 08-mongodb: executing... 

2019-04-03 11:52:54,stdout,[cont-init.d] 05-fail2ban: exited 0.

2019-04-03 11:52:54,stdout,[?25l7[1G[[32m ok [39;49m8[?12l[?25h.

2019-04-03 11:52:53,stdout,WARNING 'failregex' not defined in 'Definition'. Using default one: ''

2019-04-03 11:52:53,stdout,[....] Starting authentication failure monitor: fail2banWARNING 'failregex' not defined in 'Definition'. Using default one: ''

2019-04-03 11:52:52,stdout,** [fail2ban] Starting Fail2ban

2019-04-03 11:52:52,stdout,[cont-init.d] 05-fail2ban: executing... 

2019-04-03 11:52:52,stdout,[cont-init.d] 04-smtp: exited 0.

2019-04-03 11:52:52,stdout,**** [smtp] Disabling SMTP Features

2019-04-03 11:52:52,stdout,"**** [smtp] [debug] SMTP Mailcatcher Enabled at Port 1025, Visit http://127.0.0.1:8025 for Web Interface
"
2019-04-03 11:52:52,stdout,[cont-init.d] 04-smtp: executing... 

2019-04-03 11:52:52,stdout,[cont-init.d] 03-cron: exited 0.

2019-04-03 11:52:52,stdout,**** [cron] Enabling Cron

2019-04-03 11:52:52,stdout,[cont-init.d] 03-cron: executing... 

2019-04-03 11:52:52,stdout,[cont-init.d] 02-zabbix: exited 0.

2019-04-03 11:52:52,stdout,[cont-init.d] 02-zabbix: executing... 

2019-04-03 11:52:52,stdout,[cont-init.d] 01-permissions: exited 0.

2019-04-03 11:52:52,stdout,+ touch /tmp/state/01-permissions-init

2019-04-03 11:52:52,stdout,++ basename /var/run/s6/etc/cont-init.d/01-permissions

2019-04-03 11:52:52,stdout,+ mkdir -p /tmp/state

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Groups (varenvdestgroup) to add users are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Groups (varenvdestgroup) to add users are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Users (varenvuser2add) to add to groups are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Users (varenvuser2add) to add to groups are: '

2019-04-03 11:52:52,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = true ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = TRUE ']'

2019-04-03 11:52:52,stdout,++ grep '^GROUP_ADD_'

2019-04-03 11:52:52,stdout,++ awk -F= '{print tolower($2)}'

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvdestgroup=(`env | grep ^GROUP_ADD_ | awk -F= '{print tolower($2)}'`)

2019-04-03 11:52:52,stdout,++ grep '^GROUP_ADD_'

2019-04-03 11:52:52,stdout,++ awk -F= '{print $1}'

2019-04-03 11:52:52,stdout,++ awk -F_ '{print tolower($3)}'

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvuser2add=(`env | grep ^GROUP_ADD_ | awk -F= '{print $1}' | awk -F_ '{print tolower($3)}'`)

2019-04-03 11:52:52,stdout,+ counter=0

2019-04-03 11:52:52,stdout,+ '[' 0 -gt 0 ']'

2019-04-03 11:52:52,stdout,**** [permissions] [debug] GIDs (vargroupid) from /etc/group are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] GIDs (vargroupid) from /etc/group are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Group names (vargroupname) from /etc/group are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Group names (vargroupname) from /etc/group are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] The string (strgroup) used to grep the groups is: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] The string (strgroup) used to grep the groups is: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] GIDs (grvarenvgid) from Docker environment settings are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] GIDs (grvarenvgid) from Docker environment settings are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Group names (varenvgroupname) from Docker environment settings are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Group names (varenvgroupname) from Docker environment settings are: '

2019-04-03 11:52:52,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = true ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = TRUE ']'

2019-04-03 11:52:52,stdout,+ [[ ! -z '' ]]

2019-04-03 11:52:52,stdout,+ strgroups=

2019-04-03 11:52:52,stdout,++ sed 's/ /\\|/g'

2019-04-03 11:52:52,stdout,++ echo ''

2019-04-03 11:52:52,stdout,++ awk -F= '{print tolower($2)}'

2019-04-03 11:52:52,stdout,++ grep -v GROUP_ADD_

2019-04-03 11:52:52,stdout,++ grep '^GROUP_'

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvgid=(`env | grep ^GROUP_ | grep -v GROUP_ADD_ | awk -F= '{print tolower($2)}'`)

2019-04-03 11:52:52,stdout,++ awk -F_ '{print $2}'

2019-04-03 11:52:52,stdout,++ grep '^GROUP_'

2019-04-03 11:52:52,stdout,++ awk -F= '{print tolower($1)}'

2019-04-03 11:52:52,stdout,++ grep -v GROUP_ADD_

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvgroupname=(`env | grep ^GROUP_ | grep -v GROUP_ADD_  | awk -F= '{print tolower($1)}' | awk -F_ '{print $2}'`)

2019-04-03 11:52:52,stdout,+ counter=0

2019-04-03 11:52:52,stdout,+ '[' 0 -gt 0 ']'

2019-04-03 11:52:52,stdout,+ counter=0

2019-04-03 11:52:52,stdout,**** [permissions] [debug] UIDs (varpassuserid) from /etc/passwd are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] UIDs (varpassuserid) from /etc/passwd are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Users (varpassuser) from /etc/passwd are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Users (varpassuser) from /etc/passwd are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] The string (strusers) used to grep the users is: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] The string (strusers) used to grep the users is: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] UIDs (varenvuid) from Docker env are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] UIDs (varenvuid) from Docker env are: '

2019-04-03 11:52:52,stdout,**** [permissions] [debug] Users (varenvusername) from Docker env are: 

2019-04-03 11:52:52,stdout,+ echo '**** [permissions] [debug] Users (varenvusername) from Docker env are: '

2019-04-03 11:52:52,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = true ']'

2019-04-03 11:52:52,stdout,+ '[' FALSE = TRUE ']'

2019-04-03 11:52:52,stdout,+ [[ ! -z '' ]]

2019-04-03 11:52:52,stdout,+ strusers=

2019-04-03 11:52:52,stdout,++ sed 's/ /\\|/g'

2019-04-03 11:52:52,stdout,++ echo ''

2019-04-03 11:52:52,stdout,++ grep USER_

2019-04-03 11:52:52,stdout,++ awk -F= '{print tolower($2)}'

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvuid=(`env | grep USER_ | awk -F= '{print tolower($2)}'`)

2019-04-03 11:52:52,stdout,++ awk -F= '{print tolower($1)}'

2019-04-03 11:52:52,stdout,++ awk -F_ '{print $2}'

2019-04-03 11:52:52,stdout,++ grep USER_

2019-04-03 11:52:52,stdout,++ env

2019-04-03 11:52:52,stdout,+ varenvusername=(`env | grep USER_ | awk -F= '{print tolower($1)}' | awk -F_ '{print $2}'`)

2019-04-03 11:52:52,stdout,+ '[' TRUE = TRUE ']'

2019-04-03 11:52:52,stdout,+ ENABLE_PERMISSIONS=TRUE

2019-04-03 11:52:52,stdout,+ DEBUG_PERMISSIONS=FALSE

2019-04-03 11:52:52,stdout,[cont-init.d] 01-permissions: executing... 

2019-04-03 11:52:52,stdout,[cont-init.d] executing container initialization scripts...

2019-04-03 11:52:52,stdout,[fix-attrs.d] done.

2019-04-03 11:52:52,stdout,[fix-attrs.d] 03-logrotate: exited 0.

2019-04-03 11:52:52,stdout,[fix-attrs.d] 03-logrotate: applying... 

2019-04-03 11:52:52,stdout,[fix-attrs.d] 02-zabbix: exited 0.

2019-04-03 11:52:52,stdout,[fix-attrs.d] 02-zabbix: applying... 

2019-04-03 11:52:52,stdout,[fix-attrs.d] 01-s6: exited 0.

2019-04-03 11:52:52,stdout,[fix-attrs.d] 01-s6: applying... 

2019-04-03 11:52:52,stdout,[fix-attrs.d] applying ownership & permissions fixes...

2019-04-03 11:52:52,stdout,[s6-init] ensuring user provided files have correct perms...exited 0.

2019-04-03 11:52:52,stdout,[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

blieb avatar Apr 03 '19 12:04 blieb

I have the same problem. Debian 9.8(openmediavault), docker 18.09.4

DarkVeter avatar Apr 03 '19 15:04 DarkVeter

Same issue when deploy to kubernetes cluster.

any idea or solution for this?

spatialy avatar Apr 23 '19 02:04 spatialy

Hi Dave (@tiredofit),

I've read your reply:

Thank's for the log.dirmngr' failed: IPC connect call failed is standing out to me.We've seen Freepbx perform changes in the past that has broken the image from installing correctly, this may be one of those issues again. I will review in coming hours.

I've had the same error as the rest.. I went inside the container and tried a manual "apt update" and it indeed gave a gpg verification error on the first repo you add in the dockerfile.

Then I went to look in the repo in a web browser; https://packages.sury.org/php and read the README.txt; https://packages.sury.org/php/README.txt I've manually ran the wget command from that README text and now the repo works, so it's a repository gpg key error with the existing command in the dockerfile.

JosephArturo avatar May 01 '19 02:05 JosephArturo

Hi Dave (@tiredofit),

I've read your reply:

Thank's for the log.dirmngr' failed: IPC connect call failed is standing out to me.We've seen Freepbx perform changes in the past that has broken the image from installing correctly, this may be one of those issues again. I will review in coming hours.

I've had the same error as the rest.. I went inside the container and tried a manual "apt update" and it indeed gave a gpg verification error on the first repo you add in the dockerfile.

Then I went to look in the repo in a web browser; https://packages.sury.org/php and read the README.txt; https://packages.sury.org/php/README.txt I've manually ran the wget command from that README text and now the repo works, so it's a repository gpg key error with the existing command in the dockerfile.

From what i understand even tough i fixed the missing gpg key, i still get the error message :

freepbx-app | ** [freepbx] Can't seem to locate /usr/sbin/fwconsole.. Exitting

@ tiredofit Ubuntu 18.04, Docker 18.09.5

There seems to be something wrong with the installation routine...

spaxxilein avatar May 06 '19 07:05 spaxxilein

I've just pushed a new release moving the PHP repo from .xyz back to .org (They had a domain issue earlier this year) however that shouldn't be the magic bullet to fix the issues. There is something happening on Ubuntu hosts blocking this from installing - I just tried twice (both with alternating priveleged arguments) and all worked as expected. We've been plagued with platform issues for quite along time with platforms having weird rules on file systems, security profiles, and the upstream changing their idea on how packages are to be deployed. I'll see what I can do in coming week to get a 18.04 VM installed and try to build / run on that host.

tiredofit avatar May 06 '19 14:05 tiredofit