{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/3592","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/3592/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/3592/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/3592/events","html_url":"https://github.com/Unitech/pm2/issues/3592","id":312174617,"node_id":"MDU6SXNzdWUzMTIxNzQ2MTc=","number":3592,"title":"Deploy failed, failed to clone, fatal: Too many arguments.","user":{"login":"taoweicn","id":25795549,"node_id":"MDQ6VXNlcjI1Nzk1NTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/25795549?v=4","gravatar_id":"","url":"https://api.github.com/users/taoweicn","html_url":"https://github.com/taoweicn","followers_url":"https://api.github.com/users/taoweicn/followers","following_url":"https://api.github.com/users/taoweicn/following{/other_user}","gists_url":"https://api.github.com/users/taoweicn/gists{/gist_id}","starred_url":"https://api.github.com/users/taoweicn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taoweicn/subscriptions","organizations_url":"https://api.github.com/users/taoweicn/orgs","repos_url":"https://api.github.com/users/taoweicn/repos","events_url":"https://api.github.com/users/taoweicn/events{/privacy}","received_events_url":"https://api.github.com/users/taoweicn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-07T06:12:52Z","updated_at":"2018-10-25T18:20:41Z","closed_at":null,"author_association":"NONE","body":"## What's going wrong?\r\nWhen I run ` pm2 deploy production setup` on my local PC, it always shows:\r\n```\r\n pm2 deploy production setup\r\n--> Deploying to production environment\r\n--> on host X.X.X.X\r\n  ○ hook pre-setup\r\n  ○ running setup\r\n  ○ cloning git@github.com:taoweicn/quiz-game.git\r\n  ○ full fetch◙\r\nfatal: Too many arguments.◙◙usage: git clone [<options>] [--] <repo> [<dir>]◙◙    -v, --verbose         be more verbose◙    -q, --quiet           be more quiet◙rting◙tu\r\n    --bare                create a bare repository◙    --mirror              create a mirror repository (implies bare)◙tory◙nks, always copy◙p as shared repository◙]◙◙l\r\n    --template <template-directory>◙                          directory from which templates will be used◙    --reference <repo>    reference repository◙able <repo>◙◙>◙D\r\n    -u, --upload-pack <path>◙                          path to git-upload-pack on the remote◙    --depth <depth>       create a shallow clone of that depth◙nce <time>◙◙hc\r\n    --no-tags             don't clone any tags, and make later fetches not to follow them◙    --shallow-submodules  any cloned submodules will be shallow◙dir <gitdir>◙◙ryo\r\n    -4, --ipv4            use IPv4 addresses only◙    -6, --ipv6            use IPv6 addresses only◙    --filter <args>       object filtering◙◙◙\r\n  failed to clone◙\r\n◙\r\nDeploy failed◙\r\n```\r\nI thought it might be a problem with git, but I can git clone this repository(run `git clone git@github.com:taoweicn/quiz-game.git`) on the remote server manually.\r\nThe git version on the remote server is `git version 2.17.0`.\r\n## How could we reproduce this issue?\r\nMy config:\r\n*ecosystem.config.js*\r\n```\r\nmodule.exports = {\r\n  apps : [\r\n    {\r\n      name      : 'quiz-game',\r\n      script    : 'app.js',\r\n    }\r\n  ],\r\n  deploy : {\r\n    production : {\r\n      user : 'root',\r\n      host : 'X.X.X.X',\r\n      ref  : 'origin/master',\r\n      repo : 'git@github.com:taoweicn/quiz-game.git',\r\n      path : '/home/website/quiz-game',\r\n      'post-deploy' : 'yarn && yarn build'\r\n    }\r\n  }\r\n};\r\n```\r\n## Supporting information\r\nLocal PC:\r\n```\r\n--- Daemon -------------------------------------------------\r\npm2d version         : 2.10.2\r\nnode version         : 8.10.0\r\nnode path            : undefined\r\nargv                 : C:\\Program Files\\nodejs\\node.exe,C:\\Users\\twchn\\AppData\\Roaming\\npm\\node_modules\\pm2\\lib\\Daemon.js\r\nargv0                : node\r\nuser                 : undefined\r\nuid                  : N/A\r\ngid                  : N/A\r\nuptime               : 159min\r\n===============================================================================\r\n--- CLI ----------------------------------------------------\r\nlocal pm2            : 2.10.2\r\nnode version         : 8.10.0\r\nnode path            : undefined\r\nargv                 : C:\\Program Files\\nodejs\\node.exe,C:\\Users\\twchn\\AppData\\Roaming\\npm\\node_modules\\pm2\\bin\\pm2,report\r\nargv0                : node\r\nuser                 : twchn\r\n===============================================================================\r\n--- System info --------------------------------------------\r\narch                 : x64\r\nplatform             : win32\r\ntype                 : Windows_NT\r\ncpus                 : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\ncpus nb              : 8\r\nfreemem              : 8715026432\r\ntotalmem             : 17024618496\r\nhome                 : C:\\Users\\twchn   \r\n```\r\nRemote server:\r\n```\r\n--- Daemon -------------------------------------------------\r\npm2d version         : 2.10.2\r\nnode version         : 9.10.1\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/local/bin/node,/usr/local/lib/node_modules/pm2/lib/Daemon.js\r\nargv0                : node\r\nuser                 : root\r\nuid                  : 0\r\ngid                  : 0\r\nuptime               : 39min\r\n===============================================================================\r\n--- CLI ----------------------------------------------------\r\nlocal pm2            : 2.10.2\r\nnode version         : 9.10.1\r\nnode path            : /usr/local/bin/pm2\r\nargv                 : /usr/local/bin/node,/usr/local/bin/pm2,report\r\nargv0                : node\r\nuser                 : root\r\nuid                  : 0\r\ngid                  : 0\r\n===============================================================================\r\n--- System info --------------------------------------------\r\narch                 : x64\r\nplatform             : linux\r\ntype                 : Linux\r\ncpus                 : Intel(R) Xeon(R) CPU E5-26xx v3\r\ncpus nb              : 1\r\nfreemem              : 115220480\r\ntotalmem             : 1040601088\r\nhome                 : /root\r\n```"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/433155057","html_url":"https://github.com/Unitech/pm2/issues/3592#issuecomment-433155057","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/3592","id":433155057,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzE1NTA1Nw==","user":{"login":"valayDave","id":11920247,"node_id":"MDQ6VXNlcjExOTIwMjQ3","avatar_url":"https://avatars0.githubusercontent.com/u/11920247?v=4","gravatar_id":"","url":"https://api.github.com/users/valayDave","html_url":"https://github.com/valayDave","followers_url":"https://api.github.com/users/valayDave/followers","following_url":"https://api.github.com/users/valayDave/following{/other_user}","gists_url":"https://api.github.com/users/valayDave/gists{/gist_id}","starred_url":"https://api.github.com/users/valayDave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valayDave/subscriptions","organizations_url":"https://api.github.com/users/valayDave/orgs","repos_url":"https://api.github.com/users/valayDave/repos","events_url":"https://api.github.com/users/valayDave/events{/privacy}","received_events_url":"https://api.github.com/users/valayDave/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T18:20:41Z","updated_at":"2018-10-25T18:20:41Z","author_association":"NONE","body":"I have the same issue. Has anyone gotten a solution to this ?"}}
{"actor":{"display_login":"valayDave"}}