Skip to main content

Linux Error: "Unable to Obtain Configuration"

Error Description​

The web interface displays a redirect error.

The logs from docker logs isign_server-isignwebcontrol-1 contain this error:

Exception occured during request processing: System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://MY_DOMAIN/ID/.well-known/openid-configuration'. Will retry at '01.01.0001 00:00:00 +00:00'. Exception: 'System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://MY_DOMAIN/ID/.well-known/openid-configuration'

You can open the URL https://MY_DOMAIN/ID/.well-known/openid-configuration in a browser. If you cannot, this is a different error.

The domain is configured as a local address in /etc/hosts:

127.0.1.1 MY_DOMAIN

Background​

iSign Server uses multiple Docker containers that communicate with each other. They use the configured URL, which is also used by external services. The host system's /etc/hosts file is also used by the containers. When they try to access https://MY_DOMAIN/ID/.well-known/openid-configuration, MY_DOMAIN resolves to a local IP address, such as 127.0.1.1. The reverse proxy cannot be reached through this address.

Solution​

The entry in /etc/hosts is not required for iSign. Remove it.

info

If an external tool such as cloud-init manages /etc/hosts, change the value in that tool instead.