Connection Timeout Error When Running Phoenix Locally with Docker
๐ Hello, team! I am a new user at phoenix. I tried the phoenix hosted version and was able to log spans and traces of my llm applicaiton. Now I want to test with the docker version locally I have started the phoenix instance in docker using docker compose file. Now with the configuration added to the llm application with values changed to log traces I get connection time out error as connection not established. Phoenix has started as container with these details as I added below: phoenix-1 | --------------------------- phoenix-1 | โ Migrations completed in 0.058 seconds. phoenix-1 | INFO: Started server process [1] phoenix-1 | INFO: Waiting for application startup. phoenix-1 | phoenix-1 | phoenix-1 | โโโโโโโ โโโ โโโ โโโโโโโ โโโโโโโโโโโโ โโโโโโโโโ โโโ phoenix-1 | โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ phoenix-1 | โโโโโโโโโโโโโโโโโโโ โโโโโโโโโ โโโโโโ โโโโโโ โโโโโโ phoenix-1 | โโโโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโ โโโโโโ phoenix-1 | โโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโ phoenix-1 | โโโ โโโ โโโ โโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ โโโ v10.12.0 phoenix-1 | phoenix-1 | | phoenix-1 | | ๐ Join our Community ๐ phoenix-1 | | https://arize-ai.slack.com/join/shared_invite/zt-2w57bhem8-hq24MB6u7yE_ZF_ilOYSBw#/shared-invite/email phoenix-1 | | phoenix-1 | | โญ๏ธ Leave us a Star โญ๏ธ phoenix-1 | | https://github.com/Arize-ai/phoenix phoenix-1 | | phoenix-1 | | ๐ Documentation ๐ phoenix-1 | | https://arize.com/docs/phoenix phoenix-1 | | phoenix-1 | | ๐ Phoenix Server ๐ phoenix-1 | | Phoenix UI: http://0.0.0.0:6006 phoenix-1 | | phoenix-1 | | Authentication: False phoenix-1 | | Log traces: phoenix-1 | | - gRPC: http://0.0.0.0:4317 phoenix-1 | | - HTTP: http://0.0.0.0:6006/v1/traces phoenix-1 | | Storage: postgresql://postgres:***@db:5432/postgres phoenix-1 | INFO: Application startup complete. phoenix-1 | INFO: Uvicorn running on http://0.0.0.0:6006 (Press CTRL+C to quit) The configuration that I am using for llm application locally is this: from phoenix.otel import register import os os.environ["PHOENIX_COLLECTOR_ENDPOINT"] = "http://0.0.0.0:6006" tracer_provider = register( project_name="req_business_requirements_synthesizer_agent", endpoint="http://0.0.0.0:6006/v1/traces", auto_instrument=True, set_global_tracer_provider=False ) Now the application has also started with the tracing in phoenix as what the terminal text says: INFO:phoenix.config:๐ Ensuring phoenix working directory: /home/sdlcuser/.phoenix INFO:phoenix.inferences.inferences:Dataset: phoenix_inferences_61730e64-bed2-4e68-ad68-34af7b661b44 initialized ๐ญ OpenTelemetry Tracing Details ๐ญ | Phoenix Project: req_business_requirements_synthesizer_agent | Span Processor: SimpleSpanProcessor | Collector Endpoint: http://0.0.0.0:6006/v1/traces | Transport: HTTP + protobuf | Transport Headers: {} | | Using a default SpanProcessor. add_span_processor will overwrite this default. | | โ ๏ธ WARNING: It is strongly advised to use a BatchSpanProcessor in production environments. Note: The error I add in follow up message
