Better error handling when TechDocs can't find Docker
See original GitHub issueExpected Behavior
A friendly error message is presented to the user if/when Docker isn’t available to generate the docs tab on components.
Current Behavior
When I have Docker running, the sample “documented-component” correctly displays:
However, when I shut down Docker, I just see this:
Possible Solution
I couldn’t quite figure out how to trap this error, which I gather comes from the techdocs-backend, but doing some sort of return to the user using <Alert>
of some type, a more standard error presentation than just raw spitting out the error path would be ideal, something to help guide the user. Maybe even adding a link to “setting up techdocs” in the doco here?
https://backstage.io/docs/features/techdocs/getting-started
Steps to Reproduce
Run locally, and,
- Ensure no Docker daemon is running
- Start up raw app latest off
master
branch - View the “documented-component” sample entity
- Click docs tab
- See error screen shot above
Context
Your Environment
- NodeJS Version (v12): v12.16.2
- Operating System and Version (e.g. Ubuntu 14.04): Windows 10 1909 WSL2 Ubuntu 18.04
- Browser Information: Microsoft Edge (Chrome)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Troubleshooting TechDocs
MkDocs Build Errors. Using the TechDocs CLI, you can troubleshoot MkDocs build issues locally. Note this requires you have Docker available to launch...
Read more >Cannot create docs for components in backstage docker ...
The biggest problem was that I needed to install pip, python, mkdocs, and mkdocs-techdocs-core (i.e. pip3 install mkdocs-techdocs-core ).
Read more >Docker
Docker containers encapsulate everything an application needs to run. To make it easier for you to automate the management of Akamai services, ...
Read more >Scan images with twistcli - Prisma Cloud
For more information, see Windows containers version compitability. Limitations. Due to a bug in Kaniko, twistcli can't map vulnerabilities to ...
Read more >CA Service Management - 17.3 - TechDocs
CA Service Management - 17.3 ... Docker Containers. Docker Containers ... Know more about how to use the different capabilities of the product....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was fixed via https://github.com/backstage/backstage/pull/4314, as seen here:
Resulting backend error:
It would be nice to be able to even further trap THAT error, and generate a custom error object specifically for a Docker socket error as we talked about separately @OrkoHunter, so that a nuanced msg could be displayed to the user. But the ask here to improve the error handling is good for now so closing this bug to eliminate some noise.
Ok. will then create a new issue from my comment