Skip to content

[Install help] Connectivity issue: paperless-ai to -ngx API behind Traefik #468

@snl-r

Description

@snl-r

My paperless-ai (/setup) does not connect to paperless-ngx. This is on a dedicated remote server. NGX is running fine, behind Traefik (Pangolin). In NGX, I created an API key for the user and provided URL/user/key on the -ai /setup page. Error message in the GUI is "Failed to initialize connection to Paperless-ngx. Please check URL and Token." and docker logs -f paperless-ai = "[ERROR] Failed to initialize with credentials: connect ECONNREFUSED myIP:443" ... this looks like a CORS error maybe, since the creds are definitely ok, but in NGX docker_compose.env I already set PAPERLESS_URL=myURL, and also PAPERLESS_CSRF_TRUSTED_ORIGINS and PAPERLESS_ALLOWED_HOSTS and PAPERLESS_CORS_ALLOWED_HOSTS each to myUrl,aiURL,llmURL and restarted - the error remains the same. Pangolin does add SSO, and I added some rules (always allow from ai domain), and disabling SSO alltogether makes no difference either. What else could I be missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions