Migration Issues PLZ Help - TrueNas

I was in the process of migrating my old files to a new immich install because my origional install wouldn't update (was installed initially through HexOs) I then createded a fresh install of immich and tested it (worked fine). But then I went to follow the migration directions and after those steps I got an error in the pgvecto container (pasted bellow) and i re coppyed all of the .immich files and just couldn't get it to work. if anyone knows how to solve this issue I would greatly appreciate the help (btw newer to TrueNas) pgvecto Container Log Message: Using HDD storage 2025-09-26 03:53:20.475355+00:00chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted 2025-09-26 03:53:20.504015+00:00The files belonging to this database system will be owned by user "postgres". 2025-09-26 03:53:20.504055+00:00This user must also own the server process. 2025-09-26 03:53:20.504074+00:002025-09-26T03:53:20.504074683Z 2025-09-26 03:53:20.504422+00:00initdb: error: could not access directory "/var/lib/postgresql/data": Permission denied 2025-09-26 03:53:20.504911+00:00The database cluster will be initialized with locale "en_US.utf8". 2025-09-26 03:53:20.504934+00:00The default database encoding has accordingly been set to "UTF8". 2025-09-26 03:53:20.504942+00:00The default text search configuration will be set to "english". 2025-09-26 03:53:20.504960+00:002025-09-26T03:53:20.504960105Z 2025-09-26 03:53:20.504967+00:00Data page checksums are disabled. 2025-09-26 03:53:20.504974+00:002025-09-26T03:53:20.504974969Z
No description
51 Replies
Immich
Immich2w ago
:wave: Hey @DJBOOM30, 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. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: 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.
DJBOOM30
DJBOOM30OP2w ago
Error message from TrueNas: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 509, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 556, in __run_body rv = await self.middleware.run_in_thread(self.method, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1367, in run_in_thread return await self.run_in_executor(io_thread_pool_executor, method, *args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1364, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 183, in nf return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 55, in nf res = f(*args, kwargs) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/app_scale.py", line 51, in start compose_action(app_name, app_config['version'], 'up', force_recreate=True, remove_orphans=True) File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/compose_utils.py", line 61, in compose_action raise CallError(err_msg) middlewared.service_exception.CallError: [EFAULT] Failed 'up' action for 'immich' app. Please check /var/log/app_lifecycle.log for more details
Immich
Immich2w ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Xiticks
Xiticks2w ago
I can have a look in the evening In the meantime, can you share your dataset structure (also show the permissions) and your Immich config ?
DJBOOM30
DJBOOM30OP7d ago
No description
DJBOOM30
DJBOOM30OP7d ago
No description
DJBOOM30
DJBOOM30OP7d ago
the external library is a place holder that is empty and not incorporated to immich If there is any other data you need, please let me know
Xiticks
Xiticks7d ago
are the perms all the same for all 3 sub dataset? like data pgData and ExternalLIbraryN
DJBOOM30
DJBOOM30OP7d ago
They should be, as I can access them through my file browser, and I selected the apply to all subfolders when adding the permistions Additionally, my current theory (from the digging I did ) since I set up an account with Immich, so after I moved the files over, it's detecting two users (one for the data and one for the app) and erroring out...
Xiticks
Xiticks7d ago
well, then it's not set up as expected then So I've some time now @DJBOOM30 if you're available Can you click on the edit button , then set acl There will be a list of preset, can you tell me if they start with NFS4 or with POSIX?
DJBOOM30
DJBOOM30OP7d ago
I will be available in about 15 min they start with POSIX
DJBOOM30
DJBOOM30OP7d ago
Ill take a look
Xiticks
Xiticks7d ago
Don't change the permissions on the pgData you can change the acl, but definitely not the perms
DJBOOM30
DJBOOM30OP7d ago
I had previously added permissions to make it accessible by filebrowser
Xiticks
Xiticks7d ago
well you can add some, but I think there are issues with POSIX so Illl make you set the basic minimum corrects ones after that you can add other if you need/want to
DJBOOM30
DJBOOM30OP7d ago
Would there be any data loss because the conversion warns me about the action being destructive
Xiticks
Xiticks7d ago
Looses of perms but otherwise I do'tn think so and since we gonna change the perms anyway, they'll be restored
DJBOOM30
DJBOOM30OP7d ago
ok I will make the change... I should make it to the whole immich1 data set (correct?)
Immich
Immich7d ago
[Issue] Video Upload (immich-app/immich#1)
Xiticks
Xiticks7d ago
nope only on data and maybe external libraries
DJBOOM30
DJBOOM30OP7d ago
ok thx
Xiticks
Xiticks7d ago
but pgData, you'll have to edit immich app in truenas gui and tick the box "apply permissions automatically"
DJBOOM30
DJBOOM30OP7d ago
it was set to it alreaDY The box is already selected
Xiticks
Xiticks7d ago
No description
Xiticks
Xiticks7d ago
You have to make it look like this, for data and externalLIbrary with the 3 boxes (2 at top 1 at bottom) and after that you click on set acl
DJBOOM30
DJBOOM30OP7d ago
this is what I have so far
No description
Xiticks
Xiticks7d ago
change owner also make it look identical so remove all other stuff compared to the screenshot then we check if immich works and after that you can add you user to have access to it
DJBOOM30
DJBOOM30OP7d ago
No description
Xiticks
Xiticks7d ago
and at the top apply owner and apply group are ticked?
DJBOOM30
DJBOOM30OP7d ago
No description
DJBOOM30
DJBOOM30OP7d ago
yup
Xiticks
Xiticks7d ago
ok so save access control list then can you now show me the content of data? with truenas terminal do ls -la once your in the dataset
DJBOOM30
DJBOOM30OP7d ago
No description
Xiticks
Xiticks7d ago
Ok so this seems fine YOu can try to reinstall immich then don't forget to
Xiticks
Xiticks7d ago
No description
Xiticks
Xiticks7d ago
tick the automatic perms like in the screensht
DJBOOM30
DJBOOM30OP7d ago
Should I delete the current app through the apps page first
Xiticks
Xiticks7d ago
mmh you can yeah, should not be an issue as everything is on hsot path you can simply stop it and delete it when everything works tho you create it from TrueNAS gui, right? Not HexOS,
DJBOOM30
DJBOOM30OP7d ago
I have to go thanks for you help I will check in with you later today
Xiticks
Xiticks7d ago
Ok, no problem I'm on UTC +2 so I might not answer before tomorrow, depending on what's later today
DJBOOM30
DJBOOM30OP7d ago
It didn't work so Installed fresh and am just going to import the file manually if you know where to find the data for the face scans so I can just import that and reuplaod all of my images that would be helpfull
Xiticks
Xiticks7d ago
Well show the errors It’s still fixable They’re in the upload folder
DJBOOM30
DJBOOM30OP6d ago
it was the same error thanks
Xiticks
Xiticks6d ago
this? or in the library one
DJBOOM30
DJBOOM30OP6d ago
2025-09-26 03:53:20.504015+00:00The files belonging to this database system will be owned by user "postgres". 2025-09-26 03:53:20.504055+00:00This user must also own the server process. 2025-09-26 03:53:20.504074+00:002025-09-26T03:53:20.504074683Z that one
Xiticks
Xiticks6d ago
Could you share again the permissions of every immich related dataset in use please ? (Do a reply so I have the notification)
DJBOOM30
DJBOOM30OP6d ago
I don’t I already reinstalled and started manually uploading the data again
Xiticks
Xiticks6d ago
oh well then ok, this should fix it you can /close the ticket
DJBOOM30
DJBOOM30OP6d ago
Ok thanks for the reminder and all the help
Immich
Immich6d ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?