thunderbolt icon indicating copy to clipboard operation
thunderbolt copied to clipboard

Error Code: RECONCILE_DEFAULTS_FAILED

Open mrprofessork opened this issue 7 months ago • 1 comments

Error Code: RECONCILE_DEFAULTS_FAILED Error Message: Failed to reconcile default settings

Stack Trace: Error: Navigator locks are not available in an insecure context. Use a secure context such as HTTPS or http://localhost/.

This was an error because I tried to run this on a headless ubuntu server instance.

When I spun up the docker container after making the necessary changes to the env example file and renaming it to just ".env" The app was able to start fine. The issue came when I tried to access it over LAN because it's running on a headless ubuntu instance. The Docker compose yaml points to "localhost" in a number of sections for the main interface. See image. Image

I tried just changing the occurrences of localhost to my LAP IP in the yaml, but that didn't work either, I suspect there are other services that rely on that name as well.

I eventually settled on redirecting traffic going to localhost on ports 3000 and and also had to create a local CA to handle https. The reason I needed this was, the app refuses to run on http if not localhost, so to get it working over the LAN I had to create the CA and create the certs (self signed) to be able to get my LAN IP on https. I used mkcert. This may have been overkill but I just wanted to get this up to test it out. I can share the commands with you if you want. As well as my nginx config for the redirection. I had to do this for Ollama as well since it's running on that same machine.

Below is my nginx config, of course, change to suit your environment:

server { listen 443 ssl; server_name 192.168.1.186;

ssl_certificate     /etc/ssl/local/cert.pem;
ssl_certificate_key /etc/ssl/local/key.pem;

# Ollama proxy
location /ollama/ {
    proxy_pass http://127.0.0.1:11434/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
    proxy_buffering off;
    proxy_read_timeout 600s;
}

# API backend
location /v1/ {
    proxy_pass http://127.0.0.1:8000/v1/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

# Frontend
location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

}

Keep in mind that you will need to create the CA using mkcert before ocnfiguring nginx. A quick google search or any chatbot can tell you how to use mkcert.

Hopefully this helps someone having this issue.

mrprofessork avatar Apr 20 '26 18:04 mrprofessork

Thanks @mrprofessork for filing this at my behest in Zendesk ticket 4953. I will close it now. Thankful we have a public record of this!

rtanglao avatar Apr 20 '26 23:04 rtanglao