portainer: after fresh install, unable to create admin user (and access it using it)
BUG REPORT INFORMATION
Description
Steps to reproduce the issue:
- pull latest image
- start it normally
- try to access it
- TRY to create admin user, when I fill in my password and click create user nothing happens, if I try to click again it says user already exists
- when I try to refresh URL, portainer ask me for username and password: on 1st attempt I get " Your session has expired" and on 2nd I get " Invalid credentials.
- I tried to remove ./data and restart did not help…
Technical details:
- Portainer version: latest
# docker pull portainer/portainer
Using default tag: latest
latest: Pulling from portainer/portainer
Digest: sha256:8736c3e0fd899229786c8f2198cd3f63fe2815df249b12758f28ef669028057b
Status: Image is up to date for portainer/portainer:latest
#
- Target Docker version (the host/cluster you manage):
# docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:09 2017
OS/Arch: linux/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:48 2017
OS/Arch: linux/amd64
Experimental: false
#
- Platform (windows/linux): Linux
# cat /etc/debian_version
9.2
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
#
- Command used to start Portainer (
docker run -p 9000:9000 portainer/portainer
):
via docker-compose: (part of compose)
portainer:
image: portainer/portainer
expose:
- 9000
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./data/:/data/"
- Target Swarm version (if applicable):
same as host
- Browser:
Mozilla/5.0 (X11; CrOS armv7l 10032.21.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Safari/537.36
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26 (10 by maintainers)
I know this is an old thread, but …
I just ran into this issue and was able to fix it. I am not saying we had the same cause, but simply the same effect.
My issue, (like I only have one) was that I am running docker as an unprivildged user. Portainer during ‘docker-compose up’ creates files and folders as root. And as such it cannot write to the files it just created, and was unable to create the admin user. Using chown to (chowning?) change the user fixed it problem immediately.
ASIDE: trying to access Portainer via nginx reverse proxy with auth_basic turned on causes the following fails: Failed loading page data Unable to retrieve tags Failure n.config is undefined
@deviantony I forcely disagree with you, because I ran that command above on my machine and docker and the Portainer is running so good.