-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install fails on Ubuntu 18.04 #49
Comments
This is a docker installation issue on ubuntu. |
so the fix in that thread appears to be adding the user to the docker group (with the usermod command) and re-logging in.. We both did that. and we both rebooted the VMs (which would restart the docker daemon), as suggested. didn't help. same problem |
Well, that's just a start :) Because
|
didn't help.. same error. I can run other docker commands just fine (docker ps, docker pull, docker run -it hello-world, etc). is there something special this install is trying to do that I can try manually to work it out? |
Looks like the issue is due to |
do you want me to test anything to verify? or will you need to update the npm package? (sorry - somewhat of a. npm novice) |
This is happening due to over You have We may possibly remove |
ok, I used the convenience script to install docker (https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-convenience-script) which sudo's the install (I'm a non-root user)... subsequently the npm install of iotz fails regardless of whether I sudo or not.. I'll see if I can get docker installed without sudo and try again.. thanks for the info |
Probably npm install without |
Hi,
Both myself and my customer have tried to install iotz on Ubuntu 18.04 "fresh" VMs (him locally, and me with a default Canonical Ubuntu 18.04 VM in Azure.)
Got the error below... Both myself and my customer have the same experience...
should this work?
stevebus@iotzUbuntu:~$ sudo npm i iotz -g
/usr/local/bin/iotz -> /usr/local/lib/node_modules/iotz/index.js
updating.. (this may take some time)
Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/
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.38/images/create?fromImage=azureiot%2Fiotz&tag=latest: dial unix /var/run/docker.sock: connect: permission denied
error: update has failed. See the output above.
npm ERR! Linux 4.15.0-1025-azure
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "iotz" "-g"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall:
iotz update
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'iotz update'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iotz package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! iotz update
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs iotz
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iotz
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/stevebus/npm-debug.log
The text was updated successfully, but these errors were encountered: