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 startThe 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.
Causes
Section titled “Causes”It gave no answer
Section titled “It gave no answer”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.
- Run
./mockhub status. If theservicesorreadinesscheck fails, the API is down: fix what they name, or run./mockhub installagain to start what is stopped. - If
statusis clean, check the address from the browser’s machine: theAPI_HOSTDNS record must point at the host, and the browser must trust the certificate the edge serves for it. WithTLS_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.
It is not a private MockHub installation
Section titled “It is not a private MockHub installation”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.
Still stuck
Section titled “Still stuck”Send a support bundle with the full message and the time it appeared.