I
Immich•4d ago
Neel2904

TrueNAS filesystem update issue.

Hi, I am having trouble updating the immich to the new filesystem. I saw my server container was exiting, but getting into the logs showed that the pgvecto container can't authenticate the 'immich' user. I have attached the screenshots of the server and pgvecto container logs. Thanks in advance
No description
No description
50 Replies
Immich
Immich•4d ago
:wave: Hey @Neel2904, 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
Xiticks•4d ago
From which version of TrueNAS Immich have you updated?
Neel2904
Neel2904OP•4d ago
So, my last working version of immich was 1.119.1 in TrueNAS 24.04
Xiticks
Xiticks•4d ago
If your version was old, you might need to set a password (the one you wrote in the DB_PASSWORD field) But if that is the case, you should probably also use the custom app to upgrade the database itself at the same time Oh yeaah, you definitely need the custom app before changing the password As you first need Immich to start on > 1.132.0 but < 1.137.0
Neel2904
Neel2904OP•4d ago
OK So rather than the standard trueNAS app I'll have to make a custom app?
Xiticks
Xiticks•4d ago
No So I suppose you're on 25.04?
Neel2904
Neel2904OP•4d ago
Yes
Xiticks
Xiticks•4d ago
So we custom fix, then you can go back to the catalog version Next to the Immich edit button, click on the three dot menu there you can "convert to custom app" or something like that It will convert the app to a yaml file
Neel2904
Neel2904OP•4d ago
Oh yeah, found it
Xiticks
Xiticks•4d ago
You edit this file, and in there, around line 173, there is image: ghcr.io/immich-app/immich-machine-learning:v1.143.1 change v1.143.1to v1.132.3 Do the same at around line 419 for image: ghcr.io/immich-app/immich-server:v1.143.1 And also around line 438, you replace the /data with /usr/src/app/upload
Neel2904
Neel2904OP•4d ago
BTW just letting you know, I could not find any /backups folder so the data/backup in my new dataset is empty
Xiticks
Xiticks•4d ago
That's a good thing you had the password issue, this way it did not break the database 🙂 Yeah, thats ok just ensure that it backups and not backup
Neel2904
Neel2904OP•4d ago
OK, thanks I'm updating the file now
Xiticks
Xiticks•4d ago
and inside it, do a touch .immich otherwise immich will complain It should still complain about the password, but it better to have the right "in between" version before allowing immich to change stuff
Neel2904
Neel2904OP•4d ago
I could not vind a v.1.143.1 in line 173 or around there
No description
Xiticks
Xiticks•4d ago
Bit above probably Copy pasted from soo much different threads
Neel2904
Neel2904OP•4d ago
Oh😅. OK
Xiticks
Xiticks•4d ago
copy the yaml in a text editor and search for the lines without the versions
Neel2904
Neel2904OP•4d ago
Got it
Xiticks
Xiticks•4d ago
So these 2 image: ghcr.io/immich-app/immich-server image: ghcr.io/immich-app/immich-machine-learning: and modify the version they ave to 1.132.3
Neel2904
Neel2904OP•4d ago
I had the machine learning off, so it is not there. It is not coming up in search
Xiticks
Xiticks•4d ago
OOooh yeah, then ignore that so just change the version and the target mountpoint Lmk when you've done the change and when immich complains again about the password I'll tell you what to do next
Neel2904
Neel2904OP•4d ago
OK, just give me a few minuites
Neel2904
Neel2904OP•4d ago
I change this /data of target, right?
No description
Neel2904
Neel2904OP•4d ago
OK, so I've done that.
Xiticks
Xiticks•4d ago
Sorry went to eat but yeah you had change it to /usr/src/app/upload So now does immich still complain about password? (It shouldà)
Neel2904
Neel2904OP•4d ago
Let me see if it does. No worries, so did I.
Xiticks
Xiticks•4d ago
If that is the case then keep the app running and in truenas shell do
sudo docker exec -it ix-immich-pgvecto-1 psql -U immich -d postgres -c "ALTER USER immich WITH PASSWORD 'new_secure_password';"
sudo docker exec -it ix-immich-pgvecto-1 psql -U immich -d postgres -c "ALTER USER immich WITH PASSWORD 'new_secure_password';"
Replace new_secure_password with the one you set in the Immich database
Neel2904
Neel2904OP•4d ago
Ya, so the password error is still there Ran the code as instructed. It finished with 'ALTER ROLE'
Xiticks
Xiticks•4d ago
Yep You might need to restart Immich
Neel2904
Neel2904OP•4d ago
Yes, it restarted and is working on desktop. It is showing 'Error in runInIsolateGentle for remote-sync' in my phone tho.
Xiticks
Xiticks•4d ago
You're on an old version so this might be expected Can you try to donwload an image from web browser? Click on it, 3dots menu upper right and then "download" try that on multiple periods of time
Neel2904
Neel2904OP•4d ago
Sure Yes works
Xiticks
Xiticks•4d ago
it's just to verify that you have rsync everyhitng correctly
Neel2904
Neel2904OP•4d ago
OK Yes, tried with different timeline, also tried with video. Download is working properly.
Xiticks
Xiticks•4d ago
Ok, that is good then
Neel2904
Neel2904OP•4d ago
Thumbnails show my entire timeline too
Xiticks
Xiticks•4d ago
you can now delete the custom app and reinstall immich
Neel2904
Neel2904OP•4d ago
OK
Xiticks
Xiticks•4d ago
If you did not use any ixVolumes
Neel2904
Neel2904OP•4d ago
No i didnt
Xiticks
Xiticks•4d ago
this should upgrade to latest without issues going from 1.132.3 to 1.143.1 is ok
Neel2904
Neel2904OP•4d ago
Should I delete the docker image while deleting?
Xiticks
Xiticks•4d ago
You could to regains space otherwise you can also manage them on the apps page (you probably have others that can be deleted)
Neel2904
Neel2904OP•4d ago
OK, coz I remember that docker image takes a while to download
Xiticks
Xiticks•4d ago
Yes, it depends on your internet speed but it will download a new version anyway but it might reuse the old for some caching so this could help
Neel2904
Neel2904OP•4d ago
So the I reinstalled immich and everything went smooth. And I'm able to see the photos in my app too. Is there anything else I need to do?
Xiticks
Xiticks•4d ago
Nope should be good!
Neel2904
Neel2904OP•4d ago
Thanks a lot for the help I’ll close this ticket then
Immich
Immich•4d ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?