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

Or Asher

04/13/2022, 9:46 AM
hey, we have an image that runs a dagster instance with all of our needed dependencies on it and exposes a dagit endpoint to use. we tried running the image on a new computer and got an error when it ran the command:
Copy code
dagit -h 0.0.0.0 -p 5000 -m "sample_project"
error:
Copy code
Loading repository...
Traceback (most recent call last):
  File "/usr/local/bin/dagit", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/dagit/cli.py", line 235, in main
    cli(auto_envvar_prefix="DAGIT")  # pylint:disable=E1120
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/dagit/cli.py", line 118, in ui
    **kwargs,
  File "/usr/local/lib/python3.6/dist-packages/dagit/cli.py", line 146, in host_dagit_ui
    workspace_process_context, host, port, path_prefix, port_lookup
  File "/usr/local/lib/python3.6/dist-packages/dagit/cli.py", line 165, in host_dagit_ui_with_workspace_process_context
    app = create_app_from_workspace_process_context(workspace_process_context, path_prefix)
  File "/usr/local/lib/python3.6/dist-packages/dagit/app.py", line 259, in create_app_from_workspace_process_context
    log_workspace_stats(instance, workspace_process_context)
  File "/usr/local/lib/python3.6/dist-packages/dagster/core/telemetry.py", line 417, in log_workspace_stats
    log_external_repo_stats(instance, source="dagit", external_repo=external_repo)
  File "/usr/local/lib/python3.6/dist-packages/dagster/core/telemetry.py", line 347, in log_external_repo_stats
    instance_id = _get_or_set_instance_id()
  File "/usr/local/lib/python3.6/dist-packages/dagster/core/telemetry.py", line 294, in _get_or_set_instance_id
    instance_id = _get_telemetry_instance_id()
  File "/usr/local/lib/python3.6/dist-packages/dagster/core/telemetry.py", line 308, in _get_telemetry_instance_id
    if INSTANCE_ID_STR in telemetry_id_yaml and isinstance(
TypeError: argument of type 'NoneType' is not iterable
j

johann

04/13/2022, 12:34 PM
@chris telemetry error
Which version is this?
o

Or Asher

04/13/2022, 1:17 PM
0.13.1
c

chris

04/13/2022, 6:09 PM
Any way you can check the contents of the file at
$DAGSTER_HOME/.telemetry/id.yaml
? Is this file empty?
(I was able to duplicate this by having an empty
id.yaml
, but wanted to make sure that matched your experience)
In any case, I have a fix up https://github.com/dagster-io/dagster/pull/7433 that should solve this for you.
o

Or Asher

04/14/2022, 6:33 AM
thanks!
would deleting the file completely help?
j

johann

04/21/2022, 3:28 PM
Sorry for missing this- yes deleting should also work. The fix is going out in the release today.