Josh Lloyd
01/26/2023, 12:18 AMdocker-compose up --build
, the dagster daemon fails (nothing else) with the following warning:
dagster.daemon.SchedulerDaemon - WARNING - Could not load location dagster_repos:widen_elt_dev to check for schedules due to the following error: dagster._core.errors.DagsterImportError: Encountered ImportError: `No module named 'dagster_repos'` while importing module dagster_repos. Local modules were resolved using the working directory `/opt/dagster/dagster_home`. 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.
/opt/dagster/app/orchestrate/repo.py
which I’ve countered with a container command
of :
command: ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-d", "orchestrate", "--python-file", "orchestrate/repos.py"]
and I’ve added the config:
- python_package:
package_name: repos
attribute: elt_dev
to my workspace.yml
dagster._core.errors.DagsterUserCodeUnreachableError: Could not reach user code server. gRPC Error code: UNAVAILABLE
I’m not sure which one is causing the other 🤔package_name
config in the workspace.yml
to just about every variation of repos
and orchestrate.repos
that I can think of to no avail. The error will change, reporting whatever I change the value to be. It feels like the working directory suggestion in the error is a red herring since this is running in the daemon, though the error is reminiscent of errors I get when I try to run python code outside of directory where the code is located.python_package
entry from my workspace.yml
. When I spin up the docker-compose services I still get an error initially on the daemon with nearly the same error message but I think that’s just because it somehow spins up faster than the grpc server on the code container does. Doesn’t matter though because I can still get to the UI and run everything just fine.Joris Ganne
01/27/2023, 7:06 AM