3

Trying to deploy an Express app on an Azure "web site" through Github. I have a private repository in package.json dependencies:

"dependencies": {
  "express: "~3.4.0",
   ...
  "private-repo": "git+ssh://git@github.com:private/repo.git"
}

Unfortunately, here's the stacktrace:

Command: C:\DWASFiles\Sites\website002\VirtualDirectory0\site\deployments\tools\deploy.cmd
Handling node.js deployment.
KuduSync.NET from: 'C:\DWASFiles\Sites\website002\VirtualDirectory0\site\repository' to: 'C:\DWASFiles\Sites\website002\VirtualDirectory0\site\wwwroot'
Copying file: 'package.json'
Missing server.js/app.js files, web.config is not generated
Node.js versions available on the platform are: 0.10.18, 0.10.5, 0.6.17, 0.6.20, 0.8.19, 0.8.2.
Selected node.js version 0.10.18. Use package.json file to choose a different version.
npm http GET https://registry.npmjs.org/express
...
npm WARN `git config --get remote.origin.url` returned wrong result (git@github.com:private/repo.git) fatal: Cannot change to 'C:/DWASFiles/Sites/website002/..': Permission denied
npm http 304 https://registry.npmjs.org/express
...
npm ERR! git clone git@github.com:private/repo.git Cloning into bare repository 'C:\DWASFiles\Sites\website002\AppData\npm-cache\_git-remotes\git-github-com-private-repo-git-63672f8b'...
npm ERR! git clone git@github.com:private/repo.git 
npm ERR! git clone git@github.com:private/repo.git Could not create directory '/c/DWASFiles/Sites/website002/UserProfile/.ssh'.
npm ERR! git clone git@github.com:private/repo.git Host key verification failed.
An error has occurred during web site deployment.
npm ERR! git clone git@github.com:private/repo.git fatal: The remote end hung up unexpectedly
npm ERR! Error: Command failed: Could not create directory '/c/DWASFiles/Sites/website002/UserProfile/.ssh'.
npm ERR! Host key verification failed.
npm ERR! fatal: The remote end hung up unexpectedly
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:637:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:735:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:802:5)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
 npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Program Files (x86)\\nodejs\\0.10.18\\node.exe" "D:\\Program Files (x86)\\npm\\1.3.8\\bin\\npm-cli.js" "install" "--production"
npm ERR! cwd C:\DWASFiles\Sites\website002\VirtualDirectory0\site\wwwroot
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! code 128
AJcodez
  • 233
  • 4
  • 11
  • 2
    I believe the key here is the "host key verification failed". I don't know exactly how it'd be fixed on windows, but on *nix it would be fixed by distributing an already-verified `~/.ssh/known_hosts` file to be installed before trying to pull in the repository. – DerfK Oct 17 '13 at 01:42
  • Did you ever get this working? – avi Feb 14 '17 at 13:46
  • 1
    @avi nope, unfortunately. – AJcodez Feb 15 '17 at 22:50

1 Answers1

0

Maybe it's too late, but it's looking for the url of your repository from which you want to recover your site, "git+ssh://git@github.com:username/nameofrepo.git where you put "git+ssh://git@github.com:private/repo.git".

I hope that will help someone if it's to late for you.