Davi
08/17/2023, 3:36 PMUnexpected GraphQL error
error info on my Dagster:
Operation name: RunsRootQuery
Message: Cannot return null for non-nullable field Run.mode.
Path: ["pipelineRunsOrError","results",2,"mode"]
Locations: [{"line":34,"column":3}]
Is anyone having something like that too?Tim Castillo
08/17/2023, 5:54 PMJosh Lloyd
08/17/2023, 6:06 PMJosh Lloyd
08/17/2023, 6:07 PMJosh Lloyd
08/17/2023, 6:09 PMOperation name: RunsRootQuery
Message: Cannot return null for non-nullable field Run.mode.
Path: ["pipelineRunsOrError","results",0,"mode"]
Locations: [{"line":26,"column":3}]
Davi
08/17/2023, 6:19 PMJosh Lloyd
08/17/2023, 8:46 PMOperation name: InstanceWarningQuery
Message: Cannot query field 'backfillId' on type 'PartitionBackfill'.
Path:
Locations: [{"line":10,"column":9}]
Josh Lloyd
08/17/2023, 8:50 PMalex
08/17/2023, 9:18 PMdagster
dagster-graphql
and dagster-webserver
/ dagit
packages all on the same version? Some of these errors observed in this thread arise when these packages are not in syncDavi
08/18/2023, 9:48 AMalex
08/18/2023, 2:21 PMpip list | grep dagster
?Davi
08/21/2023, 8:16 AM1.0.6
using Helm, and the pipeline was utilizing Dagster version 1.0.16
. This configuration had been functioning without any issues, and multiple pipelines were operational.
However, a problem arose when I encountered a GraphQL error. In an attempt to resolve this issue, I upgraded the Helm version of Dagster to the latest release, which was 1.4.7
. This upgrade successfully addressed the GraphQL error. However, an unintended consequence of this upgrade was that it caused all the other pipelines to fail. This was due to the fact that those pipelines were designed to work with older versions of Dagster.
Subsequently, I reverted back to the previous version, 1.0.6
, and the older pipelines began functioning properly once again. Unfortunately, this reinstated the GraphQL error. Upon closer examination, it became clear that this error was primarily associated with the historical run data. Specifically, whenever I attempted to access information about pipelines in progress or completed pipelines, the error would manifest, causing disruptions to the user interface.Davi
08/21/2023, 12:10 PM/usr/local/lib/python3.7/site-packages/dagster/_core/workspace/context.py:561: UserWarning: Error loading repository location us-opendata-etl:dagster._core.errors.DagsterUserCodeUnreachableError: Could not reach user code server
Stack Trace:
File "/usr/local/lib/python3.7/site-packages/dagster/_core/workspace/context.py", line 556, in _load_location
location = self._create_location_from_origin(origin)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/workspace/context.py", line 480, in _create_location_from_origin
return origin.create_location()
File "/usr/local/lib/python3.7/site-packages/dagster/_core/host_representation/origin.py", line 329, in create_location
return GrpcServerRepositoryLocation(self)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/host_representation/repository_location.py", line 547, in __init__
list_repositories_response = sync_list_repositories_grpc(self.client)
File "/usr/local/lib/python3.7/site-packages/dagster/_api/list_repositories.py", line 19, in sync_list_repositories_grpc
api_client.list_repositories(),
File "/usr/local/lib/python3.7/site-packages/dagster/_grpc/client.py", line 169, in list_repositories
res = self._query("ListRepositories", api_pb2.ListRepositoriesRequest)
File "/usr/local/lib/python3.7/site-packages/dagster/_grpc/client.py", line 115, in _query
raise DagsterUserCodeUnreachableError("Could not reach user code server") from e
The above exception was caused by the following exception:
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1692608615.831746170","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3260,"referenced_errors":[{"created":"@1692608615.831745169","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":167,"grpc_status":14}]}"
>
Stack Trace:
File "/usr/local/lib/python3.7/site-packages/dagster/_grpc/client.py", line 112, in _query
response = getattr(stub, method)(request_type(**kwargs), timeout=timeout)
File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
location_name=location_name, error_string=error.to_string()
WARNING: Invalid HTTP request received.
/usr/local/lib/python3.7/site-packages/dagster/_core/storage/pipeline_run.py:288: UserWarning: Found unhandled arguments from stored PipelineRun: dict_keys(['has_repository_load_data'])
"Found unhandled arguments from stored PipelineRun: {args}".format(args=kwargs.keys())
Traceback (most recent call last):
[...]
complete_nonnull_value
path=path,
graphql.error.base.GraphQLError: Cannot return null for non-nullable field Run.mode.
WARNING: Invalid HTTP request received.
WARNING: Invalid HTTP request received.
WARNING: Invalid HTTP request received.
WARNING: Invalid HTTP request received.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/graphql/execution/executor.py", line 481, in complete_value_catching_error
exe_context, return_type, field_asts, info, path, result
[...]
File "/usr/local/lib/python3.7/site-packages/graphql/execution/executor.py", line 547, in complete_value
exe_context, return_type, field_asts, info, path, result
File "/usr/local/lib/python3.7/site-packages/graphql/execution/executor.py", line 748, in complete_nonnull_value
path=path,
graphql.error.base.GraphQLError: Cannot return null for non-nullable field Run.mode.
Davi
08/21/2023, 12:11 PMalex
08/21/2023, 5:37 PMCould not reach user code serverThis indicates that the code grpc server (running the “pipelines” image) was unreachable, likely it failed to start and there is an error in those pod logs that is relevant.
graphql.error.base.GraphQLError: Cannot return null for non-nullable field Run.modethe details of this issue are here https://github.com/dagster-io/dagster/issues/15087#issuecomment-1679067325 • within the
webserver
and daemon
images, all dagster packages must be on the same version
• the version that is running in the webserver
and daemon
should be the same
• the version that is running in the webserver
and daemon
should be greater than whats running in your “pipeline” or code grpc server image. Put another way, the version used in the “pipelines” / grpc code server can be out of sync and and older version than what the webserver
/ daemon
is using.