Skip to content
This repository

npm issue #39

Closed
bwsparxz opened this Issue · 12 comments

3 participants

bwsparxz Justin Cooper porktree
bwsparxz

Getting this error when I get to forever-monitor . Using Occidentalis v0.2. made sure git was installed properly. Also checked that DNS is working and can reach this git site on RPI browser.

npm ERR! git clone git://github.com/jwcooper/forever-monitor.git Cloning into '/home/pi/Adafruit/WebIDE/tmp/npm-1349584681952/1349584681953-0.9478051797486842'...
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git github.com: Name or service not known

npm ERR! Error: git "clone" "git://github.com/jwcooper/forever-monitor.git" "/home/pi/Adafruit/WebIDE/tmp/npm-1349584681952/1349584681953-0.9478051797486842" failed with 128
npm ERR! at ChildProcess. (/usr/share/npm/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:362:16)
npm ERR! at Process.onexit (child_process.js:398:5)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/pi/Adafruit/WebIDE/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.1.9adafruit+
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/Adafruit/WebIDE
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message git "clone" "git://github.com/jwcooper/forever-monitor.git" "/home/pi/Adafruit/WebIDE/tmp/npm-1349584681952/1349584681953-0.9478051797486842" failed with 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Adafruit/WebIDE/npm-debug.log
npm not ok

Justin Cooper
Owner

You were able to reach github.com on your browser? In that case, it's likely an issue with either a firewall, proxy, or something blocking the 'git://' protocol. Are you behind anything that would cause this?

If you are behind a proxy, you can try this:
npm config set proxy http://yourproxyinfo
or
git config --global http.proxy http://login:password@our-proxy-server:8088

You can manually test, without running the full installation by typing this at the command line:
git clone git://github.com/jwcooper/forever-monitor.git

porktree

Not behind a proxy here...

npm ERR! git clone git://github.com/jwcooper/forever-monitor.git Cloning into '/home/pi/Adafruit/WebIDE/tmp/npm-1349655309631/1349655309631-0.48198314174078405'...
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git error: index-pack died of signal 11
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git fatal: index-pack failed

npm ERR! Error: git "clone" "git://github.com/jwcooper/forever-monitor.git" "/home/pi/Adafruit/WebIDE/tmp/npm-1349655309631/1349655309631-0.48198314174078405" failed with 128
npm ERR! at ChildProcess. (/usr/share/npm/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:362:16)
npm ERR! at Process.onexit (child_process.js:398:5)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/pi/Adafruit/WebIDE/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.27+
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/Adafruit/WebIDE
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message git "clone" "git://github.com/jwcooper/forever-monitor.git" "/home/pi/Adafruit/WebIDE/tmp/npm-1349655309631/1349655309631-0.48198314174078405" failed with 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Adafruit/WebIDE/npm-debug.log
npm not ok
pi@raspberrypi ~ $ npm ERR! git clone git://github.com/jwcooper/forever-monitor.git Cloning into '/home/pi/Adafruit/WebIDE/tmp/npm-1349655309631/1349655309631-0.48198314174078405'...

Running npm install gets the same thing, but running "git clone git://github.com/jwcooper/forever-monitor.git" yeilds...

npm ERR! git clone git://github.com/jwcooper/forever-monitor.git
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git error: index-pack died of signal 11
npm ERR! git clone git://github.com/jwcooper/forever-monitor.git fatal: index-pack failed

Whats up with that :)

Justin Cooper
Owner

Interesting, I don't think that's even a very large repository. Are you running this from a command line while logged into the RPi GUI? Or are you SSH'ing into the box?

I'm wondering if it's a memory issue, but once again, this repository cloned in about 1 second on my Pi. I just tested it, and it worked. I'm running the latest Occidentalis.

Have you 'shutdown -r now' your Pi lately?

You can also try running the following:
git config pack.windowMemory 10m
git config pack.packSizeLimit 20m

Via Stackoverflow:
http://stackoverflow.com/questions/4826639/repack-of-git-repository-fails

bwsparxz

Seems as thou my ISP blocks the git protocol, not a firewall or proxy issue. I have to take my Pi somewhere where git is not blocked. Could change to https as that works at the beginning from the adafruit git, but cannot find the npm entries to change.

porktree
porktree

Re-imaged. Got farther - now the install ends in ...

Inconsistency detected by ld.so: dl-lookup.c: 867: _dl_setup_hash: Assertion `(bitmask_nwords & (bitmask_nwords - 1)) == 0' failed!

I'll open a different issue.

Justin Cooper
Owner

Interesting! We haven't seen any of these issues. Did you re-image with Occidentalis? What size is your SD card?

What is right before that error?

porktree

I use Win32diskimager on win7 - same thing I've used on my other cards (Xbian for instance). The SD card is 8gb, I used raspi-config to resize it.

I think it's something to do with node - since I get the same error if I run 'node webide.js' from the $HOME/Adafruit/WebIDE directory.

Justin Cooper
Owner

What do you get if you run node -v? Node is pre-installed on Raspbian and Occidentalis, so it would be strange if that was the problem. You can 'cd editor', and see what happens if you run 'node server' too.

bwsparxz

Took my Pi to work, was unblocked from git.

Justin Cooper
Owner

It's interesting that your home ISP would block git, but not your work. :) Usually, it's the other way around. I'll see if we can put in a workaround for that.

Justin Cooper
Owner

Closing this. It should install better on 0.2.0 as well. Instructions here: http://www.adafruit.com/blog/2012/10/18/raspberry-pi-webide-update-to-0-2-0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.