Portainer 404 error

What Operating System?

linux 18.04

What is the problem?

portainer page will not load - 404 error

What did you already try to solve it?

googled the problem and see that portainer acknowledges as issue https://github.com/portainer/portainer/issues/8455 there is mention of running older portainer version . tried to update the yaml file but it reverts back to portainer/portainer-ce:alpine

Complete Logs

Logs help us with troubleshoting.

sudo docker container logs portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:33 server: Reverse tunnelling enabled
2023/02/17 09:59:33 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:33 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:35 server: Reverse tunnelling enabled
2023/02/17 09:59:35 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:35 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:36 server: Reverse tunnelling enabled
2023/02/17 09:59:36 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:36 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:37 server: Reverse tunnelling enabled
2023/02/17 09:59:37 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:37 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:38 server: Reverse tunnelling enabled
2023/02/17 09:59:38 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:38 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:41 server: Reverse tunnelling enabled
2023/02/17 09:59:41 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:41 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:44 server: Reverse tunnelling enabled
2023/02/17 09:59:44 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:44 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 09:59AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 09:59AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 09:59:51 server: Reverse tunnelling enabled
2023/02/17 09:59:51 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 09:59:51 server: Listening on 0.0.0.0:8000…
2023/02/17 09:59AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 10:00AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 10:00AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 10:00AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 10:00:05 server: Reverse tunnelling enabled
2023/02/17 10:00:05 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 10:00:05 server: Listening on 0.0.0.0:8000…
2023/02/17 10:00AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]
2023/02/17 10:00AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:534 > encryption key file not present | filename=portainer
2023/02/17 10:00AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:553 > proceeding without encryption key |
2023/02/17 10:00AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/17 10:00:31 server: Reverse tunnelling enabled
2023/02/17 10:00:31 server: Fingerprint 05:b2:a0:da:f9:93:59:e1:fc:16:5d:d2:f2:c4:0e:5e
2023/02/17 10:00:31 server: Listening on 0.0.0.0:8000…
2023/02/17 10:00AM FTL github.com/portainer/portainer/api/cmd/portainer/main.go:730 > failed initializing upgrade service | error=“failed to determine container platform: failed to retrieve docker info: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40” stack_trace=[{“func”:“NewService”,“line”:“55”,“source”:“upgrade.go”},{“func”:“buildServer”,“line”:“728”,“source”:“main.go”},{“func”:“main”,“line”:“801”,“source”:“main.go”},{“func”:“main”,“line”:“250”,“source”:“proc.go”},{“func”:“goexit”,“line”:“1594”,“source”:“asm_amd64.s”}]

Additional information

Anything else that helps us assess the situation like screenshots. As much data as possible

I’m really looking for instructions on how to force portainer to use an older version

1 Like

Hey man there is help in the Discord I ended up referring to that fixed the issue! Portainer and Sonarr need to have older images to work.

I take no credit for this. A mrfret was most kind to have given these instructions on the discord server which helped me.

Create duplicate file of portainer yml

sudo mkdir /opt/temp && sudo cp /opt/coreapps/apps/portainer.yml /opt/temp/

Use editor on copied file:

sudo nano /opt/temp/portainer.yml

Change

portainer/portainer-ce:alpine

to

portainer/portainer-ce:2.16.2

Run Ansible:

sudo ansible-playbook /opt/temp/portainer.yml

thanks so much @Euler for this! I copied the yaml file to my desktop, made the same change and then tried to put it back in the coreapps folder but it would just get overwritten by some sort of process when ever I would try to reinstall it. I assume there is some sort of varibles used to alter yamls in the coreapps during this process. can’t wait to get home and try this later tonight

following the instructions from Euler I got portainer to work without issue. Trying to get sonarr to work. Have been trying each release and not getting anywhere fast. Release 3.0.9.1549-ls176 the password prompt came up but it’s not letting me in with my known good credentials. Have been trying each subsequent release and not having the same result. So far 3.0.9.1549-ls173 is providing the same issue. ls172 next. Curious what version you are running?

Looking at Portainer, the Sonarr image I am running now is:

linuxserver/sonarr:3.0.9.1549-ls172

That image has allowed me to use sonarr.

From what I can read, yes there is a core app yaml that replaces every time reinstalled. Sadly it has been some time since I have worked with this and do not recall where certain things are located / managed.

did you adjust the sonarr image using portainer or did you follow to same CLI instructions?

I found success using linuxserver/sonarr:develop

Sorry for the late reply, I used portainer.

Interesting. Good to know that the beta / development version functions. I wonder then if the latest image will be patched at some point in the future.