AWS EC2 Workspace agent fails during start-up intermittently

Hi - I've been excited to start using Coder for some work our internal teams are doing. We've had some problems with EC2 instances launching and not getting the coder agent hook for the continued start-up. It's very intermittent, and usually instances launch successfully and only fail maybe 20-30% of the time. Just frequently enough to be annoying. I've been doing some searching here to see if anyone had similar problems and did not see anything immediately pop up, although it looks like reddit and some other places have conversations. Besides AMIs for better templates, has anyone figured out when/where the agent fails to hook in properly?
3 Replies
Codercord
Codercord3w ago
Codercord
Codercord3w ago
<#1438264332159946875>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
JohntheCTO
JohntheCTOOP3d ago
I've fixed this. Gemini 3 to the rescue. Evidently this has a problem with the type of token injection being used. The default AWS EC2 Linux workspace template uses a token that when replaced with the coder preferred token fixes the problem.

Did you find this page helpful?