2016-08-31 2 views
0

내에서 연결을 허용하지 못했습니다.인스턴스 추락 : 내가 bluemix 내 Asp.net 핵심 응용 프로그램을 배포 생각하면서이 문제를 얻기 상태 점검 제한 시간

호스팅 공급자는 Bluemix입니다.

로그 :

Downloading artifacts...DOWNLOAD SUCCESSFUL Target: 
https://api.ng.bluemix.net Using manifest file 
/home/pipeline/cb3f3db1-2e27-4c5a-a1f4-e5b8f9ada7f6/manifest.yml 

[email protected] ...

  OK 

      Using route myproject01.mybluemix.net 
      Uploading myproject01... 
      Uploading app files from: /home/pipeline/cb3f3db1-2e27-4c5a-a1f4-e5b8f9ada7f6 
      Uploading 14.7M, 2061 files 


      Done uploading 
      OK 
      Binding service myproject01-cloudantNoSQLDB to app myproject01 in org myproject_org/space Dev as [email protected] 
      OK 

      Stopping app myproject01 in org myproject_org/space Dev as [email protected] 
      OK 

      Starting app myproject01 in org myproject_org/space Dev as [email protected] 
      -----> Downloaded app package (56M) 
      ASP.NET Core buildpack version: v0.9-20160706-1603 
      ASP.NET Core buildpack starting compile 
      -----> Restoring files from buildpack cache 
        Copied 199 files from /tmp/cache/.dotnet to /tmp/staged/app 
        Copied 14925 files from /tmp/cache/.nuget to /tmp/staged/app 
        Copied 37 files from /tmp/cache/libunwind to /tmp/staged/app 
        OK 
      -----> Extracting libunwind 
        OK 
      -----> Installing Dotnet CLI 
        OK 
      -----> Restoring dependencies with Dotnet CLI 
        log : Restoring packages for /tmp/staged/app/src/myproject.Utility/project.json... 
        log : Restoring packages for /tmp/staged/app/src/myproject.Core/project.json... 
        log : Restoring packages for /tmp/staged/app/src/dotnetCloudantWebstarter/project.json... 
        log : Restoring packages for /tmp/staged/app/project.json... 
        log : Writing lock file to disk. Path: /tmp/staged/app/src/myproject.Utility/project.lock.json 
        log : Writing lock file to disk. Path: /tmp/staged/app/src/myproject.Core/project.lock.json 
        log : src/myproject.Utility/project.json 
        log : Restore completed in 1752ms. 
        log : src/myproject.Core/project.json 
        log : Restore completed in 1753ms. 
        log : ./project.json 
        log : Restore completed in 2036ms. 
        log : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in /tmp/staged/app/src/dotnetCloudantWebstarter/project.json... 

        warn : dotnetCloudantWebstarter (>= 1.0.0) -> System.Threading.Tasks.Extensions (>= 4.0.0-rc2-24027) 
        log : Writing lock file to disk. Path: /tmp/staged/app/src/dotnetCloudantWebstarter/project.lock.json 
        log : src/dotnetCloudantWebstarter/project.json 
        log : Restore completed in 4439ms. 
        OK 
      -----> Saving to buildpack cache 
        Copied 0 files from /tmp/staged/app/.dotnet to /tmp/cache 
        Copied 0 files from /tmp/staged/app/.nuget to /tmp/cache 
      ASP.NET Core buildpack is done creating the droplet 

      -----> Uploading droplet (270M) 

      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 down 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      0 of 1 instances running, 1 starting 
      FAILED 
      Start app timeout 

      TIP: Application must be listening on the right port. Instead of hard coding the port, use the $PORT environment variable. 

      Use 'cf logs myproject01 --recent' for more information 

      Finished: FAILED 

로 조직 myproject_org/공간 데브에서 응용 프로그램 myproject01 업데이트는 PLZ이 문제를 제거하기 위해 나를 도와 ... ...

감사합니다.

+0

당신은 당신이 당신의 프로젝트의'Main' 방법뿐만 아니라 project.json의 코드를 공유 할 수 project.json – lazy

+0

를 공유 할 수 있습니까? –

+0

project.json : { "버전": "1.0.0- *", "buildOptions": { "emitEntryPoint"사실 }, "종속": { "Microsoft.NETCore.App": { "유형": "플랫폼", "버전": "1.0.0-rc2-3002702" } }, "프레임 워크": { "netcoreapp1.0": { "수입": "dnxcore50" } } } –

답변

0

Bluemix에서 ASP.NET 코어에 대한 상용구의 기본 버전은 기본 메모리 제한이 512MB로 증가했지만 응용 프로그램이 제한이 256MB로 설정된 해당 상용구의 이전 버전을 기반으로 한 것으로 보입니다. 이 응용 프로그램의 기본에 "Hello World"스타일에 대한 충분한 동안 당신이 어떤 점에서 더 많은 메모리가 필요합니다 응용 프로그램에 더 많은 기능을 추가하기 시작하고 충분한 메모리를 가지고 있지하는 원인이됩니다 일단

, 그것은 충돌합니다.

메모리 제한을 512MB로 늘리면 발생하는 문제를 해결할 수 있지만 다른 문제가 발생하기 전에 패키지 버전 불일치에 대한 경고 메시지도 처리하기 시작합니다. 동일한 응용 프로그램에서 RC2와 RTM 모두에서 패키지를 가져 오는 것은 코드에서 호출하려고하는 RTM 버전에서 변경되었지만 설치된 패키지가 RC2에서 발생한 경우 문제가 될 수 있습니다.

+0

Buemixx 대시 보드에서 MEMORY QUOTA를 인스턴스 당 256MB에서 512MB로 늘리지 만 여전히 같은 오류가 발생합니다. –

+0

.net core에서이 작업을 수행하는 방법은 무엇입니까? http://stackoverflow.com/questions/29542452/i-am-having-trouble-starting-my-node-app-in-bluemix 그것이 포트 문제라면 ... –

+0

'Main' 메소드에서 게시 한 코드 Kestrel에 명령 줄 매개 변수를 전달하기 때문에 이미 적절한 포트를 설정해야합니다. –