Skip to content

When using "Ask": No cookie auth credentials found #667

@perelin

Description

@perelin

Hey all, Im trying to get Sourcebot running locally. Kind of a bumpy ride so far, but the LLMs where helpful enough. I got to the point where I want to use the "Ask" feature and I get the error: "No cookie auth credentials found". Any ideas? I configured OpenRouter Claude Sonnet 4.5.

Here is my config.json

{
  "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
  "connections": {
    "starter-connection": {
      "type": "github",
      "repos": ["sourcebot-dev/sourcebot", "comictagger/comictagger"]
    }
  },
  "models": [
    {
      "provider": "openrouter",
      "model": "anthropic/claude-sonnet-4.5",
      "displayName": "Openrouter anthropic/claude-sonnet-4.5",
      "token": {
        "env": "OPENROUTER_API_KEY"
      },
      "baseUrl": "https://openrouter.ai/api/v1"
    }
  ]
}

Here is my docker-compose

services:
  init-config:
    image: alpine:latest
    volumes:
      - sourcebot_data:/data
    command: sh -c 'if [ ! -f /data/config.json ]; then echo "{\"connections\":{\"starter-connection\":{\"type\":\"github\",\"repos\":[\"sourcebot-dev/sourcebot\"]}}}" > /data/config.json; fi'

  sourcebot:
    image: ghcr.io/sourcebot-dev/sourcebot:latest
    user: sourcebot
    restart: unless-stopped
    container_name: sourcebot
    depends_on:
      init-config:
        condition: service_completed_successfully
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy
    ports:
      - "3000:3000"
    volumes:
      - sourcebot_data:/data
    environment:
      - CONFIG_PATH=/data/config.json
      #- AUTH_URL=${AUTH_URL:-http://localhost:3000}
      - AUTH_URL=http://localhost:3000
      - AUTH_SECRET=${AUTH_SECRET:-KEYSTRING} # CHANGEME: generate via `openssl rand -base64 33`
      - SOURCEBOT_ENCRYPTION_KEY=${SOURCEBOT_ENCRYPTION_KEY:-KEYSTRING} # CHANGEME: generate via `openssl rand -base64 24`
      - DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/postgres} # CHANGEME
      - REDIS_URL=${REDIS_URL:-redis://redis:6379} # CHANGEME
      - SOURCEBOT_EE_LICENSE_KEY=${SOURCEBOT_EE_LICENSE_KEY:-}
      - SOURCEBOT_TELEMETRY_DISABLED=${SOURCEBOT_TELEMETRY_DISABLED:-true}
      - OPENROUTER_API_KEY=-KEYSTRING

      # For the full list of environment variables see:
      # https://docs.sourcebot.dev/docs/configuration/environment-variables

  postgres:
    image: docker.io/postgres:${POSTGRES_VERSION:-latest}
    restart: always
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 3s
      timeout: 3s
      retries: 10
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres # CHANGEME
      POSTGRES_DB: postgres
    ports:
      - 127.0.0.1:5432:5432
    volumes:
      - sourcebot_postgres_data:/var/lib/postgresql

  redis:
    image: docker.io/redis:${REDIS_VERSION:-latest}
    restart: always
    ports:
      - 127.0.0.1:6379:6379
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 3s
      timeout: 10s
      retries: 10
    volumes:
      - sourcebot_redis_data:/data

volumes:
  sourcebot_data:
    driver: local
  sourcebot_postgres_data:
    driver: local
  sourcebot_redis_data:
    driver: local

Here is the docker-compose log when I try to use "Ask"

sourcebot   | [web] | 2025-12-06T19:10:28.329Z error: [chat-agent] [object Object]
sourcebot   | [web] | 2025-12-06T19:10:28.330Z error: [chat-api] No cookie auth credentials found
sourcebot   | [web] | Error: No cookie auth credentials found
sourcebot   | [web] |     at /app/packages/web/.next/server/chunks/6144.js:27:11224
sourcebot   | [web] |     at runUpdateMessageJob (/app/packages/web/.next/server/chunks/6144.js:27:11617)
sourcebot   | [web] |     at Object.transform (/app/packages/web/.next/server/chunks/6144.js:27:4916)
sourcebot   | [web] |     at invokePromiseCallback (node:internal/webstreams/util:181:10)
sourcebot   | [web] |     at Object.transformAlgorithm (node:internal/webstreams/util:186:23)
sourcebot   | [web] |     at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:519:37)
sourcebot   | [web] |     at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:565:10)
sourcebot   | [web] |     at node:internal/webstreams/transformstream:370:16
sourcebot   | [web] |     at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1120:5)
sourcebot   | [web] |     at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1235:5)
sourcebot   | [web] | 2025-12-06T19:10:28.335Z error: [chat-api] No output generated. Check the stream for errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ask_sbIssue related to Ask Sourcebot. https://docs.sourcebot.dev/docs/features/ask/overviewbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions