-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble when using an external pgsql database #190
Comments
Yes, I just worked through this problem myself:
Hope this helps. |
I've been trying to accomplish a similar thing with MySQL/MariaDB. The provisioner requires root database access by default: https://github.com/wallabag/docker/blob/master/root/etc/ansible/entrypoint.yml#L88 |
I have the same problem and I think I've done this like you described but it's still not working. Can somebody please take a look? My docker-compose.yml:
I manually added the wallabag database and the walla user to postgres. Maybe that was an error? If I run docker-compose up -d I get
When trying to visit wallabag.example.com wallabag outputs:
The postgres container outputs
I hope somebody can help me out with this. I really don't know what to do next. If you need more information I can provide that too. Big edit |
I believe creating the database shouldn't be the concern of the wallabag image/container, but instead handled by the postgres container using the provided |
Wow this is very weird behavior. I've never seen docker container requesting root password for postgres. |
@Whisprin : I'm trying to do same setup. Running docker wallabag and use MariaDB 10 on my Synology without success. I've set env.variable POPULATE_DATABASE=False and created an empty MariaDB=wallabag and user=wallabag with phpMyAdmin on Synololgy. What am I doing wrong ? |
POPULATE_DATABASE=false seems to do the trick. But I don't think populating the database should also create the database and user. |
@emo1509 it looks like you can't connecting the database with the root user (wrong password ?). You have this error message in your log : Thanks to all the contributors, I just made a new try with this docker-compose file :
Before typing a "docker-compose up" i created the <wallabag_admin> user with admin right on the pgsql db, neither the wallabag or the wallabag database was manually created. Next i run a
It's populate a wallabag database and an wallabag user in postgresql. @ptman I confirm that using the default value of POPULATE_DATABASE (True) populate the database and the user. Unfortunately i'm not able to understand this problem |
@emo1509 I have the same issue, connecting remote mysql. Did you fix the issue? i have tried POPULATE_DATABASE=False but still getting issue. Thanks |
No, I could not fix the problem. Still have the same error. I'm currently running the docker version with SQLite. Waiting for someone who can find the solution to connect to MariaDB 10 on Synology NAS. |
@emo1509 i have fixed it.
I hope it helps. Cheers. |
Hi everyone,
This afternoon I tried using the wallabag docker with an external db (instead of using a local containerized db). My use case is : i rent a professional grade postgresql into a cloud provider and i would use it instead of a local db (mainly for scalability and resilience issues).
I noticed that is an old questions, i read the issue #9 but i can't figure out how make it works.
My db postgresql version 11.
My docker compose looks like this :
When i make a docker-compose up, i got this :
If i go to the wallabag url, i got these errors message :
The first problem "Did you mean to use "continue 2"?" looks like the same as #185
So, my questions are :
Does anyone have the same trouble as me ?
Did exist a workaround to simply add an external database to the wallabag container ?
How can I force the ansible task to create the default relations ?
Thanks in advance for helping me,
The text was updated successfully, but these errors were encountered: