Immich URL change failure

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.14 stable
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I believe this is an issue with YNH rather than Immich but I may be wrong so apols if I raised it in the wrong location. Many thanks for the product and all the excellent support I have received, it is appreciated.

I have a new URL to host my Immich app, so I tried to simply move the URL through the YNH admin interface. I have done this before with no problems but this time it failed. Please see attached log. I can’t see the problem. Any advice would be welcomed. Thanks, Neil.

Share relevant logs or error messages

https://paste.yunohost.org/raw/qoratajube

Can you try to add a higher timeout value with the following command sudo sed -i "/ynh_systemctl/s/\"$/ \--timeout=900/" /etc/yunohost/apps/immich/scripts/change_url and retry ?

IThanks for the suggestion. I gave it a go but it failed in the same way. See attached.
https://paste.yunohost.org/raw/quhuceqiro

What’s the current status of the two services (before changing path/domain)?
Ps: in your second attemp the both services failed and not in the first one

Apols if I am missing the point. When you say service I presume you mean the Immich service on theold URL and accessing the new URL. Both seem to be working fine. The old URL Immich service is OK from both my desktop and my Android phone. The new URL is accessible and displays the other three apps I have ported to the dynu.com service. If I am missing the point please advise. Cheers.

I just thought, there is one difference, the old domain is a normal URL in it’s own right, the new one is just a sub-domain of a sungle URL with three other apps on a further three sub-domains. Not sure if that makes a difference.

Ahhh. I think you may mean the Immich services (thumbnail generation etc.). These used to work OK but I have checked and just tried to run the jobs and these still seem OK.

I mean systemctl status immich-machine-learning.service and systemctl status immich-server.service

Understood. I checked through Cockpit and both are enabled and running. Thanks.

And here is the output from the command you suggested:-
immich-server.service - Immich server
Loaded: loaded (/etc/systemd/system/immich-server.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-08-22 11:54:11 BST; 4h 32min ago
Docs: GitHub - immich-app/immich: High performance self-hosted photo and video management solution.
Main PID: 739 (immich)
Tasks: 23 (limit: 8185)
Memory: 2.3G
CPU: 19min 8.864s
CGroup: /system.slice/immich-server.service
├─ 739 immich
└─1855 immich-api

Aug 22 11:54:11 yunohost systemd[1]: Started immich-server.service - I
immich-machine-learning.service - Immich machine-learning
Loaded: loaded (/etc/systemd/system/immich-machine-learning.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-08-22 11:54:11 BST; 4h 34min ago
Docs: GitHub - immich-app/immich: High performance self-hosted photo and video management solution.
Main PID: 736 (gunicorn)
Tasks: 9 (limit: 8185)
Memory: 968.6M
CPU: 21min 4.209s
CGroup: /system.slice/immich-machine-learning.service
├─ 736 /var/www/immich/app/machine-learning/venv/bin/python3 /var/www/immich/app/machine-learning/venv/bin/gunicorn immi>
└─4264 /var/www/immich/app/machine-learning/venv/bin/python3 /var/www/immich/app/machine-learning/venv/bin/gunicorn immi>

Aug 22 11:54:11 yunohost systemd[1]: Started immich-machine-learning.service - Immich machine-learning.

I tried again. It still failed. Any suggestions?
Cheers.
https://paste.yunohost.org/raw/acododayuv

Can you post the link provided by tail -n 50 /var/log/immich/immich-machine-learning.log | yunopaste

it’s easier directly in you yunohost webadmin yourdomain.tld/yunohost/admin/#/services

Here is the output:-
https://paste.yunohost.org/raw/hapalurahi

OOh nooo. It just got a lot worse… I was running an older server version of ImmichV1.132.3, so I thought perhaps if I upgraded it that would help the URl port. Unfortunately it failed to upgrade it and then failed to restore Immich from its new backup. Now I have no Immich server app installed. The logs seem to be pretty empty too. See below. What did I do wrong? Is my issue more endemic that the URL change issue. Should I do a full clean install of Immich on the new URL? Are there any leftover files or directories to clear out first or any you would like to see?
Thanks, Neil

I just encountered this thread by happenstance. I reported an update / restore issue on Github (Restore of Immich 136 failed because starting immich-server timed out · Issue #246 · YunoHost-Apps/immich_ynh · GitHub).

The problem seems to be that the expected Immich Server is listening is never reported / logged in immich-server.log hence the timeout seems to always trigger. I don’t know what changed. Might be a side effect of Yunohost v12.1 as this is the only major difference I can think of.

@ tzb6js
I am sorry you have the problem (as well) but at least this shows that the error seems to be not isolated to my machine.

You can work with the backup - although it is something of a hassle. Steps to proceed

  1. Copy the immich backup to e.g. ~/ using sudo cp /home/yunohost.backup/archives/immich-backup1.tar.gz ~/immich-backup1.tar.gz
  2. Rename the original backup e.g. immich-backup1.tar.gz to immich-backup1_orig.tar.gz
  3. Go to ~/immichbackup using cd ~/immichbackup
  4. Extract the ~/immich-backup1.tar.gz to the current subfolder e.g. ~/immichbackup: tar -xzf ~/immich-backup1.tar.gz
  5. Modify ~/immichbackup/app/immich/settings/scripts/restore and remove the --wait_until="Immich Server is listening" and possibly the timeout=900 parameters in line ~98 using sudo nano apps/immich/settings/scripts/restore
  6. Re-tar the file, ensure that root owns all the files in the tar into the file ~/immich-upgrade2.tar.gz sudo tar --format=gnu --numeric-owner --owner=0 --group=0 -czf ~/immich-upgrade2.tar.gz .
  7. move the new tar.gz file to the original location (and name) using sudo mv ~/immich-upgrade2.tar.gz /home/yunohost.backup/archives/immich-upgrade1.tar.gz

Please note that immich-backup1.tar.gz is the name of your backup file located in yunohost.backup. Also note that I typed those example commands, they may contain typos for the exact file locations. Please check beforehand.

Andy, many,many thanks for this update! It’s good to know it’s not just me being dumb again. Also thanks for the recovery instructions but sadly … being impatient … I already took the nuclear option and installed the latest version of Immich on my new URL. It seems to have worked OK and is now chunderring through all the indexing again !

At least I now know that the only fix to this problem is a bug fix (or two) for Yunohost itself.

Many thanks to both ewilly and Andy_0 .

Did you change the verbosity of the log either in the logging settings from the app (/admin/system-settings?isOpen=logging) or in the env file ? (It should be configured to “LOG”)

Not that I am aware of. I did change the immich env file to point the thumbs and upload directories to my usb drive but no other changes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.