-
Notifications
You must be signed in to change notification settings - Fork 875
Template create tar stdin option hangs and exits #7043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you set |
With that, I get an output that indicates that the terraform isn't there, even though it is. Running without the
|
|
The
|
@ammario can you take a look what is happenings here. |
The problem here is that
|
That produces the same result
|
Hmm, well the error has changed slightly. Now it's in the correct directory but I think the template is too big due to the Try adding a
|
I see the same error |
Can you send the full error again? Is it still tarring the '.terraform' directory? Can you try tarring into a file with the same exact command and tell me the size? |
Yes, this is the full error, same as above
I've tarred the directory, it's about 80M |
Ah ok, your goal should be to play around with the tar flags to reduce the size of the archive to less than a megabyte. The .terraform directory is probably the main problem. I'm going to be out of pocket for a while, feel free to ping me on Discord, but may not be responsive here. |
I've reduced the size to less than a megabyte. It hangs on queued, then exits
|
Ok, would you mind uploading the template archive here (with any secrets stripped) so that I can try to reproduce? |
|
@ammario Were you able to reproduce the issue? |
I was able to run:
with the provided archive with no issue. Is it possible you have a load balancer between you and the coder server that is causing the request to fail? |
We do have a load balancer. |
Try again using the
Note that the output will contain your session tokens so be careful about sharing. Hopefully it will show us something useful. |
@ammario It appears the latest version of Coder allows us to get further. I'll close the issue for now and report back if we are still running into an issue with this feature. Thanks for your support |
In creating a template using the using '-' to read tar from stdin with the
-d/--directory
option, the output hangs on⧗ Queued
then exits without creating the template or displaying any error output.The command used is what is outlined here Support terraform resources outside the given template directory
version
v0.21.3
The text was updated successfully, but these errors were encountered: