Kevin Day
12/13/2022, 2:40 AMdagster._core.errors.DagsterUserCodeUnreachableError: dagster._core.errors.DagsterUserCodeUnreachableError: Could not reach user code server
Stack Trace:
File "/dagster-cloud/dagster_cloud/agent/dagster_cloud_agent.py", line 822, in _process_api_request
api_result = self._handle_api_request(
File "/dagster-cloud/dagster_cloud/agent/dagster_cloud_agent.py", line 601, in _handle_api_request
serialized_snapshot_or_error = client.execution_plan_snapshot(
File "/dagster/dagster/_grpc/client.py", line 201, in execution_plan_snapshot
res = self._query(
File "/dagster/dagster/_grpc/client.py", line 141, 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.DEADLINE_EXCEEDED
details = "Deadline Exceeded"
debug_error_string = "{"created":"@1670898150.767518014","description":"Deadline Exceeded","file":"src/core/ext/filters/deadline/deadline_filter.cc","file_line":81,"grpc_status":4}"
>
Stack Trace:
File "/dagster/dagster/_grpc/client.py", line 139, in _query
return self._get_response(method, request=request_type(**kwargs), timeout=timeout)
File "/dagster/dagster/_grpc/client.py", line 129, in _get_response
return getattr(stub, method)(request, metadata=self._metadata, timeout=timeout)
File "/usr/local/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/usr/local/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
File "/dagster-cloud-backend/dagster_cloud_backend/daemon/event_log_consumer/updated_run_consumer.py", line 43, in consume_updated_runs
retry_run(workspace_process_context, run, retry_number)
File "/dagster-cloud-backend/dagster_cloud_backend/daemon/event_log_consumer/retry_utils.py", line 98, in retry_run
new_run = instance.create_reexecuted_run(
File "/dagster/dagster/_core/instance/__init__.py", line 1221, in create_reexecuted_run
external_execution_plan = repo_location.get_external_execution_plan(
File "/dagster-cloud-backend/dagster_cloud_backend/user_code/workspace.py", line 452, in get_external_execution_plan
execution_plan_snapshot_or_error = self.api_call(
File "/dagster-cloud-backend/dagster_cloud_backend/user_code/workspace.py", line 362, in api_call
return dagster_cloud_api_call(
File "/dagster-cloud-backend/dagster_cloud_backend/user_code/workspace.py", line 129, in dagster_cloud_api_call
for result in gen_dagster_cloud_api_call(
File "/dagster-cloud-backend/dagster_cloud_backend/user_code/workspace.py", line 261, in gen_dagster_cloud_api_call
raise DagsterUserCodeUnreachableError(error_infos[0].to_string())
daniel
12/13/2022, 3:51 PMKevin Day
12/13/2022, 4:04 PMdaniel
12/13/2022, 4:04 PMKevin Day
12/13/2022, 4:04 PMdaniel
12/13/2022, 4:04 PMnon_isolated_runs:
enabled: False
that will change the default behaviorKevin Day
12/13/2022, 4:04 PMOperation name: AssetGraphLiveQuery
Message: Internal Server Error (Trace ID: 1781565868964960348)
Path: ["assetNodes",6,"projectedLogicalVersion"]
Locations: [{"line":44,"column":3}]
daniel
12/13/2022, 4:32 PMKevin Day
12/13/2022, 4:32 PMdaniel
12/13/2022, 4:34 PMKevin Day
12/13/2022, 4:36 PM> [ 9/11] RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi:
#15 37.31 The conflict is caused by:
#15 37.31 The user requested dagster==1.1.3
#15 37.31 dagit 1.1.3 depends on dagster==1.1.3
#15 37.31 dagster-cloud 1.0.17 depends on dagster==1.0.17
#15 37.31
#15 37.31 To fix this you could try to:
#15 37.31 1. loosen the range of package versions you've specified
#15 37.31 2. remove package versions to allow pip attempt to solve the dependency conflict
#15 37.31
#15 37.31 ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts>
------
Dockerfile:24
--------------------
23 | # Install the rest of dependencies in case there is a requirements.txt
24 | >>> RUN if [ -f "requirements.txt" ]; then \
25 | >>> pip install -r requirements.txt; \
26 | >>> fi
27 |
--------------------
ERROR: failed to solve: process "/bin/sh -c if [ -f \"requirements.txt\" ]; then pip install -r requirements.txt; fi" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c if [ -f \"requirements.txt\" ]; then pip install -r requirements.txt; fi" did not complete successfully: exit code: 1
daniel
12/13/2022, 4:36 PMKevin Day
12/13/2022, 4:37 PMaeppl==0.0.35
aesara==2.8.2
aiobotocore==2.4.0
aiohttp==3.8.1
aioitertools==0.10.0
aiosignal==1.2.0
alembic==1.8.1
amqp==5.1.1
aniso8601==9.0.1
anyio==3.6.1
appnope==0.1.3
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arviz==0.12.1
asttokens==2.0.8
async-timeout==4.0.2
atomicwrites==1.4.1
attrs==22.1.0
Babel==2.10.3
backcall==0.2.0
backoff==1.11.1
beautifulsoup4==4.11.1
billiard==3.6.4.0
black==22.8.0
bleach==5.0.1
blinker==1.5
bokeh==2.4.3
boto3==1.24.59
botocore==1.27.59
cachetools==5.2.0
celery==5.2.7
certifi==2022.6.15
cffi==1.15.1
cftime==1.6.1
charset-normalizer==2.1.1
click==8.1.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
cloudpickle==2.1.0
coiled==0.2.27
colorama==0.4.5
coloredlogs==14.0
comet-ml==3.31.12
commonmark==0.9.1
configobj==5.0.6
cons==0.4.5
croniter==1.3.5
cycler==0.11.0
dagit==1.1.3
dagster==1.1.3
dagster-cloud==1.1.3
dagster-cloud-cli==1.1.3
dagster-graphql==1.1.3
dask==2022.8.1
debugpy==1.6.3
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.13
distributed==2022.8.1
docker==6.0.0
docstring-parser==0.15
dulwich==0.20.45
elastic-transport==8.4.0
elasticsearch==8.4.0
entrypoints==0.4
envkey==2.0.7
etuples==0.3.5
everett==3.0.0
executing==1.0.0
factory-boy==3.2.1
Faker==14.1.1
fastapi==0.81.0
fastjsonschema==2.16.1
fastprogress==1.0.3
filelock==3.8.0
Flask==2.2.2
Flask-Migrate==3.1.0
flask-redis==0.4.0
Flask-RESTful==0.3.9
Flask-SQLAlchemy==2.5.1
flower==1.2.0
fonttools==4.37.1
frozenlist==1.3.1
fsspec==2022.8.2
gql==3.4.0
graphene==3.1.1
graphql-core==3.2.3
graphql-relay==3.2.0
graphviz==0.20.1
greenlet==1.1.3
grpcio==1.47.2
grpcio-health-checking==1.43.0
gunicorn==20.1.0
h11==0.13.0
HeapDict==1.0.1
hiredis==2.0.0
honcho==1.1.0
htmlmin==0.1.12
httptools==0.5.0
humanfriendly==10.0
humanize==4.3.0
idna==3.3
ImageHash==4.2.1
importlib-metadata==4.12.0
importlib-resources==5.9.0
infinity==1.5
iniconfig==1.1.1
intervals==0.9.2
ipykernel==6.15.2
ipython==8.4.0
ipython-genutils==0.2.0
ipywidgets==7.7.2
itsdangerous==2.1.2
jedi==0.18.1
Jinja2==3.1.2
jmespath==1.0.1
joblib==1.1.0
json5==0.9.10
jsondiff==2.0.0
jsonschema==4.15.0
jupyter-client==7.3.4
jupyter-core==4.11.1
jupyter-server==1.18.1
jupyterlab==3.4.5
jupyterlab-pygments==0.2.2
jupyterlab-widgets==1.1.1
jupyterlab_server==2.15.1
kiwisolver==1.4.4
kombu==5.2.4
lightgbm==3.3.2
llvmlite==0.39.0
locket==1.0.0
logical-unification==0.4.5
lxml==4.9.1
Mako==1.2.2
MarkupSafe==2.1.1
marshmallow==3.17.1
marshmallow-oneofschema==3.0.1
matplotlib==3.5.3
matplotlib-inline==0.1.6
miniKanren==1.0.3
missingno==0.5.1
mistune==2.0.4
mlxtend==0.20.0
msgpack==1.0.4
multidict==6.0.2
multimethod==1.8
multipledispatch==0.6.0
mypy-extensions==0.4.3
nbclassic==0.4.3
nbclient==0.6.7
nbconvert==7.0.0
nbformat==5.4.0
nest-asyncio==1.5.5
netCDF4==1.6.0
networkx==2.8.6
notebook==6.4.12
notebook-shim==0.1.0
numba==0.56.0
numpy==1.22.4
packaging==21.3
pandas==1.4.4
pandas-profiling==3.2.0
pandocfilters==1.5.0
parso==0.8.3
partd==1.3.0
pathspec==0.10.0
pendulum==2.1.2
pexpect==4.8.0
phik==0.12.2
pickleshare==0.7.5
Pillow==9.2.0
pkgutil_resolve_name==1.3.10
platformdirs==2.5.2
plotly==5.10.0
pluggy==1.0.0
prefect==1.3.0
prometheus-client==0.14.1
prompt-toolkit==3.0.30
protobuf==3.20.3
psutil==5.9.1
psycopg2-binary==2.9.5
ptyprocess==0.7.0
pure-eval==0.2.2
py==1.11.0
pycparser==2.21
pydantic==1.10.1
Pygments==2.13.0
pymc==4.1.7
pyparsing==3.0.9
pyrsistent==0.18.1
pytest==7.1.2
python-box==6.0.2
python-dateutil==2.8.2
python-dotenv==0.20.0
python-multipart==0.0.5
python-slugify==6.1.2
pytz==2022.2.1
pytzdata==2020.1
PyWavelets==1.3.0
PyYAML==6.0
pyzmq==23.2.1
questionary==1.10.0
redis==4.3.4
requests==2.28.1
requests-toolbelt==0.9.1
rich==12.5.1
rollbar==0.16.3
Rx==1.6.1
s3fs==2022.8.2
s3transfer==0.6.0
scikit-learn==1.1.2
scipy==1.9.1
seaborn==0.11.2
semantic-version==2.10.0
semver==2.13.0
Send2Trash==1.8.0
sentry-sdk==1.9.6
shellingham==1.5.0
six==1.16.0
slugify==0.0.1
sniffio==1.2.0
sortedcontainers==2.4.0
soupsieve==2.3.2.post1
SQLAlchemy==1.4.40
SQLAlchemy-Utils==0.38.3
stack-data==0.5.0
starlette==0.19.1
tabulate==0.8.10
tangled-up-in-unicode==0.2.0
tblib==1.7.0
tenacity==8.0.1
terminado==0.15.0
text-unidecode==1.3
textual==0.1.18
threadpoolctl==3.1.0
tinycss2==1.1.1
toml==0.10.2
tomli==2.0.1
toolz==0.12.0
toposort==1.7
tornado==6.1
tqdm==4.64.0
traitlets==5.3.0
typer==0.6.1
typing-compat==0.1.0
typing_extensions==4.3.0
universal_pathlib==0.0.21
urllib3==1.26.12
uvicorn==0.18.3
uvloop==0.17.0
vine==5.0.0
visions==0.7.4
watchdog==2.1.9
watchfiles==0.18.1
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.3.3
websockets==10.4
Werkzeug==2.2.2
widgetsnbextension==3.6.1
wrapt==1.14.1
wurlitzer==3.0.2
xarray==2022.6.0
xarray-einstats==0.3.0
xgboost==1.6.2
yarl==1.8.1
zict==2.2.0
zipp==3.8.1
daniel
12/13/2022, 4:37 PMKevin Day
12/13/2022, 4:38 PMdaniel
12/13/2022, 4:38 PMKevin Day
12/13/2022, 4:39 PMdaniel
12/13/2022, 4:39 PM#15 37.31 The conflict is caused by:
#15 37.31 The user requested dagster==1.1.3
#15 37.31 dagit 1.1.3 depends on dagster==1.1.3
#15 37.31 dagster-cloud 1.0.17 depends on dagster==1.0.17
That last line is what's confusing me - If you search your repo for "1.0.17" does it appear anywhere?Kevin Day
12/13/2022, 4:42 PMdaniel
12/13/2022, 4:47 PMKevin Day
12/13/2022, 4:47 PMdaniel
12/13/2022, 4:47 PMKevin Day
12/13/2022, 4:48 PMShalabh Chaturvedi
12/13/2022, 5:02 PMsetup.py
if you have one? We're specially interested in the requirements section.Kevin Day
12/13/2022, 5:03 PMShalabh Chaturvedi
12/13/2022, 5:04 PMKevin Day
12/13/2022, 5:26 PMShalabh Chaturvedi
12/13/2022, 5:34 PMrequirements.txt
into a dagster project on github and did a non-fast deploy. It shows that my build succeeds:
#13 114.3 Successfully installed Babel-2.10.3 Deprecated-1.2.13 Faker-14.1.1 Flask-2.2.2 Flask-Migrate-3.1.0 Flask-RESTful-0.3.9 Flask-SQLAlchemy-2.5.1 HeapDict-1.0.1 ImageHash-4.2.1 Jinja2-3.1.2 Mako-1.2.2 MarkupSafe-2.1.1 Pillow-9.2.0 PyWavelets-1.3.0 PyYAML-6.0 Pygments-2.13.0 Rx-1.6.1 SQLAlchemy-1.4.40 SQLAlchemy-Utils-0.38.3 Send2Trash-1.8.0 Werkzeug-2.2.2 aeppl-0.0.35 aesara-2.8.2 aiobotocore-2.4.0 aiohttp-3.8.1 aioitertools-0.10.0 aiosignal-1.2.0 alembic-1.8.1 amqp-5.1.1 aniso8601-9.0.1 anyio-3.6.1 appnope-0.1.3 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 arviz-0.12.1 asttokens-2.0.8 async-timeout-4.0.2 atomicwrites-1.4.1 attrs-22.1.0 backcall-0.2.0 backoff-1.11.1 beautifulsoup4-4.11.1 billiard-3.6.4.0 black-22.8.0 bleach-5.0.1 blinker-1.5 bokeh-2.4.3 boto3-1.24.59 botocore-1.27.59 cachetools-5.2.0 celery-5.2.7 certifi-2022.6.15 cffi-1.15.1 cftime-1.6.1 charset-normalizer-2.1.1 click-8.1.3 click-didyoumean-0.3.0 click-plugins-1.1.1 click-repl-0.2.0 cloudpickle-2.1.0 coiled-0.2.27 colorama-0.4.5 colo...
#13 114.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>
#13 114.5 WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
#13 114.5 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
#13 DONE 116.3s
#14 [8/9] RUN if [ -f "dagster_cloud_post_install.sh" ]; then ./dagster_cloud_post_install.sh; fi
#14 DONE 0.6s
#15 [9/9] RUN dagster-cloud --version
#15 1.151 Dagster Cloud version: 1.1.3
#15 DONE 1.3s
#16 exporting to image
#16 exporting layers
#16 exporting layers 109.1s done
#16 exporting manifest sha256:c30a40b0a642139a2d0f24ffeee1cae3b21904d9852d9440afb1a3bcb4c0e124 done
#16 exporting config sha256:ecae1130013760c1a2e2717d0b2f10708e7e463c3ff4405e52a00b656225bb57 done
#16 pushing layers
Can you please try making a no-op change to any file (could even be README) to kick off another deploy action? Also if you have a dagster_cloud.yaml
could you please share? That will show if the build is pointed to a different directory.Kevin Day
12/13/2022, 5:41 PMShalabh Chaturvedi
12/13/2022, 5:43 PMenv:
section. like this: https://github.com/dagster-io/quickstart-etl/blob/main/.github/workflows/deploy.yml#L14Kevin Day
12/13/2022, 6:21 PMShalabh Chaturvedi
12/13/2022, 6:24 PMKevin Day
12/13/2022, 6:25 PMShalabh Chaturvedi
12/13/2022, 6:27 PMNone
should be a problem though.
apologies if you shared this already, but could you also share your dagster cloud url?Kevin Day
12/13/2022, 6:27 PMdaniel
12/13/2022, 6:40 PMKevin Day
12/13/2022, 7:21 PMError loading baker: {'__typename': 'PythonError', 'message': "dagster._core.errors.DagsterImportError: Encountered ImportError: `No module named 'baker'` while importing module baker. Local modules were resolved using the working directory `/`. If another working directory should be used, please explicitly specify the appropriate path using the `-d` or `--working-directory` for CLI based targets or the `working_directory` configuration option for workspace targets. \n", 'stack': [' File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/server.py", line 241, in __init__\n self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories(\n', ' File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/server.py", line 104, in __init__\n loadable_targets = get_loadable_targets(\n', ' File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/utils.py", line 53, in get_loadable_targets\n else loadable_targets_from_python_package(package_name, working_directory)\n', ' File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_core/workspace/autodiscovery.py", line 49, in loadable_targets_from_python_package\n module = load_python_module(\n', ' File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_core/code_pointer.py", line 143, in load_python_module\n raise DagsterImportError(\n']}
ERROR:root:Error updating code location 'baker'
Traceback (most recent call last):
File "/home/runner/.pex/unzipped_pexes/49372ab9408277f5d7bd2e77673bec0f851c7a57/builder/deploy.py", line 482, in run_code_location_update
code_location.wait_for_load(
File "/home/runner/.pex/unzipped_pexes/49372ab9408277f5d7bd2e77673bec0f851c7a57/builder/code_location.py", line 38, in wait_for_load
workspace.wait_for_load(
File "/home/runner/.pex/installed_wheels/3246dfc7dfca70bb82fbb6c13331f05c2566ab79f8354565eb769bd1e9634f0d/dagster_cloud_cli-1.0.16-py3-none-any.whl/dagster_cloud_cli/commands/workspace/__init__.py", line 185, in wait_for_load
raise ui.error(error_string)
click.exceptions.Exit
INFO:root:Not within a PR, not adding PR comment.
Error: Deploy failed. To view status of your code locations, visit ***/prod/instance/code-locations
Error: Process completed with exit code 1.
dagster._core.errors.DagsterImportError: Encountered ImportError: `No module named 'baker'` while importing module baker. Local modules were resolved using the working directory `/`. If another working directory should be used, please explicitly specify the appropriate path using the `-d` or `--working-directory` for CLI based targets or the `working_directory` configuration option for workspace targets.
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/server.py", line 241, in __init__
self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories(
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/server.py", line 104, in __init__
loadable_targets = get_loadable_targets(
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_grpc/utils.py", line 53, in get_loadable_targets
else loadable_targets_from_python_package(package_name, working_directory)
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_core/workspace/autodiscovery.py", line 49, in loadable_targets_from_python_package
module = load_python_module(
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_core/code_pointer.py", line 143, in load_python_module
raise DagsterImportError(
The above exception was caused by the following exception:
ModuleNotFoundError: No module named 'baker'
File "/root/.pex/installed_wheels/7221994bcf7469a7afb502485ec1c37dabf9050df04ffbd39305a3c72b694b4a/dagster-1.1.3-py3-none-any.whl/dagster/_core/code_pointer.py", line 138, in load_python_module
return importlib.import_module(module_name)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
Shalabh Chaturvedi
12/13/2022, 7:58 PMKevin Day
12/13/2022, 8:09 PMShalabh Chaturvedi
12/13/2022, 8:14 PMKevin Day
12/13/2022, 8:15 PMShalabh Chaturvedi
12/13/2022, 8:19 PMsetup.py
to identify the source packages to ship. We added support for the working directory without a setup.py
in the latest version of dagster-cloud (1.1.6) and I believe using 1.1.3 wont work.Kevin Day
12/13/2022, 9:15 PMdaniel
12/13/2022, 9:16 PMKevin Day
12/14/2022, 1:38 PM