#ApiError When Uploading a Large (5 GB) Video

1 messages · Page 1 of 1 (latest)

robust bison
#

Hello, I am self-hosting Immich using docker compose (stack can be found below). And I have been getting errors when trying to upload a large video file through the web interface. The error would be named: ApiError in the web interface.

Running docker logs on each immich container wouldn't reveal any useful information, and I am not sure where the error logs are in the containers. I have tried setting the IMMICH_LOG_LEVEL environment variable to various values, but still I would not get a useful error message.

Here is my compose stack, any help would be very appreciated!

restive fernBOT
#

:wave: Hey @robust bison,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have 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)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

restive fernBOT
bright lava
#

Is your reverse proxy allow large body size?

robust bison
#

I think so? I'm looking into that currently, I am using Traefik. Been fiddling around with the settings but no luck yet

bright lava
calm junco
#

Did you change your traefik timeout? Default is 60s

echo yoke
#

are you using cloudflare proxy?

robust bison
robust bison
robust bison
#

I also don't think my setup includes a buffering middleware, like it does in that post

#

I added these values to my traefik.yml file as well to ensure that it wasn't a timeout issue, but I still got the ApiError

api:
  dashboard: true
  debug: true
entryPoints:
  http:
    address: ":80"
  https:
    address: ":443"
    transport:
      respondingTimeouts:
        readTimeout: 900
        writeTimeout: 900
        idleTimeout: 900
robust bison
#

I've added this configuration to Traefik too

#

I think its an issue with Immich

calm junco
#

what URL and port are you using locally?

calm junco
#

4.4 GiB is 4.7 billion bytes, which is really close to your limit, not sure about the transport overhead but that needs to be higher

robust bison
# calm junco what URL and port are you using locally?

The URL is my domain name, but I added an entry to my hosts file which maps the domain name to the local IP of my server, going to port 443. I verified that its going directly to my server and not through Cloudflare by using the Network tab in Firefox, and just highlighting over the domain name to show its resolved IP.

robust bison
#

I just tried with a 1.6GB file that would fail prior, and now it worked

#

let me try increasing the limit even further and trying again

robust bison
#

It worked! That fixed it, thank you for the support

calm junco
#

Glad it helped. In the future, please connect direct to port :2283