Unable to clone pkg-oss from hg.nginx.org – HTTP 503 Error

My issue:
I am unable to clone the pkg-oss Mercurial repository from https://hg.nginx.org/pkg-oss/. The command fails with an HTTP 503 Service Unavailable error.

How I encountered the problem:
This issue occurs during our CI build process when running the following command:

hg clone -r 1.25.5-1 https://hg.nginx.org/pkg-oss/

The error returned is:

abort: HTTP Error 503: Service Unavailable

We started seeing this consistently on April 17, 2025. We’ve verified that our network and environment are functioning normally, and the issue appears to be on the remote server side.

Solutions I’ve tried:

  • Retried the command several times over 30+ minutes.
  • Verified internet connectivity and DNS resolution from our CI environment.
  • Attempted to access the repository URL via browser – also unavailable.
  • Looked for mirrors or GitHub forks, but couldn’t confirm if they are up-to-date with the official repo.
  • No public status page was found for hg.nginx.org.

My config:

  • OS: Ubuntu 22.04 (CI runner environment)
  • Mercurial version: 6.5.1
  • CI system: Jenkins
  • Command used:
hg clone -r 1.25.5-1 https://hg.nginx.org/pkg-oss/
1 Like

I was having this issue but I switched to pulling the release from the pkg-oss repo on GitHub and that worked! Looks like maybe they’ve abandoned mercurial

The NGINX codebase was migrated from Mercurial to GitHub last September. The official NGINX codebase can be found on GitHub here.