updating immich with dockge, container reset every time
run dockge update button, container reset to start every time, have to restore backup
61 Replies
:wave: Hey @secret,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Looks fine at first glance, let me test something real quick with dockge
bet heres my dockge compose if necessary
I don't know much about dockge, but if I have to guess, it may be related to the use of relative paths
UPLOAD_LOCATION=./library
DB_DATA_LOCATION=./postgres
hmm maybe db data location needs to be permanant path?
I think so too.. same advice with NoMachine. if the path is not set it thinks its a docker volume and not persistent
Probably @NoMachine that's what I was testing 😛
sounds good hmm
it has too... docker volumes if not in defined path will be in docker volumes - that gets wiped out every redeploy
when i update manually thorugh docker compose pull && docker compose up -d
it works fine
is it pulling the correct .env file and variables...from dockge?
i hardcoded mine at portainer since I don't trust variables and hand-offs with env settings
hmm thats a valid point
lemme check real quick

dockge sees the .env file so i think it should pul lthe right things
not 100% sure tho
Don't put your comment on the same line to be safe 👀
yeah... not sure #./portainer mess with it...
ah yeah that ones new
just put that in after everything
Are your images also deleted?
images are fine
Because you might want to save that ./library 😛
i think somethings wrong with db
hahaha i have backups on another drive dw
It shouldn't present as new if there's something wrong with it
It should just never start
prob postgres location then
ive hardcoded it rn to /volume1/docker/immich/postgres
lemme hardcode library too and ill wait till next release to test it
You can't have your UPLOAD_LOCATION be ro
ah.. u're right.. i confused it with my external lib
i never used upload_location except let immich does it things... ignore me on that
hmm.. my portainer compose is pretty old here:

is PG_DATA required and @secret secret doesn't have that from what I seen?
strange seems like I’m missing that
I got on around 1.18
mine was done since 2023 and hardly updated that part
lemme check the docs real quick
ah.. just crossed checked that part and nope. must by from a residual way way back then
whoops
yeah seems like thats fine
We don’t specify PG_DATA , that’s unnecessary
theyll prob push a new x.x.1 patch in a few days can prob check that
hmm.. i'm so pretty sure that the volumes is not persistent that it missed the env settings. or wrong values from env..
from the your screenshot:
/volume1/docker/immich/postgres#./postgres
i think it took the #./postgres as part of the value...
sorry lemme clarify it used to be ./postgres and ./library
UPLOAD_LOCATION=/volume1/docker/immich/library
#./library
The location where your database files are stored
DB_DATA_LOCATION=/volume1/docker/immich/postgres
ive since changed it to these two
is that /volume1/docker/immich/postgres defined at your host?
i think this was probably it
yeah this is the permanant link

used copy path
ah.. macs 🙂 love the volume1..
ill update this thread by the time the next release comes out
hahaha yeah
its on my nas
ok.. remove the "#./postgres" hope that works now
honestly vscode is goated for docker things
yeah gotcha
thanks for the help
Well the database shouldn’t be on the NAS
that's a good point too. unless you can guarantee that its always mounted correctly
Even if it is, the data integrity guarantees are not the same
To be clear, you can have a database in the network
what you can't have is the container running on a host with network-mounted storage
Sorry to clarify everything is on the nas
ah... host == nas too then
yeah

reset again
Honestly not an immich issue
Last time I used it to update jellyfin it reset that too
i just updated with dockge without any problems.
hmm interesting
do you mind if i see your dockge compose file
here is my dockge one
Oh sorry this is my immich one.
volumes: model-cache: nullwhat
see this one
this ones the actual file not sure why it shows as that in dockge