portainer: http error: No administrator account found inside the database
Bug description
after installing portainer and create a new container, when i setup my first account I can’t login to the panel and I got this error in container load:
http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
Expected behavior
I install the image on my computer, after that, I save the image using the following:
docker save -o portainer.tar portainer/portainer
then I move the file to another machine and I load the image by the following:
docker load -i portainer.tar
Technical details:
- Portainer version:
- Docker version (18.06.1-ce):
- Platform (linux):
- Command used to start Portainer (
docker run -p 9000:9000 -d --restart=always -v /var/run/docker.sock:/var/run/dokcer.sock portainer/portainer
):
Additional context When I load in to the panel I got “Your session has esxpired”
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (13 by maintainers)
Try restarting Docker. On my Windows 10 computer I launch Docker and once it is running I launch Portainer and get this error. If I then restart Docker, wait until it is running again and then try running Portainer it works fine. I have this problem on every boot and the Docker restart fixes the problem every time. This has been going on for as long as I can remember.
This Docker restart issue has been around for a while. See https://github.com/docker/for-win/issues/2303 (which appears closed but only because people gave up trying to figure out the root cause and just restart Docker to fix the problem).