#TrueNAS: don't see any Immich folders

1 messages · Page 1 of 1 (latest)

placid dune
#

Hi! I'm trying to migrate my working Immichwith ) 0.5Tb of data from TrueNAS (which I don't know) to Ubuntu (which I partially know).
But I don't see any Immich data. Where does Immich store all my data? My dataset looks like this:

fleet cedarBOT
#

:wave: Hey @placid dune,

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.

placid dune
#

When I see something like that (NOT my system), #1422685404905078974 message where all Immich folders are available, I understand that I installed it incorrectly. But how can I fix that?

formal badge
#

@analog talon

analog talon
#

@placid dune can you share your Immich config (when you click on "edit" next to the Immich app)

analog talon
analog talon
#

Oh I misread, you're trying to move to Ubuntu too

#

Well anyway I would still need the info I asked to see how we can fix that

placid dune
#

Thank you for your reply. Here's my config:

#

Sergey folder was created by me as a test, it's empty

placid dune
#

I guess the problem is ixVolume? I should used host path? I guess I just used the default value during the installation

analog talon
#

So you could try to cd into it and do ll in there
as well as du -h --max-depth=1

placid dune
#

OMG, invisible dataset :)) That's what I definitely didn't want to do. I tried to do cd:

#

Is it possible to make it visible? I've just checked its properties, it was set as Visible:

analog talon
#

i might have a look when I've some time (not atm)

analog talon
placid dune
#

will try, thank you!

analog talon
#

Btw if you want to keep using TrueNAS for Immich, it's possible btw

#

I can help you migrate to the new structure, while having visible datastes

placid dune
#

the problem is that I really don't understand TrueNAS. It's a blessing that you can help, but I don't want to overload you with my problems

#

even sudo is a quest there:

analog talon
#

Well I can help a bit/explain some things if you want to learn the basics fast and see if you want to stay on it

analog talon
#

Inside Immich server shell?

placid dune
#

I think so

analog talon
#

Oh yeah

#

then it makes sense

#

the volume is on TrueNAS side

#

not inside the immich container

placid dune
#

I should do it in a global shell?

#

I'll try

analog talon
#

Either ssh into it

#

if it's enabled

#

Or click on system > shell

placid dune
#

now it's better 🙂

analog talon
#

Yes, that's definitely more like it

placid dune
#

so now I can try to rsync them?

analog talon
#

Yes, I suppose you know how that works

#

But

#

I would suggest you use ssh to login into TrueNAS to do so

#

Because the webUI is disconencted after some time

placid dune
#

can I try to use rsync from Synology NAS?

analog talon
#

I'm not sure, as you have to be root to access the folders I think

#

but you can give it a shot

placid dune
#

thank you!

analog talon
#

No problem!
If that doesn't work, google/search on Youtube "Truenas enable ssh", there are plenty explanation on how to do

#

And if you want to learn TrueNAS, "Lawrence systems" youtube channel has deep dives into it

placid dune
#

Thank you!

placid dune
#

I was able to use rsync to copy everything from this invisible dataset to synology. Could you tell me, please, if I install Ubuntu and copy all folders back to the fresh Immich installation will this restores my data?

#

what it the best way to migrate?

analog talon
#

Data wise, yes
But you might have to restore the databas

fleet cedarBOT
analog talon
#

There should be dumps in the backups folder

#

if you rsynced it

placid dune
#

somewhere I read that everything in linux is a file, including DB

placid dune
analog talon
#

so yeah, if the pgData or postgres_data (which is the db) doesn't work

#

you still can restore it

placid dune
analog talon
#

as for all other folders

#

you have to put them in a "parent" folder and make sure they have the name thumbs, upload, library, backups, encoded-video

#

so you might have to rename some of the folders to match the name

placid dune
#

I see. Will try. Thank you again!

placid dune
#

also can you please help to upgrade to the latest Immich version? TrueNas is not allowing to upgrade automatically like it did before. The upgrade fails

analog talon
#

Are you moving to ubuntu or using TrueNAS ? I'm lost now

placid dune
#

I'm still on TrueNAS. I guess it's better to upgrade first,no? As on the Ubuntu I'll have to restore my backup and install it on the latest version.

analog talon
placid dune
#

Hi! Could you please help finish the migration to Ubuntu? I installed 24.04, installed Docker, and I'm trying to restore the DB using the following command (from the manual):

#

sudo gunzip --stdout "/home/user/Downloads/immich.gz" | sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" | sudo docker exec -i immich_postgres psql --dbname=postgres --username=postgres

#

The output is the following:

#
SET
SET
NOTICE:  database "immich" does not exist, skipping
DROP DATABASE
DROP ROLE
CREATE ROLE
ALTER ROLE
SET
SET
SET
SET
SET
     set_config     
--------------------
 public, pg_catalog
(1 row)

SET
SET
SET
SET
UPDATE 0
ERROR:  database "template1" does not exist
ERROR:  option "locale_provider" not recognized
LINE 1: ...late1 WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PRO...
                                                             ^
ERROR:  database "template1" does not exist
\connect: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  database "template1" does not exist```
#

Am I doing something wrong? Thank you!

#

I put DB username as postgres, but this could be incorrect

placid dune
placid dune
fleet cedarBOT
placid dune
#

Solution is not to use an "outdated dumper": You are using an outdated dumper. Please see the new one here. It seems like you tried to manually make some of the updates but missed the Postgres version: https://immich.app/docs/administration/backup-and-restore/

placid dune
#

As far as I understand, I have a postgres version mismatch. How can I downgrade the Ubuntu postgres version?

polar meteor
#

You can’t restore into an older version, typically. You’ll need to restore into the matching major PG version

placid dune
#

The backup that I have says "Dumped by pg_dump version 15.14". I tried to use docker ps and the result is ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 Does it mean I have version 14? How can I upgrade my current v.14 to 15? I don't need to do a dump as the DB is empty. Thank you!