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

Synology Docker Install Error - Infinite Restart #113

Open edoubleoo opened 4 years ago

edoubleoo commented 4 years ago

Hi guys,

I've been trying to complete the install of FreePBX on to our NAS, had the MariaDB install successfully, but the FreePBX would install and infinitely crash and restart. freepbx-pro.xlsx

I've checked the log and can't see what the issue is if you can help I would be grateful.

tiredofit commented 4 years ago

Hi there, a tonne of issues right at the very beginning. Unfortunately I don't understand how the Synology works or have nothing to test on to find out why even the most basic of file operations (copying a file) doesn't work. Is there a way you can reduce restrictions on permissions on how the image operates? Similar to say a privileged_mode: true in Docker speak?

edoubleoo commented 4 years ago

Hi, the Synology works on a Debian based Linux fork. The docker creates the FreePBX container as the root user. Still, it is best to give it UID/GID permissions in the compose to allow the container to carry out any further permitted activities (copy, paste, delete, etc).

I'm guessing its a privileges issue from your message (and thank you for getting back to me so soon).

Can you tell me the UID/GID for this container?

edoubleoo commented 4 years ago

?

tiredofit commented 4 years ago

I create the asterisk user and group to share both 2600:2600 - However if you are using the embedded Database server, or the XMPP Module with Mongo there will be different UIDs. See /etc/passwd.

You can try changing the UID/GID with the USER* and GROUP* variables as outlined here: https://hub.docker.com/r/tiredofit/debian