# dagster-cloud

Nicolas Nguyen

07/28/2023, 8:03 AM
Hello, I'm having issues deploying projects to my serverless instance. Even with the official template ( I run into the same error :
Copy code
$ /gitlab_action/ ./dagster_cloud.yaml
Traceback (most recent call last):
  File "/usr/local/bin/dagster-cloud", line 5, in <module>
    from dagster_cloud_cli.entrypoint import app
  File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/", line 13, in <module>
    from .commands.branch_deployment import app as branch_deployment_app
  File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/commands/branch_deployment/", line 10, in <module>
    from ...config_utils import dagster_cloud_options
  File "/usr/local/lib/python3.8/site-packages/dagster_cloud_cli/", line 10, in <module>
    from dagster._core.test_utils import remove_none_recursively
  File "/usr/local/lib/python3.8/site-packages/dagster/_core/", line 22, in <module>
    from dagster._core.host_representation.origin import (
  File "/usr/local/lib/python3.8/site-packages/dagster/_core/host_representation/", line 55, in <module>
    from .repository_location import (
  File "/usr/local/lib/python3.8/site-packages/dagster/_core/host_representation/", line 10, in <module>
    from dagster._api.list_repositories import sync_list_repositories_grpc
  File "/usr/local/lib/python3.8/site-packages/dagster/_api/", line 6, in <module>
    from dagster._grpc.types import ListRepositoriesResponse
  File "/usr/local/lib/python3.8/site-packages/dagster/_grpc/", line 11, in <module>
    from .client import (
  File "/usr/local/lib/python3.8/site-packages/dagster/_grpc/", line 11, in <module>
    from grpc_health.v1 import health_pb2
  File "/usr/local/lib/python3.8/site-packages/grpc_health/v1/", line 34, in <module>
  File "/usr/local/lib/python3.8/site-packages/google/protobuf/", line 796, in __new__
TypeError: Descriptors cannot not be created directly.
If this call came from a file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: <>
Updating code location example_location
Failed to update code location example_location
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1
How can I fix this ?

Shalabh Chaturvedi

07/28/2023, 5:48 PM
Hi Nicolas - do you have an existing project you are deploying or are you deploying a quickstart? Can you try using the newer github actions here: The easiest way might be to use the Add Code Location in the dagster cloud ui which will auto install the newer github actions in your repo. In the meantime I'll take a look at this quickstart to to troubleshoot.

Nicolas Nguyen

07/31/2023, 1:52 PM
Hi Shalabh, thank you for your response. The newer version of the gitlab action script actually fixed my problem.
👍 1