template import provision for start recv import provision exit status 1

hello, I use the docker create templates, error by: template import provision for start: recv import provision: exit status 1 what need i do?
72 Replies
Phorcys
Phorcys3y ago
can you give the full error log ? also, this happens in the logs of the workspace right ?
jiujiu
jiujiuOP3y ago
When I get to this step, it's always an error
jiujiu
jiujiuOP3y ago
No description
jiujiu
jiujiuOP3y ago
If I use any other Demo, I get an error like this templates
jiujiu
jiujiuOP3y ago
jiujiu
jiujiuOP3y ago
No description
jiujiu
jiujiuOP3y ago
it's log when i create templates, Logs show this. i don't know where is the problem. when are you online?
Phorcys
Phorcys3y ago
GMT+1 9:00-21:00 9am-9pm can you send me your template as text? the .tf file
jiujiu
jiujiuOP3y ago
GitHub
coder/main.tf at main · coder/coder
Remote development environments on your infrastructure provisioned with Terraform - coder/main.tf at main · coder/coder
jiujiu
jiujiuOP3y ago
ok
Phorcys
Phorcys3y ago
unmodified ? that seems normal though can you start a workspace that uses this template ? I mean, what's the issue you're facing ?
jiujiu
jiujiuOP3y ago
yes I can't create the template
Phorcys
Phorcys3y ago
oh anything in the console you're running coder templates create in ?
jiujiu
jiujiuOP3y ago
when I perform the command :coder templates create then the constle to show that error
Phorcys
Phorcys3y ago
this one ?
jiujiu
jiujiuOP3y ago
whait ,i screenshots
Phorcys
Phorcys3y ago
could you possibly send full output because it's kinda unclear
jiujiu
jiujiuOP3y ago
yes
Phorcys
Phorcys3y ago
btw, where are you from ?
jiujiu
jiujiuOP3y ago
ok wait me china China! Just give me a second
Phorcys
Phorcys3y ago
alright, I don't speak Chinese but I would've offered to speak your language if I spoke it too (to make it easier)
jiujiu
jiujiuOP3y ago
哈哈哈,没关系,我可以使用翻译软件来跟你交流
Phorcys
Phorcys3y ago
alright
jiujiu
jiujiuOP3y ago
when I create the templates, Do I need to install docker and terraform it first?
Phorcys
Phorcys3y ago
you will need docker on the host machine (your coder instance) only that
jiujiu
jiujiuOP3y ago
ok
jiujiu
jiujiuOP3y ago
I juest install docker then I Execute the command:coder template create, then it show:
No description
jiujiu
jiujiuOP3y ago
and when I install the terraform,it show :
No description
jiujiu
jiujiuOP3y ago
this is logs
jiujiu
jiujiuOP3y ago
No description
Phorcys
Phorcys3y ago
that's weird lovely hostname by the way i'll try to understand it but I might not be able to help you on this issue
jiujiu
jiujiuOP3y ago
that mean I can't use the coder oss?
Phorcys
Phorcys3y ago
maybe someone from the Coder team would know better (cc: @Ben) it means I don't know why this is happening
jiujiu
jiujiuOP3y ago
how need i do?
Phorcys
Phorcys3y ago
I'll try to look at older issues to see if I can find anything can you run coder using the following command : TF_LOG=trace coder server --tunnel and try to create the template again
jiujiu
jiujiuOP3y ago
It seems that someone mentioned this problem, but I still don't know how to solve it, you can search in the chat record ok
Phorcys
Phorcys3y ago
actually I was wrong, you need terraform on the server too it doesn't seem to be the same problem, atif was having this issue but it was related to his template being wrong iirc
jiujiu
jiujiuOP3y ago
ok In addition, I use the server of Ali Cloud
jiujiu
jiujiuOP3y ago
it's the same problem
No description
Phorcys
Phorcys3y ago
what does the server output ?
jiujiu
jiujiuOP3y ago
this
No description
jiujiu
jiujiuOP3y ago
the same output
Phorcys
Phorcys3y ago
no like close this server and use TF_LOG=trace coder server --tunnel instead
jiujiu
jiujiuOP3y ago
ok
Phorcys
Phorcys3y ago
so we can get terraform debugging
jiujiu
jiujiuOP3y ago
No description
jiujiu
jiujiuOP3y ago
the terraform is ture, terraform demo can apply I've tried
Phorcys
Phorcys3y ago
no other logs? weird oh whoops wrong command I sent you, sorry TF_LOG=trace coder server --tunnel -v
jiujiu
jiujiuOP3y ago
this issues it looks like the same problem I had https://github.com/coder/coder/issues/3452
GitHub
Create template failing without details on cleanup · Issue #3452 · ...
OS Mac OS X (M1) 12.5 CODER VERSION Coder v0.8.4+53400c6 Tue Aug 9 14:26:18 UTC 2022 53400c6 Commands attempted coder templates init > aws-linux template chosen cd ./aws-linux &&...
Phorcys
Phorcys3y ago
maybe but we don't have enough logs to know try with this
jiujiu
jiujiuOP3y ago
Phorcys
Phorcys3y ago
this makes no sense it should just work maybe comment on this issue with your logs I don't really know what's wrong, sorry
jiujiu
jiujiuOP3y ago
That's all right, but thanks for your help now how can I use the coder OSS? Can you set up the template and workspace normally? can I give you my Ali Cloud,then you try to build the coder OSS ?
Phorcys
Phorcys3y ago
I don't really know what to recommend you is the server x86 btw? also, you could try setting up coder in Docker, maybe that could help wait how did I not see this what user are you running coder as ?
jiujiu
jiujiuOP3y ago
how? create templates by root. start by other user. x64
Phorcys
Phorcys3y ago
run TF_LOG=trace coder server --tunnel -v as root to see if that fixes it
jiujiu
jiujiuOP3y ago
I use root user ,it's show:
No description
jiujiu
jiujiuOP3y ago
so I just create other user to start coder .
Phorcys
Phorcys3y ago
alright, can't really help you, sorry maybe you'll have more luck with docker
Phorcys
Phorcys3y ago
GitHub
coder/install.md at main · coder/coder
Remote development environments on your infrastructure provisioned with Terraform - coder/install.md at main · coder/coder
maf
maf3y ago
@jiujiu You could also run separate PostgreSQL server, that'd allow coder server to run as root.
jiujiu
jiujiuOP3y ago
how? thank you, I'll to see.
maf
maf3y ago
Something like suggested here: https://github.com/coder/coder/issues/3508
GitHub
Add instructions to docs for setting up an external PostgreSQL serv...
We should add an example to the docs for setting up an external PostgreSQL database. It doesn't have to be very comprehensive, but it's good to illustrate how a user can go about do...
maf
maf3y ago
But that's a TL;DR setup, not the best security, if you need more help with setting up PostgreSQL I recommend checking out PostgreSQL docs.
Phorcys
Phorcys3y ago
I told him to try to run as root since his issue makes no sense I don't understand it
maf
maf3y ago
Yeah, and that should work but can't use the embedded DB when running coder server as root, unfortunately.
Phorcys
Phorcys3y ago
yup, hence why I recommended docker, should fix the issue
maf
maf3y ago
Yup, that'd be fine but I wasn't sure if Docker is an acceptable solution wrt how the template and provisioning is set up, that's why I suggested the separate DB.
jiujiu
jiujiuOP3y ago
it's the root problem,now I fix it
jiujiu
jiujiuOP3y ago
but now, the workspace, can't show the button to open ide
No description
jiujiu
jiujiuOP3y ago
this is docs workspace
No description
jiujiu
jiujiuOP3y ago
I fix it. thank for your help!
Want results from more Discord servers?
Add your server