Closed toennema closed 1 month ago
This is a very strange bug but I don't see how it could be related to Immich at all - are you able to post the portion of the database dump that produces this error? Just to be clear, the dump was created and restored all on the same Linux machine?
cc @mertalev, this smells a bit like a pgvecto.rs error to me?
This is a very strange bug but I don't see how it could be related to Immich at all - are you able to post the portion of the database dump that produces this error? Just to be clear, the dump was created and restored all on the same Linux machine?
Hello, yes. It is the same machine. But you are right, it seems to be a problem outside of Immich. The backup I had restored without error using v1.111.0 was a backup file from a couple of weeks ago, when this version was still the current one. I have uploaded some new assets after restoring this backup under v1.111.0, then did a new backup dump and restored it this morning (all using v1.111.0 without any update). This restore gave the same error message as before.
So this is clearly not related to v1.112.1. The restore seems ok. But I am still afraid that something is broken and that I have to start from 0 at some point if I continue to make incomplete or faulty backups. Do you think this error is problematic? Thank you.
Little update. I backed up the v.111.0 database which gave the error during restore, stopped all containers and purged them. Then redownloaded the current version and did a restore of this backup. The error message is now gone. I am still wondering so if I have lost/broken anything by doing the restore once with the error.
There are some cases of this in #11801 too. The \r\r\n
in the index creation command doesn't get parsed correctly. I'm not sure in what cases it ends up like that.
The bug
Doing the official backup & restore procedure described here: https://immich.app/docs/administration/backup-and-restore/, the command line gives the following error:
ERROR: called
Result::unwrap()on an
Errvalue: Error { inner: Error { inner: TomlError { message: "invalid table header\nexpected newline,
#", original: Some("[indexing.hnsw]\r\r\nm = 16\r\r\nef_construction = 300"), keys: [], span: Some(15..16) } } }
The full log from the command line is attached. log.log
I don't know if this breaks anything but when restoring the a backup dump created & restored with v1.111.0 there is no error message. With v.112.1, also when using the backup file created with v.1.111.0, it gives this error. The same is true when following the backup & restore procedure under v1.112.1 when comming from an updated install from v1.111.0.
The OS that Immich Server is running on
Debian 12 Bookworm
Version of Immich Server
v.1.112.1
Version of Immich Mobile App
v1.112.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response