Coder CLI `coder templates push` -> `source archive size_bytes=0` ?

Hi, im having troubles pushing any template to coder via CLI. Tested with the scratch template, when pushing the following errors are emitted:
2025-10-02 08:26:33.438Z Error: No configuration files
2025-10-02 08:26:33.438Z Plan requires configuration to be present. Planning without a configuration would mark everything for destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the -destroy option. Otherwise, create a Terraform configuration file (.tf file) and try again.
2025-10-02 08:26:33.438Z Error: No configuration files
2025-10-02 08:26:33.438Z Plan requires configuration to be present. Planning without a configuration would mark everything for destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the -destroy option. Otherwise, create a Terraform configuration file (.tf file) and try again.
Seems issue the same or related to https://discord.com/channels/747933592273027093/1395744263563907083. -> the comment "the issue fixed itself" was not helpfull. Comment from general chat to the person reporting that issue, recommending running coder server manually to "fix errors" from output does not seem to make sense in my case. See attached coder server log, i suspect that with the info line provisionerd-coder-2: unpacking template source archive session_id=3d9f5b76-851a-46a6-875d-49e073c9e01d size_bytes=0 something went wrong internally (no data received), though i have no clue where / how to start fixing this, if at all.
1 Reply
Mozarella Foxfire
Mozarella FoxfireOP2mo ago
OK, seems like this is a reverse proxy issue. I tried to use cloudflare tunnels to host coder without a public IP, seems like something in the chain does block part of the file upload. Weird that it just accepts zero-sized tar (or whatever archives) as valid and goes on from there.

Did you find this page helpful?