vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Web app not working on iPad

Open felipepiresdejesus opened this issue 2 years ago • 5 comments

Hi.

I'm running the command code-server serve and trying to connect with the provided url but I'm not able to see the list of folder/files and also open the terminal.

It keep showing as it is loading but nothing happens.

If I connect from a desktop, it works fine.

This is a screenshot where it got stuck:

7A9F82B2-D292-4629-8552-9BDE226F31A8_1_201_a

And this is the log:

[2022-08-08 11:13:06] trace [basis.0] HostSSH: Receiving #0 ChannelOpenMessage(ChannelType: client-ssh-session-stream, SenderChannel: 0) [2022-08-08 11:13:06] trace [basis.0] HostSSH: Sending #0 ChannelOpenConfirmationMessage(RecipientChannel: 0)(SenderChannel: 0) [2022-08-08 11:13:06] trace [basis.0] HostSSH: SshSession:65066874 OnChannelOpenCompleted(SshChannel(Type: client-ssh-session-stream, Id: 0, RemoteId: 0)) [2022-08-08 11:13:06] trace [basis.0] ClientSSH: SshServerSession:45523402 ConnectAsync [2022-08-08 11:13:06] trace [basis.0] ClientSSH: Sending #0 KeyExchangeInitMessage [2022-08-08 11:13:06] trace [basis.0] ClientSSH: Local version: SSH-2.0-Microsoft.VisualStudio.Ssh_3.7, remote version: SSH-2.0-vs-ssh_3.7.3 [2022-08-08 11:13:06] trace [basis.0] ClientSSH: Receiving #0 KeyExchangeInitMessage [2022-08-08 11:13:06] trace [basis.0] ClientSSH: KeyExchange negotiation: Server (diffie-hellman-group16-sha512, diffie-hellman-group14-sha256) Client (ecdh-sha2-nistp384, ecdh-sha2-nistp256, diffie-hellman-group16-sha512, diffie-hellman-group14-sha256, ext-info-c) => diffie-hellman-group16-sha512 [2022-08-08 11:13:06] trace [basis.0] ClientSSH: PublicKey negotiation: Server (ecdsa-sha2-nistp384) Client (rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp256) => ecdsa-sha2-nistp384 [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ClientEncryption negotiation: Server (aes256-cbc, aes256-ctr) Client ([email protected], aes256-ctr) => aes256-ctr [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ServerEncryption negotiation: Server (aes256-cbc, aes256-ctr) Client ([email protected], aes256-ctr) => aes256-ctr [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ClientHmac negotiation: Server ([email protected], [email protected], hmac-sha2-512, hmac-sha2-256) Client ([email protected], [email protected], hmac-sha2-512, hmac-sha2-256) => [email protected] [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ServerHmac negotiation: Server ([email protected], [email protected], hmac-sha2-512, hmac-sha2-256) Client ([email protected], [email protected], hmac-sha2-512, hmac-sha2-256) => [email protected] [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ClientCompression negotiation: Server (none) Client (none) => none [2022-08-08 11:13:06] trace [basis.0] ClientSSH: ServerCompression negotiation: Server (none) Client (none) => none [2022-08-08 11:13:07] trace [basis.0] ClientSSH: Receiving #1 KeyExchangeDhInitMessage [2022-08-08 11:13:07] trace [basis.0] ClientSSH: Sending #1 KeyExchangeDhReplyMessage [2022-08-08 11:13:07] trace [basis.0] ClientSSH: Sending #2 NewKeysMessage [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Receiving #2 NewKeysMessage [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Sending #3 ExtensionInfoMessage([email protected]; server-sig-algs=rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: SshServerSession:45523402 encrypted [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Receiving #3 ExtensionInfoMessage(server-sig-algs=rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256; [email protected]) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Receiving #4 ServiceRequestMessage(Service: ssh-userauth) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Sending #4 ServiceAcceptMessage(Service: ssh-userauth) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Receiving #5 AuthenticationRequestMessage(Method: none, Username: tunnel) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: SshServerSession:45523402 Authenticating(Username: tunnel, Key: password) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: ClientNone authentication succeeded. [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Sending #5 AuthenticationSuccessMessage [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Sending #6 PortForwardRequestMessage(RequestType: tcpip-forward)(AddressToBind: localhost, Port: 31545) [2022-08-08 11:13:08] trace [basis.0] ClientSSH: Receiving #6 ChannelOpenMessage(ChannelType: forwarded-tcpip, SenderChannel: 1)

  • VSCode Version: VS Code Server 20220727.1
  • Local OS Version: Mac OS 12.5
  • Remote OS Version: iPad OS 15.5

Steps to Reproduce:

  1. Start code-server
  2. Access from iPad

felipepiresdejesus avatar Aug 08 '22 09:08 felipepiresdejesus

Same. I was trying to run the server on my desktop under WSL. iPad would not load.

Apreche avatar Aug 08 '22 21:08 Apreche

@connor4312 @tanhakabir seems like this might be the Safari issue we were discussing?

bamurtaugh avatar Aug 08 '22 21:08 bamurtaugh

Most likely the safari issue.

tanhakabir avatar Aug 08 '22 22:08 tanhakabir

@connor4312 @tanhakabir seems like this might be the Safari issue we were discussing?

I don't think so. I tried on safari, chrome and edge, and on all of them I for the same behavior.

felipepiresdejesus avatar Aug 09 '22 00:08 felipepiresdejesus

Same here. Unfortunately I didn't try yet on code-server serve-local.

cm-wada-yusuke avatar Aug 10 '22 02:08 cm-wada-yusuke

here too! but my log is Request to 'https://ms-vscode.vscode-unpkg.net/ms-vscode/remote-server/0.1.2022081109/extension/dist/web/nls.metadata.json' failed with status code 404 and Request to 'https://ms-vscode.vscode-unpkg.net/ms-vscode/remote-server/0.1.2022081109/extension/package.nls.json' failed with status code 404

coding-famer avatar Aug 12 '22 07:08 coding-famer

Neither it works on desktop Safari. While it works fine in chrome based browsers like Edge (in desktop as well).

yurikpanic avatar Aug 12 '22 14:08 yurikpanic

@connor4312 @tanhakabir seems like this might be the Safari issue we were discussing?

I don't think so. I tried on safari, chrome and edge, and on all of them I for the same behavior.

On iOS any browser uses safari engine under the hood. This is an apple restriction. So, Edge on iOS - is still safari with different UI.

yurikpanic avatar Aug 12 '22 14:08 yurikpanic

Can’t access on IPad either. Tried 4 different browsers and got the 404 errors in my logs above. Using the same server on an android phone works like a charm.

CoMfUcIoS avatar Aug 12 '22 19:08 CoMfUcIoS

Hi, i'm having the same issue but my log exactly the same as @felipepiresdejesus

VSCode Version: VS Code Server 20220810.1 Local OS Version: Mac OS 12.5 Remote OS Version: iPad OS 15.6 Browser both use safari and chrome

The log stopped at

Log from ipad safari
...
[2022-08-14 07:55:37] trace [basis.0] ClientSSH: Sending #5 AuthenticationSuccessMessage
[2022-08-14 07:55:37] trace [basis.0] ClientSSH: Sending #6 PortForwardRequestMessage(RequestType: tcpip-forward)(AddressToBind: localhost, Port: 31545)
[2022-08-14 07:55:37] trace [basis.0] ClientSSH: Receiving #6 ChannelOpenMessage(ChannelType: forwarded-tcpip, SenderChannel: 1)

Whille when connecting from chrome in android, the difference between the log is that from safari ipad the log doesnt continue to Receiving #7 ChannelOpenMessage

Log from android chrome
...
[2022-08-14 08:00:55] trace [basis.0] ClientSSH: Sending #5 AuthenticationSuccessMessage
[2022-08-14 08:00:55] trace [basis.0] ClientSSH: Sending #6 PortForwardRequestMessage(RequestType: tcpip-forward)(AddressToBind: localhost, Port: 31545)
[2022-08-14 08:00:55] trace [basis.0] ClientSSH: Receiving #6 SessionRequestSuccessMessage
[2022-08-14 08:00:56] trace [basis.0] ClientSSH: Receiving #7 ChannelOpenMessage(ChannelType: forwarded-tcpip, SenderChannel: 1)
[2022-08-14 08:00:56] debug [rpc.2] Serving connection from 127.0.0.1:56771
[2022-08-14 08:00:56] trace [basis.0] ClientSSH: PortForwardingService forwarded channel #0 connection to 127.0.0.1:31545.
[2022-08-14 08:00:56] trace [basis.0] ClientSSH: Sending #7 ChannelOpenConfirmationMessage(RecipientChannel: 1)(SenderChannel: 0)
[2022-08-14 08:00:56] trace [basis.0] ClientSSH: SshServerSession:5669060 OnChannelOpenCompleted(SshChannel(Type: forwarded-tcpip, Id: 0, RemoteId: 1))
...continue until success

xian13 avatar Aug 14 '22 01:08 xian13

Just pushed a potential fix for this! Could you all try it out and let me know if this works for you?

tanhakabir avatar Aug 18 '22 16:08 tanhakabir

Just pushed a potential fix for this! Could you all try it out and let me know if this works for you?

Yes, it worked for me on Safari for iPad. Thank you

felipepiresdejesus avatar Aug 18 '22 17:08 felipepiresdejesus

This also seems to have resolved the issue I was having with Safari on my machines described in #7001.

tlockney avatar Aug 19 '22 17:08 tlockney