Konga: Unable to login with docker instance

Created on 7 Mar 2017  路  13Comments  路  Source: pantsel/konga

I used docker by cmd docker run -p -d 3000:3000 -p 1338:1338 -e KONGA_BACKEND_URL=127.0.0.1:8001 --link kong:kong --name konga pantsel/konga but unable to login by admin - adminadminadmin at the login page. Is there any clue ? Thanks

Most helpful comment

Ok. I'm gonna push some scheduled updates this weekend and I'll fix that as well. Please bare with me.

All 13 comments

@bakstad do you have any idea as I found you have another konga image ?

Why there is no docker image for backend ? I can't quite understand that why backend should deploy seperately.

@thucnc ,

KONGA_BACKEND_URL
is not Kong's admin API URL. It is the URL Konga's backend is lifted. If Konga runs on localhost, it should be
KONGA_BACKEND_URL=127.0.0.1:1338

@chris-fung ,
The backend is not deployed separately. It is bundled in the same docker image as the frontend, But it can be deployed separately from source. Backend and frontend are loosely coupled so they can meet more than one deployment strategies.

For example, I only have the backend running on my live server with Kong, and use the frontend from my local machine,

qq20170308-141647 2x

docker run -d -p 5000:3000 -p 1338:1338 -e KONGA_BACKEND_URL=127.0.0.1:1338 --name konga pantsel/konga

konga still unable to login by admin - adminadminadmin at the login page...
where is the log print?
Thanks

Try using the server's actual ip instead of 127.0.0.1.
Open chrome's dev console and check the login request response on the network tab. Post a screenshot if you are still not able to login.

I'm using docker swarm mode to deploy konga, after changing KONGA_BACKEND_URL from any address you mentioned above, I still can't login.
e.g. KONGA_BACKEND_URL = 127.0.0.1:1338
KONGA_BACKEND_URL = konga:1338 (overlay network address)
KONGA_BACKEND_URL = 10.0.1.6:1338 (actual ip)
11

驴Does anyone solved this? I have the same problem, I have tried by using the actual ip and changing the ports but it still doesn't work.

Is this happening only on the docker image or when running Konga from source as well?

I just tried with the docker image, I didn't test the source.

Ok. I'm gonna push some scheduled updates this weekend and I'll fix that as well. Please bare with me.

Ok, I'll be watching this repo for the update.

A new version has been released with a new docker instance, Check the new README.md and release info https://github.com/pantsel/konga/releases/tag/v0.5.0

@pantsel done it's works. tks

Was this page helpful?
0 / 5 - 0 ratings