Salina Wu
03/22/2022, 2:16 AMgrpc_server
arguments - I'm confused by what location_name
should be. could someone please advise?daniel
03/22/2022, 2:32 PMload_from:
- grpc_server:
host: localhost
port: 3456
location_name: your_location_name_here
(assuming that your docker container is exposing that port so that it's reachable on the local machine).
You can verify that a gRPC server is running on the host/port that you expect by running
dagster api grpc-health-check -p 3456 -h localhost
(replacing the port and host value with yours)Salina Wu
03/22/2022, 3:20 PM<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1647962388.210395000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3129,"referenced_errors":[{"created":"@1647962388.210394000","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":163,"grpc_status":14}]}"
>
the command I run is this:
dagster api grpc-health-check -p 4000 -h 0.0.0.0
and my dockerfile, which I built and ran (I see it running in docker and I see this in the terminal window `2022-03-22 151931 +0000 - dagster.code_server - INFO - Started Dagster code server for file ops.py on port 4000 in process 1`:
FROM python:3.9
ENV DAGSTER_HOME=/opt/dagster/dagster_home
RUN mkdir -p $DAGSTER_HOME
COPY dagster.yaml $DAGSTER_HOME
# Add repository code
WORKDIR /opt/dagster/app
COPY ./* /opt/dagster/app
# ==> Add Dagster layer
RUN \
# Cron
apt-get update -yqq \
&& apt-get install -yqq cron \
# install requirements
&& pip install -r /opt/dagster/app/requirements.txt
# Run dagster gRPC server on port 4000
EXPOSE 4000
# Using CMD rather than ENTRYPOINT allows the command to be overridden in
# run launchers or executors to run other commands using this image
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "ops.py"]
any ideas what might be the issue?daniel
03/22/2022, 3:22 PMSalina Wu
03/22/2022, 3:23 PMdaniel
03/22/2022, 3:25 PMSalina Wu
03/22/2022, 3:27 PMSalina Wu
03/22/2022, 3:28 PM-h 0.0.0.0
flag in the dockerfile cmd as well, with both localhost and 0.0.0.0 in the healthcheck, still nothingdaniel
03/22/2022, 3:29 PMdaniel
03/22/2022, 3:30 PMdaniel
03/22/2022, 3:34 PMSalina Wu
03/22/2022, 3:38 PMSalina Wu
03/22/2022, 3:46 PMdagster api grpc -h 0.0.0.0 -p 4000 -f ops.py
) and then ran the healthcheck, and nothing came back - is that expected? looks like it's probably something to do with my docker run after alldaniel
03/22/2022, 3:48 PMdaniel
03/22/2022, 3:48 PMSalina Wu
03/22/2022, 4:33 PMdocker run -p 4000:4000 dagster_user_code:v3
daniel
03/22/2022, 4:34 PM