Hi, I got the error below when building the latest...
# help
u
Hi, I got the error below when building the latest lakeFS code.
u
Hi @Jiao Yizheng! What command are you using to build the code?
u
I just use
make build
u
Thanks, wanted to confirm. looking into the error
u
I just updated my nodejs version. The build hasn't failed so far.
u
Thanks for the update! Let me know if you are running into any other failure.
u
For a reference, what node version were you using before and after the update?
u
before it is nodejs 8
u
I updated to nodejs 14
u
Thanks! lakeFS using node 14.x
u
Also, If I am using
make build
, it failed because of the issue related to docker permission.
u
# remove the build folder as it also holds lakefs_client folder which keeps because we skip it during find rm -rf clients/python/build; cd clients/python && \ find . -depth -name lakefs_client -prune -o ! \( -name client.py -or -name Gemfile -or -name Gemfile.lock -or -name _config.yml -or -name .openapi-generator-ignore \) -delete /usr/bin/docker run --user 1000:1000 --rm -v /home/andy/code/lakeFS:/mnt openapitools/openapi-generator-cli:v5.3.0 generate \ -i /mnt/api/swagger.yml \ -g python \ --package-name lakefs_client \ --git-user-id treeverse --git-repo-id lakeFS \ --additional-properties=infoName=Treeverse,infoEmail=services@treeverse.io,packageName=lakefs_client,packageVersion=0.1.0-SNAPSHOT,projectName=lakefs-client,packageUrl=https://github.com/treeverse/lakeFS/tree/master/clients/python \ -o /mnt/clients/python docker: Got permission denied while trying to connect to the Docker daemon socket at unix///var/run/docker.sock Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. Makefile112 recipe for target 'client-python' failed make: * [client-python] Error 126
u
I used
sudo make build
to resolve this problem.
u
Are you running on Linux? If you would like to build as a non-root user you should follow https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user and this do the trick.
u
Yes. I just tried this. It works. Thanks a lot.
u
No problem! Happy to assist if any other issue comes up
u
And thanks for sharing your issues and solutions with the community!
u
No problem. Happy to do it.