Can't get external library import to work. Websocket errors?

I'm pretty confident i have it set up right but every attempt to pull in an external library does nothing. The log has lots of Websocket Connect/Disconnect messages so I'm wondering what's going on. No adblocker running (which I saw was someone else's problem). Thoughts? Thanks [Nest] 194 - 10/30/2023, 4:55:00 PM LOG [CommunicationRepository] Websocket Connect: maw8_IqYzEP3a_M6AAAB [Nest] 194 - 10/30/2023, 4:55:06 PM LOG [CommunicationRepository] Websocket Disconnect: maw8_IqYzEP3a_M6AAAB [Nest] 194 - 10/30/2023, 4:55:15 PM LOG [CommunicationRepository] Websocket Connect: ySzaLZaNOBRis68kAAAD [Nest] 194 - 10/30/2023, 4:56:41 PM LOG [CommunicationRepository] Websocket Disconnect: ySzaLZaNOBRis68kAAAD [Nest] 194 - 10/30/2023, 4:56:50 PM LOG [CommunicationRepository] Websocket Connect: 5-IrXWetnIlJbtBoAAAF [Nest] 551 - 10/30/2023, 4:57:22 PM LOG [LibraryService] Deleting library ba279410-b495-42de-ae9e-b40f5a78b5a8 [Nest] 551 - 10/30/2023, 4:57:28 PM LOG [LibraryService] Deleting library e9576a62-eba5-4f5c-b5c4-39054a581847 [Nest] 194 - 10/30/2023, 5:01:20 PM LOG [CommunicationRepository] Websocket Connect: 1dGpaA3MMrPLnDrWAAAH [Nest] 194 - 10/30/2023, 5:01:45 PM LOG [CommunicationRepository] Websocket Disconnect: 5-IrXWetnIlJbtBoAAAF [Nest] 194 - 10/30/2023, 5:03:19 PM LOG [CommunicationRepository] Websocket Connect: cbMIeT0giMcSYUPeAAAJ [Nest] 194 - 10/30/2023, 5:03:20 PM LOG [CommunicationRepository] Websocket Connect: DdsmiYqBaAQ81dnUAAAL [Nest] 194 - 10/30/2023, 5:03:45 PM LOG [CommunicationRepository] Websocket Disconnect: 1dGpaA3MMrPLnDrWAAAH [Nest] 194 - 10/30/2023, 5:04:04 PM LOG [CommunicationRepository] Websocket Disconnect: cbMIeT0giMcSYUPeAAAJ
17 Replies
phoisgras
phoisgrasOP2y ago
Also, when I log in to the container console and cd to /import I see all the directories I want to import. chmod is 777 for all of them
Alex Tran
Alex Tran2y ago
websocket connection open/disconnect when you open either the web app or the mobile app Can you post your external library setup?
phoisgras
phoisgrasOP2y ago
Sure. I'm using unraid so "shares" across multiple drives live under /mnt/user and i have one called /mnt/user/photo where all my photos, home videos, and now Immich main storage will live.
FOR THE DOCKER Immich's /photos directory is mapped to /mnt/user/photo/immich Immich's /import directory is mapped to /mnt/user/photo/archive (where i have many folders of family photos) and all permissions are 777 FOR THE ADMIN WEBAPP: I have created a new user and set the user external path to /import Then when I login as that user and go to Account Settings > Libraries I have left the "default library" as is and created a new one with a single import path called "/import/GP_Uploaded_Digital_Family_Library" where GP_Uploaded_Digital_Family_Library is just one of my family archive folders which on my unraid host system lives at /mnt/user/photo/archive/GP_Uploaded_Digital_Family_Library [GP is google photos so I uploaded this entire folder back when they had unlimited storage] Thanks in advance for any suggestions. I'm generally good at this sort of thing but can't figure out what I'm doing wrong.
Alex Tran
Alex Tran2y ago
Thank you, do you mind help me test by create a new user then assign the /import path to the user as well as creating a new external library for that user, then perform backup to see if it works correctly? @martabal sorry for bringing you in again, can you help taking a look to see if we have everything alright here?
phoisgras
phoisgrasOP2y ago
ok, not sure what "perform backup" is for the user but I'll do the first part
Alex Tran
Alex Tran2y ago
can you clarify?
No description
phoisgras
phoisgrasOP2y ago
it's working! i got a new updated docker today and I wonder if that fixed a bug that was in the prior version.. I see lots of scrolling in the log file as it imports and am now finally seeing photos. So should I delete and recreate my existing users? you asked me to "perform backup". I just ran a full scan of the external library which is workign this time!!! thanks. any idea what changed?
Alex Tran
Alex Tran2y ago
Hmm, nothing really related to the scanning mechanism
phoisgras
phoisgrasOP2y ago
any issues with spaces in directory names? I made sure to pick an archive folder with no spaces this time (and it worked)
Alex Tran
Alex Tran2y ago
Good catch, perhaps this is the issue @etnoy Just FYI when you get back
phoisgras
phoisgrasOP2y ago
although honestly that earlier name (when it failed) had no spaces GP_Uploaded_Digital_Family_Library but i had renamed that, and did notice in the log that it was still referring to the old filename I'm going to get rid of spaces in file names and delete and recreate users. The account seems to be in a 7 day hold before full deletion. Is there a way to do the full delete now? I suspect some of the code managing strings doesn't like spaces on the web pages where you enter paths for external libraries (perhaps both admin and user pages)
Alex Tran
Alex Tran2y ago
This can be a probably cause. You can do that from the database, but it is a bit more involved due to the relations between the table
phoisgras
phoisgrasOP2y ago
can I change the email address later for an account? maybe i'll just make a new one and then in 7 days change the email address for the new one
Alex Tran
Alex Tran2y ago
Yes, from the admin > Users page
phoisgras
phoisgrasOP2y ago
i just blew away my entire config and photos directories and am starting over. hopefully i don't confuse the DB. if necessary I can start over there too i appreciate your help
Alex Tran
Alex Tran2y ago
No problem! Enjoy
etnoy
etnoy2y ago
I think I'll have to test what happens when you have spaces in the import paths, could be an issue there

Did you find this page helpful?