Skip to content

Installation without Docker – 401 Unauthorized Errors (Missing Authorization Header)  #12

@FaboulousSan

Description

@FaboulousSan

Hello,
I’m encountering persistent 401 Unauthorized errors during a non-Docker installation of [Termix/your application]. The browser console and curl requests return:

Nginx is configured the same way for ports 80 and 443.
Otherwise, the application works fine.
However, I can't figure out why I'm getting this error, and I'd really like to understand it!

In the browser console:

⚠️ [WARN] 🔐 [AUTH] Auth failed: GET /users/db-health - Missing Authorization header
GET http://ip/users/db-health [HTTP/1.1 401 Unauthorized 66ms]
{"error":"Missing Authorization header"}

/users/me:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
[14:36:59.569] ⚠️ [WARN] 🔐 [AUTH] Auth failed: GET /users/me - Missing authentication token
GET http://ip/users/db-health 401 (Unauthorized)

My .env file:

VERSION=1.7.3
PORT=30001
NODE_ENV=production
DATA_DIR=/opt/termix/data/db

Auto-generated security keys

JWT_SECRET=9dca041c713062b7e1f034d9d22ace2cb875e1040d3804daeab3b6fcdd5d92e8
DATABASE_KEY=8a7a72d5397daf7ed80b702021aa8aef04f2c761afda330142266632636585f4
INTERNAL_AUTH_TOKEN=53da83323be53e67edbfdda43ea8651de8ca43305651ef1b715c21541e82b045

There are no error logs in Nginx or Termix at all.
Could you help me understand why?
Thank you for your work and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions