I
Immich•2y ago
Xilog

Updating caused the database to reset (1.73.0 -> 1.78.1)

Hi, apologies if this is a duplicate. I wasn't able to find a similar issue here. Like the title says, I attempted to update immich. docker compose pull was successful. docker compose up -d initially gave me an error about insufficient permissions to stop a container, which later changed to "bind: address is already in use" when attempting to start immich-proxy. I (probably unwisely) killed the proxy service using sudo kill <pid>, and docker compose up -d then worked fine. However, it appears immich either can't find the database or it disappeared. I was prompted to create a new admin account and none of my images, videos, settings or API keys are displayed (as if it were a fresh install). The images still do exist in my upload location. What's my best course of action here? Should I do a bulk upload from the images that still exist, or is there a way to get my old database back?
6 Replies
bo0tzz
bo0tzz•2y ago
You probably did something that caused the pgdata volume (which holds the database data) to be deleted.
is there a way to get my old database back?
Restore from your backups ;) Otherwise reuploading the library folder is the way to go. Make sure you don't accidentally upload the thumbnails etc
Xilog
XilogOP•2y ago
agh, that sucks because I don't really see anything that'd cause pgdata to be deleted. Well, since I don't have a backup (🧠) I'll reupload. Thank you!
bo0tzz
bo0tzz•2y ago
You can use docker volume ls to check if it somehow still exists (but that seems unlikely)
Xilog
XilogOP•2y ago
usr@srv:~/immich-app$ sudo docker volume ls
DRIVER VOLUME NAME
local c59b6bbe5d0649e6344603da5b6a2c39cc22dc709a815369a870d3defa7f8a90
local docker-compose_promdata-scaphandre
local immich-app_model-cache
local immich-app_pgdata
local immich-app_tsdata
usr@srv:~/immich-app$ sudo docker volume ls
DRIVER VOLUME NAME
local c59b6bbe5d0649e6344603da5b6a2c39cc22dc709a815369a870d3defa7f8a90
local docker-compose_promdata-scaphandre
local immich-app_model-cache
local immich-app_pgdata
local immich-app_tsdata
It does seem to exist
bo0tzz
bo0tzz•2y ago
Could be that's the newly created one of course 😅
Xilog
XilogOP•2y ago
aaah yeah that's likely. Not a huge pain to reupload so I'll just do that then

Did you find this page helpful?