I
Immich2y ago
Joey

504 error

Hello, I am trying to import my videos but it stops suddenly with this error. In the attached file Can you help me with that please? I use docker , here is my command line: sudo docker run -it --rm -v "/media/2TO_raid1/Photos_US:/media/2TO_raid1/Photos_US" ghcr.io/immich-app/immich-cli:latest upload --key AmH5Qko5EmNq3LPMyADoSAwMlqWVYqmsJ80kpEwKE --server http://192.168.1.96:2283/api /media/2TO_raid1/Photos_US --recursive --import Thanks
12 Replies
daro
daro2y ago
Did you add the volume /media/2TO_raid1/Photos_US:/media/2TO_raid1/Photos_US to the immich-server and immich-microservices ?
Joey
JoeyOP2y ago
Yes I did in both volume section
Alex Tran
Alex Tran2y ago
The file is probably uploaded, just the response is timeout since the file is big and it take a while for the server to calculate the hash
Joey
JoeyOP2y ago
Ok, that make sense because it's a big video. So what can I do to increase the timeout?
Alex Tran
Alex Tran2y ago
Ah this has to be done from the code
Joey
JoeyOP2y ago
Is there a way to skip the videos that takes too much time? Or is it possible to add a section in the user interface in order to change the time out?
Alex Tran
Alex Tran2y ago
It should be uploaded so it won’t be uploaded again I believe
Joey
JoeyOP2y ago
I think it is uploading all again even if it says there is only 620 element to upload: Photos_US" ghcr.io/immich-app/immich-cli:latest upload --key AmH5Qko5EmNqzLPMyADoSAwMlqWVYqmsJ80kpEwKE --server http://192.168.1.96:2283/api /media/2TO_raid1/Photos_US --recursive --import Checking connectivity with Immich instance... Server status: OK Checking credentials... Login status: OK Successful authentication for user <email> Indexing local assets... Indexing complete, found 18725 local assets Comparing local assets with those on the Immich instance... A total of 620 assets will be uploaded to the server Do you want to start upload now? (y/n) y Start uploading... Upload Progress | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% 33/18725 Cur I confirm, it's stop uploading when timeout occur I noticed, the cli stops at 620 items so I am wondering if the sentence "a total of xxx assets will.." is correct
Alex Tran
Alex Tran2y ago
The CLI stops at 620 items and the report is "A total of 620 assets will be uploaded to the server" so it is correct, yes?
Joey
JoeyOP2y ago
It's says 620 will be uploaded then it starts uploading, 18000 items then I noticed it's stop at 620 items
Alex Tran
Alex Tran2y ago
18000 is the total files, most were uploaded so when it said it will upload 620, it does exactly that. Agree that the message is a but confusing, we are working on a new CLI tool which will be more clear in term of feedback
Joey
JoeyOP2y ago
Yes I think there is 18000 items to upload, most of them are uploaded. 620 items left to upload. It's all the items it can't upload. That make sense. If you can add in the new cli an argument to manage the timeout it will be awesome 😁. Thanks for your amazing work guys

Did you find this page helpful?