Daniel Daum
02/21/2023, 2:46 AM/usr/local/lib/python3.10/site-packages/dagster/_core/workspace/context.py:602: UserWarning: Error loading repository location repository:dagster._core.errors.DagsterUserCodeUnreachableError: Could not reach user code server. gRPC Error code: UNAVAILABLE
The above exception was caused by the following exception:
daemon | grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
daemon | status = StatusCode.UNAVAILABLE
daemon | details = "failed to connect to all addresses"
daemon | debug_error_string = "{"created":"@1676946492.319074179","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3260,"referenced_errors":[{"created":"@1676946492.319073239","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":167,"grpc_status":14}]}"
1x Container - UI
1x Container - PostgreSQL DB
1x Container - Daemon
1x Container - User Code (I called it repository)
Here is a github gist to all of the following files: https://gist.github.com/daniel-daum/6d57b3c9f129e1f9f53985d7d14d35dc
Dockerfile_dagster
Dockerfile_repo
docker-compose.yaml
dagster.yaml
workspace.yaml
setup.py
docker compose stack trace
Notes:
- Docker compose works locally on my windows machine with & without docker(from source), but not on my linux instance (docker). (I did run docker compose on my local windows machine, and recieved this same error, but the use_code container still started up properly a second later.)
- This is also printed by the repo container: the AWS EC2 instance metadata IP appears for some reason?
repository | raise ReadTimeoutError(
repository | urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='169.254.169.254', port=80): Read timed out. (read timeout=5.0)