#TrueNAS filesystem update issue.

1 messages · Page 1 of 1 (latest)

stiff swan
#

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

cerulean tulipBOT
#

:wave: Hey @stiff swan,

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

#

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.

fallen mantle
#

From which version of TrueNAS Immich have you updated?

stiff swan
#

So, my last working version of immich was 1.119.1 in TrueNAS 24.04

fallen mantle
#

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

stiff swan
#

OK

#

So rather than the standard trueNAS app I'll have to make a custom app?

fallen mantle
#

No

#

So I suppose you're on 25.04?

stiff swan
#

Yes

fallen mantle
#

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

stiff swan
#

Oh yeah, found it

fallen mantle
#

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

stiff swan
#

BTW just letting you know, I could not find any /backups folder so the data/backup in my new dataset is empty

fallen mantle
#

That's a good thing you had the password issue, this way it did not break the database 🙂

fallen mantle
stiff swan
#

OK, thanks

#

I'm updating the file now

fallen mantle
#

and inside it, do a touch .immich otherwise immich will complain

fallen mantle
stiff swan
#

I could not vind a v.1.143.1 in line 173 or around there

fallen mantle
#

Bit above probably

#

Copy pasted from soo much different threads

stiff swan
#

Oh😅. OK

fallen mantle
#

copy the yaml in a text editor and search for the lines without the versions

stiff swan
#

Got it

fallen mantle
stiff swan
#

I had the machine learning off, so it is not there. It is not coming up in search

fallen mantle
#

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

stiff swan
#

OK, just give me a few minuites

#

I change this /data of target, right?

fallen mantle
#

Sorry went to eat

#

but yeah you had change it to /usr/src/app/upload

fallen mantle
stiff swan
#

Let me see if it does.

stiff swan
fallen mantle
#

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';"
Replace new_secure_password with the one you set in the Immich database

stiff swan
#

Ya, so the password error is still there

#

Ran the code as instructed. It finished with 'ALTER ROLE'

fallen mantle
#

Yep

#

You might need to restart Immich

stiff swan
#

Yes, it restarted and is working on desktop.

It is showing 'Error in runInIsolateGentle for remote-sync' in my phone tho.

fallen mantle
#

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

stiff swan
#

Sure

#

Yes works

fallen mantle
#

it's just to verify that you have rsync everyhitng correctly

stiff swan
#

Yes, tried with different timeline, also tried with video. Download is working properly.

fallen mantle
#

Ok, that is good then

stiff swan
#

Thumbnails show my entire timeline too

fallen mantle
#

you can now delete the custom app

#

and reinstall immich

stiff swan
#

OK

fallen mantle
#

If you did not use any ixVolumes

stiff swan
#

No i didnt

fallen mantle
#

this should upgrade to latest without issues

#

going from 1.132.3 to 1.143.1 is ok

stiff swan
#

Should I delete the docker image while deleting?

fallen mantle
#

You could to regains space

#

otherwise you can also manage them on the apps page

#

(you probably have others that can be deleted)

stiff swan
#

OK, coz I remember that docker image takes a while to download

fallen mantle
#

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

stiff swan
#

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?

fallen mantle
#

Nope should be good!

stiff swan
#

Thanks a lot for the help

#

I’ll close this ticket then