- Notifications
You must be signed in to change notification settings - Fork929
docs: fix jetbrains reconnect faq#12073
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
3 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
22 changes: 17 additions & 5 deletionsdocs/faqs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -534,19 +534,31 @@ https://code.visualstudio.com/docs/remote/linux#_local-linux-prerequisites | ||
<details style="margin-bottom: 28px;"> | ||
<summary style="font-size: larger; font-weight: bold;">How can I resolve disconnects when connected to Coder via JetBrains Gateway?</summary> | ||
If your JetBrains IDE is disconnected for a long period of time due to a network | ||
change (for example turning off a VPN), you may find that the IDE will not | ||
reconnect once the network is re-established (for example turning a VPN back | ||
on). When this happens a persistent message will appear similar to the below: | ||
```console | ||
No internet connection. Changes in the document might be lost. Trying to reconnect… | ||
``` | ||
To resolve this, add this entry to your SSHconfig file on your local machine: | ||
```console | ||
Host coder-jetbrains--* | ||
ServerAliveInterval 5 | ||
``` | ||
ericpaulsen marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
This will make SSH check that it can contact the server every five seconds. If | ||
it fails to do so `ServerAliveCountMax` times (3 by default for a total of 15 | ||
seconds) then it will close the connection which forces JetBrains to recreate | ||
the hung session. You can tweak `ServerAliveInterval` and `ServerAliveCountMax` | ||
to increase or decrease the total timeout. | ||
Note that the JetBrains Gateway configuration blocks for each host in your SSH | ||
config file will be overwritten by the JetBrains Gateway client when it | ||
re-authenticates to your Coder deployment so you must add the above config as a | ||
separate block and not add it to any existing ones. | ||
</details> |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.