#2474·karakeep

I get UNAUTHORIZED right after I login through my Android app

Author: epifenyCreated Feb 11, 2026Updated Sep 26, 2026

Hello,

I'm self-hosting Pangolin (docker stack with traefik, crowdsec, gerbil and pangolin), very basic install using their documentation).

I also setup Karakeep to use the same Docker network and it's all working fine via the browser.

When I set the custom headers using Authorization: Basic <my pangolin resource Header Authentication user:pass | base64>, the debug logs show ALL GOOD:

Image

I'm then providing my Karakeep credentials in the login screen which it then tries to login, and I see this:

Image

I see these logs too:

# docker logs -f karakeep --since=5m
2026-02-11T07:30:51.356Z info: <-- POST /api/trpc/apiKeys.exchange?batch=1
2026-02-11T07:30:51.453Z info: --> POST /api/trpc/apiKeys.exchange?batch=1 200 96ms
2026-02-11T07:30:51.612Z info: <-- GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D
2026-02-11T07:30:51.612Z info: --> GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D 401 0ms
2026-02-11T07:30:52.652Z info: <-- GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D
2026-02-11T07:30:52.653Z info: --> GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D 401 1ms
2026-02-11T07:30:54.712Z info: <-- GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D
2026-02-11T07:30:54.713Z info: --> GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D 401 1ms
2026-02-11T07:30:55.043Z info: <-- GET /api/health
2026-02-11T07:30:55.044Z info: --> GET /api/health 200 1ms
2026-02-11T07:30:58.830Z info: <-- GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D
2026-02-11T07:30:58.831Z info: --> GET /api/trpc/bookmarks.getBookmarks?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22archived%22%3Afalse%2C%22useCursorV2%22%3Atrue%2C%22includeContent%22%3Afalse%2C%22direction%22%3A%22forward%22%7D%7D%7D 401 1ms

Here's my docker-comose.yml for Karakeep

# cat docker-compose.yml
services:
  web:
    image: ghcr.io/karakeep-app/karakeep:${KARAKEEP_VERSION:-release}
    restart: unless-stopped
    volumes:
      # By default, the data is stored in a docker volume called "data".
      # If you want to mount a custom directory, change the volume mapping to:
      # - /path/to/your/directory:/data
      - data:/data
    env_file:
      - .env
    environment:
      MEILI_ADDR: http://meilisearch:7700
      BROWSER_WEB_URL: http://chrome:9222
      # OPENAI_API_KEY: ...

      # You almost never want to change the value of the DATA_DIR variable.
      # If you want to mount a custom directory, change the volume mapping above instead.
      DATA_DIR: /data # DON'T CHANGE THIS
    container_name: karakeep
    networks:
      - karakeep_internal
      - pangolin
  chrome:
    image: gcr.io/zenika-hub/alpine-chrome:124
    restart: unless-stopped
    command:
      - --no-sandbox
      - --disable-gpu
      - --disable-dev-shm-usage
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=9222
      - --hide-scrollbars
    networks:
      - karakeep_internal
  meilisearch:
    image: getmeili/meilisearch:v1.13.3
    restart: unless-stopped
    env_file:
      - .env
    environment:
      MEILI_NO_ANALYTICS: "true"
    volumes:
      - meilisearch:/meili_data
    networks:
      - karakeep_internal

volumes:
  meilisearch:
  data:

networks:
  karakeep_internal:
    driver: bridge
  pangolin:
    external: true