Jose Uribe
05/05/2022, 5:50 PMdagster api grpc
command is as follows:
dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-d", "context_folder", "-f", "context_folder/job.py
on trying to launch a run, we are greeted w/ the following error:
dagster.core.errors.DagsterLaunchFailedError: Error during RPC setup for executing run: dagster.core.errors.DagsterRunNotFoundError: gRPC server could not load run 70b65f83-11d7-419c-ac20-5729df3b802b in order to execute it. Make sure that the gRPC server has access to your run storage.
Previously, we had not set a -d
parameter. the structure of that context_folder is:
context_folder/
-> job.py
-> ops.py
So I suppose my question is: does the dagster.yaml file have to be present in the working directory? I am looking at the docs for dagster api grpc, and i do not see any parameter to supply the location of the dagster.yaml..daniel
05/05/2022, 6:03 PMJose Uribe
05/05/2022, 6:04 PMJose Uribe
05/05/2022, 7:02 PMJosh Karlin
05/12/2022, 2:07 PMdaniel
05/12/2022, 2:13 PMJosh Karlin
05/12/2022, 2:37 PM$ cat ucds/dagster.yaml
run_storage:
module: dagster_postgres.run_storage
class: PostgresRunStorage
config:
postgres_db:
username:
env: DAGSTER_POSTGRES_USERNAME
password:
env: DAGSTER_POSTGRES_PASSWORD
hostname:
env: DAGSTER_POSTGRES_HOST
db_name:
env: DAGSTER_POSTGRES_DATABASE
port: 5432
event_log_storage:
module: dagster_postgres.event_log
class: PostgresEventLogStorage
config:
postgres_db:
username:
env: DAGSTER_POSTGRES_USERNAME
password:
env: DAGSTER_POSTGRES_PASSWORD
hostname:
env: DAGSTER_POSTGRES_HOST
db_name:
env: DAGSTER_POSTGRES_DATABASE
port: 5432
schedule_storage:
module: dagster_postgres.schedule_storage
class: PostgresScheduleStorage
config:
postgres_db:
username:
env: DAGSTER_POSTGRES_USERNAME
password:
env: DAGSTER_POSTGRES_PASSWORD
hostname:
env: DAGSTER_POSTGRES_HOST
db_name:
env: DAGSTER_POSTGRES_DATABASE
port: 5432
# <https://docs.dagster.io/concepts/logging/python-logging>
python_logs:
python_log_level: INFO
managed_python_loggers:
- root
dagster_handler_config:
handlers:
myHandler:
class: logging.StreamHandler
level: INFO
stream: <ext://sys.stdout>
formatter: detail
formatters:
detail:
format: "%(asctime)s - %(levelname)s - %(name)s - %(module)s - %(message)s"
daniel
05/12/2022, 2:38 PMdaniel
05/12/2022, 2:38 PMJosh Karlin
05/12/2022, 3:19 PMJosh Karlin
05/12/2022, 3:19 PMdaniel
05/12/2022, 3:20 PMJosh Karlin
05/12/2022, 3:20 PMdaniel
05/12/2022, 3:20 PMdaniel
05/12/2022, 3:21 PMJosh Karlin
05/12/2022, 3:21 PMJosh Karlin
05/12/2022, 3:30 PMdaniel
05/12/2022, 3:30 PMdaniel
05/12/2022, 3:31 PMJosh Karlin
05/12/2022, 4:38 PMPermissionError: [Errno 13] Permission denied: '/opt/dagster'
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/api.py", line 775, in pipeline_execution_iterator
for event in pipeline_context.executor.execute(pipeline_context, execution_plan):
File "/usr/local/lib/python3.7/site-packages/dagster/core/executor/in_process.py", line 50, in execute
output_capture=plan_context.output_capture,
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/api.py", line 871, in __iter__
pipeline_context=self.pipeline_context,
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/plan/execute_plan.py", line 63, in inner_plan_execution_iterator
step_context.pipeline_run, step_context.step.key
File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.7/site-packages/dagster/core/storage/compute_log_manager.py", line 55, in watch
with self._watch_logs(pipeline_run, step_key):
File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.7/site-packages/dagster/core/storage/local_compute_log_manager.py", line 49, in _watch_logs
with mirror_stream_to_file(sys.stdout, outpath):
File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/compute_logs.py", line 28, in mirror_stream_to_file
ensure_file(filepath)
File "/usr/local/lib/python3.7/site-packages/dagster/utils/__init__.py", line 319, in ensure_file
ensure_dir(os.path.dirname(path))
File "/usr/local/lib/python3.7/site-packages/dagster/utils/__init__.py", line 312, in ensure_dir
os.makedirs(file_path)
File "/usr/local/lib/python3.7/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.7/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.7/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
[Previous line repeated 1 more time]
File "/usr/local/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
daniel
05/12/2022, 4:39 PMJosh Karlin
05/12/2022, 4:41 PM