question

Caleb-0791 avatar image
1 Vote"
Caleb-0791 asked ryanchill edited

SSH session in browser (Kudu): An error occurred while processing your request.

Before yesterday evening I was using SSH in browser (Kudu). It is not clear what happened when SSH in browser is now failing 100% of the time:

Error.
An error occurred while processing your request.

This is what I see every time I go to Deployment Tools | SSH. The request id increments when I refresh the page.

136675-image.png

Per the details of the error, I enabled "ASPNETCORE_ENVIRONMENT = Development" in: Settings | Configuration.

Then when I navigated to Deployment Tools | SSH I saw this:

System.Net.Sockets.SocketException (111): Connection refused
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at Kudu.Services.Web.Tracing.TraceMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

I don't know what to do with that.

I am however able to SSH with the az commands:
https://docs.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session

I should add it is a web app service in Linux with nginx and PHP 8. Next, in Configuration | General Settings I have a startup.sh script to copy the nginx .cfg with a custom root public web directory. I also have GitHub automatic deploy setup.










azure-webapps-ssh
image.png (63.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same thing happening to me.

1 Vote 1 ·

1 Answer

TomHowells-4374 avatar image
0 Votes"
TomHowells-4374 answered ryanchill edited

This issue seems to be related to the current azure app service plan web app running any version of PHP 8. if you choose to run spin up another app on 7.4 for instance this actually does work..

Logs show, after a lot of digging, that its hanging on the azure side of the SSO login creating a time out socket on the azure part of the Oauth hand shake

If you SSH using azure bash (https://docs.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session) rather than the usual web page link in as mentioned already in the initial post you can indeed get access. This is a break in the OAuth Frame work on the azure side of the network and requires a Microsoft fix to the broken token chain.

Users effected by this should consider contacting Microsoft/MSP support to raise awareness of the current outage.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I logged in a few minutes ago and I had web SSH back again :-).

0 Votes 0 ·

IIt works for me today as well.

0 Votes 0 ·

Thanks for highlighting this @TomHowells-4374 and others. I'll raise this issue with the product teams.

EDIT: A fix for this was rolled out back on 10/1. If anyone continues to see issues, please do let us know.

0 Votes 0 ·