tiredofit / docker-freepbx

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

Fop wont't save any user #66

Open t-oster opened 5 years ago

t-oster commented 5 years ago

Hi, Thanks for the great Container and all your work. Everthing works great so far, except for fop.

I am logged in info freepbx and open /fop/admin in order to create a user for fop (existing Extension), but although it says user XX added, no user is shown and I cannot login.

t-oster commented 5 years ago

It looks as if Fop2 does not work correctly at all. In the browser log I get SQL errors over and over and while debugging I see it is trying to connect to mysql at localhost. I am using a separate mariadb container for the db (as suggested in the docker-compose.yml), but it does not look as if this is picked up.

Even if I manually add the credentials to the config file, it does not work. I guess because the fop-tables haven't been created in the first place.

I also did a reinstall of fop in the container (using parts of the script from this repository) and I get the same SQL errors during installation. Shouldn't fop pick up the databasesettings from freepbx?

tiredofit commented 5 years ago

I may actually have to remove FOP out of this existing release. I had it working on the 14 branch but unsure if its been kept up to date. If you figure out where it goes sideways let me know and I'll integrate a patch. You could also try doing a manual install inside the container following how I did it in the Dockerfile (the files should already be there, you just want to get the DB routines sorted)

t-oster commented 5 years ago

Thanks for responding so quickly. I already did run the install script in the container,but it also does not connect to the correct db. I will have time to debug on Monday. Just that I get this right: the fop installer should detect freepbx and automatically use the database from the freepbx config file during setup?

tiredofit commented 5 years ago

FOP installer should be able to detect Asterisk yes :) I have just put together a new test installation as well and ready to work with you.

t-oster commented 5 years ago

Thanks. I got it kind of working,but will send you more information next week, when I am back from hollyday

t-oster commented 5 years ago

Hmm. I got the install working by manually adding the db credentials in the right place and re-executing parts of the install script. However the interface does show buttons and users, but it says could not connect to manager interfaces and I cannot press any button, nor are any calls shown.

However I probably won't have time to fix this anytime soon, so feel free to close the issue. If I really need fop and get it to work, I will report back.