0

Please or Register to create posts and topics.

Azure build failed (trying to setup CI)

Tried various configurations of Azure - kicked off by just clicking Start from Publish on Continuous Delivery

Log Below.

Please advise.

...

  Installing Microsoft.Extensions.Logging.Abstractions 1.0.0.

  Installing Microsoft.Extensions.Primitives 1.0.1.

  Installing Microsoft.AspNetCore.Routing 1.0.4.

  Installing Microsoft.AspNetCore.StaticFiles 1.0.4.

  Installing Microsoft.Extensions.FileProviders.Embedded 1.0.1.

  Installing System.Xml.XPath 4.0.0.

  Installing Microsoft.AspNetCore.Mvc.Core 1.0.4.

  Installing Microsoft.AspNetCore.Mvc.Formatters.Json 1.0.4.

  Installing Microsoft.AspNetCore.Mvc.ApiExplorer 1.0.4.

  Installing Microsoft.AspNetCore.Mvc.DataAnnotations 1.0.4.

  Installing Microsoft.IdentityModel.Logging 1.1.5.

  Installing Microsoft.AspNetCore.Http.Extensions 1.0.3.

  Installing Microsoft.AspNetCore.Routing.Abstractions 1.0.4.

  Installing Microsoft.Extensions.Logging.Abstractions 1.0.2.

  Installing Microsoft.Extensions.ObjectPool 1.0.1.

  Installing Microsoft.Extensions.Options 1.0.2.

  Installing Microsoft.AspNetCore.Hosting.Abstractions 1.0.4.

  Installing Microsoft.Extensions.FileProviders.Abstractions 1.0.1.

  Installing Microsoft.Extensions.WebEncoders 1.0.3.

  Installing Microsoft.AspNetCore.Authorization 1.0.3.

  Installing Microsoft.AspNetCore.Hosting.Abstractions 1.0.3.

  Installing Microsoft.AspNetCore.Mvc.Abstractions 1.0.4.

  Installing Microsoft.AspNetCore.Http 1.0.3.

  Installing Microsoft.Extensions.DependencyModel 1.0.0.

  Installing Microsoft.Extensions.PlatformAbstractions 1.0.0.

  Installing Microsoft.AspNetCore.JsonPatch 1.0.0.

  Installing System.ComponentModel.Annotations 4.1.0.

  Installing Microsoft.Extensions.Localization 1.0.3.

  Installing Microsoft.AspNetCore.Http.Abstractions 1.0.3.

  Restore completed in 42.87 sec for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

  Restoring packages for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj...

  Installing Microsoft.VisualStudio.Web.CodeGeneration.Contracts 2.0.0.

  Installing Microsoft.VisualStudio.Web.CodeGeneration.Tools 2.0.0.

  Restore completed in 17.72 sec for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

  Generating MSBuild file D:\a\1\s\Foo.TestFoo\Foo.TestFoo\obj\Foo.TestFoo.csproj.nuget.g.props.

  Generating MSBuild file D:\a\1\s\Foo.TestFoo\Foo.TestFoo\obj\Foo.TestFoo.csproj.nuget.g.targets.

  Restore completed in 1.01 min for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

******************************************************************************

Finishing: Restore

******************************************************************************

******************************************************************************

Starting: Build

******************************************************************************

==============================================================================

Task         : .NET Core

Description  : Build, test and publish using dotnet core command-line.

Version      : 1.0.2

Author       : Microsoft Corporation

Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)

==============================================================================

"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\Foo.TestFoo\DAL\DAL.csproj --configuration release

Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 37.06 ms for D:\a\1\s\Foo.TestFoo\DAL\DAL.csproj.

Models\FoodevContext.cs(299,10): warning CS1030: #warning: 'To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.' [D:\a\1\s\Foo.TestFoo\DAL\DAL.csproj]

  DAL -> D:\a\1\s\Foo.TestFoo\DAL\bin\release\netstandard2.0\DAL.dll

Build succeeded.

Models\FoodevContext.cs(299,10): warning CS1030: #warning: 'To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.' [D:\a\1\s\Foo.TestFoo\DAL\DAL.csproj]

    1 Warning(s)

    0 Error(s)

Time Elapsed 00:00:15.04

"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj --configuration release

Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 40.76 ms for D:\a\1\s\Foo.TestFoo\DAL\DAL.csproj.

  Restore completed in 42.24 ms for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

  Restore completed in 38.26 ms for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

  Restore completed in 123.26 ms for D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj.

  DAL -> D:\a\1\s\Foo.TestFoo\DAL\bin\release\netstandard2.0\DAL.dll

  Foo.TestFoo -> D:\a\1\s\Foo.TestFoo\Foo.TestFoo\bin\release\netcoreapp2.0\Foo.TestFoo.dll

  v8.9.1

  Performing first-run Webpack build...

  npm WARN @angular/compiler-cli@5.2.3 requires a peer of typescript@>=2.4.2 <2.7 but none is installed. You must install peer dependencies yourself.

  npm WARN tsickle@0.26.0 requires a peer of typescript@>=2.4.2 <2.7 but none is installed. You must install peer dependencies yourself.

  npm WARN @angular/flex-layout@2.0.0-beta.10-4905443 requires a peer of @angular/common@~4.4.4 but none is installed. You must install peer dependencies yourself.

  npm WARN @angular/flex-layout@2.0.0-beta.10-4905443 requires a peer of @angular/core@~4.4.4 but none is installed. You must install peer dependencies yourself.

  npm WARN ng2-toasty@4.0.3 requires a peer of @angular/core@^2.4.7 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

  npm WARN ngx-carousel@1.3.5 requires a peer of @angular/common@^2.4.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

  npm WARN ngx-carousel@1.3.5 requires a peer of @angular/core@^2.4.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

  npm WARN Foo-TestFoo@1.0.0 No repository field.

  npm WARN Foo-TestFoo@1.0.0 No license field.

  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):

  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  added 124 packages in 15.468s

  module.js:538

      throw err;

      ^

EXEC : error : Cannot find module 'D:\a\1\s\Foo.TestFoo\Foo.TestFoo\node_modules\webpack\bin\webpack.js' [D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj]

      at Function.Module._resolveFilename (module.js:536:15)

      at Function.Module._load (module.js:466:25)

      at Function.Module.runMain (module.js:676:10)

      at startup (bootstrap_node.js:187:16)

      at bootstrap_node.js:608:3

D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj(53,5): error MSB3073: The command "node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" exited with code 1.

Build FAILED.

EXEC : error : Cannot find module 'D:\a\1\s\Foo.TestFoo\Foo.TestFoo\node_modules\webpack\bin\webpack.js' [D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj]

D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj(53,5): error MSB3073: The command "node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" exited with code 1.

    0 Warning(s)

    2 Error(s)

Time Elapsed 00:00:42.80

Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1

Dotnet command failed with non-zero exit code on the following projects : D:\a\1\s\Foo.TestFoo\Foo.TestFoo\Foo.TestFoo.csproj

******************************************************************************

Finishing: Build

******************************************************************************

******************************************************************************

Starting: Post Job Cleanup

******************************************************************************

Cleaning any cached credential from repository: TestFoo (Git)

git remote set-url origin https://Foo.visualstudio.com/_git/TestFoo

git remote set-url --push origin https://Foo.visualstudio.com/_git/TestFoo

******************************************************************************

Finishing: Post Job Cleanup

******************************************************************************

******************************************************************************

Finishing: Phase 1

 

******************************************************************************

  • Does the project run correctly at localhost?
  • Can you successfully publish offline to the filesystem?

Make sure the client package installations complete successfully:
Delete the "node_modules" folder and the "package-lock.json" file and manually run npm install to redownload all your client packages.

Watch out for any errors in the download process and try again.

See this post for a similar discussion "https://www.staging8.ebenmonney.com/forum/?view=thread&id=16"