Hi all, I tried to start datahub after nuking but ...
# troubleshoot
h
Hi all, I tried to start datahub after nuking but I got this error. May i know how to fix this?
Copy code
No Datahub Neo4j volume found, starting with elasticsearch as graph service.
To use neo4j as a graph backend, run
`datahub docker quickstart --quickstart-compose-file ./docker/quickstart/docker-compose.quickstart.yml`
from the root of the datahub repo

Fetching docker-compose file <https://raw.githubusercontent.com/datahub-project/datahub/master/docker/quickstart/docker-compose-without-neo4j.quickstart.yml> from GitHub
[2022-07-04 20:24:14,340] ERROR    {datahub.entrypoints:184} - File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\entrypoints.py", line 149, in main
    146  def main(**kwargs):
    147      # This wrapper prevents click from suppressing errors.
    148      try:
--> 149          sys.exit(datahub(standalone_mode=False, **kwargs))
    150      except click.exceptions.Abort:
    ..................................................
     kwargs = {}
     datahub = <Group datahub>
     click.exceptions.Abort = <class 'click.exceptions.Abort'>
    ..................................................
s
There must be more in the error stacktrace. Only this much won't help. Can you please post the full stacktrace?
h
Copy code
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1128, in __call__
    1126  def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any:
    1127      """Alias for :meth:`main`."""
--> 1128      return self.main(*args, **kwargs)
    ..................................................
     self = <Group datahub>
     args = ()
     t.Any = typing.Any
     kwargs = {'standalone_mode': False}
     self.main = <method 'BaseCommand.main' of <Group datahub> core.py:981>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1053, in main
    981  def main(
    982      self,
    983      args: t.Optional[t.Sequence[str]] = None,
    984      prog_name: t.Optional[str] = None,
    985      complete_var: t.Optional[str] = None,
    986      standalone_mode: bool = True,
    987      windows_expand_args: bool = True,
    988      **extra: t.Any,
    989  ) -> t.Any:
 (...)
    1049
    1050      try:
    1051          try:
    1052              with self.make_context(prog_name, args, **extra) as ctx:
--> 1053                  rv = self.invoke(ctx)
    1054                  if not standalone_mode:
    ..................................................
     self = <Group datahub>
     args = ['docker', 'quickstart', ]
     t.Optional = typing.Optional
     t.Sequence = typing.Sequence
     prog_name = 'datahub'
     complete_var = None
     standalone_mode = False
     windows_expand_args = True
     extra = {}
     t.Any = typing.Any
     self.make_context = <method 'BaseCommand.make_context' of <Group datahub> core.py:878>
     ctx = <click.core.Context object at 0x000001D5DDED6BE0>
     self.invoke = <method 'MultiCommand.invoke' of <Group datahub> core.py:1625>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1659, in invoke
    1625  def invoke(self, ctx: Context) -> t.Any:
 (...)
    1655              ctx.invoked_subcommand = cmd_name
    1656              super().invoke(ctx)
    1657              sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
    1658              with sub_ctx:
--> 1659                  return _process_result(sub_ctx.command.invoke(sub_ctx))
    1660
    ..................................................
     self = <Group datahub>
     ctx = <click.core.Context object at 0x000001D5DDED6BE0>
     Context = <class 'click.core.Context'>
     t.Any = typing.Any
     ctx.invoked_subcommand = 'docker'
     cmd_name = 'docker'
     sub_ctx = <click.core.Context object at 0x000001D5A22222E8>
     cmd.make_context = <method 'BaseCommand.make_context' of <Group docker> core.py:878>
     args = ['quickstart', ]
     _process_result = <function 'MultiCommand.invoke.<locals>._process_result' core.py:1626>
     sub_ctx.command.invoke = <method 'MultiCommand.invoke' of <Group docker> core.py:1625>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1659, in invoke
    1625  def invoke(self, ctx: Context) -> t.Any:
 (...)
    1655              ctx.invoked_subcommand = cmd_name
    1656              super().invoke(ctx)
    1657              sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
    1658              with sub_ctx:
--> 1659                  return _process_result(sub_ctx.command.invoke(sub_ctx))
    1660
    ..................................................
     self = <Group docker>
     ctx = <click.core.Context object at 0x000001D5A22222E8>
     Context = <class 'click.core.Context'>
     t.Any = typing.Any
     ctx.invoked_subcommand = 'quickstart'
     cmd_name = 'quickstart'
     sub_ctx = <click.core.Context object at 0x000001D5A2222588>
     cmd.make_context = <method 'BaseCommand.make_context' of <Command quickstart> core.py:878>
     args = []
     _process_result = <function 'MultiCommand.invoke.<locals>._process_result' core.py:1626>
     sub_ctx.command.invoke = <method 'Command.invoke' of <Command quickstart> core.py:1384>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1395, in invoke
    1384  def invoke(self, ctx: Context) -> t.Any:
 (...)
    1391          ).format(name=self.name)
    1392          echo(style(message, fg="red"), err=True)
    1393
    1394      if self.callback is not None:
--> 1395          return ctx.invoke(self.callback, **ctx.params)
    ..................................................
     self = <Command quickstart>
     ctx = <click.core.Context object at 0x000001D5A2222588>
     Context = <class 'click.core.Context'>
     t.Any = typing.Any
     self.name = 'quickstart'
     self.callback = <function 'quickstart' upgrade.py:330>
     ctx.invoke = <method 'Context.invoke' of <click.core.Context object at 0x000001D5A2222588> core.py:703>
     ctx.params = {'version': None,
                   'build_locally': False,
                   'quickstart_compose_file': (),
                   'dump_logs_on_failure': False,
                   'graph_service_impl': None}
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 754, in invoke
    703  def invoke(
    704      __self,  # noqa: B902
    705      __callback: t.Union["Command", t.Callable[..., t.Any]],
    706      *args: t.Any,
    707      **kwargs: t.Any,
    708  ) -> t.Any:
 (...)
    750          ctx = __self
    751
    752      with augment_usage_errors(__self):
    753          with ctx:
--> 754              return __callback(*args, **kwargs)
    ..................................................
     t.Union = typing.Union
     t.Callable = typing.Callable
     t.Any = typing.Any
     args = ()
     kwargs = {'version': None,
               'build_locally': False,
               'quickstart_compose_file': (),
               'dump_logs_on_failure': False,
               'graph_service_impl': None}
     ctx = <click.core.Context object at 0x000001D5A2222588>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\upgrade\upgrade.py", line 333, in wrapper
    330  @wraps(func)
    331  def wrapper(*args: Any, **kwargs: Any) -> Any:
    332
--> 333      res = func(*args, **kwargs)
    334      try:
    ..................................................
     func = <function 'quickstart' telemetry.py:280>
     args = ()
     Any = typing.Any
     kwargs = {'version': None,
               'build_locally': False,
               'quickstart_compose_file': (),
               'dump_logs_on_failure': False,
               'graph_service_impl': None}
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\telemetry\telemetry.py", line 338, in wrapper
    281  def wrapper(*args: Any, **kwargs: Any) -> Any:
 (...)
    334                  "status": "error",
    335                  "error": get_full_class_name(e),
    336              },
    337          )
--> 338          raise e
    ..................................................
     args = ()
     Any = typing.Any
     kwargs = {'version': None,
               'build_locally': False,
               'quickstart_compose_file': (),
               'dump_logs_on_failure': False,
               'graph_service_impl': None}
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\telemetry\telemetry.py", line 290, in wrapper
    281  def wrapper(*args: Any, **kwargs: Any) -> Any:
 (...)
    286      telemetry_instance.ping(
    287          "function-call", {"function": function, "status": "start"}
    288      )
    289      try:
--> 290          res = func(*args, **kwargs)
    291          telemetry_instance.ping(
    ..................................................
     args = ()
     Any = typing.Any
     kwargs = {'version': None,
               'build_locally': False,
               'quickstart_compose_file': (),
               'dump_logs_on_failure': False,
               'graph_service_impl': None}
     telemetry_instance.ping = <method 'Telemetry.ping' of <datahub.telemetry.telemetry.Telemetry object at 0x000001D5A1F7BD68> telemetry.py:215>
     function = 'datahub.cli.docker.quickstart'
     func = <function 'quickstart' docker.py:134>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\cli\docker.py", line 240, in quickstart
    171  def quickstart(
    172      version: str,
    173      build_locally: bool,
    174      quickstart_compose_file: List[pathlib.Path],
    175      dump_logs_on_failure: bool,
    176      graph_service_impl: Optional[str],
    177  ) -> None:
 (...)
    236      # Pull and possibly build the latest containers.
    237      try:
    238          subprocess.run(
    239              [*base_command, "pull"],
--> 240              check=True,
    241          )
    ..................................................
     quickstart = <Command quickstart>
     version = None
     build_locally = False
     quickstart_compose_file = [WindowsPath('C:/Users/SDEKNG/AppData/Local/Temp/tmp6fbubot1.yml'), ]
     List = typing.List
     pathlib.Path = <class 'pathlib.Path'>
     dump_logs_on_failure = False
     graph_service_impl = None
     Optional = typing.Optional
     subprocess.run = <function 'run' subprocess.py:372>
     base_command = ['docker-compose', '-f', 'C:\\Users\\SDEKNG\\AppData\\Local\\Temp\\tmp6fbubot1.yml', '-p', 'datahub', ]
     check = <Command check>
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 403, in run
    372  def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
 (...)
    399          if 'stdin' in kwargs:
    400              raise ValueError('stdin and input arguments may not both be used.')
    401          kwargs['stdin'] = PIPE
    402
--> 403      with Popen(*popenargs, **kwargs) as process:
    404          try:
    ..................................................
     popenargs = (['docker-compose', '-f', 'C:\\Users\\SDEKNG\\AppData\\Local\\Temp\\tmp6fbubot1.yml', '-p', 'datahub', 'pull', ], )
     input = None
     timeout = None
     check = True
     kwargs = {}
     PIPE = -1
     Popen = <class 'subprocess.Popen'>
    ..................................................
Copy code
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 707, in __init__
    586  def __init__(self, args, bufsize=-1, executable=None,
    587               stdin=None, stdout=None, stderr=None,
    588               preexec_fn=None, close_fds=_PLATFORM_DEFAULT_CLOSE_FDS,
    589               shell=False, cwd=None, env=None, universal_newlines=False,
    590               startupinfo=None, creationflags=0,
    591               restore_signals=True, start_new_session=False,
    592               pass_fds=(), *, encoding=None, errors=None):
 (...)
    703                              startupinfo, creationflags, shell,
    704                              p2cread, p2cwrite,
    705                              c2pread, c2pwrite,
    706                              errread, errwrite,
--> 707                              restore_signals, start_new_session)
    708      except:
    ..................................................
     self = <subprocess.Popen object at 0x000001D5A2222E80>
     args = ['docker-compose', '-f', 'C:\\Users\\SDEKNG\\AppData\\Local\\Temp\\tmp6fbubot1.yml', '-p', 'datahub', 'pull', ]
     bufsize = -1
     executable = None
     stdin = None
     stdout = None
     stderr = None
     preexec_fn = None
     close_fds = True
     _PLATFORM_DEFAULT_CLOSE_FDS = <object object at 0x000001D5DD9EA130>
     shell = False
     cwd = None
     env = None
     universal_newlines = False
     startupinfo = None
     creationflags = 0
     restore_signals = True
     start_new_session = False
     pass_fds = ()
     encoding = None
     errors = None
     p2cread = -1
     p2cwrite = -1
     c2pread = -1
     c2pwrite = -1
     errread = -1
     errwrite = -1
    ..................................................

File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 992, in _execute_child
    954  def _execute_child(self, args, executable, preexec_fn, close_fds,
    955                     pass_fds, cwd, env,
    956                     startupinfo, creationflags, shell,
    957                     p2cread, p2cwrite,
    958                     c2pread, c2pwrite,
    959                     errread, errwrite,
    960                     unused_restore_signals, unused_start_new_session):
 (...)
    988                                   int(not close_fds),
    989                                   creationflags,
    990                                   env,
    991                                   os.fspath(cwd) if cwd is not None else None,
--> 992                                   startupinfo)
    993      finally:
    ..................................................
     self = <subprocess.Popen object at 0x000001D5A2222E80>
     args = 'docker-compose -f C:\\Users\\SDEKNG\\AppData\\Local\\Temp\\tmp6fbubot1.yml -p datahub pull'
     executable = None
     preexec_fn = None
     close_fds = True
     pass_fds = ()
     cwd = None
     env = None
     startupinfo = <subprocess.STARTUPINFO object at 0x000001D5A2222320>
     creationflags = 0
     shell = False
     p2cread = -1
     p2cwrite = -1
     c2pread = -1
     c2pwrite = -1
     errread = -1
     errwrite = -1
     unused_restore_signals = True
     unused_start_new_session = False
    ..................................................
Copy code
---- (full traceback above) ----
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\entrypoints.py", line 149, in main
    sys.exit(datahub(standalone_mode=False, **kwargs))
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\upgrade\upgrade.py", line 333, in wrapper
    res = func(*args, **kwargs)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\telemetry\telemetry.py", line 338, in wrapper
    raise e
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\telemetry\telemetry.py", line 290, in wrapper
    res = func(*args, **kwargs)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\cli\docker.py", line 240, in quickstart
    check=True,
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
File "c:\users\sdekng\appdata\local\programs\python\python36\lib\subprocess.py", line 992, in _execute_child
    startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified
[2022-07-04 20:34:50,148] INFO     {datahub.entrypoints:188} - DataHub CLI version: 0.8.40.2 at c:\users\sdekng\appdata\local\programs\python\python36\lib\site-packages\datahub\__init__.py
[2022-07-04 20:34:50,149] INFO     {datahub.entrypoints:191} - Python version: 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] at c:\users\sdekng\appdata\local\programs\python\python36\python.exe on Windows-10-10.0.19041-SP0
[2022-07-04 20:34:50,149] INFO     {datahub.entrypoints:193} - GMS config {}
s
Copy code
The system cannot find the file specified
Is the file present?
h
I am not sure which file it is referring to. Is it init.py or Neo4j volume?
s
what command are you using to start datahub?
h
Copy code
datahub docker quickstart
r
@helpful-painting-48754 I am having the same issue, have you got it fixed? Please let me know. Thanks