https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Aaron T

02/10/2023, 3:07 PM
What might cause this not none check to fail?
Expected non-None value: Pipeline run with id 'a9c51acf-caca-4cc8-8258-bad665192633' not found for run execution.
Here is the full trace stack - could it be that my environment variables are not being loaded properly causing my pipeline to fail?
Copy code
2023-02-10 09:45:44 Traceback (most recent call last):
2023-02-10 09:45:44   File "/usr/local/bin/dagster", line 8, in <module>
2023-02-10 09:45:44     sys.exit(main())
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/dagster/_cli/__init__.py", line 46, in main
2023-02-10 09:45:44     cli(auto_envvar_prefix=ENV_PREFIX)  # pylint:disable=E1123
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
2023-02-10 09:45:44     return self.main(*args, **kwargs)
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
2023-02-10 09:45:44     rv = self.invoke(ctx)
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
2023-02-10 09:45:44     return _process_result(sub_ctx.command.invoke(sub_ctx))
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
2023-02-10 09:45:44     return _process_result(sub_ctx.command.invoke(sub_ctx))
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
2023-02-10 09:45:44     return ctx.invoke(self.callback, **ctx.params)
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
2023-02-10 09:45:44     return __callback(*args, **kwargs)
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/dagster/_cli/api.py", line 73, in execute_run_command
2023-02-10 09:45:44     return_code = _execute_run_command_body(
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/dagster/_cli/api.py", line 100, in _execute_run_command_body
2023-02-10 09:45:44     pipeline_run: DagsterRun = check.not_none(
2023-02-10 09:45:44   File "/usr/local/lib/python3.10/site-packages/dagster/_check/__init__.py", line 1081, in not_none
2023-02-10 09:45:44     raise CheckError(f"Expected non-None value: {additional_message}")
2023-02-10 09:45:44 dagster._check.CheckError: Expected non-None value: Pipeline run with id 'c2864195-581f-4ad2-bc45-bb9add47968c' not found for run execution.
s

sean

02/10/2023, 3:15 PM
Hi Aaron, what command are you running exactly?
a

Aaron T

02/10/2023, 3:25 PM
Hey @sean just running from the launchpad in docker
j

johann

02/10/2023, 3:53 PM
Hi Aaron, what run storage do you have configured? Dagit and the run need to both point at the same DB. My first guess would be that they aren’t, so the run isn’t found
a

Aaron T

02/10/2023, 3:54 PM
Just using the default for now
j

johann

02/10/2023, 3:55 PM
Have you taken a look at https://docs.dagster.io/deployment/guides/docker? The docker compose might be the easiest way to get up and running
(assuming that’s not what you’re already using)
a

Aaron T

02/10/2023, 3:55 PM
Here are what my containers look like running -
That is what I based my image off of, and Daniel helped me get it up and running yesterday
j

johann

02/10/2023, 3:58 PM
Hmm ok. If you go to
<your dagit url>/config
, what do you see for
run_storage
a

Aaron T

02/10/2023, 3:59 PM
@johann I think maybe what is going on is that the example is using postgres, I wanted to omit that to see how it works by default. I guess the daemon cannot access the dagster_home of the other containers
run_storage: SqliteRunStorage
j

johann

02/10/2023, 4:00 PM
Ah yep. Sqlite just writes to a local file, and each docker container has a separate filesystem.
a

Aaron T

02/10/2023, 4:01 PM
ok, so I guess I should add back in a db then and see how it goes
thanks!
👍 1
could I mount a volume for storage?