Closed erikvanoosten closed 10 months ago
Would it be possible to update the machine names in the .env
file to the names that docker-compose assigns by default, and then permanently remove the container_name
fields from the docker-compose file?
You probably shouldn't blindly be pulling new versions of the compose file like that. The recommended way to upgrade when there are no changes to the docker-compose.yml is to just run docker compose pull && docker compose up -d
. Can you try that method?
@bo0tzz I do not understand your comment. I am not blindly pulling the compose file and I am doing exactly what you are proposing.
Apologies, for some reason I understood the update script you linked as downloading the new compose file, which it obviously doesn't...
Does the issue still happen when you don't do the restore procedure? What about when you don't use the COMPOSE_PROJECT_NAME
env var?
No worries, apologies accepted. I can and will test your suggestion as soon as there is a new release of Immich.
To be honest, I have no idea what the COMPOSE_PROJECT_NAME
env var does. I tried to follow the documented docker-compose changes (when the name
property was added) and for some reason I forgot ended up using this env var instead.
Thanks @bo0tzz ! Your hunch was correct. After removing the COMPOSE_PROJECT_NAME
env variable, I can update Immich (now at v1.93.3
) without problems.
A plausible scenario is that when I performed the restore procedure, the env var was not set. Normally, setting it is taken care of from the update script, so it is not something I had in mind.
I guess I will continue using docker-compose without the COMPOSE_PROJECT_NAME
env var, and also without the name
parameter.
The bug
About a month ago I had to restore from backup. For this I followed the procedure that is outlined in the Immich documentation (see detailed steps below). Unfortunately, the restore process leaves the docker-compose installation in a weird state that prevents further updates.
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.93.2
Version of Immich Mobile App
NA
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
The update results in an error:
The following workaround can be used to get the project working again:
container_name
docker-compose up -d
container_name
docker-compose up -d
Additional information
I am using Ubuntu's
docker.io
package, not the docker community edition. However, from similar questions on Stackoverflow I understood that the docker community edition has the same problem.