-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Docker image does not start when using external PostgreSQL #1921
Comments
I'd have to check, but is the adapter name just `postgres` rather than `postgresql`?
|
Hi @ckir, you are right, this is a bug in the multi process image, for now your can work around it by using |
When `DATABASE_ADAPTER` is set to `postgresql` we do not need to start the internal mysql daemon. The same is true when `DATABASE_ADAPTER` is set to `mysql2` and `DATABASE_HOST` is set. Fixes huginn#1921
Hi @dsander, I tried the workaround like docker run --rm --name huginn but it gives me
Please note: It tries to connect to database "postgres" not "d2i454kcn7i0kp" |
It seems like rails is trying to create the database even if it still exists and your database user does not have the permission to do that. Can you try the image |
Hi @dsander, Image huginnbuilder/huginn:pr-1922 started like docker run --rm --name huginn gives me 2017-03-06 22:29:47,952 CRIT Set uid to user 0 and no tables created in the database |
@ckir I honestly can't tell you why it makes a difference but it works for me without the |
@dsander Haven't looked too deeply into (Not necessarily relevant to this thread, but reminded me of a thing I was thinking about) |
@ckir Feel free the reopen the issue if the latest docker image still has problems for your use case. |
When I start the image using external MySql like
works fine, but when I use external PostgreSQL like
It gives me
Any ideas ?
The text was updated successfully, but these errors were encountered: