Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

UCP module core dump #173

Open
LorenzoLuconi opened this issue Apr 1, 2021 · 1 comment
Open

UCP module core dump #173

LorenzoLuconi opened this issue Apr 1, 2021 · 1 comment

Comments

@LorenzoLuconi
Copy link

LorenzoLuconi commented Apr 1, 2021

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
Copy link

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
 # - [email protected]
  - ENABLE_SMTP=TRUE
  - [email protected]
  - 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:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=asterisk
- MYSQL_USER=asterisk
- MYSQL_PASSWORD=
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=
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- COMPRESSION=BZ
- MD5=TRUE
networks:
- proxy-tier
restart: always

services are named in docker ps by this name

proxy:
# this points to whatever image you want
image: nginxproxy/nginx-proxy
# mapping these ports as such as my developement machine already has an HTTP server on these ports.
# In production these will be 80:80 and 443:443
ports:
- "8080:80"
- "4443:443"
# this maps the socket over which all docker communication happens into the container so it can watch the host env
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
# This is for the setting client_max_body_size 200m; Otherwise nginx chokes uploading custom .wav to freepbx for IVRs.
- "./my_custom_proxy_settings.conf:/etc/nginx/conf.d/my_custom_proxy_settings.conf"
# docker supports arbitrary mini-SDNs, this just puts this image on this NW
networks:
- proxy-tier

postfix-relay:
container_name: postfix-relay
image: freinet/postfix-relay
restart: always
environment:
- MAILNAME=smtp.domainname.org
- MYNETWORKS=0.0.0.0/0
- LOGOUTPUT=/var/log/maillog
- SIZELIMIT=10000000
networks:
- proxy-tier

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants