Open
Description
Before you start please confirm the following.
- Yes, I've searched similar issues on GitHub.
- Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.
Problem Description
I started my RaspberryPi from full machine backup on SD CARD and after that Portainer is only one container unable to start.
When I am doing that (today) is 19.11.2024 and I used full machine backup from 16.11.2024.
docker logs portainercontainerid
2024/11/19 10:26AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:370 > encryption key file not present | filename=portainer
2024/11/19 10:26AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:393 > proceeding without encryption key |
2024/11/19 10:26AM INF github.com/portainer/portainer/api/database/boltdb/db.go:125 > loading PortainerDB | filename=portainer.db
panic: assertion failed: Page expected to be: 19, but self identifies as 7957911330314153833
goroutine 1 [running]:
go.etcd.io/bbolt._assert(...)
go.etcd.io/[email protected]/db.go:1387
go.etcd.io/bbolt.(*page).fastCheck(0xffff7199a000, 0x13)
go.etcd.io/[email protected]/page.go:57 +0x184
go.etcd.io/bbolt.(*Tx).page(0x0?, 0x0?)
go.etcd.io/[email protected]/tx.go:534 +0x74
go.etcd.io/bbolt.(*Bucket).pageNode(0x0?, 0x0?)
go.etcd.io/[email protected]/bucket.go:748 +0x90
go.etcd.io/bbolt.(*Cursor).goToFirstElementOnTheStack(0x4000569268)
go.etcd.io/[email protected]/cursor.go:181 +0xc4
go.etcd.io/bbolt.(*Cursor).next(0x4000569268)
go.etcd.io/[email protected]/cursor.go:234 +0x54
go.etcd.io/bbolt.(*Cursor).Next(0x100569258?)
go.etcd.io/[email protected]/cursor.go:94 +0x2c
go.etcd.io/bbolt.(*Bucket).ForEach(0x400023b6d8?, 0x40005692d8)
go.etcd.io/[email protected]/bucket.go:396 +0xb0
github.com/portainer/portainer/api/database/boltdb.(*DbTransaction).GetAllWithJsoniter(0x4000291410, {0x1c38811?, 0x10?}, {0x174c7e0, 0x40003602c0}, 0x40003ef5f0)
github.com/portainer/portainer/api/database/boltdb/tx.go:136 +0x98
github.com/portainer/portainer/api/dataservices/endpoint.ServiceTx.Endpoints({0x4000417770?, {0x1fc1cb0?, 0x4000291410?}})
github.com/portainer/portainer/api/dataservices/endpoint/tx.go:85 +0xd0
github.com/portainer/portainer/api/dataservices/endpoint.(*Service).endpoints.func1({0x1fc1cb0?, 0x4000291410?})
github.com/portainer/portainer/api/dataservices/endpoint/endpoint.go:98 +0x44
github.com/portainer/portainer/api/database/boltdb.(*DbConnection).ViewTx.(*DbConnection).txFn.func1(0x400023b6c0)
github.com/portainer/portainer/api/database/boltdb/db.go:158 +0x84
go.etcd.io/bbolt.(*DB).View(0x4000569488?, 0x4000569470)
go.etcd.io/[email protected]/db.go:917 +0x70
github.com/portainer/portainer/api/database/boltdb.(*DbConnection).ViewTx(0x40005694c8?, 0x13cf348?)
github.com/portainer/portainer/api/database/boltdb/db.go:173 +0x40
github.com/portainer/portainer/api/dataservices/endpoint.(*Service).endpoints(0x4000417770)
github.com/portainer/portainer/api/dataservices/endpoint/endpoint.go:97 +0xb8
github.com/portainer/portainer/api/dataservices/endpoint.NewService({0x1fcec30, 0x40004176d0})
github.com/portainer/portainer/api/dataservices/endpoint/endpoint.go:38 +0x9c
github.com/portainer/portainer/api/datastore.(*Store).initServices(0x40004dac00)
github.com/portainer/portainer/api/datastore/services.go:129 +0x420
github.com/portainer/portainer/api/datastore.(*Store).Open(0x40004dac00)
github.com/portainer/portainer/api/datastore/datastore.go:51 +0xc8
main.initDataStore(0x40004d8ea0, {0x0, 0x0, 0x0}, {0x1fd2e90?, 0x400039ea20}, {0x1fb4d18?, 0x4000417630})
github.com/portainer/portainer/api/cmd/portainer/main.go:96 +0x1ec
main.buildServer(0x40004d8ea0)
github.com/portainer/portainer/api/cmd/portainer/main.go:396 +0x128
main.main()
github.com/portainer/portainer/api/cmd/portainer/main.go:646 +0x11c
Expected Behavior
Container starting without problems.
Actual Behavior
Container keep restarting.
Steps to Reproduce
Start portainer from filesystem Backup (volumes as directories in system)
Portainer logs or screenshots
No response
Portainer version
2.23.0
Portainer Edition
Community Edition (CE)
Platform and Version
Docker 27.3.1
OS and Architecture
RaspberryPi Ubuntu
Browser
No response
What command did you use to deploy Portainer?
docker compose
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
ports:
- 9000:9000
volumes:
- /home/dawid/portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
Additional Information
No response