TrueNAS Update
Hello Everyody,
I want to update the Immich, because i have problems with backups and my version is old v1.132.3, but i always the same error “cannot remove old storage config”
What i’m doing wrong🤦♂️


153 Replies
:wave: Hey @Quelhas,
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.I’ll have a look at it tomorrow or in 1h
But I need you also to share how you setup immch
Ok 👍
Yeah, I'm getting the same issue here. I'll see if I can drop some details here myself too
Likely in a few hours' time
So
Did you change your Immich config?
Or did you simply press update after the making the change?
Creating the dataset isn't the single thing to do
You have to use the new tempalte inside the Immich GUI

Ignore my machine learning Cache on Host path, keep the default "temporary" one
this is also what I want you to show me @Quelhas
Yeah, I see the issue. I'm on the old storage config, didn't notice that toggle

Is the new data directory equivalent to the library? Or is there some documentation about how to perform the migration somewhere? I'm at work so I can't dig too deeply, but if it's floating around somewhere, I'll be happy to hunt it down
How did you set Immich previously tho ?
Did you create a dataset for each thing of the old config?
Yep
and also have a dataset for the database?
If so the guide should be fine
you might need to run the rsync command with sudo before
but otherwise it should be ok
and since rsync is not destrcutive, don't delete anyhting else before everything works
sweet, I'll get stuck into the guide when I get out of work and report back later then
thanks so much for posting it here
No problem, if you encounter issue, create another ticket and ping me there (so you don't hijack this one) and I'll reply tomorrow (I'm on UTC+2)
OK update on that, so it looks like you indeed have the same issue as in the other thread you were in
The solution for now is to remove the app and reinstall it again
BUT FIRST
Ensure that you're using hostpath for BOTH the database and your data (aka upload location) and not iXVolumes
@Xiticks thanks for your time and help, today is don’t have time to do that, but tomorrow i will do it
and yes i don’t change the immich config, i have the old storage and also the datasets
i will do how you said, but i need to remove the app? i will not list the data?
If you’re using host path dataset, the data won’t be deleted when you remove the app
That’s why you can share me immich config in TrueNAS if tou want me to check



Ok yes
Can you show the whole thing?
Also for the database and so on?
That exist one away more simple to show whole, or i need to make one photo all time 🤔
One screenshot
Well if you have a big screen you could reduce the zoom within your web browser
So displays Moore
hello @Xiticks
We can see that today afternoon?
Yes, you still have to share your ucrrent config so…





oh wait the option is not present to remove the old configuration
So you rsynced all folders in "data" right?
(except postgres data)
Yes
if you cd into data, can you share me what ls -la outputs?

Ok, good
so you can delete your immich app
and install it again
use same db password and stuff
and in the storage config, there should only be 3 storages option to set
data -> point it to the data dataset
machine learning cache -> leave on temporary
postgres -> point on your pgData dataset
ok

Installed
The most important question, does it work?

Can you check the immich server logs?
If you don't know where there are:
Click on Immich, there is a worflow widget
a line marked server and that's the third button
wait
i’ll will back
Come back
I don't see it
On the Immich page
well apps page

here?
no, no
On the trueNAS GUI


click on Immich
there is workloads
and then the third button on the server line

ok so can you cd into encoded-video and do ls -la in thre

can you do it for all other folders in data?
you might have not done the rsync correctly
but this one is corret?
nope, that's why I want you to share for all other
so I can tell you how to fix them all
if ther are other

yeah, looks wrong too
share all other
so I can share the correct commands

i think that there are always one more folder
yeah
you forgot the trailing / in your rsync command
but no worries
ok
is it the same for backups and upload?
yes
and thumbs?
show the folder names
I'll give the commands in 20min
i saw that after make the rsync
but share the screenshot for each
so I give the whole list of correct commands



that's all right?
yeah
I'll write them after, I'm a ibit busy now
ok don't worry
when you have a little time👍
So when you're inside the data fodlder
can you try to run this?
and then do
and show me its output
I just want to be sure of the commands
@Quelhas (I ping so you get the notification)

no man
you did not write the correct command
inside the data folder?
that's that you have write up
you typed
and not
wait
mb also

so
is the command you should type
I did a mistake
does this work ?

do you want that i make that manualy?
no, that is fine
can you do now?

i think that works
yeah
just two things missing to do inside this one
now delete the folder video
yeah
so
should delete it
and then do
as it's missing this file for some reason
then you can do each of these command
ok
always in data folder right?
yes
I forgot the ./ here
just coeected it
and also here
after the command, do a ls -la inside each folder
ok
just to check if eveything moved correctly

an then i have to stop immich or normaly that wil work ?
Oh well
stop immich
do the changes
then start it again


i think the error is now here
OK
so can you click on the data dataset, and show me the permissions?

like so

i think when i created dataset and didn't choose apps
generic
Ok not a problem
click on edit permissions
then there is a "set acl" button
when you click on it, it sugests presets
do they start with Posix or NFSv4?
Posix

ok so leave this for now
click on edit next to dataset details
then advanced option -> scroll at bottom and set this like so

ok
save?
y
now acl again?
ye
but don't use preset

make it similar to that
check the boxes apply Owner, apply GRoup at top
And apply perms recusively at bottom
you don't need to check the one for "apply permissions to child datasets"
ok and then
Save Acesss Control List
yes

can you show me the permissions you tried to apply ?
You might also need to do these steps on the Immich dataset

That explains it
you have to make it look exatcly like that
You access control list is not the same

just uncheck the apply permissions to child datasets
but then you can save

Try to set the ACL type for the Immich dataset first
like you did for the data one
the same error with .immich
but you were able to do that, right?

yes
Oh wait just sa that now
but you speak french
yes,
Donc
Tu (ou vous? je sais pas ce qui se dit en support) sais me montrer ta config Immich de nouveau
ok

et tu as bien coché les 3 boxes quand tu as "set acl"?



And restarted Immich? app
Sinon c'est normal que l'erreur soit restée
je pense que oui, mais je vais faire de nouveuaux
je pense que il faut creer le file .immich
dans tout les dossiers
il est créé
parce que mnt il y a change le dossier
Aaah
pas dans tous
mais dans ceux où il n'est pas
possible qu'il n'ait pas été bougé pour certaines raisons
check dans tous les sous-dossiers de data

(thumbs, upload, library, profile et backups)
mnt c est le dossier library
là où il est pas
avec ls -la
ok
(btw I think i saw someone else typing, you can ping me if you need assistance, especially for trueNAS)
pour lister tous les fichiers dans le dossier
c est un fichier caché immich?
yes
that's why ls -la
the "a" is for all even hidden "." files
(swithc back to english as I realised it's a ticket in help desk support, so better for answerOverflow :))
that worked 👍
thanks a lot
Nice
So Immich is on latets, and there is no other error logs, right?
for your help
If so, no problem!
Glad I could help
no error logs
i hope all the problems with the mobille app, with backups
what was the issue there?
now it seems that all works fine
it appears the symbol with cloud that the preset was send to the server
one more time thanks a lot
and i hope for the next time to make one update
it more easier
You should be fine, it was a one time modification from TrueNAS to simplify the install process
It should stay the same for a while (maybe even forever)
You are in the projet of immich?
And as Immich will probably hit stable soon, that would even more reduce the chances of such issues
Not at all
Well I've been given the support crew as I helped people (especially on TrueNAS) so we have some insights and more direct contact with the team, but we're not part of it directly
ok thank's a all the people
This thread has been closed. To re-open, use the button below.