VSTS dotnet restore command fails to get nuget package - .net-core

I have been successfully running a build definition against a dotnet core web application for months now but the build has started to fail. The error occurs when trying to run a dotnet restore command on my projects.
https://i.imgur.com/4EioYjr.png
I am getting the following error when the restore task runs:
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-
flatcontainer/netcore.mailkit/index.json'.
Response status code does not indicate success: 504 (Gateway Timeout).
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-
flatcontainer/netcore.mailkit/index.json'.
Response status code does not indicate success: 504 (Gateway Timeout).
I have manually run the dotnet restore command on my local machine and do not get the error.
Has anyone experienced something like this before in VSTS?
Thanks

This looks like it was a Microsoft issue.
http://blogs.msdn.microsoft.com/vsoservice/?p=15195
https://developercommunity.visualstudio.com/content/problem/129183/getting-504-gateway-timeout-on-hosted-vs2017-agent.html

Related

`dotnet new` throws 401 unauthorized without version on package name

So I have a dotnet template that is published to nuget, but it is only getting installed when running the install command with the version like so: dotnet new --install Foundation.Api::0.3.0. When I run the install command without the version dotnet new --install Foundation.Api, it gives me a 401 unauthorized. Is there some kind of setting I need to add to my csproj? I'm 99% i've done this before without the version and it's ran just fine.
Here's the full error:
Determining projects to restore...
C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp1.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\Paul\.templateengine\dotnetcli\v5.0.100\scratch\restore.csproj]
Retrying 'FindPackagesByIdAsync' for source 'https://company.pkgs.visualstudio.com/_packaging/94b81536-897b-42e6-8b47-bca8f94285e6/nuget/v3/flat2/foundation.api/index.json'.
Response status code does not indicate success: 401 (Unauthorized).
Retrying 'FindPackagesByIdAsync' for source 'https://company.pkgs.visualstudio.com/_packaging/94b81536-897b-42e6-8b47-bca8f94285e6/nuget/v3/flat2/foundation.api/index.json'.
Response status code does not indicate success: 401 (Unauthorized).
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : Failed to retrieve information about 'Foundation.Api' from remote source 'https://company.pkgs.visualstudio.com/_packaging/94b81536-897b-42e6-8b47-bca8f94285e6/nuget/v3/flat2/foundation.api/index.json'. [C:\Users\Paul\.templateengine\dotnetcli\v5.0.100\scratch\restore.csproj]
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\Users\Paul\.templateengine\dotnetcli\v5.0.100\scratch\restore.csproj]

Docker installation of antmedia server always fails

I'm trying to run the community installation within docker with this process:
https://github.com/ant-media/Ant-Media-Server/wiki/Building-and-Running-Docker-Container-for-Ant-Media-Server
And at the end of the build i'm getting
Errors were encountered while processing:
/var/cache/apt/archives/libllvm6.0_1%3a6.0-1ubuntu2~16.04.1_amd64.deb
/var/cache/apt/archives/openjdk-8-jdk-headless_8u265-b01-0ubuntu2~16.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Get a diffrent error in the build process of Enterprise edition , changing the ubuntu version to 18 finally completes the installation but it seems that the server is not starting.
Am i missing something obvious ?

Azure DevOps App Center task error: Test chunking failed

I have lately been trying to upload our UI-tests to App Center through an Azure DevOps pipeline task and seem to always run into this error. The same error also occurs if I try to run the CLI command locally. Our project is a cross platform Xamarin.Forms app using the Xamarin.UITest test framework.
The specified error:
Test chunking failed: Specified method is not supported.
Preparing tests... failed.
Error: Cannot prepare UI Test artifacts using command: C:\Users\VssAdministrator.nuget\packages\xamarin.uitest\3.0.7\tools\test-cloud.exe prepare "D:/a/1/b/Debug/Project.dev.apk" --assembly-dir "D:\a\1\s\ Project.UITest\bin\Debug" --artifacts-dir "D:\a\1\a\AppCenterTest".
Test chunking failed, please try again. If you can't work out how to fix this issue, please contact support.
##[error]Error: D:\a_tasks\AppCenterTest\1.152.3\node_modules.bin\appcenter.cmd failed with return code: 3
Any help is most appreciated.

Facing issue while building Corda Version 1

I am getting below error while building Corda Version 1 (branch name - release-V1)
Task :core:test
net.corda.core.flows.ContractUpgradeFlowTest > 2 parties contract upgrade using RPC FAILED
java.util.concurrent.TimeoutException at ContractUpgradeFlowTest.kt:123
329 tests completed, 1 failed
FAILURE: Build failed with an exception.
Please help...
You can build the project without running the tests by using the command ./gradlew build -x test or gradlew.bat build -x test.
The integration tests can occasionally time-out, so I wouldn't be concerned by this issue. We are working to fix this.
In general, you shouldn't need to build Corda itself. The binaries for release-V1 are published to Maven, so will be downloaded automatically. You should probably work from the templates:
https://github.com/corda/cordapp-template-java
https://github.com/corda/cordapp-template-kotlin

System.TypeLoadException: Could not resolve type with token 0100000f

I get this error running a sample asp.net 5 application on ubuntu 14.04LTS.
after a successful dnu restore command, running dnx kestrel command returns the following error: System.TypeLoadException: Could not resolve type with token 0100000f.
I tried different versions of mono still the same error. I noticed also a difference between kestrel versions in my project.lock.json file(could it be it).
on the browser it returned an internal server error!
I can post the file if needed.
appreciate it!

Resources