Hey team, I'm having an issue installing datahub: ...
# troubleshoot
f
Hey team, I'm having an issue installing datahub: Here is what I did:
Copy code
python3 -m pip install --upgrade pip wheel setuptools
python3 -m pip uninstall datahub acryl-datahub || true  # sanity check - ok if it fails
python3 -m pip install --upgrade acryl-datahub
datahub version
datahub docker quickstart
And I'm getting the error:
Copy code
PermissionError: [Errno 13] Permission denied: '/home/stephane/.datahub/plugins/auth'
[2022-09-06 11:22:25,543] ERROR    {datahub.entrypoints:195} - Command failed: 
	[Errno 13] Permission denied: '/home/stephane/.datahub/plugins/auth'.
Any ideas?
plus1 2
g
It seems that yor datahub entrypoint don't have permission to do some file manipulations. Did you try to run as sudo?
f
When using sudo, I get a "datahub: command not found", which is equally strange
g
Hmm. Can you try to uninstall and install with the --user flag?
f
I'll give that a try 😄
Nope, same problem. Very odd
g
Did you checked the /home/stephane/.datahub/ permissions? Maybe a chmod can resolve it. If not, I run out of options
f
I'll try that tonight, thanks!
Nope, didn't seem to work. Very strange...
g
Seems DataHub CLI cant create the .datahub/plugins/auth/resources path. Check here: https://github.com/datahub-project/datahub/blob/master/metadata-ingestion/src/datahub/cli/docker.py#L552
f
Which would mean either pyenv or my local configs are blocking datahub from performing a mkdir?
g
I think so. This path is necessary for a volume on quick-start docker-compose.
Can you try to execute
datahub init
command? Just for curiosity
This command will create a config file inside ${home}/.datahub directory.
If fails will confirm our assumption
f
Copy code
(.venv) stephane@stephane-XPS-15-9510:~/Documents/open-source/datahub$ datahub init
/home/stephane/.datahubenv already exists. Overwrite? [y/N]: y
Configure which datahub instance to connect to
Enter your DataHub host [<http://localhost:8080>]: 
Enter your DataHub access token (Supports env vars via `{VAR_NAME}` syntax) []: 
Written to /home/stephane/.datahubenv
Didn't seem to fail, weird
g
🤔🤨 Now I'm questioning my knowledge 😂
@big-carpet-38439 Any idea of what is going on?
b
@gentle-hamburger-31302
Didn’t we recently address this?
@gentle-camera-33498 are you running on m1 by chance?
g
No. Running
uname -a
:
Copy code
Linux #49~20.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
My CLI version is v0.8.44. Everything is ok
f
For me:
Copy code
#51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
g
Let me try run the quick start command
f
datahub --version:
acryl-datahub, version 0.8.44.1
g
Same problem here
g
Hi @gentle-camera-33498 Could you please check who is the owner of ~/.datahub directory ?
you can use below command
ls -la ~/ | grep ".datahub"
run below command sudo rm -rf ~/.datahub , It will delete the directory, might be because of previous run that directory got created with root user
then again try
Copy code
datahub docker quickstart
g
Ok. Now the quickstart woks
Thanks !
@few-rainbow-57094
f
Alright awesome, thank you so much!
b
Thanks @gentle-hamburger-31302 !