500 Internal Server Error

The server encountered an unexpected failure while trying to fulfil the request.

All HTTP status codes

What does HTTP 500 mean?

A 500 is a starting point rather than a root cause. It can represent a template exception, failed database connection, invalid runtime configuration or another unhandled condition. Match one failing request to application and server logs before changing infrastructure. Keep the public error page free of secrets while retaining enough internal context to identify the failing operation.

An investigation example

Illustrative release investigation
Response: 500 Internal Server Error on article pages
Exception: template references a missing field
Homepage remains available.
Action: repair or roll back the incompatible release.
Verify: representative articles render and new exceptions stop appearing under normal traffic.

Common causes

  • A deployment introduces an exception, incompatible migration or missing runtime configuration.
  • Database, cache, filesystem or external-service access fails and the application does not recover.
  • Permissions, exhausted resources or a misconfigured web-server module interrupt request handling.

Diagnose the response

Use the request time and identifier to locate the first relevant exception, then check what changed before the failures began.

  • Record the timestamp, URL, method and request identifier, then inspect application and web-server logs for the matching failure. Keep stack traces and secrets out of the public error page.
  • Compare affected routes and recent changes. If the failure began with a release, review deployment health and use the established rollback procedure when restoring the previous version is safer than debugging in production.
  • Check dependency connectivity, disk space and configuration only in relation to the recorded error. Avoid changing several unrelated settings at once, which makes the actual cause harder to establish.
  • Reproduce the failing path with safe input and verify the fix through the same route. A recovered homepage does not prove that checkout, uploads or authenticated pages also work.

What it means for website monitoring

When Sitepulse reports 500, preserve the affected URL and timestamp. Check the specific route and representative neighbouring pages after recovery rather than relying on the homepage alone.

Reference