none
[Node.js][Web Apps] Trouble with a deployment script “npm ERR! fetch failed" RRS feed

  • Question

  • From Olov Nilzén ‏@olovnilzen via Twitter

    @AzureSupport I’m having trouble with a deployment script “npm ERR! fetch failed

    registry.npmjs.org/array-unique/-…” etc, any known issues?

    @olovnilzen We're looking into this and will keep you updated. ^AL

    @azuresupport let me know if you need the complete console output.

    Please Direct Message us confirming what you are trying to deploy and if you are using SQL scripting. ^AL

    Hi,

    I'm trying to run a custom deployment that first should run "npm install", "bower install" and "gulp" before mbsuild, it's a modified version of "--aspWAP". But it's failing on "npm install". This is a snippet of the console output:

    remote: ......................................................................................

    remote: npm ERR! fetch failed

    registry.npmjs.org/braces/-/brace…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)

    remote: .................................................................

    remote: npm ERR! fetch failed

    registry.npmjs.org/object.omit/-/…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)

    remote: npm ERR! fetch failed

    registry.npmjs.org/arr-diff/-/arr…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)

    remote: npm ERR! fetch failed

    registry.npmjs.org/array-unique/-…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)

    remote: .....

    remote: npm ERR! fetch failed

    registry.npmjs.org/braces/-/brace…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)

    remote: .................................................................

    remote: npm ERR! fetch failed

    registry.npmjs.org/object.omit/-/…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)

    remote: npm ERR! fetch failed

    registry.npmjs.org/arr-diff/-/arr…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)

    remote: npm ERR! fetch failed

    registry.npmjs.org/array-unique/-…

    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)

    remote: .......................................................

    remote: npm ERR! fetch failed

    registry.npmjs.org/braces/-/brace…

    remote: .................................................................

    remote: npm ERR! fetch failed

    registry.npmjs.org/object.omit/-/…

    remote: npm ERR! fetch failed

    registry.npmjs.org/arr-diff/-/arr…

    remote: npm ERR! fetch failed

    registry.npmjs.org/array-unique/-…

    remote: ......................................................................................................................................

    remote: npm WARN optional Skipping failed optional dependency /micromatch/extglob:

    Thanks for sending over that information. Our team is looking into it. We'll update you as soon as more information is available. ^AL

    https://twitter.com/AzureSupport/status/729603746817171458

    Thanks

    @AzureSupport



    Monday, May 9, 2016 10:03 AM

Answers

  • Looks like you are hitting the same socket limit as discussed here. Can you try whether it works in Basic or Standard? As suggest in that thread, you could conceivably scale up just to let the deployment succeed, and then back down.

    David

    Monday, May 9, 2016 3:58 PM

All replies

  • Counting objects: 3, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Updating branch 'master'.
    remote: Updating submodules.
    remote: Preparing deployment for commit id '4656376c76'.
    remote: Running custom deployment command...
    remote: Running deployment command...
    remote: Looking for app.js/server.js under site root.
    remote: Missing server.js/app.js files, web.config is not generated
    remote: The package.json file does not specify node.js engine version constraints.
    remote: The node.js application will run with the default node.js version 4.2.3.
    remote: Selected npm version 3.5.1
    remote: Handling deployment.
    remote: Installing npm packages
    remote: .
    remote: npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
    remote: .
    remote: npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
    remote: npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
    remote: ......................................................................................
    remote: npm ERR! fetch failed https://registry.npmjs.org/braces/-/braces-1.8.4.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: .................................................................
    remote: npm ERR! fetch failed https://registry.npmjs.org/object.omit/-/object.omit-2.0.0.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: npm ERR! fetch failed https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: npm ERR! fetch failed https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: .....
    remote: npm ERR! fetch failed https://registry.npmjs.org/braces/-/braces-1.8.4.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: .................................................................
    remote: npm ERR! fetch failed https://registry.npmjs.org/object.omit/-/object.omit-2.0.0.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm ERR! fetch failed https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm ERR! fetch failed https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz
    remote: npm WARN retry will retry, error on last attempt: Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: .......................................................
    remote: npm ERR! fetch failed https://registry.npmjs.org/braces/-/braces-1.8.4.tgz
    remote: .................................................................
    remote: npm ERR! fetch failed https://registry.npmjs.org/object.omit/-/object.omit-2.0.0.tgz
    remote: npm ERR! fetch failed https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz
    remote: npm ERR! fetch failed https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz
    remote: ......................................................................................................................................
    remote: npm WARN optional Skipping failed optional dependency /micromatch/extglob:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/extglob' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/normalize-path:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/normalize-path' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/parse-glob:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/parse-glob' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/regex-cache:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/regex-cache' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/filename-regex:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/filename-regex' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/expand-brackets:
    remote: npm WARN Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.40.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/expand-brackets' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/kind-of:
    remote: npm WARN Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.40.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/kind-of' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/braces:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/braces' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/object.omit:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: Failed exitCode=1, command="D:\Program Files (x86)\nodejs\4.2.3\node.exe" "D:\Program Files (x86)\npm\3.5.1\node_modules\npm\bin\npm-cli.js" install
    remote: npm WARN   address: '23.235.44.162',
    remote: An error has occurred during web site deployment.
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/object.omit' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/arr-diff:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/arr-diff' }
    remote: npm WARN optional Skipping failed optional dependency /micromatch/array-unique:
    remote: npm WARN Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.44.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'micromatch',
    remote: npm WARN   optional: '/micromatch/array-unique' }
    remote: npm WARN optional Skipping failed optional dependency /to-absolute-glob/extend-shallow:
    remote: npm WARN Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)
    remote: npm WARN     at Object.exports._errnoException (util.js:874:11)
    remote: npm WARN     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm WARN     at connect (net.js:841:14)
    remote: npm WARN     at net.js:984:7
    remote: npm WARN     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm WARN     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm WARN  { [Error: connect EACCES 23.235.40.162:443 - Local (undefined:undefined)]
    remote: npm WARN   code: 'EACCES',
    remote: npm WARN   errno: 'EACCES',
    remote: npm WARN   syscall: 'connect',
    remote: npm WARN   address: '23.235.40.162',
    remote: npm WARN   port: 443,
    remote: npm WARN   parent: 'to-absolute-glob',
    remote: npm WARN   optional: '/to-absolute-glob/extend-shallow' }
    remote: npm ERR! Windows_NT 6.2.9200
    remote: npm ERR! argv "D:\\Program Files (x86)\\nodejs\\4.2.3\\node.exe" "D:\\Program Files (x86)\\npm\\3.5.1\\node_modules\\npm\\bin\\npm-cli.js" "install"
    remote: npm ERR! node v4.2.3
    remote: npm ERR! npm  v3.5.1
    remote: npm ERR! code EACCES
    remote: npm ERR! errno EACCES
    remote: npm ERR! syscall connect
    remote:
    remote: npm ERR! Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)
    remote: npm ERR!     at Object.exports._errnoException (util.js:874:11)
    remote: npm ERR!     at exports._exceptionWithHostPort (util.js:897:20)
    remote: npm ERR!     at connect (net.js:841:14)
    remote: npm ERR!     at net.js:984:7
    remote: npm ERR!     at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
    remote: npm ERR!     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
    remote: npm ERR!  { [Error: connect EACCES 23.235.44.162:443 - Local (undefined:undefined)]
    remote: npm ERR!   code: 'EACCES',
    remote: npm ERR!   errno: 'EACCES',
    remote: npm ERR!   syscall: 'connect',
    remote: npm ERR!   address: '23.235.44.162',
    remote: npm ERR!   port: 443,
    remote: npm ERR!   parent: 'gulp-sourcemaps' }
    remote: npm ERR!
    remote: npm ERR! Please try running this command again as root/Administrator.
    remote:
    remote: npm ERR! Please include the following file with any support request:
    remote: npm ERR!     D:\home\site\repository\npm-debug.log
    remote:
    remote: Error - Changes committed to remote repository but deployment to website failed.
    To https://***@***.scm.azurewebsites.net:443/***.git
       1abb8dd..4656376  azure-deploy -> master
    Monday, May 9, 2016 10:08 AM
  • @if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off

    :: ----------------------
    :: KUDU Deployment Script
    :: Version: 1.0.6
    :: ----------------------

    :: Prerequisites
    :: -------------

    :: Verify node.js installed
    where node 2>nul >nul
    IF %ERRORLEVEL% NEQ 0 (
      echo Missing node.js executable, please install node.js, if already installed make sure it can be reached from current environment.
      goto error
    )

    :: Setup
    :: -----

    setlocal enabledelayedexpansion

    SET ARTIFACTS=%~dp0%..\artifacts

    IF NOT DEFINED DEPLOYMENT_SOURCE (
      SET DEPLOYMENT_SOURCE=%~dp0%.
    )

    IF NOT DEFINED DEPLOYMENT_TARGET (
      SET DEPLOYMENT_TARGET=%ARTIFACTS%\wwwroot
    )

    IF NOT DEFINED NEXT_MANIFEST_PATH (
      SET NEXT_MANIFEST_PATH=%ARTIFACTS%\manifest

      IF NOT DEFINED PREVIOUS_MANIFEST_PATH (
        SET PREVIOUS_MANIFEST_PATH=%ARTIFACTS%\manifest
      )
    )

    IF NOT DEFINED KUDU_SYNC_CMD (
      :: Install kudu sync
      echo Installing Kudu Sync
      call npm install kudusync -g --silent
      IF !ERRORLEVEL! NEQ 0 goto error

      :: Locally just running "kuduSync" would also work
      SET KUDU_SYNC_CMD=%appdata%\npm\kuduSync.cmd
    )
    IF NOT DEFINED DEPLOYMENT_TEMP (
      SET DEPLOYMENT_TEMP=%temp%\___deployTemp%random%
      SET CLEAN_LOCAL_DEPLOYMENT_TEMP=true
    )

    IF DEFINED CLEAN_LOCAL_DEPLOYMENT_TEMP (
      IF EXIST "%DEPLOYMENT_TEMP%" rd /s /q "%DEPLOYMENT_TEMP%"
      mkdir "%DEPLOYMENT_TEMP%"
    )

    IF DEFINED MSBUILD_PATH goto MsbuildPathDefined
    SET MSBUILD_PATH=%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe
    :MsbuildPathDefined


    IF DEFINED KUDU_SELECT_NODE_VERSION_CMD (
      :: The following are done only on Windows Azure Websites environment
      call %KUDU_SELECT_NODE_VERSION_CMD% "%DEPLOYMENT_SOURCE%" "%DEPLOYMENT_TARGET%" "%DEPLOYMENT_TEMP%"
      IF !ERRORLEVEL! NEQ 0 goto error

      IF EXIST "%DEPLOYMENT_TEMP%\__nodeVersion.tmp" (
        SET /p NODE_EXE=<"%DEPLOYMENT_TEMP%\__nodeVersion.tmp"
        IF !ERRORLEVEL! NEQ 0 goto error
      )
      
      IF EXIST "%DEPLOYMENT_TEMP%\__npmVersion.tmp" (
        SET /p NPM_JS_PATH=<"%DEPLOYMENT_TEMP%\__npmVersion.tmp"
        IF !ERRORLEVEL! NEQ 0 goto error
      )

      IF NOT DEFINED NODE_EXE (
        SET NODE_EXE=node
      )

      SET NPM_CMD="!NODE_EXE!" "!NPM_JS_PATH!"
    ) ELSE (
      SET NPM_CMD=npm
      SET NODE_EXE=node
    )

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Deployment
    :: ----------

    echo Handling *** deployment.

    :: 1. Install npm packages
    IF EXIST "%DEPLOYMENT_SOURCE%\package.json" (
      echo Installing npm packages
      pushd "%DEPLOYMENT_SOURCE%"
      call :ExecuteCmd !NPM_CMD! install
      IF !ERRORLEVEL! NEQ 0 goto error
      popd
    )

    :: 2. Install bower packages
    IF EXIST "%DEPLOYMENT_SOURCE%\bower.json" (
      echo Installing bower packages
      pushd "%DEPLOYMENT_SOURCE%"
      call :ExecuteCmd .\node_modules\.bin\bower install
      IF !ERRORLEVEL! NEQ 0 goto error
      popd
    )

    :: 3. Run gulp transformations
    IF EXIST "%DEPLOYMENT_SOURCE%\gulpfile.js" (
      echo Running gulp
      pushd "%DEPLOYMENT_SOURCE%"
      call :ExecuteCmd .\node_modules\.bin\gulp
      IF !ERRORLEVEL! NEQ 0 goto error
      popd
    )

    :: 4. Restore NuGet packages
    IF /I "***.sln" NEQ "" (
      call :ExecuteCmd nuget restore "%DEPLOYMENT_SOURCE%\***.sln"
      IF !ERRORLEVEL! NEQ 0 goto error
    )

    :: 5. Build to the temporary path
    IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
      call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\***\***.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="%DEPLOYMENT_TEMP%";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="%DEPLOYMENT_SOURCE%\.\\" %SCM_BUILD_ARGS%
    ) ELSE (
      call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\***\***.csproj" /nologo /verbosity:m /t:Build /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="%DEPLOYMENT_SOURCE%\.\\" %SCM_BUILD_ARGS%
    )

    IF !ERRORLEVEL! NEQ 0 goto error

    :: 6. KuduSync
    IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
      call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_TEMP%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
      IF !ERRORLEVEL! NEQ 0 goto error
    )

    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    :: Post deployment stub
    IF DEFINED POST_DEPLOYMENT_ACTION call "%POST_DEPLOYMENT_ACTION%"
    IF !ERRORLEVEL! NEQ 0 goto error

    goto end

    :: Execute command routine that will echo out when error
    :ExecuteCmd
    setlocal
    set _CMD_=%*
    call %_CMD_%
    if "%ERRORLEVEL%" NEQ "0" echo Failed exitCode=%ERRORLEVEL%, command=%_CMD_%
    exit /b %ERRORLEVEL%

    :error
    endlocal
    echo An error has occurred during web site deployment.
    call :exitSetErrorLevel
    call :exitFromFunction 2>nul

    :exitSetErrorLevel
    exit /b 1

    :exitFromFunction
    ()

    :end
    endlocal
    echo Finished successfully.
    Monday, May 9, 2016 10:09 AM
  • {
      "name": "***",
      "version": "1.0.0",
      "description": "***",
      "autor": "***",
      "devDependencies": {
        "autoprefixer-core": "^5.2.1",
        "css-mqpacker": "^4.0.0",
        "csswring": "^3.0.6",
        "gulp": "^3.9.0",
        "gulp-cache": "^0.2.10",
        "gulp-concat": "^2.6.0",
        "gulp-imagemin": "^2.3.0",
        "gulp-jshint": "^1.11.2",
        "gulp-less": "^3.0.3",
        "gulp-plumber": "^1.0.1",
        "gulp-postcss": "^6.0.0",
        "gulp-rename": "^1.2.2",
        "gulp-sourcemaps": "^1.5.2",
        "gulp-uglify": "^1.2.0",
        "watchify": "^3.3.1"
      }
    }
    Monday, May 9, 2016 10:10 AM
  • From top to bottom:

    1. console output after a push
    2. deploy.cmd
    3. package.json
    Monday, May 9, 2016 10:10 AM
  • Looks like you are hitting the same socket limit as discussed here. Can you try whether it works in Basic or Standard? As suggest in that thread, you could conceivably scale up just to let the deployment succeed, and then back down.

    David

    Monday, May 9, 2016 3:58 PM
  • That seems to have fixed it. Thanks David!
    Tuesday, May 10, 2016 6:53 AM