Problems after truenas update

Hello everyone, Lets see if I havent messed it up completely... Recently my phone app got updated (now is showing a beta symbol when I open immich), (an iphone) After this update, I wasn't able to see my pictures, I did a quick search and found that there could be incompatibilities between the app and the version of immich I was running in my truenas Then I tried to update my app in truenas, I also got another error due to unable to execute a change in some of the fields (string value vs freetext value or something similar) so I couldn't,. Then I decided to uninstall completely immich and try to install it again and reconfigure it, nope, I wasnt able, again another error which pointented out to problems with compatibility with my truenas version So then I decided to update my truenas (with a couple of hiccups), now I am running 25.04, I was running 24 Re-install immich and perform the migration of datasets (I do believe I have do it properly) as I was running with the old system with multiple datasets (upload, backups, library, video...) The issue now is whenever I reconfigure immich to use the new dataset I created, as soon as I click start the app, enters in a loop of deploying/running When I click to launch the web UI, I got an error of not possible to connect to it What can I do? how should I troubleshoot it? I am not that expert in this area
291 Replies
Immich
Immich3w ago
:wave: Hey @SelfResetInput, 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. :ballot_box_with_check: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Xiticks
Xiticks3w ago
On the TrueNAS apps page, when starting immich, there is a workflow widget with « server » Could you try to get the logs of it?
SelfResetInput
SelfResetInputOP3w ago
@Xiticks there you go, seems to have problems with privileges
No description
Xiticks
Xiticks3w ago
Can you share the permissions you set on the datasets? the data and the postgress one ?
SelfResetInput
SelfResetInputOP3w ago
not sure if this is what you need, if not let me know exactly what you are looking for
No description
No description
No description
No description
Xiticks
Xiticks3w ago
No, if you click on the dataset, there should be a widget "permissions" right to Dataset space
SelfResetInput
SelfResetInputOP3w ago
there you go
No description
Xiticks
Xiticks3w ago
That is the one of the immich dataset, I'm interested in the 2 children so data and postgres-data I've stuff to do this afternoon, but I'll send what it should look like afterwards, and how you can correct it
SelfResetInput
SelfResetInputOP2w ago
they look the same, thats why I put the parent
No description
No description
SelfResetInput
SelfResetInputOP2w ago
but now that you mention this, I remember there is also a owner of the app that you can change, has something to do here?
Xiticks
Xiticks2w ago
oh yeah was not obvious to me haha Yes, exactly well not this way, I'll show you what it should look like But first, on Immich dataset, based on that change acl type to nfsv4 and the acl mode to passtrough You can also do it for data and pg data datasets
Xiticks
Xiticks2w ago
then on data dataset, set the permissions so they look like this (and TICK THE 3 boxes, 2 up apply owner/group but also the apply permissions recusively. Do not tick apply to child dataset)
No description
Xiticks
Xiticks2w ago
As for pgData you set them using Immich You edit your Immich app, an tick the automatic permission
No description
SelfResetInput
SelfResetInputOP2w ago
Looks like I cannot even do this, I am getting an error when trying to change to nsfv4 I will create another dataset and try to replicate the setup considering your steps and lets see if I have luck
No description
Xiticks
Xiticks2w ago
you started with the Immich dataset? If so that is indeed strange
SelfResetInput
SelfResetInputOP2w ago
Hello again
SelfResetInput
SelfResetInputOP2w ago
No description
SelfResetInput
SelfResetInputOP2w ago
I configure the datasets (new) in the way you told me and seems it is still not working properly
SelfResetInput
SelfResetInputOP2w ago
No description
No description
No description
Xiticks
Xiticks2w ago
They’re not correct They should look like that like you need to add the User -apps and other stuff
SelfResetInput
SelfResetInputOP7d ago
got it, I thought that was custom from you, let me try again
SelfResetInput
SelfResetInputOP7d ago
No description
SelfResetInput
SelfResetInputOP7d ago
🙂 now time to synch/move from the older location any recomendation on how to do it? I guess, first synch in case it breaks again btw, is it possible to restore the setup that I had? I have it with my wife as another profile and photo sharing
Xiticks
Xiticks7d ago
Wait what you should not have that without your photos
SelfResetInput
SelfResetInputOP7d ago
the dataset is empty now I need to move from the old dataset to the new one I created
Xiticks
Xiticks7d ago
Should have done that the other way around This won’t work for the Postgres data
SelfResetInput
SelfResetInputOP7d ago
whops so I need to do it again but before launching the app, migrate all the data
Xiticks
Xiticks7d ago
Yes Well
SelfResetInput
SelfResetInputOP7d ago
or I guess I can put all the previous photos as a external library?
Xiticks
Xiticks7d ago
No We will sync them afterwards For now just recreate datasets for pgData and data https://discord.com/channels/979116623879368755/1178410588821524561/1421124186977337414 Like in there I’ll be more available later Wait stop You alrady have that How did you setup your new Immich install?
SelfResetInput
SelfResetInputOP7d ago
you mean paths?
Xiticks
Xiticks7d ago
Yeah Don’t delete anything of your setup
SelfResetInput
SelfResetInputOP7d ago
No description
Xiticks
Xiticks7d ago
Why is that immich1 ?
Immich
Immich7d ago
[Issue] Video Upload (immich-app/immich#1)
Xiticks
Xiticks7d ago
You had immich there
SelfResetInput
SelfResetInputOP7d ago
It is the new dataset that I had to create, the previous one I couldnt change the type of ACL type or yes wtf
Xiticks
Xiticks7d ago
You can change the type
SelfResetInput
SelfResetInputOP7d ago
I was getting an error let me try again anyhow, maybe I need you to confirm me if I have properly setup the original dataset when I compare sizes it does not match
SelfResetInput
SelfResetInputOP7d ago
No description
SelfResetInput
SelfResetInputOP7d ago
thats the original, from this one I "moved" files to the Immich
SelfResetInput
SelfResetInputOP7d ago
and then
No description
SelfResetInput
SelfResetInputOP7d ago
so is there a way that I can compare if I have files in the old dataset that are not in the new one? so I can move those
Xiticks
Xiticks7d ago
Have you enabled spashots in the past on your old datasets? Otherwise doing the rsync again
SelfResetInput
SelfResetInputOP7d ago
maybe, how can I check it? but, rsynch with the main dataset?
Xiticks
Xiticks7d ago
No
SelfResetInput
SelfResetInputOP7d ago
or I need to do all the old datasets
Xiticks
Xiticks7d ago
I’m doing other stuff now
SelfResetInput
SelfResetInputOP7d ago
to the data
Xiticks
Xiticks7d ago
Is that possible for you in 2 hours maybe ? Or tomorrow
SelfResetInput
SelfResetInputOP7d ago
tomorrow better you are the hero! tomorrow same time as today?
Xiticks
Xiticks7d ago
Like same hour as now ? Yes can do
SelfResetInput
SelfResetInputOP7d ago
earlier I am also available
Xiticks
Xiticks7d ago
Tell me your time and time zone
SelfResetInput
SelfResetInputOP7d ago
(UTC+02:00)
Xiticks
Xiticks7d ago
Oh I'm on the same so it's fine 20h00 is fine for you or are you available earalier?
SelfResetInput
SelfResetInputOP7d ago
20 is perfect thank you sir talk to you tomorrow
Xiticks
Xiticks7d ago
@SelfResetInput If you're already there, I'm available
SelfResetInput
SelfResetInputOP7d ago
here I am so, do you want to check anything before doing a rsynch?
Xiticks
Xiticks7d ago
oopos sorry did not have notifications
SelfResetInput
SelfResetInputOP7d ago
no worries
Xiticks
Xiticks7d ago
So to recap, you already tried with rysnc and you get dataset with less storage can you share the whole UI page, when you click on this upload dataset with all the dataset info
SelfResetInput
SelfResetInputOP7d ago
the very first time I did a "move" and den I could see that videos dataset was still there with storage, so I did a rsynch for that one yes, give me a sec
Xiticks
Xiticks7d ago
wiat but that seems weirs also, like your video dataset is empty still show me the details, but I think I undersand your issue So after showing me that, inside the trueNAS shell, cd into your old upload dataset and do ll once you're in it and share the output
SelfResetInput
SelfResetInputOP7d ago
I am back had to "hard reset" the machine
SelfResetInput
SelfResetInputOP7d ago
No description
SelfResetInput
SelfResetInputOP7d ago
so, in order to clarify Immich -> the dataset I created originally for the new version and where is supposed to be all the data already immich1 -> dataset I created after facing problems with immich not launching inmmich -> My old dataset
Immich
Immich7d ago
[Issue] Video Upload (immich-app/immich#1)
Xiticks
Xiticks7d ago
Ok Can you share 1) Your current Immch storage config (like when you edit the app) 2) The content of the upload folder in your old install
SelfResetInput
SelfResetInputOP7d ago
No description
SelfResetInput
SelfResetInputOP7d ago
the immich config I am suppose to change it
Xiticks
Xiticks7d ago
Oh you already changed stuff, that's right Well I need, that so in the TrueNAS terminal
SelfResetInput
SelfResetInputOP7d ago
are you sure? it shouldnt be Immich? instead of Immich1?
Xiticks
Xiticks7d ago
No I mean you already disabled the old config
SelfResetInput
SelfResetInputOP7d ago
yep
Xiticks
Xiticks7d ago
it looks like something was already not correct before that's why I want to see the content of your old immich datasets
cd /mnt/CrisHaiz/inmmich/upload
cd /mnt/CrisHaiz/inmmich/upload
then do ll (Inside TrueNAS shell)
SelfResetInput
SelfResetInputOP7d ago
No description
Xiticks
Xiticks6d ago
and if, from there, you do cd ../video then ll again
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
Mmh, ok, that's not normal but we will try without that so can you delete data and postgres-data and recreate them? use the "apps" preset for the data one and leave the "generic" preset for the postgres one
SelfResetInput
SelfResetInputOP6d ago
you mean from Immich1?
Xiticks
Xiticks6d ago
Oh yes I mean the dataset you'll use for the new install I want you to start fresh again
SelfResetInput
SelfResetInputOP6d ago
give me a sec deleted I guess you refer in the immich config path for data storage?
Xiticks
Xiticks6d ago
Yes? Like create 2 datasets, like you did before
SelfResetInput
SelfResetInputOP6d ago
noted
Xiticks
Xiticks6d ago
one that will be used by immich for the data and the other for the database
SelfResetInput
SelfResetInputOP6d ago
now I got you, I was confused, I can see what you refer with generic done
Xiticks
Xiticks6d ago
can you show their name? like the truenas gui with them
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
this seems correct?
Xiticks
Xiticks6d ago
yes don't change it
sudo mkdir /mnt/CrisHaiz/immich1/data/library/
sudo touch /mnt/CrisHaiz/immich1/data/library/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/profile/
sudo touch /mnt/CrisHaiz/immich1/data/profile/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/backups/
sudo touch /mnt/CrisHaiz/immich1/data/backups/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/encoded-video/
sudo touch /mnt/CrisHaiz/immich1/data/encoded-video/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/thumbs/
sudo touch /mnt/CrisHaiz/immich1/data/thumbs/.immich
sudo rsync -av /mnt/CrisHaiz/inmmich/pgData/* /mnt/CrisHaiz/immich1/postgres-data/
sudo rsync -av /mnt/CrisHaiz/inmmich/upload/ /mnt/CrisHaiz/immich1/data/upload/
sudo mkdir /mnt/CrisHaiz/immich1/data/library/
sudo touch /mnt/CrisHaiz/immich1/data/library/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/profile/
sudo touch /mnt/CrisHaiz/immich1/data/profile/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/backups/
sudo touch /mnt/CrisHaiz/immich1/data/backups/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/encoded-video/
sudo touch /mnt/CrisHaiz/immich1/data/encoded-video/.immich
sudo mkdir /mnt/CrisHaiz/immich1/data/thumbs/
sudo touch /mnt/CrisHaiz/immich1/data/thumbs/.immich
sudo rsync -av /mnt/CrisHaiz/inmmich/pgData/* /mnt/CrisHaiz/immich1/postgres-data/
sudo rsync -av /mnt/CrisHaiz/inmmich/upload/ /mnt/CrisHaiz/immich1/data/upload/
ok so now from terminal run each of this command line by line
SelfResetInput
SelfResetInputOP6d ago
got it executing last line
Xiticks
Xiticks6d ago
yeah it will take a while
SelfResetInput
SelfResetInputOP6d ago
should I also do a rsync with the dataset where originally things were moved? aka immich?
Xiticks
Xiticks6d ago
Mmh no ? What do you mean moved ? No you don’t need to
SelfResetInput
SelfResetInputOP6d ago
as mention, the very first time that I tried to update, when executing the commands of transfering the data, I used one that moved the data instead of synch
Xiticks
Xiticks6d ago
As inmich is the original Oh That explains it Holy shot
SelfResetInput
SelfResetInputOP6d ago
🙂 yeah, lesson learned
Xiticks
Xiticks6d ago
Can you cd into the immich folder then And do ll inside it also ? Well after the initial rsync is done has
SelfResetInput
SelfResetInputOP6d ago
I guess I need to wait for the rsync or I can open another terminal?
Xiticks
Xiticks6d ago
Yes Just wait
SelfResetInput
SelfResetInputOP6d ago
got it how can I pay you for a coffe or a beer whatever you like
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
already cd into cd /mnt/CrisHaiz/Inmmich/upload
Xiticks
Xiticks6d ago
No I need you to go in Immich Immich/data more precisely
SelfResetInput
SelfResetInputOP6d ago
yeah, sorry I am already in the data dataset yeah
Xiticks
Xiticks6d ago
then do ll and share it
SelfResetInput
SelfResetInputOP6d ago
ll I forgot about it haha
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
sudo rsync -av /mnt/CrisHaiz/immich/data/upload/ /mnt/CrisHaiz/immich1/data/upload/

sudo rsync -av /mnt/CrisHaiz/immich/data/library/ /mnt/CrisHaiz/immich1/data/library/
sudo rsync -av /mnt/CrisHaiz/immich/data/upload/ /mnt/CrisHaiz/immich1/data/upload/

sudo rsync -av /mnt/CrisHaiz/immich/data/library/ /mnt/CrisHaiz/immich1/data/library/
so do tehse for all folders that are in there
sudo rsync -av /mnt/CrisHaiz/immich/data/encoded-video/ /mnt/CrisHaiz/immich1/data/encoded-video/
sudo rsync -av /mnt/CrisHaiz/immich/data/backups/ /mnt/CrisHaiz/immich1/data/backups/
sudo rsync -av /mnt/CrisHaiz/immich/data/thumbs/ /mnt/CrisHaiz/immich1/data/thumbs/
sudo rsync -av /mnt/CrisHaiz/immich/data/profile/ /mnt/CrisHaiz/immich1/data/profile/
sudo rsync -av /mnt/CrisHaiz/immich/data/encoded-video/ /mnt/CrisHaiz/immich1/data/encoded-video/
sudo rsync -av /mnt/CrisHaiz/immich/data/backups/ /mnt/CrisHaiz/immich1/data/backups/
sudo rsync -av /mnt/CrisHaiz/immich/data/thumbs/ /mnt/CrisHaiz/immich1/data/thumbs/
sudo rsync -av /mnt/CrisHaiz/immich/data/profile/ /mnt/CrisHaiz/immich1/data/profile/
SelfResetInput
SelfResetInputOP6d ago
sudo rsync -av /mnt/CrisHaiz/immich/data/upload/ /mnt/CrisHaiz/immich1/data/upload/ sudo rsync -av /mnt/CrisHaiz/immich/data/thumbs/ /mnt/CrisHaiz/immich1/data/thumbs/ sudo rsync -av /mnt/CrisHaiz/immich/data/profile/ /mnt/CrisHaiz/immich1/data/profile/ sudo rsync -av /mnt/CrisHaiz/immich/data/library/ /mnt/CrisHaiz/immich1/data/library/ sudo rsync -av /mnt/CrisHaiz/immich/data/encoded-video/ /mnt/CrisHaiz/immich1/data/encoded-video/ sudo rsync -av /mnt/CrisHaiz/immich/data/backups/ /mnt/CrisHaiz/immich1/data/backups/ 🙂 how do you put code in the chat?
Xiticks
Xiticks6d ago
three ` before and after
SelfResetInput
SelfResetInputOP6d ago
thanks! I guess will take some time done
Xiticks
Xiticks6d ago
ok so now show me immich1 datasets
Immich
Immich6d ago
[Issue] Video Upload (immich-app/immich#1)
Xiticks
Xiticks6d ago
does it report the same amount of storage as befroe?
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
seems that now the big one is immich1
Immich
Immich6d ago
[Issue] Video Upload (immich-app/immich#1)
SelfResetInput
SelfResetInputOP6d ago
ready to launch?
Xiticks
Xiticks6d ago
Yes? Looks like it
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
'''Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in run_body rv = await self.middleware.run_in_thread(self.method, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, 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 624, 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/api/base/decorator.py", line 101, in wrapped result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/app_scale.py", line 62, 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 ''' ```Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in run_body rv = await self.middleware.run_in_thread(self.method, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, 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 624, 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/api/base/decorator.py", line 101, in wrapped result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/app_scale.py", line 62, 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 ```
Xiticks
Xiticks6d ago
sudo tail /var/log/app_lifecycle.log In TrueNAS shell
SelfResetInput
SelfResetInputOP6d ago
give me a sec I saw a difference in the name of the dataset data vs Data nope
Xiticks
Xiticks6d ago
show me your Immich config
SelfResetInput
SelfResetInputOP6d ago
storage part?
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
could be an incompatibility between old version?
Xiticks
Xiticks6d ago
Did you click with the tree to select the dataset ?
SelfResetInput
SelfResetInputOP6d ago
nope let me try that
Xiticks
Xiticks6d ago
Otherwise delete the "old" app and install a new one
SelfResetInput
SelfResetInputOP6d ago
same error let me try that
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
images also?
Xiticks
Xiticks6d ago
No Uncheck them
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
forget it I saw it number of cpus but then again
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, 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 624, 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)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, 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 624, 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/api/base/decorator.py", line 101, in wrapped
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 148, in do_create
return self.create_internal(job, app_name, version, data['values'], complete_app_details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 193, in create_internal
raise e from None
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 186, in create_internal
compose_action(app_name, 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
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py", line 101, in wrapped
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 148, in do_create
return self.create_internal(job, app_name, version, data['values'], complete_app_details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 193, in create_internal
raise e from None
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 186, in create_internal
compose_action(app_name, 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
let me do again sudo tail /var/log/app_lifecycle.log
SelfResetInput
SelfResetInputOP6d ago
looks the same error?
Xiticks
Xiticks6d ago
Did you check automatic permissions when you installled the app ?
SelfResetInput
SelfResetInputOP6d ago
nope let me try again now I did and the same...
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
should I mark enable ACL?
Xiticks
Xiticks6d ago
Mmmh no if you cd into /mnt/CrisHaiz/immich1/data/backups/ and do ll, can you share the output?
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
wait a minute can you do that for all in other folder ? even in postgres-data
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok and inside this, can you cd into the backups again and do ll again,
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
no you're in postgres-data there not in data/backups/backups
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
cd into backups again And do ll there
SelfResetInput
SelfResetInputOP6d ago
cd /mnt/CrisHaiz/immich1/data/backups/ or cd /mnt/CrisHaiz/immich1/data/backups/bakcups
Xiticks
Xiticks6d ago
The second one
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
Mmmh looks like your latest backup is from the 16th of september Is that possible? Has Immich runned since?
SelfResetInput
SelfResetInputOP6d ago
I dont think so
Xiticks
Xiticks6d ago
Or at least do you have the originals for the photos between the 16th and today?
SelfResetInput
SelfResetInputOP6d ago
I just moved to a new house so I didnt have too much time to focus on this
Xiticks
Xiticks6d ago
oh so your nas might have been down for a few days?
SelfResetInput
SelfResetInputOP6d ago
I do have the originals yes yep
Xiticks
Xiticks6d ago
Ok, then we will rollback to there will be way easier
z1haze
z1haze6d ago
when you are supposed to create the new directories.. are these just directories that you create with mkdir within the dataset or are these datasets within the dataset?
Xiticks
Xiticks6d ago
but first run
mv /mnt/CrisHaiz/immich1/data/encoded-video/video/* /mnt/CrisHaiz/immich1/data/encoded-video/
mv /mnt/CrisHaiz/immich1/data/encoded-video/video/* /mnt/CrisHaiz/immich1/data/encoded-video/
you're not suppose to create any new directories, here its because I misunderstoof what he did
SelfResetInput
SelfResetInputOP6d ago
No description
z1haze
z1haze6d ago
im just trying to read through and help myself here.
Xiticks
Xiticks6d ago
ping me in #truenas channel for questions or create another ticket please
z1haze
z1haze6d ago
ok
SelfResetInput
SelfResetInputOP6d ago
is the output what you expected?
Xiticks
Xiticks6d ago
no 😄 can you do ls /mnt/CrisHaiz/immich1/data/encoded-video/
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
what the actual shit is going on
SelfResetInput
SelfResetInputOP6d ago
hahahaha
Xiticks
Xiticks6d ago
rsync -av /mnt/CrisHaiz/immich1/data/encoded-video/video/* /mnt/CrisHaiz/immich1/data/encoded-video/ try that instead
SelfResetInput
SelfResetInputOP6d ago
could be that when we did the second rsynch fucked it? or overwrite it?
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
??? are you trying to synch the old dataset?
Xiticks
Xiticks6d ago
well, here you have video but it should exists, so I need to move the stuff inside video into the encoded-video and no can you cd /mnt/CrisHaiz/immich1/data/encoded-video/video/
SelfResetInput
SelfResetInputOP6d ago
doneç
Xiticks
Xiticks6d ago
do ll inside it
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so that is fine now do cd ../ && rm -r video
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
nice now do cd ../backups then mv backups/* ./
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
should I get any message?
Xiticks
Xiticks6d ago
no ll now
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so again rm -r ./backups then cd ../library and ll again (it will change at some point so just wait my indications)
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so same here again mv library/* ./ then ll
SelfResetInput
SelfResetInputOP6d ago
mv?
Xiticks
Xiticks6d ago
?
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
can you cd library then ll
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ooh makes sense then cd ../ && rm -r library share ll again right after just to double check
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
Ok, so now cd ../profile && mv profile/* ./ then again ll
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
now rm -r profile and for our final candidate cd ../upload/upload && ll and show the content
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so there, run rsync -av ./* ../
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so now cd ../ && ll
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
nice now rm -r upload this way we fixed the "data" dataset
SelfResetInput
SelfResetInputOP6d ago
I trust you 😄
Xiticks
Xiticks6d ago
so now, click on postgres-data in and share the whole ui
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
click on edit next to permissions
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
No description
Xiticks
Xiticks6d ago
make it look like this (with the boxes checked and unchecked everywhere, it should be exactly the same)
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
you forgot apply user
SelfResetInput
SelfResetInputOP6d ago
apply user marked
Xiticks
Xiticks6d ago
click on save then
SelfResetInput
SelfResetInputOP6d ago
saved
Xiticks
Xiticks6d ago
Now, try to install Immich again
SelfResetInput
SelfResetInputOP6d ago
deploying...
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
if it doesn't not fail instantly, it might be a good sign yes
SelfResetInput
SelfResetInputOP6d ago
still deploying
Xiticks
Xiticks6d ago
click on the third button on the first line
SelfResetInput
SelfResetInputOP6d ago
so looks good!
Xiticks
Xiticks6d ago
and share the Immich logs
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
that's the bottom of the otput ?
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
lets go!
Xiticks
Xiticks6d ago
can you just double check the logs to be sure
SelfResetInput
SelfResetInputOP6d ago
server logs? from my phone, it has connected again and I can see pictures
Xiticks
Xiticks6d ago
like these the screenshot seems cropped and also, what happen if you upload a random screenshot from the WebUI ? I just want to be sure that it works
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
should I launch again the app?
Xiticks
Xiticks6d ago
No, no That is fine just try this so I know that everything works
SelfResetInput
SelfResetInputOP6d ago
let me try it
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
No description
SelfResetInput
SelfResetInputOP6d ago
maybe, I should give it some time to recognize everything?
Xiticks
Xiticks6d ago
https://ko-fi.com/xiticks or https://paypal.me/xiticks because you asked mmmh no here if you click on the three dot menu upper riht then click downlaod does it download the image?
SelfResetInput
SelfResetInputOP6d ago
yes
Xiticks
Xiticks6d ago
and is that the random screenshot you uploaded as I asked ? or is is another image?
SelfResetInput
SelfResetInputOP6d ago
another image
Xiticks
Xiticks6d ago
today's screenshot doesn't appear at all?
SelfResetInput
SelfResetInputOP6d ago
the one I uploaded is there
Xiticks
Xiticks6d ago
Oh ok, so that is fine
SelfResetInput
SelfResetInputOP6d ago
yes, I selected a picture with an older date I had to search for it
Xiticks
Xiticks6d ago
it's just an issue with the thumbnails https://my.immich.app/admin/jobs-status
SelfResetInput
SelfResetInputOP6d ago
bug or app just need time?
Xiticks
Xiticks6d ago
so go in there, and run the first job on "all" migration bug, but easily fixed The screenshot upload was to check that we did not have an issue and the download was to check if immich still knew where your images were
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
Can you also run the third from the bottom on all?
SelfResetInput
SelfResetInputOP6d ago
48k thumbnails to be created
Xiticks
Xiticks6d ago
the "transcode video" one "re-created" be yeah, it will take a while
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
just maybe try to download some random images/videos from different time period to see that you have them all and also try to take a picture on your phone to see if it's also uploaded
SelfResetInput
SelfResetInputOP6d ago
fom the webui I have to download to see the picture
Xiticks
Xiticks6d ago
yeah, when this job is done, you'll see them directly in the webUI Immich show thumbnails not the originals (ensure better compatiblity)
SelfResetInput
SelfResetInputOP6d ago
yes, I had to enable backup from the phone and I can see that appear in the webui
Xiticks
Xiticks6d ago
Nice, so everything looks like it is fixed and work! Just have to wait for the jobs to run to see images in the webui
SelfResetInput
SelfResetInputOP6d ago
will check again tomorrow thank you so much! hope that next update goes better
Xiticks
Xiticks6d ago
The migration is a one time thing in theory so next time you should be able to just hit the update button (as long as check for update often)
SelfResetInput
SelfResetInputOP6d ago
well, if it is decide to migrate to a new setup again 🙂
Xiticks
Xiticks6d ago
It should not Pleasure to help!
SelfResetInput
SelfResetInputOP6d ago
I will spend some time also to create proper backups so in case that immich fails...
Xiticks
Xiticks6d ago
Well for starter, you could enable the storage template
SelfResetInput
SelfResetInputOP6d ago
do you have any recomendation on how to extract/backup whatever is in immich=
Xiticks
Xiticks6d ago
On the other hand, with TrueNAS, the simple solution would be to replicate/rclone the datasets
SelfResetInput
SelfResetInputOP6d ago
hmmm that looks amazing
Xiticks
Xiticks6d ago
this way you would only need to save the backups, profile, library and upload folders (as well as the postgres-data) https://my.immich.app/admin/system-settings?isOpen=backup Can you also tell me if that is enabled on your side?
SelfResetInput
SelfResetInputOP6d ago
No description
Xiticks
Xiticks6d ago
ok so it's fine your database is "backed up" every night into the backups folder
SelfResetInput
SelfResetInputOP6d ago
by database, you mean the config?
Xiticks
Xiticks6d ago
the postgres-data It contains the config as well as the information on where the photos are stored, the albums and so on
SelfResetInput
SelfResetInputOP6d ago
maybe I bother you again in the following days with some questions so happy to see people willing to help and support that fast
Xiticks
Xiticks6d ago
No worries, but if TrueNAS related, do so in #truenas Well I've been on a helping spree with the recent "forced" TrueNAS migration So glad I could help with it You can /close this ticket
SelfResetInput
SelfResetInputOP6d ago
will do have a good night!
Xiticks
Xiticks6d ago
Good night also!
Immich
Immich6d ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?