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

MariaDB and /run/mysqld/ #75

Open Gunnar-Brading opened 5 years ago

Gunnar-Brading commented 5 years ago

Getting everything out of the box to try this package, I get problems with freepbx-db. The database complains that it cannot reach /run/mysqld/mysqld.sock When verifying I noticed that the directory run is owned by root, so the db does not have permissions. I tried creating one manually, and the database seemed happy. freepbx-app did not though, not finding the DB.

tiredofit commented 5 years ago

Can you give us an idea of what OS you are using? There have been frequent reports with Mysql / MariaDB acting up on various filesystems. Also, if Freepbx can't find the DB Server, do you have some sort of specific networking installed? My example docker-compose.yml is based on having a network called nginx-proxy to which I created with docker network create nginx-proxy to make sure all containers could communicate to each other.

Gunnar-Brading commented 5 years ago

Ah, sorry. what concerned me was mostly the odd behavior of the /run permission, and that seemed straightforward. My OS is Centos 7, latest updates, running in a VM. No other problems at all. Will get back with more testing.