You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add error in agent init script if the binary wasn't actually downloaded #6711
A user had Coder configured behind CloudFlare access. The init script downloaded an HTML page from Cloudflare access instead of the Coder binary. The error in the pod logs was
./coder: 2: Syntax error: newline unexpected
Could we add a check to the init script to see if the right file was actually downloaded? Perhaps with a sha256 checksum or some try/catch thingie?
Reacted by Atif Ali, Chinmaya and OliverStevens-Mitel
Having the same issue. I run coder behind an authentication proxy (oauth2-proxy) which makes the download of coder binary fail. Not sure what's a good fix here, but a note in the installation instruction would be nice :)
+1 this affected me as well for Cloudflared access.
Edit: Not really hard blocked by this because of the work-arounds. But seems like something valuable to have "just work" out of the box since I think a lot of enterprises use cloudflared tunnels as part of their security model.
Reacted by Ben Potter, Łukasz Byjoś, Atif Ali and Chinmaya
changed the title [-]Add error in agent init script if the binary wasn't actually downloaded [/-][+]Add error in agent init script if the binary wasn't actually downloaded[/+]on Feb 12, 2026
Activity
heywoodlh commentedon Jun 14, 2023
I also run into this same issue whilst running Coder behind my self-hosted Pomerium instance
jonpetersathan commentedon Jun 18, 2023
Having the same issue. I run coder behind an authentication proxy (oauth2-proxy) which makes the download of coder binary fail. Not sure what's a good fix here, but a note in the installation instruction would be nice :)
That's the line that silently fails
I have now disabled authentication
/binpath prefix in my proxy settings which seems to work for now.Edit: Oh, and on
/api/v2as well, in case anyone comes across this.bashirsouid commentedon Jul 14, 2023
+1 this affected me as well for Cloudflared access.
Edit: Not really hard blocked by this because of the work-arounds. But seems like something valuable to have "just work" out of the box since I think a lot of enterprises use cloudflared tunnels as part of their security model.
Mistic92 commentedon Sep 6, 2023
Same issue when using Cloudflare
chinmaya-n commentedon Nov 12, 2023
I can concur. I had to bypass auth for both
/api/v2and/bin/coder-linux-amd64to get this working with Cloudflare tunnels.bpmct commentedon Apr 26, 2024
Added as a candidate for our next sprint
11 remaining items
github-actions commentedon Nov 3, 2025
Task created: https://dev.coder.com/tasks/bpmct/traiage-gh-6711-19024321055
[-]Add error in agent init script if the binary wasn't actually downloaded [/-][+]Add error in agent init script if the binary wasn't actually downloaded[/+]bpmct commentedon Oct 6, 2026
Going to close this one as #13280 gets us a significant way there.