Forums

Free Web App Not Loading — 504 Load Balancer Timeout

Hello PythonAnywhere Support Team,

I am using a free PythonAnywhere account to deploy my OPTRIX Factory Operations web application.

Website: https://fahaddissohel.pythonanywhere.com/

Issue: The public website does not load. Sometimes the browser remains blank, and sometimes it displays a 504-loadbalancer error.

Configuration:

  • Python 3.11
  • FastAPI application using an ASGI-to-WSGI adapter (a2wsgi)
  • Source and working directory: /home/fahaddissohel/optrix_free
  • WSGI entry point imports the application from wsgi_entry.py

Tests completed:

  • Python application imports successfully.
  • WSGI application is callable.
  • Local FastAPI request returns HTTP 200.
  • Direct local WSGI request returns 200 OK.
  • The public website repeatedly times out.
  • Server logs show HARAKIRI worker timeouts and workers being killed.

Could you please help identify why public requests are timing out and advise whether there is a hosting, WSGI configuration, or application issue?

I would appreciate instructions compatible with a free account.

Thank you.

Try using ASGI app instead, see this help page.