Title: Difficult to debug failures of agent init script in Docker provider · Issue #1544 · coder/coder · GitHub
Open Graph Title: Difficult to debug failures of agent init script in Docker provider · Issue #1544 · coder/coder
X Title: Difficult to debug failures of agent init script in Docker provider · Issue #1544 · coder/coder
Description: Definition of Done Clear log should be provided to surface errors so users do not have to go down several rabbit holes to try and understand what went wrong. One acceptable outcome suggested in backend variety: the Docker agent init scri...
Open Graph Description: Definition of Done Clear log should be provided to surface errors so users do not have to go down several rabbit holes to try and understand what went wrong. One acceptable outcome suggested in bac...
X Description: Definition of Done Clear log should be provided to surface errors so users do not have to go down several rabbit holes to try and understand what went wrong. One acceptable outcome suggested in bac...
Opengraph URL: https://github.com/coder/coder/issues/1544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Difficult to debug failures of agent init script in Docker provider","articleBody":"# Definition of Done\r\nClear log should be provided to surface errors so users do not have to go down several rabbit holes to try and understand what went wrong. \r\n\r\nOne acceptable outcome suggested in backend variety: \r\n\r\n> the Docker agent init script could log errors and then sleep forever if it hits a problem, instead of exiting. This would keep the container from exiting, and so the end user would see the build succeed, but the agent failed to connect. They could then docker logs ... to see what's up.\r\n\r\n> alternatively, we just fix kreuzwerker/docker to (optionally?) not delete containers after 15s\r\n\r\n# What\r\n\r\nIf the init script fails, there is very little way to debug the root cause (e.g. with Docker).\r\nFor example, if you set the Coder access URL to something invalid in the template, then all Docker containers will exit immediately e.g.\r\n\r\n\r\n\r\nIn the above example, the error \"container exited immediately\" is actually coming from `kreuzwerker/docker` itself -- see https://github.com/kreuzwerker/terraform-provider-docker/issues/92\r\n\r\nTo actually dig out the root cause of the error, you have to e.g. turn on debug logging in the Docker daemon and check the daemon logs to actually see what's going wrong.\r\n\r\nThis isn't great usability, and we should have a better way of surfacing various kinds of errors from the agent init script.\r\n\r\nThere are quite a few possibilities for things to go wrong, including:\r\n- `curl` does not exist\r\n- failed to create temporary directory\r\n- failed to fetch agent binary\r\n- failed to `chmod` binary\r\n- `coder agent` failed\r\n- ...\r\n\r\n# Why\r\n\r\nMake it easier for users to figure out why their container won't start.\r\n\r\n","author":{"url":"https://github.com/johnstcn","@type":"Person","name":"johnstcn"},"datePublished":"2022-05-18T12:13:05Z","url":"https://github.com/coder/coder/issues/1544"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8f2ca61-dac2-6485-44cb-c55f6d92bfad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E434:1EC9BC:227EE32:2BFEB7C:6B018174 |
| html-safe-nonce | 8995e8878e15eed7918fd9b42cb504f3676cce4814b19a4948b45d78d57ac825 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM0OjFFQzlCQzoyMjdFRTMyOjJCRkVCN0M6NkIwMTgxNzQiLCJ2aXNpdG9yX2lkIjoiNDkyMTUxNDk2MjI3MjIyMzYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af68dccfaf5fdb30b8804301d5199261494b16959446f80c4b78c13023ac33a3 |
| hovercard-subject-tag | issue:1239865105 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eac5908d95726ab4f6a7bb091bfe92985cbc17bd03b32ff595984635c091b5b3/coder/coder/issues/1544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eac5908d95726ab4f6a7bb091bfe92985cbc17bd03b32ff595984635c091b5b3/coder/coder/issues/1544 |
| og:image:alt | Definition of Done Clear log should be provided to surface errors so users do not have to go down several rabbit holes to try and understand what went wrong. One acceptable outcome suggested in bac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnstcn |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width