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
can you give the full error log ?
also, this happens in the logs of the workspace right ?
When I get to this step, it's always an error
If I use any other Demo, I get an error
like this templates
GitHub
v2-templates/docker-with-pycharm at main · sharkymark/v2-templates
Contribute to sharkymark/v2-templates development by creating an account on GitHub.
it's log
when i create templates, Logs show this.
i don't know where is the problem.
when are you online?
GMT+1
9:00-21:00
9am-9pm
can you send me your template as text?
the .tf file
https://github.com/coder/coder/blob/main/examples/templates/docker/main.tf
i use this templates
GitHub
coder/main.tf at main · coder/coder
Remote development environments on your infrastructure provisioned with Terraform - coder/main.tf at main · coder/coder
ok
unmodified ?
that seems normal though
can you start a workspace that uses this template ?
I mean, what's the issue you're facing ?
yes
I can't create the template
oh
anything in the console you're running
coder templates create
in ?when I perform the command :coder templates create
then the constle to show that error
this one ?
whait ,i screenshots
could you possibly send full output because it's kinda unclear
yes
btw, where are you from ?
ok wait me
china
China!
Just give me a second
alright, I don't speak Chinese but I would've offered to speak your language if I spoke it too (to make it easier)
哈哈哈,没关系,我可以使用翻译软件来跟你交流
alright
when I create the templates, Do I need to install docker and terraform it first?
you will need docker on the host machine (your coder instance)
only that
ok
I juest install docker then I Execute the command:coder template create, then it show:
and when I install the terraform,it show :
this is logs
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
that mean I can't use the coder oss?
maybe someone from the Coder team would know better (cc: @Ben)
it means I don't know why this is happening
how need i do?
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 againIt seems that someone mentioned this problem, but I still don't know how to solve it, you can search in the chat record
ok
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
ok
In addition, I use the server of Ali Cloud
it's the same problem
what does the server output ?
this
the same output
no like
close this server and use
TF_LOG=trace coder server --tunnel
insteadok
so we can get terraform debugging
the terraform is ture, terraform demo can apply
I've tried
no other logs? weird
oh
whoops
wrong command I sent you, sorry
TF_LOG=trace coder server --tunnel -v
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 &&...
maybe but we don't have enough logs to know
try with this
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
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
?
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 ?
how?
create templates by root. start by other user.
x64
run
TF_LOG=trace coder server --tunnel -v
as root
to see if that fixes itI use root user ,it's show:
so I just create other user to start coder
.
alright, can't really help you, sorry
maybe you'll have more luck with docker
GitHub
coder/install.md at main · coder/coder
Remote development environments on your infrastructure provisioned with Terraform - coder/install.md at main · coder/coder
@jiujiu You could also run separate PostgreSQL server, that'd allow
coder server
to run as root.how?
thank you, I'll to see.
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...
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.
I told him to try to run as root since his issue makes no sense
I don't understand it
Yeah, and that should work but can't use the embedded DB when running
coder server
as root, unfortunately.yup, hence why I recommended docker, should fix the issue
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.
it's the root problem,now I fix it
but now, the workspace, can't show the button to open ide
this is docs workspace
I fix it. thank for your help!