Skip to content

The browser says MockHub could not start

Before it shows anything, a private installation’s web app asks the installation’s API what the installation is. When it cannot learn that, it stops on a page that names the API it asked and why. It shows nothing else and calls no other server:

MockHub could not start
The API at https://api.mockhub.example.com gave no answer: it is down or unreachable, took longer than 5 seconds, or the browser refused its certificate.

Try again asks again and opens the app as soon as the API answers, without reloading the page. The fixes below are for the installation’s operator, on its host.

The browser could not get an answer from the address in the message. A browser does not say why, so the message names the usual reasons together.

  1. Run ./mockhub status. If the services or readiness check fails, the API is down: fix what they name, or run ./mockhub install again to start what is stopped.
  2. If status is clean, check the address from the browser’s machine: the API_HOST DNS record must point at the host, and the browser must trust the certificate the edge serves for it. With TLS_MODE=internal, the browser trusts the edge’s root only once it is installed, as TLS describes.

It answered with HTTP status 502, 503 or another error

Section titled “It answered with HTTP status 502, 503 or another error”

The edge answered, but the API behind it did not. Run ./mockhub status and fix the failing service.

It answered, but not with a description of this installation

Section titled “It answered, but not with a description of this installation”

The address reaches a server that is not this installation’s API, such as a proxy’s own error page. Check that API_HOST in .env names the API’s host name, and that every proxy in front of the host passes it through unchanged.

The address answers as a different MockHub installation. API_HOST in .env names another installation’s API: correct it and run ./mockhub install again.

It could not read its installation’s settings

Section titled “It could not read its installation’s settings”
This page could not read its installation’s settings (/config.json), so it does not know which API to ask.

The web app’s own server did not hand it the installation’s settings, so it asks no API at all. Restart it with ./mockhub compose restart ui, then select Try again.

Send a support bundle with the full message and the time it appeared.

Report a problem with this page