docker-freepbx icon indicating copy to clipboard operation
docker-freepbx copied to clipboard

Fop wont't save any user

Open t-oster opened this issue 5 years ago • 6 comments

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 avatar Mar 23 '19 13:03 t-oster

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?

t-oster avatar Mar 23 '19 16:03 t-oster

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)

tiredofit avatar Mar 23 '19 16:03 tiredofit

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?

t-oster avatar Mar 23 '19 19:03 t-oster

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.

tiredofit avatar Apr 02 '19 16:04 tiredofit

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

t-oster avatar Apr 02 '19 20:04 t-oster

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.

t-oster avatar Apr 11 '19 07:04 t-oster