事象
datadog-agentのインストール後、redashを起動しようとしたら以下のエラーが発生
root@redash:/opt/redash# docker-compose up -d Creating network "redash_default" with the default driver Creating redash_redis_1 ... done Creating redash_postgres_1 ... done Creating redash_scheduler_1 ... Creating redash_server_1 ... error Creating redash_adhoc_worker_1 ... Creating redash_scheduled_worker_1 ... Creating redash_scheduler_1 ... done ERROR: for redash_server_1 Cannot start service server: b'driver failed programming external connectivity on endpoint redash_server_1 (3Creating redash_adhoc_worker_1 ... doneCreating redash_scheduled_worker_1 ... done ERROR: for server Cannot start service server: b'driver failed programming external connectivity on endpoint redash_server_1 (3c189443e5db4331e8fe8193453ef761955d0b0315f32afa69afb90e56c8d6b0): Error starting userland proxy: listen tcp 0.0.0.0:5000: bind: address already in use' ERROR: Encountered errors while bringing up the project. root@redash:/opt/redash#
環境
ami : "ami-0c7d9b740e997aa69" #redash-5.0.2-b5486-build2-ap-northeast-1
調査
ポート5000がすでに使われている
Error starting userland proxy: listen tcp 0.0.0.0:5000: bind: address already in use
redash-serviceのポートとして利用しようとしてる
services: server: <<: *redash-service command: server ports: - "5000:5000" environment: REDASH_WEB_WORKERS: 4
5000番を使ってるのだれ?
# lsof -i:5000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME agent 809 dd-agent 3u IPv4 20804 0t0 TCP localhost:5000 (LISTEN)
datadog-agentのインストールはansibleで、公式のroleを使って実施
対応
redashのポート番号を変えた