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

51 Replies
: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.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
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
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 ?


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
are the perms all the same for all 3 sub dataset?
like data pgData and ExternalLIbraryN
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...
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?
I will be available in about 15 min
they start with POSIX
https://discord.com/channels/979116623879368755/1419108505142558772/1420531930583273543
Can you do the same as in this thread?
Ill take a look
Don't change the permissions on the pgData
you can change the acl, but definitely not the perms
I had previously added permissions to make it accessible by filebrowser
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
Would there be any data loss because the conversion warns me about the action being destructive
Looses of perms
but otherwise I do'tn think so
and since we gonna change the perms anyway, they'll be restored
ok I will make the change...
I should make it to the whole immich1 data set (correct?)
nope
only on data
and maybe external libraries
ok thx
but pgData, you'll have to edit immich app in truenas gui and tick the box "apply permissions automatically"
it was set to it alreaDY
The box is already selected

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
this is what I have so far

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

and at the top
apply owner and apply group are ticked?

yup
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

Ok so this seems fine
YOu can try to reinstall immich then
don't forget to

tick the automatic perms like in the screensht
Should I delete the current app through the apps page first
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,
I have to go thanks for you help I will check in with you later today
Ok, no problem
I'm on UTC +2 so I might not answer before tomorrow, depending on what's later today
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
Well show the errors
It’s still fixable
They’re in the upload folder
it was the same error
thanks
this?
or in the library one
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
Could you share again the permissions of every immich related dataset in use please ?
(Do a reply so I have the notification)
I don’t
I already reinstalled and started manually uploading the data again
oh well then ok, this should fix it
you can /close the ticket
Ok thanks for the reminder and all the help
This thread has been closed. To re-open, use the button below.