504 Gateway Time-out ASP.NET Core net7.0 on ubuntu 22.04

Aleksey Volkov 0 Reputation points
2023-10-08T17:20:47.11+00:00
Hello! 
I hosted an ASP.NET Core net7.0 project with Nginx on ubuntu 22.04 and everything worked fine. 
After updating the project, the project no longer responds, the browser shows 504 time out.
If I create a new project in a new folder then it doesn't work either and the response is 504.
This is not the first time this problem has arisen; after the first time I reinstalled the system so that my project would start again.
What could be the reason for 504? 
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET Runtime
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-10-10T18:49:38.5866667+00:00

    it not ngnix, if both curl and wget fail calling the site directly (http://localhost:5000). your app is hanging. you should just a attach a debugger and see why or add better logging.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.