none
Got 504 time out error while using cloud foundry to push a dotnet app with dotnet buildpack RRS feed

  • Question

  • Hi,I'm a developer from china, I'm using Cloud foundry as my development platform.

    This is the buildpack version I am using. 1.0.13

    zhang.yepeng-bl@public01-boshcli:~/myapps/dotnet$ cf buildpacks
    Getting buildpacks...
    buildpack                                     position   enabled   locked   filename
    liberty-for-java                              1          true      false    buildpack_liberty-for-java_v3.9-20170419-1403-offline.zip
    sdk-for-nodejs                                2          true      false    buildpack_sdk-for-nodejs_v3.12-20170505-0656.zip
    dotnet-core                                   3          true      false    buildpack_dotnet-core_v1.0.13-20170330-1023.zip


    below is the error log when I pushed the app using "cf push $my_app_name"

    STG/0
    Welcome to .NET Core!
    2017年7月15日 下午2点51分27秒
    STG/0
    ---------------------
    2017年7月15日 下午2点51分27秒
    STG/0
    Telemetry
    2017年7月15日 下午2点51分27秒
    STG/0
    --------------
    2017年7月15日 下午2点51分27秒
    STG/0
    A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
    2017年7月15日 下午2点51分27秒
    STG/0
    -------------------
    2017年7月15日 下午2点51分27秒
    STG/0
    Decompressing 0%Decompressing 1%Decompressing 2%Decompressing 3%Decompressing 4%Decompressing 5%Decompressing 6%Decompressing 7%Decompressing 8%Decompressing 9%Decompressing 10%Decompressing 11%Decompressing 12%Decompressing 13%Decompressing 14%Decompressing 15%Decompressing 16%Decompressing 17%Decompressing 18%Decompressing 19%Decompressing 20%Decompressing 21%Decompressing 22%Decompressing 23%Decompressing 24%Decompressing 25%Decompressing 26%Decompressing 27%Decompressing 28%Decompressing 29%Decompressing 30%Decompressing 31%Decompressing 32%Decompressing 33%Decompressing 34%Decompressing 35%Decompressing 36%Decompressing 37%Decompressing 38%Decompressing 39%Decompressing 40%Decompressing 41%Decompressing 42%Decompressing 43%Decompressing 44%Decompressing 45%Decompressing 46%Decompressing 47%Decompressing 48%Decompressing 49%Decompressing 50%Decompressing 51%Decompressing 52%Decompressing 53%Decompressing 54%Decompressing 55%Decompressing 56%Decompressing 57%Decompressing 58%Decompressing 59%Decompressing 60%Decompressing 61%Decompressing 62%Decompressing 63%Decompressing 64%Decompressing 65%Decompressing 66%Decompressing 67%Decompressing 68%Decompressing 69%Decompressing 70%Decompressing 71%Decompressing 72%Decompressing 73%Decompressing 74%Decompressing 75%Decompressing 76%Decompressing 77%Decompressing 78%Decompressing 79%Decompressing 80%Decompressing 81%Decompressing 82%Decompressing 83%Decompressing 84%Decompressing 85%Decompressing 86%Decompressing 87%Decompressing 88%Decompressing 89%Decompressing 90%Decompressing 91%Decompressing 92%Decompressing 93%Decompressing 94%Decompressing 95%Decompressing 96%Decompressing 97%Decompressing 98%Decompressing 99%Decompressing 100% 8083 ms
    2017年7月15日 下午2点51分35秒
    STG/0
    Expanding 0%Expanding 1%Expanding 2%Expanding 3%Expanding 4%Expanding 5%Expanding 6%Expanding 7%Expanding 8%Expanding 9%Expanding 10%Expanding 11%Expanding 12%Expanding 13%Expanding 14%Expanding 15%Expanding 16%Expanding 17%Expanding 18%Expanding 19%Expanding 20%Expanding 21%Expanding 22%Expanding 23%Expanding 24%Expanding 25%Expanding 26%Expanding 27%Expanding 28%Expanding 29%Expanding 30%Expanding 31%Expanding 32%Expanding 33%Expanding 34%Expanding 35%Expanding 36%Expanding 37%Expanding 38%Expanding 39%Expanding 40%Expanding 41%Expanding 42%Expanding 43%Expanding 44%Expanding 45%Expanding 46%Expanding 47%Expanding 48%Expanding 49%Expanding 50%Expanding 51%Expanding 52%Expanding 53%Expanding 54%Expanding 55%Expanding 56%Expanding 57%Expanding 58%Expanding 59%Expanding 60%Expanding 61%Expanding 62%Expanding 63%Expanding 64%Expanding 65%Expanding 66%Expanding 67%Expanding 68%Expanding 69%Expanding 70%Expanding 71%Expanding 72%Expanding 73%Expanding 74%Expanding 75%Expanding 76%Expanding 77%Expanding 78%Expanding 79%Expanding 80%Expanding 81%Expanding 82%Expanding 83%Expanding 84%Expanding 85%Expanding 86%Expanding 87%Expanding 88%Expanding 89%Expanding 90%Expanding 91%Expanding 92%Expanding 93%Expanding 94%Expanding 95%Expanding 96%Expanding 97%Expanding 98%Expanding 99%Expanding 100% 7641 ms
    2017年7月15日 下午2点51分42秒
    STG/0
    log : Restoring packages for /tmp/app/src/dotnetCloudantWebstarter/project.json...
    2017年7月15日 下午2点51分47秒
    STG/0
    log : Response status code does not indicate success: 504 (Gateway Timeout).
    2017年7月15日 下午2点51分51秒
    STG/0
    log : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserialization.4.1.1.nupkg'.
    2017年7月15日 下午2点51分51秒
    STG/0
    log : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserialization.4.1.1.nupkg'.
    2017年7月15日 下午2点51分52秒
    STG/0
    log : Response status code does not indicate success: 504 (Gateway Timeout).
    2017年7月15日 下午2点51分52秒
    STG/0
    error: Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserialization.4.1.1.nupkg'.
    2017年7月15日 下午2点51分52秒
    STG/0
    error: Response status code does not indicate success: 504 (Gateway Timeout).
    2017年7月15日 下午2点51分52秒
    STG/0
    error: Unable to load package 'System.Private.DataContractSerialization'.
    2017年7月15日 下午2点51分52秒
    STG/0
    FAILED: Restoring dependencies with Dotnet CLI failed, command failed, exit status 1
    2017年7月15日 下午2点51分52秒
    STG/0
    FAILED: command failed, exit status 1
    2017年7月15日 下午2点51分52秒
    STG/0
    Failed to compile droplet
    2017年7月15日 下午2点51分52秒
    STG/0
    Exit status 223
    2017年7月15日 下午2点51分52秒
    STG/0
    Staging failed: Exited with status 223
    2017年7月15日 下午2点51分53秒
    STG/0
    Destroying container
    2017年7月15日 下午2点51分53秒
    API/0
    Failed to stage application: staging failed
    2017年7月15日 下午2点51分53秒
    STG/0
    Successfully destroyed container
    2017年7月15日 下午2点51分57秒

    It appears to be the nuget source is not accessible

    so I use curl -I https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserialization.4.1.1.nupkg"to test whether I can access this from my personal computer, but failed with 504

    # Davin @ zhangyepengdeMacBook-Pro in ~ [14:41:38] 

    $ curl -I https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserialization.4.1.1.nupkg

    HTTP/1.1 504 Gateway Timeout

    Content-Type: text/html

    Content-Length: 357

    Date: Sat, 15 Jul 2017 07:09:46 GMT

    Server: ECLF (hhp/9A8C)

    and I changed the build pack version using cf push $my_app_name -b https://github.com/cloudfoundry/dotnet-core-buildpack.git

    this buildpack's version is 1.0.22 which didn't work and showed the same error

         zhang.yepeng-bl@public01-boshcli:~/myapps/dotnet$ cf push davindotnettest -b https://github.com/cloudfoundry/dotnet-core-buildpack.git
           Decompressing 100% 8083 ms
           Expanding 100% 7641 ms
           log  : Restoring packages for /tmp/app/src/dotnetCloudantWebstarter/project.json...
           log  : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserializatio
    n.4.1.1.nupkg'.
           log  : Response status code does not indicate success: 504 (Gateway Timeout).
           log  : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserializatio
    n.4.1.1.nupkg'.
           log  : Response status code does not indicate success: 504 (Gateway Timeout).
           error: Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.private.datacontractserialization/4.1.1/system.private.datacontractserializatio
    n.4.1.1.nupkg'.
           error: Response status code does not indicate success: 504 (Gateway Timeout).
           error: Unable to load package 'System.Private.DataContractSerialization'.
           FAILED: command failed, exit status 1
           FAILED: Restoring dependencies with Dotnet CLI failed, command failed, exit status 1
    Failed to compile droplet
    Exit status 223
    Staging failed: Exited with status 223
    Destroying container
    Successfully destroyed container
    FAILED
    Error restarting application: BuildpackCompileFailed


    Any idea with how I can fix the network issue?or who have had encountered with this issue?



    Saturday, July 15, 2017 7:14 AM

All replies

  • I have the same issue with you, when I restore my project  in ubuntu 14.04 64 
    Saturday, July 15, 2017 8:12 AM
  • I have the same issue with you, when I restore my project  in ubuntu 14.04 64 
    seems to be a nuget source issue, so I post this to nuget repository on github in case of no response here. And how your problem resoleved or it still there?
    Saturday, July 15, 2017 8:39 AM
  • Hi DavinZhang,

    Thank you for posting here.

    According to your question is more related to Cloud foundry, you could post a new thread in GitHub.

    https://github.com/cloudfoundry-community

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions. 

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 17, 2017 6:53 AM