tiredofit / docker-freepbx

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

UCP module core dump #173

Open LorenzoLuconi opened 3 years ago

LorenzoLuconi commented 3 years ago

Hello, I just installed docker-freepbx and I have a core dump file every 10 minutes:

/data/www/admin/modules/ucp/node

....
41228 -rw-------   1 2600 2600 122691584 Apr  1 09:14 core.8091
40372 -rw-------   1 2600 2600 123117568 Apr  1 09:24 core.9405
41960 -rw-------   1 2600 2600 122707968 Apr  1 09:34 core.10625
43616 -rw-------   1 2600 2600 122699776 Apr  1 09:44 core.11846

And these logs (/var/log/asterisk/ucp_error.log):

2021-04-01 09:14 +02:00: node /var/www/html/admin/modules/ucp/node/index.js: ../src/binding.cc:992: static void Client::cb_poll(uv_poll_t*, int, int): Assertion `status == 0' failed.
2021-04-01 09:24 +02:00: node /var/www/html/admin/modules/ucp/node/index.js: ../src/binding.cc:992: static void Client::cb_poll(uv_poll_t*, int, int): Assertion `status == 0' failed.
2021-04-01 09:34 +02:00: node /var/www/html/admin/modules/ucp/node/index.js: ../src/binding.cc:992: static void Client::cb_poll(uv_poll_t*, int, int): Assertion `status == 0' failed.
2021-04-01 09:44 +02:00: node /var/www/html/admin/modules/ucp/node/index.js: ../src/binding.cc:992: static void Client::cb_poll(uv_poll_t*, int, int): Assertion `status == 0' failed.

I'm using provided docker-compose file and CentOS 7 OS with Docker version 20.10.5. The problem looks like this one https://community.freepbx.org/t/ucp-wont-allow-login-screen/72307/2 but I can't find a solution.

I'm not sure is a docker-freepbx or freepbx problem. Anyone Knows howto solve the problem?

joshmedley commented 3 years ago

I'm seeing the exact same thing. CentOS 7. Docker 20.10.6

My sanitized docker-compose.yml. Excuse the formatting I tried doing a code block but it didn't like it.

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/udp
  - 5160:5160/udp
  - 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=pbx.domainname.org
  - VIRTUAL_NETWORK=nginx-proxy
 ### If you want to connect to the SSL Enabled Container
  - VIRTUAL_PORT=443
  - VIRTUAL_PROTO=http
  - VIRTUAL_PORT=80
 # - LETSENCRYPT_HOST=pbx.domainname.org
 # - LETSENCRYPT_EMAIL=email@domainname.org
  - ENABLE_SMTP=TRUE
  - SMTP_FROM=pbx@idomainname.org
  - SMTP_HOST=postfix-relay
  - SMTP_PORT=25
  - SMTP_DOMAIN=domainname.org
  - SMTP_MAILDOMAIN=local
  - SMTP_AUTHENTICATION=off
  - SMTP_TLS=off
  - SMTP_STARTTLS=off
  - SMTP_TLSCERTCHECK=off

  - 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=<mysqlpass>

 ### 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:

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