Hi team, I have an error when deploying Datahub. I...
# troubleshoot
b
Hi team, I have an error when deploying Datahub. I run
datahub docker quickstart
in the terminal and this error shows up
Error response from daemon: driver failed programming external connectivity on endpoint datahub-gms (c7259513a4f59fb2e360eab2377b0ee38fce02b0f111b69e57eb22ad843d2411): Bind for 0.0.0.0:8080 failed: port is already allocated
. I restarted the docker but it still same error. i am using mac M1. Does anyone have any idea why and how can fix it? Thanks in advance🙂
h
It appears that you are already running some application port 8080. I typically use
lsof -ti :8080
to find out the process id using the port.
b
yep, it shows
+645
37238
how could i stop them?
h
Another alternative is to use a different port for GMS (if you can not use 8080 due to some reason. All you would need is to set env var
DATAHUB_MAPPED_GMS_PORT
with the new port, before running quickstart command. See the section "Port Conflicts" o this page - https://datahubproject.io/docs/quickstart/#troubleshooting-issues for more details.
I wouldn't recommend stopping/killing it before looking into more details of that process. maybe
pa aux | grep <pid>
to know more about the process before killing it. You can kill any process using
kill -9 <pid>
b
still error here😂,
Unable to run quickstart - the following issues were detected:
- datahub-gms is still starting
- mysql-setup is still running
- datahub-upgrade is still running
h
different issues . I would say its a progress 😉 could you try below commands in same sequence: (This is a typical restart hack. We can go deeper if this does not work)
datahub docker nuke
datahub docker quickstart
b
sure, on it!
error
Unable to run quickstart - the following issues were detected:
- datahub-gms is running by not yet healthy
h
Oh, what does
datahub version
say ? If its not latest(0.10.0.2), Do you mind upgrading to latest version (
pip install -U acryl-datahub
) and trying the set of commands mentioned earlier ?
datahub docker nuke
datahub docker quickstart
b
it is the latest.
Here is the error again😂
h
that's insane. I just tried this on my machine and it worked. I am not on M1 mac, though. can you wait for some time and confirm the status by running
datahub docker check
b
here is the result!
h
can you share results of
docker logs elasticsearch
b
you mean run
docker logs elasticsearch
in the terminal?
h
yes, that's what I meant, as it appears to me that its taking quite long to be healthy. Oh yes, can you also share results of
docker logs datahub-upgrade
as it failed