https://dagster.io/ logo
Title
d

Dusty Shapiro

10/21/2022, 12:09 AM
I’m curious how my fellow K8s/Helm deployers troubleshoot erroring
dagster-user-deployments.deployments
The web UI only shows the error stating hat it can’t connect to the gRPC server, but curious the best way to surface the exception that is causing the server to fail, which I do now by
kubectl log <pod-name>
Thanks!
d

daniel

10/21/2022, 3:56 AM
Hey dusty: there’s a —lazy-load-user-code argument that you can add to the dagsterApiGrpcArgs that will make it so that if there’s an error importing your code, the server stays up and displays the error in dagit instead of crashing
❤️ 1
a

Andrea Giardini

10/21/2022, 7:29 AM
Ow that's useful! Is it documented somewhere? What i've been doing until now is catching it at docker build time. After the container is built I start it and probe the grpc server.
d

daniel

10/21/2022, 11:22 AM
It’s in the api docs - there’s a good case to be made that it should be the default behavior I think
a

Andrea Giardini

10/21/2022, 11:24 AM
Indeed I also believe that should be the default. I always try to avoid giving our developers too much k8s access but due to this they have no way to understand what is going wrong.
d

daniel

10/21/2022, 12:23 PM
We can probably do that for 1.1, might be a minor breaking change for some worklfows
d

Dusty Shapiro

10/21/2022, 12:27 PM
@daniel That’s exactly what I needed! Much appreciated (again!)
Also, for the record, I think it should be default behavior too
:dagster: 1