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
    0

    PostAddFile returns 504 after a while

    Hello

    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: 93.165.xxx.xxx, server: mydomain.dk, request: "POST /umbraco/backoffice/umbracoapi/media/PostAddFile HTTP/2.0", upstream: "http://172.17.0.2:4000/umbraco/backoffice/umbracoapi/media/PostAddFile", host: "mydomain.dk", referrer: "https://mydomain.dk/umbraco"
    

    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 :)

    /Peter

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

    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.

    https://github.com/umbraco/Umbraco-CMS/pull/14269/

    Darren

Please Sign in or register to post replies

Write your reply to:

Draft