Cant' build terraform images anymore
Hi there,
Since the update to the terraform docker provider 3.5.0 I got this error:
I then added a builderx part to my terraform file:
The second part of this post is in the comments
Solution:Jump to solution
Ok update:
It seems I was able to fix this issue with these commands:
```
coder state pull <workspace> terraform.tfstate
coder state push <workspace> terraform.tfstate...
8 Replies
<#1382351596553502770>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I then got this error when building two workspaces after each other using the same template:
Then I added the append option:
Then I got this error:
I can't seem to fix this issue on my own anymore. I also have one workspace, which gives me this error:
no matter what I change in the terraform file. There is no
coder-builder
anymore, I removed that a long time ago.
Can anyone help me resolve this so I hopefully have a working coder instance again? Thanks!Could you try pinning the docker provider to 3.4 and remove builder resource?
I will try to reproduce this and see how it behaves.
Sorry for the late response, for some reason I did not get any notification.
It seems that the builder issue itself is fixed in the latest docker provider version:
https://github.com/kreuzwerker/terraform-provider-docker/releases/tag/v3.6.2
And when I create a new workspace based on that image it works.
But when I update a existing workspace, I still get the
Error: no builder "coder-builder" found
error. As metnioned, this builder name is not used anywhere anymore. Is there some kind of cache or something? Can I fix this somehow? Thanks!
It seems to affect workspaces, where at some point in time, they were updated to a version of the image which contained this builder. When I update a workspace, which did not use this version at all, it works fine. So to me this seems like some sort of cacheSolution
Ok update:
It seems I was able to fix this issue with these commands:
And in between edit the tfstate file to remove the coder-builder references 🎉
@Atif Thanks for you help offering! Really appriciate it
@Phorcys closed the thread.