langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://smith.langchain.com/
MIT License
385 stars 71 forks source link

Issue: I using Docker to setup langsmith there's some error layout #802

Closed gabrielpondc closed 3 months ago

gabrielpondc commented 3 months ago

Issue you'd like to raise.

docker-compose up
WARN[0000] The "CLICKHOUSE_HOST" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CLICKHOUSE_NATIVE_PORT" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CLICKHOUSE_USER" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CLICKHOUSE_PASSWORD" variable is not set. Defaulting to a blank string. 
WARN[0000] The "CLICKHOUSE_DB" variable is not set. Defaulting to a blank string. 
WARN[0000] The "LANGSMITH_LICENSE_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OPENAI_API_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_ISSUER_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "API_KEY_SALT" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_ISSUER_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "LANGSMITH_LICENSE_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OPENAI_API_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_ISSUER_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "API_KEY_SALT" variable is not set. Defaulting to a blank string. 
WARN[0000] The "LANGSMITH_LICENSE_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OPENAI_API_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_ISSUER_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "API_KEY_SALT" variable is not set. Defaulting to a blank string. 
WARN[0000] The "LANGSMITH_LICENSE_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OPENAI_API_KEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OAUTH_ISSUER_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] The "API_KEY_SALT" variable is not set. Defaulting to a blank string. 
WARN[0000] /2T/code/cli/docker-compose.yaml: `version` is obsolete 
[+] Running 10/10
 ✔ Container cli-langchain-playground-1        Created                          1.4s 
 ✔ Container cli-langchain-clickhouse-1        Created                          1.3s 
 ✔ Container cli-langchain-db-1                Created                          1.4s 
 ✔ Container cli-langchain-redis-1             Created                          1.3s 
 ✔ Container cli-clickhouse-setup-1            Created                          1.0s 
 ✔ Container cli-postgres-setup-1              Created                          1.0s 
 ✔ Container cli-langchain-platform-backend-1  Created                          1.1s 
 ✔ Container cli-langchain-backend-1           Created                          1.2s 
 ✔ Container cli-langchain-queue-1             Created                          1.2s 
 ✔ Container cli-langchain-frontend-1          Created                          0.7s 
Attaching to clickhouse-setup-1, langchain-backend-1, langchain-clickhouse-1, langchain-db-1, langchain-frontend-1, langchain-platform-backend-1, langchain-playground-1, langchain-queue-1, langchain-redis-1, postgres-setup-1
langchain-redis-1             | 1:C 18 Jun 2024 07:56:02.132 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
langchain-redis-1             | 1:C 18 Jun 2024 07:56:02.132 * Redis version=7.2.1, bits=64, commit=00000000, modified=0, pid=1, just started
langchain-redis-1             | 1:C 18 Jun 2024 07:56:02.132 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.132 * monotonic clock: POSIX clock_gettime
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.133 * Running mode=standalone, port=6379.
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * Server initialized
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * Loading RDB produced by version 7.2.1
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * RDB age 682 seconds
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * RDB memory usage when created 0.85 Mb
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * Done loading RDB, keys loaded: 0, keys expired: 0.
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * DB loaded from disk: 0.000 seconds
langchain-redis-1             | 1:M 18 Jun 2024 07:56:02.135 * Ready to accept connections tcp
langchain-clickhouse-1        | /entrypoint.sh: create new user 'default' instead 'default'
langchain-db-1                | 
langchain-db-1                | PostgreSQL Database directory appears to contain a database; Skipping initialization
langchain-db-1                | 
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/config.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
langchain-clickhouse-1        | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
langchain-clickhouse-1        | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
langchain-db-1                | 2024-06-18 07:56:02.749 UTC [1] LOG:  starting PostgreSQL 14.7 (Debian 14.7-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
langchain-db-1                | 2024-06-18 07:56:02.749 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
langchain-db-1                | 2024-06-18 07:56:02.749 UTC [1] LOG:  listening on IPv6 address "::", port 5432
langchain-db-1                | 2024-06-18 07:56:02.819 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
langchain-playground-1        | yarn run v1.22.19
langchain-playground-1        | $ node build/index.js
langchain-db-1                | 2024-06-18 07:56:02.897 UTC [27] LOG:  database system was interrupted; last known up at 2024-06-18 07:43:19 UTC
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/config.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
langchain-clickhouse-1        | Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/config.xml'.
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/users.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/users.d/default-user.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/users.d/users.xml'.
langchain-clickhouse-1        | Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'.
langchain-db-1                | 2024-06-18 07:56:03.165 UTC [27] LOG:  database system was not properly shut down; automatic recovery in progress
langchain-db-1                | 2024-06-18 07:56:03.191 UTC [27] LOG:  redo starts at 0/1C566F0
langchain-db-1                | 2024-06-18 07:56:03.191 UTC [27] LOG:  invalid record length at 0/1C56728: wanted 24, got 0
langchain-db-1                | 2024-06-18 07:56:03.191 UTC [27] LOG:  redo done at 0/1C566F0 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
langchain-db-1                | 2024-06-18 07:56:03.366 UTC [1] LOG:  database system is ready to accept connections
langchain-clickhouse-1        | 
langchain-clickhouse-1        | /entrypoint.sh: create database 'default'
langchain-playground-1        | Server listening at http://0.0.0.0:3001
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/config.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
langchain-clickhouse-1        | Logging trace to /var/log/clickhouse-server/clickhouse-server.log
langchain-clickhouse-1        | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/config.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
langchain-clickhouse-1        | Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/config.xml'.
langchain-clickhouse-1        | Processing configuration file '/etc/clickhouse-server/users.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/users.d/default-user.xml'.
langchain-clickhouse-1        | Merging configuration file '/etc/clickhouse-server/users.d/users.xml'.
langchain-clickhouse-1        | Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'.
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1 exited with code 255
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
clickhouse-setup-1 exited with code 1
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1 exited with code 255
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
clickhouse-setup-1            | error: dial tcp :0: connect: connection refused
postgres-setup-1              | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
postgres-setup-1              | INFO  [alembic.runtime.migration] Will assume transactional DDL.
postgres-setup-1              | FAILED: Can't locate revision identified by 'fb388f1d80b2'
postgres-setup-1              | ERROR [alembic.util.messaging] Can't locate revision identified by 'fb388f1d80b2'

Suggestion:

No response

hinthornw commented 3 months ago

Hi @gabrielpondc - self-hosting LangSmith requires an enterprise license - if your team would like to discuss purchasing an annual license, please contact our support email address to continue the conversation.

Otherwise, we recommend using our public cloud offering at https://smith.langchain.com.

Thanks for understanding!