-
Notifications
You must be signed in to change notification settings - Fork 189
Error: error creating MongoDB Cluster: unexpected EOF #674
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
@adam-pasabi We are reviewing it and will get back to you on this soon. |
Unable to repro, this is working in my case.
Error
Often this error message indicative of a crash in the provider (which runs in a separate process).
Could you please reach out to GCP Support for the terraform issue and see if they have been observing this with their provider versions. However, with the @themantissa FYI. Thanks. |
hey @nikhil-mongo, thanks for looking into it. I'll raise a ticket with google-terraform-provider to see what they suggest (I'm on holiday after today so it won't be immediately). |
I am also running into this very consistently (haven't got a single apply to work). I am using this via the Pulumi provider, but underlying issue seems to be the same |
Internal ticket INTMDB-304 |
hey @julienvincent - how long does it take before it fails? For me, it's around 10 mins. I wonder if the 10 min wait is somehow part of the problem. I haven't had any feedback from @nikhil-mongo regarding trying to debug this locally, but it really is a pain for me and my team, so I hope he does reply at some point 😎 |
@adam-pasabi To debug this locally, go through the contribution guide for the terraform provider here. The problem as @julienvincent mentioned is that you are using pulumi as the provider and we do not officially support Pulumi. Is it possible for you to try the same set of configuration directly and not use Pulumi? If it happens on direct execution, then we can definitely start to look into it. Also, a debug.log for the failure scenarios on direct run would be helpful. |
This issue was originally opened by @adam-pasabi who is using Terraform directly and is running into this problem. So I think it's clear that this is not the problem. While I am using Pulumi myself, under the hood Pulumi is executing the same code as with Terraform - so the underlying issue is the same and is seemingly unrelated to Pulumi. |
I can confirm I am not using Pulumi or any other layers - I am using the mongodb provider directly in Terraform. I can also confirm it happens every time I create a new environment. In fact, I have just setup mongo via terraform on another project - this currently only provisions a mongo atlas instance and I get the same error 😬 . @themantissa / @nikhil-mongo would you like me to create a new issue with the logs from my new project, or should I add it to this issue? |
@adam-pasabi just put the logs here so @martinstibbe can see them. |
Here's the logs (the last bit anyway):
If you let me know how, I can send you the account ID - our plan doesn't include support tho', so we can't use that avenue. |
@adam-pasabi I was able to take your TF example and attach reference GCP peering example to it and it ran to completion and I was able to connect to DB from vm on GCP side I will attach zip of hybrid example to tes |
hey @martinstibbe thanks for the sample, and it's great that it works for you, but it fails every. single. time. for me and my team, and even in a new project that currently only runs the mongoatlas side of things (the other side has to be done manually for reasons out of my control). I wonder if I can give you access to our organisation on atlas and you could try running your code in there to see if it's something specific to the way our organisation is set up. It's still my intention to get |
@adam-pasabi wanted to check in. We can't have the devs get access but if you put in an Atlas support ticket we could perhaps have support help reproduce with you within your org if you are still having issues. |
was this solved? im running into this as well |
hi @alonm-totango can you share your Terraform config file + Logs so we can reproduce this issue on our side? |
closing this one, but feel free to open new issue with config files + any other details that would be helpful on our side to reproduce this issue. thank you |
Terraform CLI and Terraform MongoDB Atlas Provider Version
(also occurs under mongodbatlas v1.2.0)
Terraform Configuration File
Steps to Reproduce
terraform init
terraform apply
Expected Behavior
It should create the cluster without erroring
Actual Behavior
terraform apply
failed with an error (see below)Debug Output
terraform.log
Running with TF_LOG=debug
Console output
Additional Context
This is running on GCP
References
Initially mentioned on: #110
Fwiw the workaround is to use https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/cluster#import and then run
terraform apply
again.The text was updated successfully, but these errors were encountered: