Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Peter Nielsen 157 posts 245 karma points
    1 week ago
    Peter Nielsen

    PostAddFile returns 504 after a while


    I have a strange error. I have deployed Umbraco 11.3.1 to a Linux server with Dokku (herokuish) and Docker. I have set up a volume for the /umbraco/Data and the /media directories. In the beginning, it works as planned but after hours of usage, the /umbraco/backoffice/umbracoapi/media/PostAddFile endpoint fails with a 504. The upload bar runs as it usually do, but when it reach 100% and after a minute or so, this weird HTML error appears.

    If I redeploy the Docker container it works again until it doesn't.

    enter image description here enter image description here

    That is a Nginx error as far as I know.

    enter image description here

    In my nginx error log, I see this:

      2023/05/18 11:53:48 [error] 8165#8165: *30932 upstream timed out (110: Unknown error) while reading response header from upstream, client:, server:, request: "POST /umbraco/backoffice/umbracoapi/media/PostAddFile HTTP/2.0", upstream: "", host: "", referrer: ""

    I can't figure out if this is a docker, Umbraco, or an nginx error. Please help me in the right direction, or where/how to debug :)


  • Darren Clark 51 posts 227 karma points
    1 day ago
    Darren Clark

    Hey Peter,

    I am seeing a similar issue with Umbraco 11.1 within my staging environment in Azure and using storage account for media.

    The issue goes away after a site restart and deployment , but then comes back after a few days. However some editors can still upload media while others cannot.

    The umbraco log shows nothing. I have application insights logging on the web app in staging and nothing is showing up relating to postaddfile.

    Looks related to semaphore not releasing properly, maybe.

    I see there is a PR for partially resolving this, hopefully get released soon.


Please Sign in or register to post replies

Write your reply to: