#1497: Error accessing the knowledge base
Отредактирована: сегодняSymptoms
An error occurred when opening the knowledge base:
Error: Instance not found!
The following error is observed in the logs of the swarmica-helpcenter-1 container:
[app] ERROR { status: 400, method: 'GET', url: 'http://django:5000/api/instance/' }
Or:
[app] ERROR { status: undefined, method: 'GET', url: 'https://my.swarmica.tld/api/instance/' }
Solution
To resolve the issue, follow these steps:
- Add the django value, separated by a comma, to the
DJANGO_ALLOWED_HOSTSvariable in the/root/swarmica/.envfile, for example:DJANGO_ALLOWED_HOSTS=my.swarmica.tld,django. - Uncomment the line
INSECURE_HTTP_SERVER=1 - Set the value of the variable
NEXT_PUBLIC_HELPCENTER_SERVER_API_URL=http://django:5000 - Reload the containers using the command:
docker compose down && docker compose up -d
Cause
The Swarmica server is not accessible to itself through the external network due to network settings.