Is there a proxy between my VM and the open web?

17 views
Skip to first unread message

Burns, Eric

unread,
Aug 11, 2014, 11:12:03 AM8/11/14
to geni-...@googlegroups.com

Hi!  I have two VM resources on GENI, and I’m trying to install my node.js server on them.  On both, “npm install” errors out trying to fetch the prerequisite libraries.  Usually this is due to internet connectivity issues, and can be caused by a proxy (if I don’t have npm set up to use that proxy).

 

Do the resources have a proxy between that VM and the open internet?

 

A curl from one resource (pcvm2-6.instageni.nysernet.org) showed that it could reach the prerequisite URLs fine (which would be consistent with the idea that I have not set up npm correctly for a proxy).

 

On pcvm2-6.instageni.stanford.edu, though, I wasn’t able to install curl because I get 404 errors trying to do so (on URLs that work fine on my machine).

 

Anyone have any ideas of why this could be happening?

 

Thanks!

 

Details:

Account type: GENI portal

Slice name: serversetup

Aggregates:

- NYSERNet InstaGENI

- Stanford InstaGENI

Leigh Stoller

unread,
Aug 11, 2014, 12:40:28 PM8/11/14
to geni-...@googlegroups.com
> On pcvm2-6.instageni.stanford.edu, though, I wasn’t able to install curl because I get 404 errors trying to do so (on URLs that work fine on my machine).
>
> Anyone have any ideas of why this could be happening?

Hi. I logged into your VM and tried wget and ftp, both worked fine.
Maybe you are seeing a transient problem with site you are trying to
access?

Leigh





Sarah Edwards

unread,
Aug 11, 2014, 12:40:56 PM8/11/14
to geni-...@googlegroups.com, Sarah Edwards, Burns, Eric
Hi Eric,

This seems to just be an npm configuration issue.

I think I was able to reproduce your issue (are you seeing something like [1]).

Googling "npm install fails" took me to:

So I did:
$ npm config set registry http://registry.npmjs.org/

And now I can install a packet using npm:
$ npm install sax
s...@0.6.0 ./node_modules/sax

Could you try that?

Thanks,
Sarah

[1] On a xen VM running Ubuntu, I get:
$ npm install sax

npm ERR! Error: failed to fetch from registry: sax
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! or use
npm ERR!     reportbug --attach /users/sedwards/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.2.0-56-generic
npm ERR! command "node" "/usr/bin/npm" "install" "sax"
npm ERR! cwd /users/sedwards
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: sax
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /users/sedwards/npm-debug.log
npm not ok


-- 
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.
 
If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
--- 
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

*******************************************************************************
Sarah Edwards
GENI Project Office

BBN Technologies
Cambridge, MA
phone:    (617) 873-2329
email:    sedw...@bbn.com





Burns, Eric

unread,
Aug 11, 2014, 1:30:50 PM8/11/14
to Sarah Edwards, geni-...@googlegroups.com

That worked for me.  Thanks!

Reply all
Reply to author
Forward
0 new messages