question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keeps reconnecting on iPad

See original GitHub issue

OS/Web Information

  • Web Browser: Safari, Edge, . … etc
  • Local OS: Lubuntu 20.04
  • Remote OS: IpadOS 15 on M1 Ipad
  • Remote Architecture: I used code-server with bind-addr option and cert, cert-key option. Used pem files from Let’s Encrypt for my asus router DDNS for cert and cert-key
  • code-server --version: 3.10.2

Steps to Reproduce

  1. Just access with any browsers on IpadOS 15
  2. Then I cannot access to any files, extensions and terminal on the Code-Server. All I can see is keep reconnecting response on the left bottom part. (The one for open remote repository)

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.<anonymous> (/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.<anonymous> (/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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:29 (9 by maintainers)

github_iconTop GitHub Comments

26reactions
RWejlgaardcommented, Jun 29, 2021

Guys I think I found a solution, in iOS settings go to Safari -> Advanced -> Experimental Features and disable NSURLSession WebSocket.

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

6reactions
AndresRQ27commented, Jul 12, 2021

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.

If it’s the same problem I had with the terminal window, you can fix it by changing the setting: Settings --> Terminal --> Integrated: Gpu Acceleration --> Turn off

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPad Keeps Disconnecting from Wi-Fi? Here's the Easy Fix!
Step-by-Step Guide to Solve iPad Wi-Fi Disconnects Issues · Make sure you're within range of the Wi-Fi network you're connecting to. · Try...
Read more >
Why does my iPad keeps connecting and dis…
It comes down to power, or more importantly "current". Specifically with an iPad, USB power consumption is very finicky. So in order for...
Read more >
iPad Keeps Disconnecting From Computer, How-To Fix
Charge your iPad, iPhone, or iPod before connecting to your computer · Unplug all accessories from your computer except for your iPad/iPhone/iPod.
Read more >
iPad Keeps Disconnecting From Wi-Fi: 5 Simple Solutions
If your iPad disconnects from Wi-Fi repeatedly, you can check the Wi-Fi settings on your iPad, restart the router, check for connection speed...
Read more >
How to fix Wi-Fi signal drops on Apple iPad Air 2019 ... - iKream
How to fix Wi-Fi signal drops on Apple iPad Air 2019, keeps disconnecting from Wi-Fi network · First solution: Power cycle the modem/router....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found