Corporate Proxy Issues


#1

Hi There,

I am attempting to run meteor behind a corporate proxy.

I have set the following environment variables:

set proxy=http://corpproxy.com:port/
set HTTP_PROXY=%proxy%
set http_proxy=%proxy%
set HTTPS_PROXY=%proxy%
set https_proxy=%proxy%
set NPM_CONFIG_REGISTRY=http://registry.npmjs.org/
set npm_config_registry=http://registry.npmjs.org/
set NPM_CONFIG_PROXY=%proxy%
set npm_config_proxy=%proxy%
set NPM_CONFIG_HTTPS_PROXY=%proxy%
set npm_config_https_proxy=%proxy%

The ‘meteor’ command manages to connect and download many packages, including meteor tool etc…

After a few minutes of downloading and extracting, it crashes with the following log.

I’m led to believe that this is a proxy issue because the error contains a 403 in the log:

=> Started proxy.
=> Meteor 1.5.2.1 is available. Update this project with 'meteor update'.
=> Errors prevented startup:

   While loading package rajit:bootstrap3-datepicker@1.7.1:
   error: Command failed:
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd rebuild
   --update-binary
   Error making request.
   Error: tunneling socket could not be established, statusCode=403
   at ClientRequest.onConnect
   (D:\user\AppData\Local\.meteor\packages\rajit_bootstrap3-datepicker\1.7.1\npm\lib\bootstrap-datepicker\node_module
s\phantomjs-prebuilt\node_modules\tunnel-agent\index.js:165:19)
   at ClientRequest.g (events.js:260:16)
   at emitThree (events.js:97:13)
   at ClientRequest.emit (events.js:175:7)
   at Socket.socketOnData (_http_client.js:354:11)
   at emitOne (events.js:77:13)
   at Socket.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at Socket.Readable.push (_stream_readable.js:111:10)
   at TCP.onread (net.js:540:20)

   Please report this full log at https://github.com/Medium/phantomjs
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\.npm\_logs\2017-10-03T10_
55_08_557Z-debug.log
   Error making request.
   Error: tunneling socket could not be established, statusCode=403
   at ClientRequest.onConnect
   (D:\user\AppData\Local\.meteor\packages\rajit_bootstrap3-datepicker\1.7.1\npm\lib\bootstrap-datepicker\node_module
s\phantomjs-prebuilt\node_modules\tunnel-agent\index.js:165:19)
   at ClientRequest.g (events.js:260:16)
   at emitThree (events.js:97:13)
   at ClientRequest.emit (events.js:175:7)
   at Socket.socketOnData (_http_client.js:354:11)
   at emitOne (events.js:77:13)
   at Socket.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at Socket.Readable.push (_stream_readable.js:111:10)
   at TCP.onread (net.js:540:20)

   Please report this full log at https://github.com/Medium/phantomjs
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\.npm\_logs\2017-10-03T10_
55_08_557Z-debug.log


   While loading package zenorocha:clipboard@1.7.1:
   error: Command failed:
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\bin\npm.cmd rebuild
   --update-binary
   Error making request.
   Error: tunneling socket could not be established, statusCode=403
   at ClientRequest.onConnect
   (D:\user\AppData\Local\.meteor\packages\zenorocha_clipboard\1.7.1\npm\node_modules\tunnel-agent\index.js:165:19)
   at ClientRequest.g (events.js:260:16)
   at emitThree (events.js:97:13)
   at ClientRequest.emit (events.js:175:7)
   at Socket.socketOnData (_http_client.js:354:11)
   at emitOne (events.js:77:13)
   at Socket.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at Socket.Readable.push (_stream_readable.js:111:10)
   at TCP.onread (net.js:540:20)

   Please report this full log at https://github.com/Medium/phantomjs
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\.npm\_logs\2017-10-03T10_
55_16_845Z-debug.log
   Error making request.
   Error: tunneling socket could not be established, statusCode=403
   at ClientRequest.onConnect
   (D:\user\AppData\Local\.meteor\packages\zenorocha_clipboard\1.7.1\npm\node_modules\tunnel-agent\index.js:165:19)
   at ClientRequest.g (events.js:260:16)
   at emitThree (events.js:97:13)
   at ClientRequest.emit (events.js:175:7)
   at Socket.socketOnData (_http_client.js:354:11)
   at emitOne (events.js:77:13)
   at Socket.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at Socket.Readable.push (_stream_readable.js:111:10)
   at TCP.onread (net.js:540:20)

   Please report this full log at https://github.com/Medium/phantomjs
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!
   D:\user\AppData\Local\.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\.npm\_logs\2017-10-03T10_
55_16_845Z-debug.log


=> Your application has errors. Waiting for file change.

Any help much appreciated!

Thanks,
Matt


#2

Removing the following packages circumvents the problem, but I need these packages.

Can’t see why these packages in particular would get 403 and the rest be ok…

Changes to your project's package version selections:

rajit:bootstrap3-datepicker  removed from your project
zenorocha:clipboard          removed from your project

rajit:bootstrap3-datepicker: removed dependency
zenorocha:clipboard: removed dependency