Open Primital opened 5 years ago
@Primital can you open https://${app-name}.scm.azurewebsites.net/AppServiceTunnel/Tunnel.ashx?GetStatus in a browser?
what is the name of the app?, can you confirm that the webapp and scm sites are running?
what is the result of az webapp ssh
?
Closing this due to inactivity.
Hi. Sorry to revive an old issue, but I'm having this same problem.
When I go to <webapp>.scm.azurewebsites.net/AppServiceTunnel/Tunnel.ashx?
GetStatus I see the following:
FAILURE:2222:Unable to connect to WebApp
Response when I run az webapp create-remote-connection --subscription <...> --resource-group <...> -n <...> -p <...> --verbose
:
Status response message: FAILURE:2222:Unable to connect to WebApp
WARNING - Remote debugging may not be setup properly. Reponse content: FAILURE:2222:Unable to connect
to WebApp
And the response from az webapp ssh
:
This command is in preview. It may be changed/removed in a future release.
Connection is not ready yet, please wait
.
.
...
.
Timeout Error, Unable to establish a connection
Same issue here:
az webapp ssh --name <myApp> --resource-group <myResourceGroup> --verbose
This command is in preview. It may be changed/removed in a future release.
No port defined, creating on random free port
Creating a socket on port: 0
Setting socket options
Binding to socket on local address and port
Auto-selecting port: 50693
Finished initialization
Status response message: FAILURE:2222:Unable to connect to WebApp
WARNING - Remote debugging may not be setup properly. Reponse content: FAILURE:2222:Unable to connect to WebApp
Connection is not ready yet, please wait
.
.
.
Timeout Error, Unable to establish a connection
Connecting properly to the webapp
as I can do any az webapp show
or any other command from my shell.
Is there any missing configuration in the webapp side?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
In case it is helpful I get the same error messaging: Creating a socket on port: 2222 Setting socket options Binding to socket on local address and port Finished initialization Status response message: FAILURE:2222:Unable to connect to WebApp
after an app instance goes unhealthy, restarting the app instance does not resolve the problem, but going to webssh via the browser does, after that the remote connection works fine. The browser access seems to indicate it is creating a new Docker container...perhaps that somehow resolves the issue.
I'm experiencing same issue:
++Rcv raw: b'\x88\x16\x03\xf3Connection failure. '
++Rcv decoded: fin=1 opcode=8 data=b'\x03\xf3Connection failure. '
++Sent raw: b'\x88\x82\x88`NN\x8b\x88'
++Sent decoded: fin=1 opcode=8 data=b'\x03\xe8'
Received websocket data:
Received websocket data: , index: 1
Client disconnected!, index: 1
Both debugger and websocket threads stopped...
Stopped local server..
Command ran in 16.841 seconds (init: 0.113, invoke: 16.728)
My status page shows SUCCESS:2222
https://APP_NAME.scm.azurewebsites.net/AppServiceTunnel/Tunnel.ashx?GetStatus
Describe the bug After starting a TCP tunnel and trying to ssh to localhost on the specified port, the az tunnel crashes immediately after a BrokenPipeError: [Errno 32] Broken pipe
To reproduce I don't know the cause. On my system it crashes everytime. Please read my comments in additional context
Expected behavior I expect the ssh connection to establish
Environment summary Python3.7.2_2 installed via brew. az-cli installed via brew. Pyenv used for other projects. Installed versions using pyenv are 2.7.15 and 3.6.5
Additional context I have tried reinstalling everything through brew. I tried brew doctor. I tried brew link python. I tried to reinstall python and then brew link python again. I tried to link brews python versions to pyenv paths. I exhausted all possible search terms on google.
Verbose output from crash
In another window i used
ssh root@127.0.0.1 -p 1337