Ghost-CLI: install behind proxy failed.

searched doc and google , could not find how to setup proxy for ghost-cli. or any offline install method?

before run ghost install , I set following parameters:

export http_proxy=proxy-server-name:80
export https_proxy=proxy-server-name:80
export HTTP_PROXY=proxy-server-name:80
export HTTPS_PROXY=proxy-server-name:80
npm config set strict-ssl false -g
npm config set proxy http://proxy-server-name:80 -g
npm config set https-proxy http://proxy-server-name:80 -g
yarn config set proxy http://proxy-server-name:80 -g
yarn config set https-proxy http://proxy-server-name:80 -g
$ghost install
 ✔ Checking for latest Ghost version
 ✔ Running system checks
 ✔ Setting up install directory
 ❯ Downloading and installing Ghost v1.0.0-beta.1
   ✔ Getting download information
   ✖ Downloading
     → tunneling socket could not be established, cause=connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)
     Installing dependencies
   Moving files
An error occurred.
Message: 'tunneling socket could not be established, cause=connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)'


Debug Information:
    Node Version: v4.8.3
    Ghost-CLI Version: 1.0.0-alpha.18
    Environment: production
    Command: 'ghost install'
 more ghost-cli-debug-2017-06-14T07\:33\:11.481Z.log
Debug Information:
    Node Version: v4.8.3
    Ghost-CLI Version: 1.0.0-alpha.18
    Environment: production
    Command: 'ghost install'
An error occurred.
Message: 'tunneling socket could not be established, cause=connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)'

Stack: RequestError: tunneling socket could not be established, cause=connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)
    at ClientRequest.<anonymous> (/root/.nvm/v4.8.3/lib/node_modules/ghost-cli/node_modules/download/node_modules/got/index.js:73:21)
    at ClientRequest.g (events.js:260:16)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at ClientRequest.onError (/root/.nvm/v4.8.3/lib/node_modules/ghost-cli/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21)
    at ClientRequest.g (events.js:260:16)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at Socket.socketErrorListener (_http_client.js:269:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at emitErrorNT (net.js:1272:8)
    at nextTickCallbackWith2Args (node.js:511:9)
    at process._tickCallback (node.js:425:17)
Code: ECONNRESET
Path: /ghost/-/ghost-1.0.0-beta.1.tgz

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (11 by maintainers)

Most upvoted comments

Released with Ghost-CLI 1.13.0.

Hi, @zicklag I’ve created a pull request on this, however it seems like this project is quite ‘inactive’ for sometime since a lot of pull requests not being merged. 😕 Hopefully it won’t die out soon.

Hey everyone! Apologies for the delay on getting this implemented, support for installing Ghost behind proxies is implemented and will be released as part of Ghost-CLI 1.13.0 😄

Note: support being added is basic support for the proxy environment variables (i.e. http_proxy/https_proxy). Additional options such as custom CA certificates for proxying are a bit more complicated and aren’t supported yet.