pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

setup paths failed

Open idaibin opened this issue 8 years ago • 1 comments

pm2 always error 'setup paths failed' and pm2 v2.8.0

pm2 deploy ecosystem.json production setup
--> Deploying to production environment
--> on host 39.**.**.**
  ○ hook pre-setup
ssh_exchange_identification: Connection closed by remote host

  setup paths failed

Deploy failed

##ecosystem.json

{
  "apps": [
    {
      "name": "Website",
      "script": "app.js",
      "env": {
        "COMMON_VARIABLE": "true"
      },
      "env_production": {
        "NODE_ENV": "production"
      }
    }
  ],
  "deploy": {
    "production": {
      "user": "daibin",
      "host": ["***"],
      "port": "3000",
      "ref": "origin/master",
      "repo": "[email protected]:**/**.git",
      "path": "/www/website/production",
      "ssh_options": "StrictHostKeyChecking=no",
      "post-deploy" : "pm2 startOrRestart ecosystem.json --env production",
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

idaibin avatar Dec 05 '17 14:12 idaibin

The actual error is just above : ssh_exchange_identification: Connection closed by remote host So not related to PM2.

vmarchaud avatar Dec 13 '17 13:12 vmarchaud