Hey everyone, I seem to be getting an error when r...
# troubleshoot
f
Hey everyone, I seem to be getting an error when running
datahub docker quickstart
; it's returning
Command '['docker', 'compose', '-f', '/home/stephane/.datahub/quickstart/docker-compose.yml', '-p', 'datahub', 'logs']' returned non-zero exit status 125.
Has anyone ever encountered this?
Full error log:
Copy code
[2022-09-29 10:25:55,111] ERROR    {datahub.entrypoints:192} - 
Traceback (most recent call last):
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/entrypoints.py", line 149, in main
    sys.exit(datahub(standalone_mode=False, **kwargs))
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/upgrade/upgrade.py", line 386, in async_wrapper
    loop.run_until_complete(run_func_check_upgrade())
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/upgrade/upgrade.py", line 373, in run_func_check_upgrade
    ret = await the_one_future
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/upgrade/upgrade.py", line 366, in run_inner_func
    return await loop.run_in_executor(
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/telemetry/telemetry.py", line 347, in wrapper
    raise e
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/telemetry/telemetry.py", line 299, in wrapper
    res = func(*args, **kwargs)
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/site-packages/datahub/cli/docker.py", line 687, in quickstart
    ret = subprocess.run(
  File "/home/stephane/.pyenv/versions/3.8.13/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'compose', '-f', '/home/stephane/.datahub/quickstart/docker-compose.yml', '-p', 'datahub', 'logs']' returned non-zero exit status 125.
[2022-09-29 10:25:55,111] ERROR    {datahub.entrypoints:195} - Command failed: 
	Command '['docker', 'compose', '-f', '/home/stephane/.datahub/quickstart/docker-compose.yml', '-p', 'datahub', 'logs']' returned non-zero exit status 125..
	Run with --debug to get full stacktrace.
	e.g. 'datahub --debug docker quickstart'
b
Does --debug show anything more informative?
f
Not that I can see no 😞
I tried uninstalling and reinstalling datahub but no luck
b
i dont have any other suggestions i would run the docker compose command to confirm that the python library is not causing the problem... ie
docker-compose -p datahub -f <compose file> up -d
(note that depending on your docker compose version, it is either
docker compose
or
docker-compose
)
f
And I can do that without cloning the datahub project?
b
You would need to download a quick start compose file from the repo
f
Alright I'll give that a try, thanks!
Alright I got it up and running with the docker-compose! What would this imply, that the python script is not functional for me? Also, I can't seem to login with
datahub datahub
, if you know the default password 😆
b
unless you did something, the default login shd be datahub/datahub did u see an error msg when you try to login via UI?
f
Copy code
Failed to log in! SyntaxError: Unexpected token < in JSON at position 1
Yeah I get this error in the top of the UI
Alright with the quickstart it works; needed to get a dc with mysql
So what does this mean for the python package?
b
Copy code
Failed to log in! SyntaxError: Unexpected token < in JSON at position 1
your gms is not up properly; thats why the error msg. im not sure why the python package doesnt work; are you willing to try to prune your docker data and try again? is there any important data stored on your deployment?
f
Follow up (jumped back on this issue): These are the results I'm getting when checking
datahub-gms
logs
Copy code
2022/10/31 21:24:28 Problem with dial: dial tcp: lookup broker on 127.0.0.11:53: server misbehaving. Sleeping 1s
I can perform a prune, but this is a fresh version of datahub; I'm unsure how that would help