#TrueNAS: don't see any Immich folders
1 messages · Page 1 of 1 (latest)
: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
.
References
- Container Logs:
docker compose logsdocs - Container Status:
docker ps -adocs - 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...
- :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
- :blue_square: read applicable release notes.
- :blue_square: reviewed the FAQs for known issues.
- :blue_square: reviewed Github for known issues.
- :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
- :blue_square: uploaded the relevant information (see below).
- :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 -landdf -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.
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?
@analog talon
@placid dune can you share your Immich config (when you click on "edit" next to the Immich app)
as well as sharing the content of your "sergey" folder, so cd into it, then do ls -la or ll
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
Thank you for your reply. Here's my config:
Sergey folder was created by me as a test, it's empty
Please let me know if any additional information may be helpful. Thanks again!
I guess the problem is ixVolume? I should used host path? I guess I just used the default value during the installation
That's not a problem, but yes, its an invisible dataset
so all your data is in /mnt/.ix-apps/app_mounts/immich/
So you could try to cd into it and do ll in there
as well as du -h --max-depth=1
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:
reserved to root
I never dug into that, as I set all my apps with hostpath
i might have a look when I've some time (not atm)
so do sudo su first
will try, thank you!
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
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:
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
waith, where do you do these commands ?
Inside Immich server shell?
Oh yeah
then it makes sense
the volume is on TrueNAS side
not inside the immich container
now it's better 🙂
Yes, that's definitely more like it
so now I can try to rsync them?
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
can I try to use rsync from Synology NAS?
I'm not sure, as you have to be root to access the folders I think
but you can give it a shot
thank you!
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
Thank you!
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?
Data wise, yes
But you might have to restore the databas
somewhere I read that everything in linux is a file, including DB
yes, I saw that
so yeah, if the pgData or postgres_data (which is the db) doesn't work
you still can restore it
yeah so this is the database
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
I see. Will try. Thank you again!
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
Are you moving to ubuntu or using TrueNAS ? I'm lost now
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.
Not really, because on ubuntu, in the docker compose you can choose the version of Immich you use, so this can be fixed on this side
And given your backups, you are on 1.143.0 so no breaking changes, you could directly start on latest (which is 2.0.0)
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
was trying to use this manual
Also I found this topic: https://github.com/immich-app/immich/discussions/11963
[Discussion] Cannot restore postgres database - ERROR: role "postgres" already exists (immich-app/immich#11963)
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/
As far as I understand, I have a postgres version mismatch. How can I downgrade the Ubuntu postgres version?
You can’t restore into an older version, typically. You’ll need to restore into the matching major PG version
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!