Broke my portainer after a rollback

Hello,

I had a probleme with my portainer and tried to do a rollback to version 1.7.9 (truenas catalog version). Now the container is in a loophole of start/shutdown. So I tried to updating back to 1.7.10 but I can’t do it because it’s DOWN.

Now my portainer is broken. How can I fix it?

take a look at the app lifecycle log on why it fails.
from shell:

sudo cat /var/log/app_lifecycle.log

The latest log I have is from gitea today at 13:57 but nothing about portainer today.

I’ve managed to get the portainer logs from the CLI :

2026/09/05 03:08PM INF github.com/portainer/portainer-ee/api/http/build.go:680 > encryption key file not present | filename=/run/portainer/portainer
2026/09/05 03:08PM INF github.com/portainer/portainer-ee/api/http/build.go:146 > proceeding without encryption key |
2026/09/05 03:08PM INF github.com/portainer/portainer@v0.6.1-0.20241105012540-458d722d4754/api/database/boltdb/db.go:163 > loading PortainerDB | filename=portainer.db
2026/09/05 03:08PM FTL github.com/portainer/portainer-ee/api/cmd/portainer/main.go:89 > failed to build server | error="The database schema version does not align with the server version. Please consider reverting to the previous server version or addressing the database migration issue." stack_trace=[{"func":"BuildServer","line":"171","source":"build.go"},{"func":"main","line":"87","source":"main.go"},{"func":"main","line":"290","source":"proc.go"},{"func":"goexit","line":"1771","source":"asm_amd64.s"}]
2026/09/05 03:09PM INF github.com/portainer/portainer-ee/api/http/build.go:680 > encryption key file not present | filename=/run/portainer/portainer
2026/09/05 03:09PM INF github.com/portainer/portainer-ee/api/http/build.go:146 > proceeding without encryption key |
2026/09/05 03:09PM INF github.com/portainer/portainer@v0.6.1-0.20241105012540-458d722d4754/api/database/boltdb/db.go:163 > loading PortainerDB | filename=portainer.db
2026/09/05 03:09PM INF github.com/portainer/portainer@v0.6.1-0.20241105012540-458d722d4754/api/database/boltdb/db.go:199 > closing PortainerDB |
2026/09/05 03:09PM FTL github.com/portainer/portainer-ee/api/cmd/portainer/main.go:89 > failed to build server | error="The database schema version does not align with the server version. Please consider reverting to the previous server version or addressing the database migration issue." stack_trace=[{"func":"BuildServer","line":"171","source":"build.go"},{"func":"main","line":"87","source":"main.go"},{"func":"main","line":"290","source":"proc.go"},{"func":"goexit","line":"1771","source":"asm_amd64.s"}]
2026/09/05 03:10PM INF github.com/portainer/portainer-ee/api/http/build.go:680 > encryption key file not present | filename=/run/portainer/portainer
2026/09/05 03:10PM INF github.com/portainer/portainer-ee/api/http/build.go:146 > proceeding without encryption key |
2026/09/05 03:10PM INF github.com/portainer/portainer@v0.6.1-0.20241105012540-458d722d4754/api/database/boltdb/db.go:163 > loading PortainerDB | filename=portainer.db
2026/09/05 03:10PM FTL github.com/portainer/portainer-ee/api/cmd/portainer/main.go:89 > failed to build server | error="The database schema version does not align with the server version. Please consider reverting to the previous server version or addressing the database migration issue." stack_trace=[{"func":"BuildServer","line":"171","source":"build.go"},{"func":"main","line":"87","source":"main.go"},{"func":"main","line":"290","source":"proc.go"},{"func":"goexit","line":"1771","source":"asm_amd64.s"}]
2026/09/05 03:11PM INF github.com/portainer/portainer-ee/api/http/build.go:680 > encryption key file not present | filename=/run/portainer/portainer
2026/09/05 03:11PM INF github.com/portainer/portainer-ee/api/http/build.go:146 > proceeding without encryption key |
2026/09/05 03:11PM INF github.com/portainer/portainer@v0.6.1-0.20241105012540-458d722d4754/api/database/boltdb/db.go:163 > loading PortainerDB | filename=portainer.db
2026/09/05 03:11PM FTL github.com/portainer/portainer-ee/api/cmd/portainer/main.go:89 > failed to build server | error="The database schema version does not align with the server version. Please consider reverting to the previous server version or addressing the database migration issue." stack_trace=[{"func":"BuildServer","line":"171","source":"build.go"},{"func":"main","line":"87","source":"main.go"},{"func":"main","line":"290","source":"proc.go"},{"func":"goexit","line":"1771","source":"asm_amd64.s"}]

Seems like I have to rollback but somehow in TrueNAS Scale you cannot upgrade an app if it’s off

yeah, that’s one of the reasons i don’t use the truenas apps… you may have to convert your app to a custom app so you can directly edit the yaml and set the correct version you need

Managed to fix it by going into /mnt/.ix-apps/app_configs/portainer/versions/1.7.9/templates/rendered/docker-compose.yaml and change the image tag from 2.44.0 to 2.45.0