René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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![image](https://user-images.githubusercontent.com/4949514/169035108-443a79bb-6426-4ad6-b031-336d17b0f1a0.png)\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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d8f2ca61-dac2-6485-44cb-c55f6d92bfad
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE434:1EC9BC:227EE32:2BFEB7C:6B018174
html-safe-nonce8995e8878e15eed7918fd9b42cb504f3676cce4814b19a4948b45d78d57ac825
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM0OjFFQzlCQzoyMjdFRTMyOjJCRkVCN0M6NkIwMTgxNzQiLCJ2aXNpdG9yX2lkIjoiNDkyMTUxNDk2MjI3MjIyMzYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaf68dccfaf5fdb30b8804301d5199261494b16959446f80c4b78c13023ac33a3
hovercard-subject-tagissue:1239865105
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1544/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eac5908d95726ab4f6a7bb091bfe92985cbc17bd03b32ff595984635c091b5b3/coder/coder/issues/1544
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eac5908d95726ab4f6a7bb091bfe92985cbc17bd03b32ff595984635c091b5b3/coder/coder/issues/1544
og:image:altDefinition 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohnstcn
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/1544#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1544
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1544
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/1544
Reloadhttps://github.com/coder/coder/issues/1544
Reloadhttps://github.com/coder/coder/issues/1544
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1544
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1544
Difficult to debug failures of agent init script in Docker providerhttps://github.com/coder/coder/issues/1544#top
https://github.com/johnstcn
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on May 18, 2022https://github.com/coder/coder/issues/1544#issue-1239865105
https://user-images.githubusercontent.com/4949514/169035108-443a79bb-6426-4ad6-b031-336d17b0f1a0.png
kreuzwerker/terraform-provider-docker#92https://github.com/kreuzwerker/terraform-provider-docker/issues/92
johnstcnhttps://github.com/johnstcn
bug 🐛https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%20%3Abug%3A%22
needs grooming 🪒https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%20%3Arazor%3A%22
on May 18, 2022https://github.com/coder/coder/issues/1544#event-6631818244
https://github.com/mafredri
mafredrihttps://github.com/mafredri
on May 18, 2022https://github.com/coder/coder/issues/1544#issuecomment-1129957571
mafredrihttps://github.com/mafredri
on May 18, 2022https://github.com/coder/coder/issues/1544#event-6632920828
fix: More robust provisionersdk agent init scriptshttps://github.com/coder/coder/commit/6a9497172994cb68231aac958bb6ec13c74e9d15
6a94971https://github.com/coder/coder/commit/6a9497172994cb68231aac958bb6ec13c74e9d15
fix: More robust provisionersdk agent init scripts (#1551)https://github.com/coder/coder/commit/ad9bdb7bd13cca2dd2ee85b6a7c7b98127cf30d7
#1551https://github.com/coder/coder/pull/1551
ad9bdb7https://github.com/coder/coder/commit/ad9bdb7bd13cca2dd2ee85b6a7c7b98127cf30d7
missknisshttps://github.com/misskniss
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
on May 24, 2022https://github.com/coder/coder/issues/1544#event-6669717303
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on May 24, 2022https://github.com/coder/coder/issues/1544#issuecomment-1136111107
@dwahlerhttps://github.com/dwahler
#1198 (comment)https://github.com/coder/coder/issues/1198#issuecomment-1136063522
https://github.com/tjcran
tjcranhttps://github.com/tjcran
on May 30, 2022https://github.com/coder/coder/issues/1544#issuecomment-1141537120
@dwahlerhttps://github.com/dwahler
#1198 (comment)https://github.com/coder/coder/issues/1198#issuecomment-1136063522
@johnstcnhttps://github.com/johnstcn
#1198https://github.com/coder/coder/issues/1198
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on May 31, 2022https://github.com/coder/coder/issues/1544#issuecomment-1141844104
@tjcranhttps://github.com/tjcran
kylecarbshttps://github.com/kylecarbs
on Jun 7, 2022https://github.com/coder/coder/issues/1544#event-6757240559
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Jun 17, 2022https://github.com/coder/coder/issues/1544#issuecomment-1158998292
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on Jun 17, 2022https://github.com/coder/coder/issues/1544#issuecomment-1158999319
tjcranhttps://github.com/tjcran
johnstcnhttps://github.com/johnstcn
on Jun 30, 2022https://github.com/coder/coder/issues/1544#event-6912338100
tjcranhttps://github.com/tjcran
needs groominghttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%22
on Jul 12, 2022https://github.com/coder/coder/issues/1544#event-6979992686
johnstcnhttps://github.com/johnstcn
on Jul 13, 2022https://github.com/coder/coder/issues/1544#event-6984024522
Merge branch 'main' into cj/gh-1544/agent-script-waithttps://github.com/coder/coder/commit/9f90ee39f0538ad9f59fa81796b700307511820a
gh-1544https://github.com/coder/coder/issues/1544
9f90ee3https://github.com/coder/coder/commit/9f90ee39f0538ad9f59fa81796b700307511820a
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on Jul 14, 2022https://github.com/coder/coder/issues/1544#issuecomment-1184667961
#2922https://github.com/coder/coder/pull/2922
johnstcnhttps://github.com/johnstcn
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 14, 2022https://github.com/coder/coder/issues/1544#event-6995858400
missknisshttps://github.com/misskniss
duplicatehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22duplicate%22
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
on Jul 26, 2022https://github.com/coder/coder/issues/1544#event-7061438485
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/1544
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/1544
johnstcnhttps://github.com/johnstcn
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.