Skip to content

Commit 70576b8

Browse files
authored
add GitHub OAuth error solution (#540)
1 parent 726d0dc commit 70576b8

File tree

4 files changed

+46
-12
lines changed

4 files changed

+46
-12
lines changed
14.7 KB
Loading

guides/troubleshooting/docker-problems.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Docker troubleshooting
2+
title: Docker
33
description: Learn how to solve Docker issues inside Coder workspaces.
44
---
55

@@ -21,7 +21,7 @@ and size of keys each user can have.
2121
## Resolution
2222

2323
To fix this error, you can increase `maxkeys` and `maxbytes`. These are global
24-
settings that apply to *all* users sharing the same system. You can modify this
24+
settings that apply to _all_ users sharing the same system. You can modify this
2525
by adding the following to the `sysctl` configuration file:
2626

2727
```console

guides/troubleshooting/git-oauth.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: GitHub OAuth integration
3+
description: Learn how to fix a "Failed to link account" OAuth error.
4+
---
5+
6+
When configuring the OAuth integration between Coder and GitHub, you may
7+
encounter the following error:
8+
9+
![Failed to link](../../assets/guides/troubleshooting/oauth-error.png)
10+
11+
## Why this happens
12+
13+
This error occurs when your Coder public key has been uploaded to your GitHub
14+
profile; when you attempt to link Coder and GitHub, the OAuth integration
15+
attempts to add your public key again to GitHub.
16+
17+
## Solution
18+
19+
1. [Remove your Coder public key](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/reviewing-your-ssh-keys)
20+
from your GitHub account.
21+
22+
1. In Coder, navigate to **Account** > **Linked Accounts** and click **Link Your
23+
GitHub Account**.
24+
25+
1. If successful, you will be re-directed back to the **Account** page. There
26+
will be a message in the bottom right corner that says:
27+
28+
```console
29+
Successfully linked to GitHub account <your-GitHub-username>
30+
```
31+
32+
If the steps above do not fix the problem, the error may be related to the
33+
GitHub configuration values set using Coder's **Admin** panel. Site managers can
34+
view and update these values at **Manage** > **Admin** > **Git OAuth**.

guides/troubleshooting/registry.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Image registry troubleshooting
2+
title: Image registry
33
description: Learn how to resolve issues connecting to an image registry.
44
---
55

@@ -18,8 +18,7 @@ certificate signed by unknown authority
1818
The local registry you are configuring is expecting a valid certificate to
1919
authenticate the connection with Coder. You will receive this error if:
2020

21-
- You do not have a certificate
22-
configured
21+
- You do not have a certificate configured
2322
- There is an issue with the certificate itself
2423

2524
> Coder uses Docker's Registry 2.0 implementation, which supports self-signed
@@ -28,8 +27,9 @@ configured
2827
## Troubleshooting steps
2928

3029
- If you haven't created the local registry, and you haven't generated the
31-
self-signed certificate, [please see our
32-
documentation](../../setup/air-gapped/infrastructure.md) on setting these up.
30+
self-signed certificate,
31+
[please see our documentation](../../setup/air-gapped/infrastructure.md) on
32+
setting these up.
3333

3434
- Check to see if your `registry.crt` file is stored in the correct location on
3535
each of your Kubernetes nodes. Depending upon your Linux distribution and
@@ -53,9 +53,9 @@ configured
5353
Ensure that you've created the self-signed certificate secret in your Kubernetes
5454
cluster:
5555

56-
```console
57-
kubectl -n coder get secret local-registry-cert -o yaml
58-
```
56+
```console
57+
kubectl -n coder get secret local-registry-cert -o yaml
58+
```
5959

60-
If none of these steps resolve the issue, please [contact
61-
us](https://coder.com/contact) for further support.
60+
If none of these steps resolve the issue, please
61+
[contact us](https://coder.com/contact) for further support.

0 commit comments

Comments
 (0)