Skip to content

Reword Troubleshooting section in Connect docs#32293

Merged
ravicious merged 5 commits intomasterfrom
ravicious/troubleshooting
Oct 10, 2023
Merged

Reword Troubleshooting section in Connect docs#32293
ravicious merged 5 commits intomasterfrom
ravicious/troubleshooting

Conversation

@ravicious
Copy link
Copy Markdown
Member

The first commit makes the paragraph about resetting app state easier to follow. I caught myself reading it and wondering what exactly I meant there.

The second commit brings to attention the existence of the "Open Logs Directory" button which will be added by #32044. This commit should be backported to v14 only.

@ravicious ravicious temporarily deployed to vercel September 21, 2023 12:26 — with GitHub Actions Inactive
Comment on lines +275 to +281
```code
~/Library/Application Support/Teleport Connect/tsh
```

```code
~/Library/Application Support/Teleport Connect/app_state.json
```
Copy link
Copy Markdown
Member Author

@ravicious ravicious Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs-9vtmx6l1z-goteleport.vercel.app/docs/ver/15.x/connect-your-client/teleport-connect/#troubleshooting

Thoughts on this? I wanted to make it easy to copy the paths. I didn't put $ in front since it's not really a shell command. This is how it looks:

code blocks for paths

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would you think of adding the relevant removal command and shell prompt in each code snippet? The result should be the same, and this will be a little more convenient for users.

Copy link
Copy Markdown
Member Author

@ravicious ravicious Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this would work. I used separate code blocks because I wanted to provide the ability to independently copy just the path to one file or another.

But tbh I was thinking more about myself than our users here. I sometimes have to do some work in a Windows VM and it's convenient to just open the docs and copy the path from there. 😶‍🌫️

I'm going to list commands here.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-9vtmx6l1z-goteleport.vercel.app/docs/ver/14.x

Copy link
Copy Markdown
Contributor

@ptgott ptgott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, though I think it would make sense to add removal commands and shell prompts to the code snippets in the first Tabs component within "Troubleshooting".

Copy link
Copy Markdown
Contributor

@lsgunn-teleport lsgunn-teleport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of questions for you

Comment on lines +266 to +271
If you encounter a bug which renders the UI partially unusable, resetting app state related to a
particular cluster might help. To do this, log out of the cluster, close the app and log in again.

To completely wipe all app state, close the app and remove the internal `tsh` folder and the
`app_state.json` file. This will log you out of all clusters and clear all remembered tabs and
connections.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you encounter a bug which renders the UI partially unusable, resetting app state related to a
particular cluster might help. To do this, log out of the cluster, close the app and log in again.
To completely wipe all app state, close the app and remove the internal `tsh` folder and the
`app_state.json` file. This will log you out of all clusters and clear all remembered tabs and
connections.
If you are unable to connect to a cluster or resource using Teleport Connect, try resetting the app state for the cluster.
To reset the app state:
1. Log out of the cluster.
1. Close Teleport Connect.
1. Open Teleport Connect, then log back in to the cluster.

What does "partially unusable" mean? What is the symptom the user sees? What does "app" refer to (it seems like "app" refers to Teleport Connect but I'm not sure)? Same question for the next paragraph. I took at swing at it, but I'm not sure if this is what you mean.

Suggested change
If you encounter a bug which renders the UI partially unusable, resetting app state related to a
particular cluster might help. To do this, log out of the cluster, close the app and log in again.
To completely wipe all app state, close the app and remove the internal `tsh` folder and the
`app_state.json` file. This will log you out of all clusters and clear all remembered tabs and
connections.
To completely wipe all app state:
1. Close Teleport Connect.
1. Remove the internal `tsh` folder and the `app_state.json` file to log out of all clusters and clear all remembered tabs and connections.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I originally wrote this section, I was thinking of issues like gravitational/teleport.e#858. So what "partially unusable" really means is that due to actions performed outside of the app, the UI of the app is partially broken and the only way to resolve the issue is to reset app state, either in full or just for a specific cluster.

I don't really know how to put it into words so that it's clear the user shouldn't attempt to do this for all errors.

I think this advice to log out of a cluster or wipe all state would only be useful if some UI code crashes. The symptoms that could be seen by the user would be blank window or "Internal Error" screen. This would typically happen if the app gets into some unforeseen state, for example due to server-side changes as I mentioned or due to the downgrade of the app.

And yeah, "app" refers to Teleport Connect.

I'll try to rewrite this with what's discussed here in mind, thanks!

@ravicious ravicious temporarily deployed to vercel September 27, 2023 14:09 — with GitHub Actions Inactive
@ravicious ravicious force-pushed the ravicious/troubleshooting branch from 197d6e0 to aa03dce Compare September 27, 2023 14:13
@ravicious ravicious temporarily deployed to vercel September 27, 2023 14:13 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-2mkvibraa-goteleport.vercel.app/docs/ver/14.x

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-9og8i9a02-goteleport.vercel.app/docs/ver/14.x

@ravicious
Copy link
Copy Markdown
Member Author

Ping @lsgunn-teleport.

@ravicious ravicious temporarily deployed to vercel October 10, 2023 09:08 — with GitHub Actions Inactive
@ravicious ravicious enabled auto-merge October 10, 2023 09:17
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Vercel preview here: https://docs-31xtjuxmu-goteleport.vercel.app/docs/ver/preview

@ravicious ravicious added this pull request to the merge queue Oct 10, 2023
Merged via the queue into master with commit 971cadb Oct 10, 2023
@ravicious ravicious deleted the ravicious/troubleshooting branch October 10, 2023 09:32
@public-teleport-github-review-bot
Copy link
Copy Markdown

@ravicious See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants