https://dagster.io/ logo
Title
c

chrispc

08/16/2021, 3:53 PM
Hi team, I would like to ask for urgent help, please. Suddenly gRPC doesn't work . I am getting this error and the app is blocked. (I am using windows; I think Dagster hates Windows OS. I have never got these RPC issues using Linux)
a

alex

08/16/2021, 5:16 PM
are you able to run the command directly from that error message?
c

chrispc

08/16/2021, 5:18 PM
Yeah, this error is very common on windows machines. I run the command in a different terminal but it doesn't return anything.
a

alex

08/16/2021, 5:24 PM
Can you provide any more context about when this error occurs? Is it on initial launch of dagit? On repository reload?
c

chrispc

08/16/2021, 5:26 PM
@alex sure, thank you!. This error appears usually when I re run the entire system (Dagit and Daemon). Reload also show the same issue
@alex I just noticed something curious. I run Dagit, there is not any message error but when I open the browser (localhost:3000), the error automatically appears.
@chris @alex sorry guys, one question why are you using dynamic port only in windows system? ...\Anaconda3\envs\borrar\Lib\site-packages\dagster\grpc\server.py
@alex @chris I am verifying the status of the server and I got this:
hi @alex I found this. I have the prod system broke 😞
a

alex

08/16/2021, 7:27 PM
The
grpc
command should not return immediately if the server starts successfully, I am not surprised the second command fails since the server is no longer running if the process exited. Whatever is going wrong must be cause the server process to exit unexpectedly.
why are you using dynamic port only in windows system
windows does not support using the file system as a socket, so we have to use a network port
c

chrispc

08/16/2021, 8:29 PM
Hi @alex we found if we drop the heartbeat flag to start the server, the server works. What is the meaning heartbeat flag?
a

alex

08/16/2021, 8:57 PM
cc @daniel
d

daniel

08/16/2021, 8:59 PM
dagit periodically calls out to the gRPC server in a background thread - if dagit goes down, the heartbeats stop, and the server stops too
is there anything in the dagit output that might indicate that the thread that does heartbeats is dying for some reason
c

chrispc

08/16/2021, 10:00 PM
Hi @daniel I am not sure. I just hardcode heartbeat and heartbeat-timeout with FALSE. Now works!
:hmmnod: 1