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🤦‍♂️
No description
No description
153 Replies
Immich
Immich7d ago
: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.
Xiticks
Xiticks7d ago
I’ll have a look at it tomorrow or in 1h But I need you also to share how you setup immch
Quelhas
QuelhasOP7d ago
Ok 👍
The_Avant_Bard
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
Xiticks
Xiticks7d ago
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
Xiticks
Xiticks7d ago
You have to use the new tempalte inside the Immich GUI
No description
Xiticks
Xiticks7d ago
Ignore my machine learning Cache on Host path, keep the default "temporary" one this is also what I want you to show me @Quelhas
The_Avant_Bard
Yeah, I see the issue. I'm on the old storage config, didn't notice that toggle
The_Avant_Bard
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
Xiticks
Xiticks7d ago
How did you set Immich previously tho ? Did you create a dataset for each thing of the old config?
The_Avant_Bard
Yep
Xiticks
Xiticks7d ago
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
The_Avant_Bard
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
Xiticks
Xiticks7d ago
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
Quelhas
QuelhasOP7d ago
@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?
Xiticks
Xiticks7d ago
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
Quelhas
QuelhasOP7d ago
No description
No description
No description
Xiticks
Xiticks7d ago
Ok yes Can you show the whole thing? Also for the database and so on?
Quelhas
QuelhasOP7d ago
That exist one away more simple to show whole, or i need to make one photo all time 🤔
Xiticks
Xiticks7d ago
One screenshot Well if you have a big screen you could reduce the zoom within your web browser So displays Moore
Quelhas
QuelhasOP6d ago
hello @Xiticks We can see that today afternoon?
Xiticks
Xiticks6d ago
Yes, you still have to share your ucrrent config so…
Quelhas
QuelhasOP6d ago
No description
No description
No description
No description
No description
Xiticks
Xiticks6d ago
oh wait the option is not present to remove the old configuration So you rsynced all folders in "data" right? (except postgres data)
Quelhas
QuelhasOP6d ago
Yes
Xiticks
Xiticks6d ago
if you cd into data, can you share me what ls -la outputs?
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
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
Quelhas
QuelhasOP6d ago
ok
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
Installed
Xiticks
Xiticks6d ago
The most important question, does it work?
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
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
Quelhas
QuelhasOP6d ago
wait i’ll will back Come back I don't see it
Xiticks
Xiticks6d ago
On the Immich page well apps page
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
here?
Xiticks
Xiticks6d ago
no, no On the trueNAS GUI
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
No description
Xiticks
Xiticks6d ago
click on Immich there is workloads and then the third button on the server line
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
ok so can you cd into encoded-video and do ls -la in thre
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
can you do it for all other folders in data? you might have not done the rsync correctly
Quelhas
QuelhasOP6d ago
but this one is corret?
Xiticks
Xiticks6d ago
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
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
yeah, looks wrong too share all other so I can share the correct commands
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
i think that there are always one more folder
Xiticks
Xiticks6d ago
yeah you forgot the trailing / in your rsync command but no worries
Quelhas
QuelhasOP6d ago
ok
Xiticks
Xiticks6d ago
is it the same for backups and upload?
Quelhas
QuelhasOP6d ago
yes
Xiticks
Xiticks6d ago
and thumbs? show the folder names I'll give the commands in 20min
Quelhas
QuelhasOP6d ago
i saw that after make the rsync
Xiticks
Xiticks6d ago
but share the screenshot for each so I give the whole list of correct commands
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
that's all right?
Xiticks
Xiticks6d ago
yeah I'll write them after, I'm a ibit busy now
Quelhas
QuelhasOP6d ago
ok don't worry when you have a little time👍
Xiticks
Xiticks6d ago
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
So when you're inside the data fodlder can you try to run this? and then do
ls -la ./encoded-video
ls -la ./encoded-video
and show me its output I just want to be sure of the commands @Quelhas (I ping so you get the notification)
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
no man you did not write the correct command
Quelhas
QuelhasOP6d ago
inside the data folder? that's that you have write up
Xiticks
Xiticks6d ago
you typed
sudo mv ./encoded-video/* ./encoded-video && rm -r video
sudo mv ./encoded-video/* ./encoded-video && rm -r video
and not
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
wait mb also
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
so
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
sudo mv ./encoded-video/video/* ./encoded-video && rm -r ./encoded-video/video
is the command you should type I did a mistake does this work ?
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
do you want that i make that manualy?
Xiticks
Xiticks6d ago
no, that is fine can you do
ls -la /encoded-video
ls -la /encoded-video
now?
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
i think that works
Xiticks
Xiticks6d ago
yeah just two things missing to do inside this one
Quelhas
QuelhasOP6d ago
now delete the folder video
Xiticks
Xiticks6d ago
yeah so
rm -r ./encoded-video/video
rm -r ./encoded-video/video
should delete it and then do
touch ./encoded-video/.immich
touch ./encoded-video/.immich
as it's missing this file for some reason
sudo mv ./library/library/* ./library
sudo mv ./library/library/* ./library
sudo mv ./backups/backups/* ./backups
sudo mv ./backups/backups/* ./backups
sudo mv ./upload/upload/* ./upload
sudo mv ./upload/upload/* ./upload
sudo mv ./thumbs/thumbs/* ./thumbs
sudo mv ./thumbs/thumbs/* ./thumbs
sudo mv ./profile/profile/* ./profile
sudo mv ./profile/profile/* ./profile
then you can do each of these command
Quelhas
QuelhasOP6d ago
ok always in data folder right?
Xiticks
Xiticks6d ago
yes I forgot the ./ here just coeected it and also here after the command, do a ls -la inside each folder
Quelhas
QuelhasOP6d ago
ok
Xiticks
Xiticks6d ago
just to check if eveything moved correctly
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
an then i have to stop immich or normaly that wil work ?
Xiticks
Xiticks6d ago
Oh well stop immich do the changes then start it again
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
i think the error is now here
Xiticks
Xiticks6d ago
OK so can you click on the data dataset, and show me the permissions?
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
like so
No description
Quelhas
QuelhasOP6d ago
i think when i created dataset and didn't choose apps generic
Xiticks
Xiticks6d ago
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?
Quelhas
QuelhasOP6d ago
Posix
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
ok so leave this for now click on edit next to dataset details
Xiticks
Xiticks6d ago
then advanced option -> scroll at bottom and set this like so
No description
Quelhas
QuelhasOP6d ago
ok save?
Xiticks
Xiticks6d ago
y
Quelhas
QuelhasOP6d ago
now acl again?
Xiticks
Xiticks6d ago
ye but don't use preset
Xiticks
Xiticks6d ago
No description
Xiticks
Xiticks6d ago
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"
Quelhas
QuelhasOP6d ago
ok and then Save Acesss Control List
Xiticks
Xiticks6d ago
yes
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
can you show me the permissions you tried to apply ? You might also need to do these steps on the Immich dataset
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
That explains it you have to make it look exatcly like that You access control list is not the same
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
just uncheck the apply permissions to child datasets but then you can save
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
Try to set the ACL type for the Immich dataset first like you did for the data one
Quelhas
QuelhasOP6d ago
the same error with .immich
Xiticks
Xiticks6d ago
but you were able to do that, right?
Quelhas
QuelhasOP6d ago
No description
Quelhas
QuelhasOP6d ago
yes
Xiticks
Xiticks6d ago
Oh wait just sa that now but you speak french
Quelhas
QuelhasOP6d ago
yes,
Xiticks
Xiticks6d ago
Donc Tu (ou vous? je sais pas ce qui se dit en support) sais me montrer ta config Immich de nouveau
Quelhas
QuelhasOP6d ago
ok
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
et tu as bien coché les 3 boxes quand tu as "set acl"?
Quelhas
QuelhasOP6d ago
No description
No description
No description
Xiticks
Xiticks6d ago
And restarted Immich? app Sinon c'est normal que l'erreur soit restée
Quelhas
QuelhasOP6d ago
je pense que oui, mais je vais faire de nouveuaux je pense que il faut creer le file .immich dans tout les dossiers
Xiticks
Xiticks6d ago
il est créé
Quelhas
QuelhasOP6d ago
parce que mnt il y a change le dossier
Xiticks
Xiticks6d ago
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
Quelhas
QuelhasOP6d ago
No description
Xiticks
Xiticks6d ago
(thumbs, upload, library, profile et backups)
Quelhas
QuelhasOP6d ago
mnt c est le dossier library
Xiticks
Xiticks5d ago
là où il est pas
sudo touch .immich
sudo touch .immich
avec ls -la
Quelhas
QuelhasOP5d ago
ok
Xiticks
Xiticks5d ago
(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
Quelhas
QuelhasOP5d ago
c est un fichier caché immich?
Xiticks
Xiticks5d ago
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 :))
Quelhas
QuelhasOP5d ago
that worked 👍 thanks a lot
Xiticks
Xiticks5d ago
Nice So Immich is on latets, and there is no other error logs, right?
Quelhas
QuelhasOP5d ago
for your help
Xiticks
Xiticks5d ago
If so, no problem! Glad I could help
Quelhas
QuelhasOP5d ago
no error logs i hope all the problems with the mobille app, with backups
Xiticks
Xiticks5d ago
what was the issue there?
Quelhas
QuelhasOP5d ago
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
Xiticks
Xiticks5d ago
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)
Quelhas
QuelhasOP5d ago
You are in the projet of immich?
Xiticks
Xiticks5d ago
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
Quelhas
QuelhasOP5d ago
ok thank's a all the people
Immich
Immich5d ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?