Jump to content

Immich update through Command Deck fails: "Failed to upgrade app: Task failed due to staleness"


Recommended Posts

Posted

My Immich update is failing. Plex did fine. It always stops at 20% and then give me the message after a couple hours: "Failed to upgrade app: Task failed due to staleness". Anyone else seeing this/have a fix?

image.thumb.png.fe44937f5d6b27abc9a475d051f0bd63.png

Posted

You are likely seeing this error because your Immich app is still using the old folder structure, which they no longer support in Immich version 1.143.0

I have reported your issue in the Q3 Command Deck Update thread in the hope that the issue can be fixed. Alternatively you will need to do a manual migration of your pictures from one folder structure to another.

 

  • Like 2
Posted

I had this same issue have managed to do the migration commands are a bit different as it seems the way Hex OS installs this is not conventional i followed this guild 

https://docs.immich.app/install/truenas/#migration-from-old-storage-configuration

unfortunately you need to do this via the truenas interface as Hex OS to my knowledge does not give you access to all that is needed. also worth noting the shell method they tell you to use within truenas scale can time out but you can SSH in if needed this can be turned on in trunasScale interface from Settings System Services SSH then in groups add Truenas_admin this means you dont have to keep moving the mouse while the commands run which was useful as i had over 100GB of data on HDDs so took a while (see image for SSH settings)

Commands used Below ( best to run 1 line at a time so you can see errors) you will need to change HDDs to the path of your application if your pool is not called HDDs

if you need help finding your path it can be seen in the settings for the app from the truenas scale interface (have also put a screenshot) there will be one entry for each of the below sections e.g library , upload , thumbs etc

Click Edit on the Application Info widget.

In the Storage Configuration section


rsync -av /mnt/HDDs/Photos/ /mnt/HDDs/Applications/immich/data/library/
rsync -av /mnt/HDDs/Applications/immich/uploads/ /mnt/HDDs/Applications/immich/data/upload/
rsync -av /mnt/HDDs/Applications/immich/thumbs/ /mnt/HDDs/Applications/immich/data/thumbs/
rsync -av /mnt/HDDs/Applications/immich/profile/ /mnt/HDDs/Applications/immich/data/profile/
rsync -av /mnt/HDDs/Applications/immich/encoded_videos/ /mnt/HDDs/Applications/immich/data/encoded-video/
rsync -av /mnt/.ix-apps/app_mounts/immich/backups/ /mnt/HDDs/Applications/immich/data/backups/

Screenshot From 2025-10-02 22-17-29.png

Screenshot From 2025-10-02 22-20-34.png

  • Like 3
  • Thanks 1
Posted
On 10/2/2025 at 11:22 PM, Luke Sellwood said:

I had this same issue have managed to do the migration commands are a bit different as it seems the way Hex OS installs this is not conventional i followed this guild 

https://docs.immich.app/install/truenas/#migration-from-old-storage-configuration

unfortunately you need to do this via the truenas interface as Hex OS to my knowledge does not give you access to all that is needed. also worth noting the shell method they tell you to use within truenas scale can time out but you can SSH in if needed this can be turned on in trunasScale interface from Settings System Services SSH then in groups add Truenas_admin this means you dont have to keep moving the mouse while the commands run which was useful as i had over 100GB of data on HDDs so took a while (see image for SSH settings)

Commands used Below ( best to run 1 line at a time so you can see errors) you will need to change HDDs to the path of your application if your pool is not called HDDs

if you need help finding your path it can be seen in the settings for the app from the truenas scale interface (have also put a screenshot) there will be one entry for each of the below sections e.g library , upload , thumbs etc

Click Edit on the Application Info widget.

In the Storage Configuration section


rsync -av /mnt/HDDs/Photos/ /mnt/HDDs/Applications/immich/data/library/
rsync -av /mnt/HDDs/Applications/immich/uploads/ /mnt/HDDs/Applications/immich/data/upload/
rsync -av /mnt/HDDs/Applications/immich/thumbs/ /mnt/HDDs/Applications/immich/data/thumbs/
rsync -av /mnt/HDDs/Applications/immich/profile/ /mnt/HDDs/Applications/immich/data/profile/
rsync -av /mnt/HDDs/Applications/immich/encoded_videos/ /mnt/HDDs/Applications/immich/data/encoded-video/
rsync -av /mnt/.ix-apps/app_mounts/immich/backups/ /mnt/HDDs/Applications/immich/data/backups/

Screenshot From 2025-10-02 22-17-29.png

Screenshot From 2025-10-02 22-20-34.png

Followed your guid along with the the guide on the Immich website, but im getting a "failed: Operation not permitted" when starting the rsync process:
image.thumb.png.02a575a0032d72e1072f062816370bc4.png

Posted

I've managed to rsync files over and start immich with the migrated files but it comes up as though its a fresh install with no users configured. Anyone have any ideas? 

When I kick the file paths back to the old directories it comes back with the webui and users as expected.

Posted

@Luke Sellwood Am a bit of a noob and got stuck; how did you set up permissions/ACLs if you don't mind me asking?

  1. Created a new dataset within HDDs/Applications/immich called data (dataset preset = Generic as it wouldn't let me pick Apps);
  2. Stuck on the "Select a preset ACL" screen - which one do I pick?
    1. Made a preset called "immich" (essentially saved the ACL from /mnt/HDDs/Applications/immich/uploads - but that didn't work when I tried running the command via ssh (which I enabled).
truenas_admin@homeserver[~]$ rsync -av /mnt/HDDs/Photos/ /mnt/HDDs/Applications/immich/data/library/
sending incremental file list
rsync: [Receiver] mkdir "/mnt/HDDs/Applications/immich/data/library" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(791) [Receiver=3.2.7]

image.png.553735414100698f6b77db788d41559f.png

Posted

You really shouldn't.  Is this a new install or are you trying to fix an existing previous install?

I may have missed it but a new release for Immich is available and after a uninstall/reinstall you don't need to create a new dataset structure or rsync any data.  I have 1.25TB of pictures and it took me 45 minutes to uninstall/reinstall/setup external library dataset link and reload all my pictures.  Perhaps you have already tried this and it didn't work for you the first time either.  I struggles with two sets of install datasets existing but I figured it out.  With the absolute deluge of communication (three post and climbing) from Eshtek this last few days I came to the same old realization I had since probably May.  THIS IS A FREAKING BETA AND HEXOS DIDN'T BREAK IT!  No this doesn't mean that this isn't one of those few actual issues in HexOS that needs to be addressed.  But let's be honest for a minute.  If you did a reinstall and reload and you still have an issue then report it.  If you haven't tried to reinstall then try it.  If your hell bent on fixing your old install then good luck but stop spending all the devs time on things they already have quick solutions for.  I personally couldn't care less about a torrent client or a home automation app.  And I found Jellyfin to be less that acceptable for my current needs.  So I am waiting for the next round of apps to be curated and NOT screaming at Eshtek to created the one-click apps I want or drive over to my house and fix my app group issue.

Eshtek is currently fighting the same two front battle most companies that create software have.  1) Complete 1.0 release. and 2) Determine what the reported issues are.  2A)  Is it a HexOS issue?  If so, fix it.  If not, well here is where Eshtek is screwed.  And I have heard surveys that say this is where 75% to 90% of a company's time is spent.  I have no idea what percentage of time spent on number 2 are HexOS issues, hardware compatibility or operator error but all of them take away from number 1.  Yes some of the forum discussions are real issues but some really are just noise.  And when you get Immich to work using a guide from Youtube and version 2.5 comes out breaking your customized install, what then?  Are you going to say HexOS is broken despite the ten or maybe hundreds of thousands of install working flawlessly that just happened not to have tried any fixes themselves and did what Eshtek said (when Eshtek finally says something)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...