-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keeps reconnecting on iPad #3580
Comments
Hmm... I'll need to take a look at my own iPad setup and see if I'm having similar issues. Is it possible for you to take a screen recording on your iPad and share here? That might help us troubleshoot. |
Getting the same error here on iPadOS 15/MacOS 12 betas in Safari. Specifically seems to happen when interacting with the extensions search bar (code-server is running from the official docker image). Connecting from MacOS 12 using Firefox or Chromium works as expected.
|
Hmm... I wonder if something changed in the newest versions of Safari 🤔 I just tested 3.10.2 on my iPad today (14.6) and it works as expected. I'm also using it on macOS Big Sur 11.3 and having no ScreenshotsRPReplay_Final1623267576.MP4@jmlingeman do you mind posting steps to reproduce? (including how you installed code-server) |
Yeah it looks like it is likely an updated Safari problem. At least in my case if I do not try to search for any extensions then everything seems to work fine. Searching for extensions causes the above behavior. Not sure if that is the case for OP. |
Very strange. Maybe @code-asher has seen something like this in the past |
this is the recorded screen. I took more time to investigate, and found out that such behavior only happens after I try to search for the extensions as other guy said. The problem is that, after such thing happens, only after I restart the server the code-server comes back to normal on Ipad
|
IMG_0101.MP4Having similar issues on my iPad as well. Running iOS 14.6 on an iPad Pro 11” 2018 model, code-server 3.10.2 being hosted on arm64 Debian buster and installed via install.sh. This only happens when I try to access remotely over the internet…if I VPN into the LAN that my server is located on and access code-server via the local address, the problem disappears. Perhaps a weird new SSL issue? EDIT: When I’m VPN’ed in, the constant reloading issue goes away - however, I still can’t use the terminal. EDIT 2: I put some bunk in .bashrc that would typically throw an error, and the error message indeed got printed in the code-server terminal window. It’s making it far enough for that to happen, but yeah, no actual prompt ever appears. |
Thank you all for the screen recordings! This is very very strange... But the fact that multiple of you are having the same issues means something has to be up 🤔
I just tested with my iPad setup (iPad iOS 14.6 + code-server 3.10.2 running on Railway) and it works as expected RPReplay_Final1623342442.MP4@code-asher or @oxy any ideas on what might be causing this? The only thing coming to my mind is issues with native dependencies i.e. The only other thing I'm noticing in common between @korjwl1 and @reticulatingsplines videos is in the bottom left corner - see how it keeps flashing saying "Reconnecting"? Notice how mine never changes. My guess is it has to do somehow with the connection to the environment? But unsure about that. Have any of you reconfigured the marketplace URL? |
I think we might need the logs for this one. From what I understand the
browser logs can be tough to get on an iPad but they might help in
addition to the logs stored in the log dir.
|
Here is the error that appears in the JS console (using the Inspect Browser app). Also, I found that if I load code-server in desktop Firefox or Chromium, I am able to navigate away from the extensions page, which then allows me to continue working on my iPad when I reload the page (as the extensions tab is no longer open). Very strange. I’m not sure how to enable the trace logs mentioned in the image, but I would be happy to do so. I also can’t seem to find where the code-server logs are in the coder provided docker container. Again, would be happy to grab those if someone can point me to where they are. |
Here's my environment
Tested Environments
|
Since this also happens on MacOS 12.0 Beta in Safari (by loading the extensions tab), here are the logs from there, which match the error logs from the iPad: The error messages on MacOS Safari begin with this error message: And then these messages repeat:
|
@korjwl1 thank you for the thorough testing and the notes! @jmlingeman thank you for the logs and the screenshots! And the fact that you can reproduce on macOS + Safari is great because that means we can test easily (I'm on macOS). cc @code-asher - I know you've fixed Safari issues in the past. Maybe you see something obvious here 👀 |
I've never seen that "message too long" error before so I suppose that
could be related. I wonder if the beta has a bug or if it has much lower
limits than it previously did.
Lists of extensions can be quite large so that could explain why it only
happens when viewing the extensions sidebar.
|
In my case, it has something to do with the extension panel(tab). It works fine when the app starts with the file explorer panel, but failed to connect when I switch to extension panel. Sadly I don't know how to remove the installed extensions without switching to extension panel. Update: after I removed ~/.code-server folder, it's fixed. |
I got the same error when I was using safari on iPadOS 15 beta. Firefox on windows worked without any problems code-server is running on Debian 10 on WSL2
|
Yeah I think you might be right. I'm still on 14.5 on my iPad and not seeing these issues |
I am also running iOS 15 on my new iPad 2021 and I am not experiencing such issues. You might try out the newest Safari Technology Preview build. It also uses the new WebKit. In addition you can try and open the Development Tools, you may see an interresting log message. I am running Codeserver on an vServer running Ubuntu. |
I have the same issue. iPad Air 4 2020. iPadOS 15 b1. Continuously receiving the message in server console: Server located on DigitalOcean. Ubuntu 21.04. Connected remotely. Start code-server using code-server --bind-addr <*ip-address>:8080 With --log debug Error: Unexpected SIGPIPE |
Here's what I see when I run code-server as a process (vs daemon) with the verbose option, then try to connect from my iPad Pro running iOS 14.6 (final line SIGINT was from me intentionally ctrl-c'ing, fyi). The little handshake loops cycle in sync with the rapid "reconnecting" message as seen in the video I posted. Occasionally get a read ECONNRESET instead of write ECONNRESET error in these "loops" if you will.
|
Guys I think I found a solution, in iOS settings go to This worked on my iPhone running iOS 15 beta 2. I don’t know enough about how this works but it sounds like it’s changing the way safari handles websockets establishing. Update: Also worked on my iPad |
Confirmed that the workaround suggested by @RWejlgaard works on iOS 15 beta 2. Filed Safari beta feedback with Apple (FB9240512) and referenced this bug report. |
@RWejlgaard’s workaround also works for me also — iOS 15 beta 2 |
Thanks guys I tried your solutions and I can use code-server in Safari now. But serveditor still got the issue. And I'm on iPadOS 15 Dev Βeta 1. |
This workaround also worked for me on 14.6. However, the terminal window is still blank (no prompt) when I access from Safari from either my iPad 14.6 (M1 12.9") or from a M1 Mac mini running macos Big Sur. Maybe unrelated issue but I'm at wits' end troubleshooting it. |
@reticulatingsplines do you mind opening a separate issue and filing a bug report? |
If it's the same problem I had with the terminal window, you can fix it by changing the setting: |
That also worked for me! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
OS/Web Information
code-server --version
: 3.10.2Steps to Reproduce
Expected
The code-server works perfectly on the Microsoft Edge on Windows 10 and Firefox on Lubuntu 20.04.
I also expected that on the Safari or Microsoft Edge of Ipad OS 15
Actual
I didn't see the white page, and could have clicked the ui buttons. However, when I click new terminal, the terminal partition comes out but no terminal is opened. Also, I cannot access to the folders, files and also cannot see any extensions.
All I could see was that on the left bottom part where you can see your domain, the status message kept changing between reconnecting to your doamin and your domain rapidly.
Logs
6월 09 23:34:21 lubuntu code-server[1561]: at process.emit (events.js:314:20)
6월 09 23:34:21 lubuntu code-server[1561]: Error: Unexpected SIGPIPE
6월 09 23:34:21 lubuntu code-server[1561]: at process. (/usr/lib/code-server/lib/vscode/out/bootstrap.js:1:370)
6월 09 23:34:21 lubuntu code-server[1561]: at process.emit (events.js:314:20)
6월 09 23:34:21 lubuntu code-server[1561]: [2021-06-09T14:34:21.301Z] warn vscode Uncaught error {"error":"read ECONNRESET"}
6월 09 23:34:21 lubuntu code-server[1561]: Error: Unexpected SIGPIPE
6월 09 23:34:21 lubuntu code-server[1561]: at process. (/usr/lib/code-server/lib/vscode/out/bootstrap.js:1:370)
6월 09 23:34:21 lubuntu code-server[1561]: at process.emit (events.js:314:20)
6월 09 23:34:24 lubuntu code-server[1561]: ERR [File Watcher (chokidar)] Inotify limit reached (ENOSPC)
6월 09 23:34:24 lubuntu code-server[1561]: ERR [File Watcher (chokidar)] Inotify limit reached (ENOSPC)
Above is the log from the systemctl
Screenshot
Notes
This issue can be reproduced in VS Code: Yes/No
The text was updated successfully, but these errors were encountered: