[GH-ISSUE #1029] self_hosted docker-compose up langsmith err #137

Open
opened 2026-02-17 17:19:15 -05:00 by yindo · 0 comments
Owner

Originally created by @gsmini on GitHub (Oct 20, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/1029

Type of issue

issue / bug

Language

Python

Description

when i deploy langsmith with docker-compose from this doc: https://docs.langchain.com/langsmith/docker
i get this error

langchain-frontend-1          | Removing VITE_SUBDOMAIN from /tmp/build/assets/OnboardingBg-BsvXK5Mt.webp
langchain-frontend-1          | Processing /tmp/build/assets/application-DbfPOkLw.js ...
langchain-platform-backend-1  | {"timestamp":"2025-10-20T16:49:30.463842599Z","level":"WARN","source":{"function":"langchain.com/smith/logger.CreateLogger","file":"/app/logger/logger.go","line":70},"message":"quiet down routes","service":"platform-backend","routes":["/ok","/health"]}
langchain-platform-backend-1  | {"timestamp":"2025-10-20T16:49:30.464732722Z","level":"WARN","source":{"function":"langchain.com/smith/logger.CreateLogger","file":"/app/logger/logger.go","line":71},"message":"oauth scopes","service":"platform-backend","scopes":["email","profile","openid"]}
langchain-platform-backend-1  | {"timestamp":"2025-10-20T16:49:30.46515047Z","level":"INFO","source":{"function":"langchain.com/smith/redis.NewUniversalClient","file":"/app/redis/redis.go","line":167},"message":"redis instance settings","service":"platform-backend","addr":"langchain-redis:6379","max_retries":3,"min_retry_backoff_ms":8,"max_retry_backoff_ms":512,"dial_timeout_ms":5000,"read_timeout_ms":3000,"write_timeout_ms":3000,"pool_size":80}
langchain-platform-backend-1  | {"timestamp":"2025-10-20T16:49:30.465205325Z","level":"INFO","source":{"function":"langchain.com/smith/redis.NewUniversalClient","file":"/app/redis/redis.go","line":167},"message":"redis instance settings","service":"platform-backend","addr":"langchain-redis:6379","max_retries":3,"min_retry_backoff_ms":8,"max_retry_backoff_ms":512,"dial_timeout_ms":5000,"read_timeout_ms":3000,"write_timeout_ms":3000,"pool_size":80}
langchain-platform-backend-1  | 2025/10/20 16:49:30 ERROR Error parsing token err="token contains an invalid number of segments"
langchain-platform-backend-1 exited with code 1 (restarting)
Gracefully Stopping... press Ctrl+C again to force

this is my .env:

# Don't change this file. Instead, copy it to .env and change the values there. The default values will work out of the box as long as you provide your license key.
_REGISTRY=docker.io # Change to your desired Docker registry if you are using a private registry. Otherwise, leave it as is
_LANGSMITH_IMAGE_VERSION=0.11.3 # Change to the desired Langsmith image version
LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key
AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0 with PKCE. Set to mixed for basic auth or OAuth2.0 with OAuth2.0 client secret
OAUTH_CLIENT_ID="" # Required if AUTH_TYPE=oauth or mixed with OAuth2.0 with OAuth2.0 client secret
OAUTH_ISSUER_URL="" # Required if AUTH_TYPE=oauth or mixed with OAuth2.0 with OAuth2.0 client secret (https://your-issuer-url)
OAUTH_CLIENT_SECRET="" # Required if AUTH_TYPE=mixed with OAuth2.0 with OAuth2.0 client secret
LANGSMITH_URL=http://localhost:1980 # Change to your hosted Langsmith URL. Required if AUTH_TYPE=mixed with OAuth2.0 client secret
API_KEY_SALT=SQLdRw1iv6KqrzHBnJZSg45eAcCiHAOduQQsm5sWIJQ= # Change to your desired API key salt. Can be any random value. Must be set if AUTH_TYPE=oauth
POSTGRES_DATABASE_URI=postgres:postgres@langchain-db:5432/postgres # Change to your database URI if using external postgres. Otherwise, leave it as is
REDIS_DATABASE_URI=redis://langchain-redis:6379 # Change to your Redis URI if using external Redis. Otherwise, leave it as is
LOG_LEVEL=info # Change to your desired log level
MAX_ASYNC_JOBS_PER_WORKER=10 # Change to your desired maximum async jobs per worker. We recommend 10/suggest spinning up more replicas of the queue worker if you need more throughput
ASYNCPG_POOL_MAX_SIZE=3 # Change the PG pool size based off your pg instance/requirements.
CLICKHOUSE_HOST=langchain-clickhouse # Change to your Clickhouse host if using external Clickhouse. Otherwise, leave it as is
CLICKHOUSE_USER=default # Change to your Clickhouse user if needed
CLICKHOUSE_DB=default # Change to your Clickhouse database if needed
CLICKHOUSE_PORT=8123 # Change to your Clickhouse port if needed
CLICKHOUSE_TLS=false # Change to true if you are using TLS to connect to Clickhouse. Otherwise, leave it as is
CLICKHOUSE_CLUSTER= # Change to your Clickhouse cluster if using a replicated cluster. Otherwise, leave it as is
CLICKHOUSE_PASSWORD=password # Change to your Clickhouse password if needed
CLICKHOUSE_NATIVE_PORT=9000 # Change to your Clickhouse native port if needed
ORG_CREATION_DISABLED=false # Set to true if you want to disable org creation
WORKSPACE_SCOPE_ORG_INVITES_ENABLED=false # Set to true if you want to disable workspace scope org invites
PERSONAL_ORGS_DISABLED=false # Set to true if you want to disable personal orgs
TTL_ENABLED=true # Set to true if you want to enable TTL for your data
TRACE_TIER_TTL_DURATION_SEC_MAP='{"longlived":34560000,"shortlived":1209600}'
BLOB_STORAGE_ENABLED=false # Set to true if you want to enable blob storage
BLOB_STORAGE_BUCKET_NAME=langsmith-blob-storage # Change to your desired blob storage bucket name
BLOB_STORAGE_API_URL=https://s3.us-west-2.amazonaws.com # Change to your desired blob storage API URL
BLOB_STORAGE_ACCESS_KEY=your-access-key # Change to your desired blob storage access key
BLOB_STORAGE_ACCESS_KEY_SECRET=your-access-key-secret # Change to your desired blob storage access key secret
CH_SEARCH_ENABLED=true # Set to false if you do not want to store tokenized inputs/outputs in clickhouse
BASIC_AUTH_ENABLED=true # Set to true if you want to enable basic auth
BASIC_AUTH_JWT_SECRET=YL0zxztAGgOHH89zKYZTyMDvABakeqlUmKeGR9mfdhc= # Change to your desired basic auth JWT secret
INITIAL_ORG_ADMIN_EMAIL=xxxx@sina.cn # Change to your desired initial org admin email. Only used if BASIC_AUTH_ENABLED=true
INITIAL_ORG_ADMIN_PASSWORD=xxx@sina.cnA1-3 # Change to your desired initial org admin password. Needs to be at least 12 characters long, contain at least one lowercase, one uppercase, and one special character. Only used if BASIC_AUTH_ENABLED=true
Originally created by @gsmini on GitHub (Oct 20, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/1029 ### Type of issue issue / bug ### Language Python ### Description when i deploy langsmith with docker-compose from this doc: https://docs.langchain.com/langsmith/docker i get this error ```python langchain-frontend-1 | Removing VITE_SUBDOMAIN from /tmp/build/assets/OnboardingBg-BsvXK5Mt.webp langchain-frontend-1 | Processing /tmp/build/assets/application-DbfPOkLw.js ... langchain-platform-backend-1 | {"timestamp":"2025-10-20T16:49:30.463842599Z","level":"WARN","source":{"function":"langchain.com/smith/logger.CreateLogger","file":"/app/logger/logger.go","line":70},"message":"quiet down routes","service":"platform-backend","routes":["/ok","/health"]} langchain-platform-backend-1 | {"timestamp":"2025-10-20T16:49:30.464732722Z","level":"WARN","source":{"function":"langchain.com/smith/logger.CreateLogger","file":"/app/logger/logger.go","line":71},"message":"oauth scopes","service":"platform-backend","scopes":["email","profile","openid"]} langchain-platform-backend-1 | {"timestamp":"2025-10-20T16:49:30.46515047Z","level":"INFO","source":{"function":"langchain.com/smith/redis.NewUniversalClient","file":"/app/redis/redis.go","line":167},"message":"redis instance settings","service":"platform-backend","addr":"langchain-redis:6379","max_retries":3,"min_retry_backoff_ms":8,"max_retry_backoff_ms":512,"dial_timeout_ms":5000,"read_timeout_ms":3000,"write_timeout_ms":3000,"pool_size":80} langchain-platform-backend-1 | {"timestamp":"2025-10-20T16:49:30.465205325Z","level":"INFO","source":{"function":"langchain.com/smith/redis.NewUniversalClient","file":"/app/redis/redis.go","line":167},"message":"redis instance settings","service":"platform-backend","addr":"langchain-redis:6379","max_retries":3,"min_retry_backoff_ms":8,"max_retry_backoff_ms":512,"dial_timeout_ms":5000,"read_timeout_ms":3000,"write_timeout_ms":3000,"pool_size":80} langchain-platform-backend-1 | 2025/10/20 16:49:30 ERROR Error parsing token err="token contains an invalid number of segments" langchain-platform-backend-1 exited with code 1 (restarting) Gracefully Stopping... press Ctrl+C again to force ``` this is my .env: ``` # Don't change this file. Instead, copy it to .env and change the values there. The default values will work out of the box as long as you provide your license key. _REGISTRY=docker.io # Change to your desired Docker registry if you are using a private registry. Otherwise, leave it as is _LANGSMITH_IMAGE_VERSION=0.11.3 # Change to the desired Langsmith image version LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0 with PKCE. Set to mixed for basic auth or OAuth2.0 with OAuth2.0 client secret OAUTH_CLIENT_ID="" # Required if AUTH_TYPE=oauth or mixed with OAuth2.0 with OAuth2.0 client secret OAUTH_ISSUER_URL="" # Required if AUTH_TYPE=oauth or mixed with OAuth2.0 with OAuth2.0 client secret (https://your-issuer-url) OAUTH_CLIENT_SECRET="" # Required if AUTH_TYPE=mixed with OAuth2.0 with OAuth2.0 client secret LANGSMITH_URL=http://localhost:1980 # Change to your hosted Langsmith URL. Required if AUTH_TYPE=mixed with OAuth2.0 client secret API_KEY_SALT=SQLdRw1iv6KqrzHBnJZSg45eAcCiHAOduQQsm5sWIJQ= # Change to your desired API key salt. Can be any random value. Must be set if AUTH_TYPE=oauth POSTGRES_DATABASE_URI=postgres:postgres@langchain-db:5432/postgres # Change to your database URI if using external postgres. Otherwise, leave it as is REDIS_DATABASE_URI=redis://langchain-redis:6379 # Change to your Redis URI if using external Redis. Otherwise, leave it as is LOG_LEVEL=info # Change to your desired log level MAX_ASYNC_JOBS_PER_WORKER=10 # Change to your desired maximum async jobs per worker. We recommend 10/suggest spinning up more replicas of the queue worker if you need more throughput ASYNCPG_POOL_MAX_SIZE=3 # Change the PG pool size based off your pg instance/requirements. CLICKHOUSE_HOST=langchain-clickhouse # Change to your Clickhouse host if using external Clickhouse. Otherwise, leave it as is CLICKHOUSE_USER=default # Change to your Clickhouse user if needed CLICKHOUSE_DB=default # Change to your Clickhouse database if needed CLICKHOUSE_PORT=8123 # Change to your Clickhouse port if needed CLICKHOUSE_TLS=false # Change to true if you are using TLS to connect to Clickhouse. Otherwise, leave it as is CLICKHOUSE_CLUSTER= # Change to your Clickhouse cluster if using a replicated cluster. Otherwise, leave it as is CLICKHOUSE_PASSWORD=password # Change to your Clickhouse password if needed CLICKHOUSE_NATIVE_PORT=9000 # Change to your Clickhouse native port if needed ORG_CREATION_DISABLED=false # Set to true if you want to disable org creation WORKSPACE_SCOPE_ORG_INVITES_ENABLED=false # Set to true if you want to disable workspace scope org invites PERSONAL_ORGS_DISABLED=false # Set to true if you want to disable personal orgs TTL_ENABLED=true # Set to true if you want to enable TTL for your data TRACE_TIER_TTL_DURATION_SEC_MAP='{"longlived":34560000,"shortlived":1209600}' BLOB_STORAGE_ENABLED=false # Set to true if you want to enable blob storage BLOB_STORAGE_BUCKET_NAME=langsmith-blob-storage # Change to your desired blob storage bucket name BLOB_STORAGE_API_URL=https://s3.us-west-2.amazonaws.com # Change to your desired blob storage API URL BLOB_STORAGE_ACCESS_KEY=your-access-key # Change to your desired blob storage access key BLOB_STORAGE_ACCESS_KEY_SECRET=your-access-key-secret # Change to your desired blob storage access key secret CH_SEARCH_ENABLED=true # Set to false if you do not want to store tokenized inputs/outputs in clickhouse BASIC_AUTH_ENABLED=true # Set to true if you want to enable basic auth BASIC_AUTH_JWT_SECRET=YL0zxztAGgOHH89zKYZTyMDvABakeqlUmKeGR9mfdhc= # Change to your desired basic auth JWT secret INITIAL_ORG_ADMIN_EMAIL=xxxx@sina.cn # Change to your desired initial org admin email. Only used if BASIC_AUTH_ENABLED=true INITIAL_ORG_ADMIN_PASSWORD=xxx@sina.cnA1-3 # Change to your desired initial org admin password. Needs to be at least 12 characters long, contain at least one lowercase, one uppercase, and one special character. Only used if BASIC_AUTH_ENABLED=true ```
yindo added the langsmithexternal labels 2026-02-17 17:19:15 -05:00
yindo changed title from self_hosted docker-compose up langsmith err to [GH-ISSUE #1029] self_hosted docker-compose up langsmith err 2026-06-05 17:25:15 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#137