Azure fails to deploy ASP.NET Core app / Can't connect to MyGet server - azure

I'm somewhat new to .NET Core and I'm trying to make a RESTful web api with authentication (using OpenIddict as the middleware). I working with Visual Studio Code on OSX.
To use OpenIddict, I have to add another source for the packages so following the tutorial, I added a NuGet.config file at the root of my project which looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="aspnet-contrib" value="https://aspnetcontrib.myget.org/F/aspnet-contrib/api/v3/index.json" />
</packageSources>
</configuration>
So I restore, I build, I run, I try it with Postman... Nice! Everything works. So, I tried to push it in Azure. So I set up an app, configure it source as local Git, and I push my app. Good.
Then, Azure tries to build it but fail when running the deployment command, which is when (I suppose) it fetches the package and all, right? Well, the error is that:
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment.
Restoring packages for D:\home\site\repository\BobWebApi.csproj...
Restoring packages for D:\home\site\repository\BobWebApi.csproj...
Restoring packages for D:\home\site\repository\BobWebApi.csproj...
Restoring packages for D:\home\site\repository\BobWebApi.csproj...
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.extensions.secretmanager.tools/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.netcore.runtime.coreclr/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.netcore.dotnethostpolicy/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.csharp/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.codeanalysis.csharp/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.codeanalysis.visualbasic/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.extensions.platformabstractions/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.data.sqlite/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/libuv/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.visualstudio.web.codegeneration.tools/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/newtonsoft.json/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.aspnetcore.server.iisintegration/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/aspnet.security.oauth.validation/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.aspnetcore.authentication/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.netcore.app/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.netcore.platforms/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.visualbasic/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.entityframeworkcore.relational/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/microsoft.aspnetcore.identity.entityframeworkcore/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/nuget.frameworks/index.json'.
An error occurred while sending the request.
The server returned an invalid or unrecognized response
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/runtime.native.system.io.compression/index.json'.
An error occurred while sending the request.
A connection with the server could not be established
Retrying 'FindPackagesByIdAsync' for source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/runtime.native.system.io.compression/index.json'.
An error occurred while sending the request.
A connection with the server could not be established
D:\Program Files (x86)\dotnet\sdk\1.0.1\NuGet.targets(97,5): error : Failed to retrieve information about 'runtime.native.System.IO.Compression' from remote source 'https://myget-2e16.kxcdn.com/artifacts/aspnet-contrib/nuget/v3/flatcontainer/runtime.native.system.io.compression/index.json'. [D:\home\site\repository\BobWebApi.csproj]
D:\Program Files (x86)\dotnet\sdk\1.0.1\NuGet.targets(97,5): error : An error occurred while sending the request. [D:\home\site\repository\BobWebApi.csproj]
D:\Program Files (x86)\dotnet\sdk\1.0.1\NuGet.targets(97,5): error : A connection with the server could not be established [D:\home\site\repository\BobWebApi.csproj]
Failed exitCode=1, command=dotnet restore "BobWebApi.csproj"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\62.60515.2845\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
So I don't know what to do. Why is Azure even trying to get all these files from the wrong source? And if I have to, how do I tell it where to get them?
Thank you

Sorry for the delay. I managed to solve everything by rebuilding, redeploying everything from scratch. I didn't find solution to quickly solve it, but since I was only beginning, it was no big deal. Just hope it won't hit me again.

Related

unable to connect to a repository at URL, Connection timed out

im using Tortoise SVN to add & update existing files.Till now it was working fine, but now when i try to commit after adding some new data in existing file i'm getting an error after commiting, the error is :
Commit failed,
Error: commit failed (details follow):
Error: unable to connect to a repository at URL
Error: 'http://*********'
Error: Connection timed out
Completed
Commit failed,
Error: commit failed (details follow):
Error: unable to connect to a repository at URL
Error: 'http://*********'
Error: Connection timed out
Completed

Unkown error message when trying to install Haskell Platform on Windows

When trying to install the Haskell Platform via Chocolatey as outlined in the default instructions at haskell.org/platform, I get an error when trying to install the cabal and ghc packages.
**cabal message:**
Attempt to get headers for https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip failed.
The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
Downloading cabal 64 bit
from 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://downloads.haskell.org/cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
The install of cabal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\cabal\tools\chocolateyInstall.ps1'.
See log for details.
**ghc messages:**
Attempt to get headers for https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz failed.
The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
Downloading ghc 64 bit
from 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
The install of ghc was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.
See log for details.
Any help greatly appr

Request cannot be proceed error in Jhipster registry version 4.0.0

I downloaded jhipster registry version 4.0.0, imported and run the registry successfully, when I open localhost:8761 I am getting request cannot be proceed error, there is no error information also.
When I used command mvnw I am getting an exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
One way is to use http protocol instead of https.
To do this go into your project directory > .mvn > wrapper > maven-wrapper.properties.
You will find something like distributionUrl=http://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip.
Change this url to using http instead of https.
Other solutions are more complex but there is no harm in trying.
Problems connecting via HTTPS/SSL through own Java client
Calling web service: javax.net.ssl.SSLException: Received fatal alert: protocol_version
javax.net.ssl.SSLException: Received fatal alert: protocol_version
Simply pass "-Dhttps.protocols=TLSv1.2" as extra argument

Parse Server + Express - Issues with ParseError and site dying/restarting

I have deployed a Bitnami Parse stack to a Google Cloud VM. This stack is basically Apache running as a proxy, Then a MEAN stack handling parse server and dashboard etc.
Everything appears to be working fine when accessing the dashboard and sending individual CURL requests to test it's all available.
However, there appears to be a fatal flaw in that. When Parse returns one of it's errors e.g.
{"code":101,"error":"Object not found."}
Express sees it as an uncaught exception and dies. Now I realise that it's intentional behaviour (There's enough information out there as to why you don't want to persist after an uncaught exception)
The Bitnami stack uses Forever to run the Parse Server, but as you can see from the logs I will include below, you still run into issues with refused connections.
2016-11-25T11:41:16+00:00 DEBUG (7): {"code":101,"error":"Object not found."}
2016-11-25T11:41:16+00:00 DEBUG (7): Failed to connect to X.X.X.X: Connection refused
2016-11-25T11:41:17+00:00 DEBUG (7): Failed to connect to X.X.X.X: Connection refused
2016-11-25T11:41:17+00:00 DEBUG (7): Failed to connect to X.X.X.X: Connection refused
2016-11-25T11:41:17+00:00 DEBUG (7): Failed to connect to X.X.X.X: Connection refused
Meanwhile in the Forever logs:
Error generating response. ParseError { code: 101, message: 'Object not found.' } code=101, message=Object not found.
[object Object]
/opt/bitnami/apps/parse/htdocs/node_modules/parse-server/lib/ParseServer.js:425
throw err;
^
Error: EACCES: permission denied, open '/opt/bitnami/apps/parse/htdocs/logs/parse-server.info.2016-11-25'
at Error (native)
error: Forever detected script exited with code: 7
error: Script restart attempt #1
parse-server running on port 1337
parse-dashboard running on port 4040
So you can see that immediately following a Parse error being returned, The service is unavailable until Forever can restart the Parse Server.
This issue appears that it would affect all users as well, so if one user receives an exception, all users lose connection for a brief period.
So the question is, how should this be properly handled? Is Parse + Express not the way to go about it? Or is there some method of configuring Node or Express to return the API error to the requester, without Express dying (And without having to fall into the trap of using uncaughtException to keep Node alive)
Any help would be much appreciated, thank you
The logs from Forever said it's EACCES error, that means ParseServer couldn't access the log file and not able to write the info log in it.
Error: EACCES: permission denied, open '/opt/bitnami/apps/parse/htdocs/logs/parse-server.info.2016-11-25'
at Error (native)
error: Forever detected script exited with code: 7
error: Script restart attempt #1
parse-server running on port 1337
parse-dashboard running on port 4040
I think you have to change the /opt/bitnami/apps/parse/htdocs/logs with proper permission so that ParseServer can write log files in it.

Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

I am trying to follow the documentation at this link:
http://docs.puppetlabs.com/pe/latest/quick_start.html
When I get to the part where one runs ...
sudo puppet agent --test
I get this error message ...
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Error 403 on SERVER: Forbidden request: red-cricket-pe-master (xxx.xxx.xxx.xx) access to /facts/red-cricket-agent [save] authenticated at line 45
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Thanks
Red
Found my answer here: https://serverfault.com/questions/491623/puppet-enterprise-2-7-error-400-on-server-error-403-on-server-cant-puppet/493085#493085
Looks like you HAVE TO install the console.

Resources