Coder Social home page Coder Social logo

aspnet-core-helloworld's People

Contributors

andreipet avatar europ avatar jgawor avatar jsloyer avatar opiethehokie avatar preetisawant avatar rvennam avatar svennam92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnet-core-helloworld's Issues

dotnet restore throws error: The imported project "***Microsoft.DNX.Props" was not found

Followed the steps, able to run Hello World console and web dotnet core apps. Then:

187 git clone https://github.com/IBM-Bluemix/aspnet-core-helloworld.git
188 cd aspnet-core-helloworld/src/WebApplication/
189 dotnet restore

/Users/****/dev/pcf/aspnet-core-helloworld/src/WebApplication/WebApplication.xproj(7,3): error MSB4019: The imported project "/usr/local/share/dotnet/sdk/1.0.1/Microsoft/VisualStudio/v14.0/DNX/Microsoft.DNX.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Application Does not Deploy

I was unable to push this application to Cloud foundry. I have relevant part of the log attached below. Please point me to the right direction, thank you

Log

2018-07-09T18:20:37.69+0000 [STG/0] OUT WARNING A newer version of dotnet-framework is available in this buildpack. Please adjust your app to use version1.0.11 instead of version 1.0.5 as soon as possible. Old versions of dotnet-framework are only provided to assist in migrating to newer versions.
2018-07-09T18:20:40.87+0000 [STG/0] OUT -----> Installing dotnet-framework 1.1.0
2018-07-09T18:20:40.87+0000 [STG/0] OUT ERROR DEPENDENCY MISSING IN MANIFEST:
2018-07-09T18:20:40.87+0000 [STG/0] OUT
2018-07-09T18:20:40.87+0000 [STG/0] OUT Version 1.1.0 of dependency dotnet-framework is not supported by this buildpack.
2018-07-09T18:20:40.87+0000 [STG/0] OUT The versions of dotnet-framework supported in this buildpack are:
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.5
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.10
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.11
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.2
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.7
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.8
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 2.0.0
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 2.0.7
2018-07-09T18:20:40.87+0000 [STG/0] OUT
2018-07-09T18:20:40.87+0000 [STG/0] OUT ERROR Unable to install required dotnet frameworks: dependency dotnet-framework 1.1.0 not found
2018-07-09T18:20:40.87+0000 [STG/0] ERR Failed to compile droplet: Failed to run finalize script: exit status 12
2018-07-09T18:20:40.88+0000 [STG/0] OUT Exit status 223

Do i need to compile locally before push into cloud foundry?

I'm getting below error

2016-06-23T14:31:07.11-0700 [STG/0] OUT Downloading app package...
2016-06-23T14:31:07.13-0700 [STG/0] OUT Downloaded app package (21.6K)
2016-06-23T14:31:07.13-0700 [STG/0] OUT Staging...
2016-06-23T14:31:07.15-0700 [STG/0] ERR Failed to compile droplet
2016-06-23T14:31:07.15-0700 [STG/0] OUT Exit status 223
2016-06-23T14:31:07.15-0700 [STG/0] ERR Staging failed: Exited with status 223
2016-06-23T14:31:07.20-0700 [API/0] ERR Failed to stage application: staging failed

Failure on cf push

Any idea from the logs what is the issue?

Logs:
Creating container
Successfully created container
Downloading app package...
Downloaded app package (21.5K)
Staging...
ASP.NET 5 buildpack version: 0.7.0
ASP.NET 5 buildpack starting compile
-----> Restoring files from buildpack cache
OK
-----> Extracting libuv
libuv version: 1.4.2
OK
-----> Extracting libunwind
libunwind version: 1.1
OK
-----> Installing DNVM
Downloading dnvm as script to '/tmp/app/.dnx/dnvm'

   Appending source string to /tmp/app/.bashrc
   Type 'source /tmp/app/.dnx/dnvm/dnvm.sh' to start using dnvm
   OK

-----> Installing DNX with DNVM
Downloading dnx-coreclr-linux-x64.1.0.0-rc1-final from https://www.nuget.org/api/v2
Download: https://www.nuget.org/api/v2/package/dnx-coreclr-linux-x64/1.0.0-rc1-final

################################################################## 100.0%
#### 14.1%
######## 20.0%
########### 23.8%
############## 28.4%
################## 33.4%
####################### 40.7%
########################### 46.9%
################################ 53.9%
##################################### 60.3%
########################################## 66.8%
############################################## 73.0%
################################################## 78.8%
###################################################### 83.7%
########################################################### 90.3%
################################################################# 98.8%
################################################################## 100.0%
   Installing to /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final
   Adding /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final/bin to process PATH
   Setting alias 'default' to 'dnx-coreclr-linux-x64.1.0.0-rc1-final'
   OK

-----> Restoring dependencies with DNU
Adding /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final/bin to process PATH
Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16202

   Restoring packages for /tmp/app/src/dotnetstarter/project.json
   Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
     The value cannot be null or empty.
   Parameter name: UserName
   Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
     The value cannot be null or empty.
   Parameter name: UserName
   Error: FindPackagesById: Microsoft.AspNet.Server.Kestrel
     The value cannot be null or empty.
   Parameter name: UserName
   Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
     The value cannot be null or empty.
   Parameter name: UserName
   Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
     The value cannot be null or empty.
   Parameter name: UserName
   Error: FindPackagesById: Microsoft.AspNet.StaticFiles
     The value cannot be null or empty.
   Parameter name: UserName
   ----------
   System.ArgumentException: The value cannot be null or empty.
   Parameter name: UserName
      at System.Net.Http.CurlHandler.EasyRequest.SetProxyOptions(Uri requestUri)
      at System.Net.Http.CurlHandler.EasyRequest.InitializeCurl()
      at System.Net.Http.CurlHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.Restore.NuGet.HttpSource.<GetAsync>d__11.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.Restore.NuGet.NuGetv2Feed.<FindPackagesByIdAsyncCore>d__25.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RemoteWalkProvider.<FindLibrary>d__6.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibrary>d__9.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryByVersion>d__8.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryMatch>d__6.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryEntry>d__5.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreCommand.<CreateGraphNode>d__71.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>d__69.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      at Microsoft.Dnx.Tooling.RestoreCommand.<>c__DisplayClass68_0.<<Execute>b__2>d.MoveNext()
   --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      at Microsoft.Dnx.Tooling.RestoreCommand.<Execute>d__68.MoveNext()
   ----------
   Restore failed
   The value cannot be null or empty.
   Parameter name: UserName
   FAILED: command failed, exit status 1
   FAILED: Restoring dependencies with DNU failed, command failed, exit status 1

Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223

FAILED
BuildpackCompileFailed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.