Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Error: Request failed with status code 504 #20

Open
wjbeckett opened this issue Sep 7, 2022 · 15 comments
Open

Error: Request failed with status code 504 #20

wjbeckett opened this issue Sep 7, 2022 · 15 comments

Comments

@wjbeckett
Copy link

I'm uploading about 400 assets using the docker method and keep running into this error:
Error uploading asset [/import/20220815_065326_9A9FEC1A.mov]: Error: Request failed with status code 504

This happens for quite a few items. If I run it again, the errored assets seems to be less and less.

At the point now where I run the job and it tells me there are two assets to upload, and it seems to do so without error, however whenever I run the job, it says the same thing over and over.

image

@alextran1502
Copy link
Collaborator

Is this issue still persist with the latest version of the server 1.28.3?

@wjbeckett
Copy link
Author

It seems to have fixed the 504 error, I am still getting the app telling me it needs to upload the same assets over and over.
It runs and uploads all assets without error, and then if I run it again over the same folder, it says I need to upload the same amount again.

@alextran1502
Copy link
Collaborator

I assume those are duplicated asset. The duplication assets failed silently. We haven't update the CLI yet to reflect the duplicated error code

@wjbeckett
Copy link
Author

Ah okay I understand. So it'll always say there is the same amount of assets to upload as the previous run.
Like this:
image

@alextran1502
Copy link
Collaborator

Pretty crazy that you have that many duplicated. To make sure those are duplicated you can monitor the server log to see if the error message popped up.

@wjbeckett
Copy link
Author

That's what I mean, I don't believe they are duplicated assets.

@alextran1502
Copy link
Collaborator

Did you see anything while uploading in the server logs?

@wjbeckett
Copy link
Author

do the logs write to console? or are they stored within the microservices container?

@alextran1502
Copy link
Collaborator

Logs write to console, you can use this command https://docs.docker.com/engine/reference/commandline/logs/

The log for inserting will be in the immich-server container

@wjbeckett
Copy link
Author

I'm not seeing any logs relating to duplicates.
image

@alextran1502
Copy link
Collaborator

hmm strange. Time to rewrite CLI tool

@wjbeckett
Copy link
Author

Just got another 504 error too.
image

@alextran1502
Copy link
Collaborator

alextran1502 commented Sep 14, 2022

Ok! I will need to add better error message to handle these cases. Would you mind tell me how big is the video file? And did you use local IP or dns? Do you use Nginx as your reverse proxy?

@wjbeckett
Copy link
Author

Sure!
The file is 1.49GB in size and the upload is happening locally. No proxies involved.

@seriousm4x
Copy link

seriousm4x commented Feb 10, 2023

Same for me. My file is 2.5G. Also no rev proxy involved

Failed to upload 1 files  [
  {
    file: 'Z:\\Bilder\\xxxx.xx - iPhone\\IMG_0177.MOV',
    reason: Error: Request failed with status code 504
        at createError (C:\Users\max\AppData\Local\pnpm\global\5\.pnpm\axios@0.26.1\node_modules\axios\lib\core\createError.js:16:15)
        at settle (C:\Users\max\AppData\Local\pnpm\global\5\.pnpm\axios@0.26.1\node_modules\axios\lib\core\settle.js:17:12)
        at IncomingMessage.handleStreamEnd (C:\Users\max\AppData\Local\pnpm\global\5\.pnpm\axios@0.26.1\node_modules\axios\lib\adapters\http.js:322:11)
        at IncomingMessage.emit (node:events:525:35)
        at endReadableNT (node:internal/streams/readable:1359:12)
        at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
      config: [Object],
      request: [ClientRequest],
      response: [Object],
      isAxiosError: true,
      toJSON: [Function: toJSON]
    },
    response: '<html>\r\n' +
      '<head><title>504 Gateway Time-out</title></head>\r\n' +
      '<body>\r\n' +
      '<center><h1>504 Gateway Time-out</h1></center>\r\n' +
      '<hr><center>nginx/1.23.3</center>\r\n' +
      '</body>\r\n' +
      '</html>\r\n'
  }
]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants