-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Simplify the troubleshooting of an editor start-up issues: Show an editor's logs on the Dashboard #23121
Comments
@azatsarynnyy @olexii4 @akurinnoy editor's logs are currently not propagated to the if this is the case we should definitely fix it |
@ibuziuk currently, the editor's logs are not propagated to the dashboard side |
Once, we reworked the editor start process from the sidecar approach to the shared volume approach,
I think the Dashboard can watch the file content, by the known path, with the k8s client. |
I think we should not connect the editor logs with the dashboard. @azatsarynnyy in your case, what was the problem of the failure? |
Thank you for your feedback @vitaliy-guliy
@vitaliy-guliy Such failure of starting a workspace often (not always, of course) means the Dashboard can't get the editor's link during the timeout.
@vitaliy-guliy The problem was caused by a pretty common issue - there was an editor start failure, so the Dashboard couldn't get the editor link during the timeout. |
Could you share how the error can be reproduced? |
@vitaliy-guliy It requires having an editor image with some editor start failure which prevents the Dashboard from getting the editor link. |
I noticed the issue description and title were not very clear. |
@azatsarynnyy well, you want to show the editor output into the dashboard just to better understanding what's going wrong on the editor side. Ok, then I would propose to specify a file/resource smth like If we put the file into a volume, its content will be saved even if workspace failed. |
@vitaliy-guliy I like the idea of persisting an editor's logs in a volume. |
Is your enhancement related to a problem? Please describe
When there is an editor start error that prevents a Workspace from a successful launch, the user:
sometimes, sees the blank page instead of the editor
in some cases, they can get the following error on the Dashboard:
which often means there's an editor start error
etc.
To troubleshoot the issue and get the editor start error details, one needs to:
Or get the log file content through the CLI.
The log file can be found in the editor's devfile, e.g. che-code, idea-server
Problem:
It takes a lot of redundant steps (and deeper technical knowledge of the editor start process) even for an experienced user.
For the regular user, it's very hard to investigate what is the problem with their Workspace start, without an expert's help.
Describe the solution you'd like
The Dashboard could provide a simple way to view the editor output.
For example, as a dedicated item in the containers' logs list:
So, the non-experienced Che user will be able to view the editor's logs just in a couple of clicks.
Describe alternatives you've considered
If it's hard to implement on the Dashboard side,
(or in addition to the suggested solution)
it can also be a hint on this popup, that could guide the user where to look for an editor logs to see the potential error
Additional context
The path to the editor's log file can be provided as an editor devfile attribute.
The text was updated successfully, but these errors were encountered: