Comments (10)
@nikhil-mongo please ensure you are testing with the most recent version, which is 0.3.1.
https://github.com/terraform-providers/terraform-provider-mongodbatlas/blob/master/CHANGELOG.md
from terraform-provider-mongodbatlas.
Hi @PacoDw
Thanks for all the efforts. It is not that API would hit 500 error each time. But with the latest plugin updated in my terraform on local machine, it is working great at the moment. Hopefully, it should not panic again.
Also to mention, when terraform panic and did not continue with the deployment, how could it still be looking for the same cluster with the data dependencies when I tried to apply the same .tf file again. It showed that it could not state the cluster and is unaware of the cluster deployed. I had provided this in my last comment as well.
Thanks.
from terraform-provider-mongodbatlas.
Please note: Per the README support is provided under MongoDB Atlas support agreements.
It doesn't look like you hit a timeout but looking at that groups Activity Feed there is an error related to cluster-atlas about failing to execute a plan, potentially related but I don't have the ability to dig further. The 500 error here would be from Atlas, not the provider but the provider wasn't able to - for some reason - get that the cluster was created. Looks like perhaps something was amiss but I do not have enough to help further.
from terraform-provider-mongodbatlas.
Reopening issue as we have enough information now to know this is likely pointing to an issue with the Provider having a problem if a plan is executing, in this case to build a cluster, and a recoverable error is encountered, here a 500 was returned by a GET and the plan stopped - however the cluster creation did succeed and hence Terraform state and the Atlas reality did not match. The plan should not exit but continue to poll for some period of time to see if the plan did succeed. @marinsalinas or @PacoDw thoughts?
from terraform-provider-mongodbatlas.
Thanks, @themantissa and @nikhil-mongo so much for your review, we will check what happens with it, but @nikhil-mongo can you help us sharing the Terraform configuration to recreate the issue?
from terraform-provider-mongodbatlas.
Hi @PacoDw
I am using Terraform v0.12.10 and the cluster.tf file is attached.The file is
cluster.txt
Also I did not make any change to the Terraform configuration, which would cause this. I believe the response to the errors like 500, where a retry should be made to check the state of the cluster will be a good idea. The purpose behind this is that Atlas has a rate limit for hitting API requests per project and this might have been reached when Terraform used the API request to track the status of the cluster.
When I try to use the same file now, I am getting this error
error.txt which means that terraform is still trying to read the cluster status.
The terraform.tfstate file is
terraform_state.txt.
Please note that I had terminated the cluster from the Atlas UI.
Let me know if I need to send you anything else.
from terraform-provider-mongodbatlas.
Thank you so much! We will figure out this on ASAP 👍
from terraform-provider-mongodbatlas.
Hi, @nikhil-mongo,
I tried to recreate the issue with the recent changes, and I didn't have any error about it, just a little issue that's resolved. Could you plz download the latest changes and test it again?
If you have another concern or comment plz let us know
from terraform-provider-mongodbatlas.
You are welcome, thank you so much for your review
from terraform-provider-mongodbatlas.
Hi @PacoDw and @themantissa ,
The above issue has been encountered again.
Below is the error:
Error: error deleting MongoDB Cluster (cluster-atlas): DELETE https://cloud.mongodb.com/api/atlas/v1.0/groups/5cd520dca6f239768087f39e/clusters/cluster-atlas: 500 (request "Internal Server Error") Unexpected error.
But the request succeeds and now Terraform still gives me the option to destroy the cluster and encounters 400 error each time. This has somewhat corrupted by tfstate file.
- provider.mongodbatlas: version = "~> 0.2"
Please reopen this issue.
from terraform-provider-mongodbatlas.
Related Issues (20)
- [Bug][Question][Help needed]: Not able to fetch federated online archived connection string HOT 4
- [Bug]: Documentation fix request HOT 4
- [Bug]: nil pointer dereference when setting "minimum_enabled_tls_protocol" to "TLS1_3" HOT 4
- [Bug]: Resource mongodbatlas_cloud_backup_schedule doesn't provide policy_item_yearly HOT 2
- [Bug]: No way to fetch online archive's connection string HOT 2
- [Bug]: Documentation HOT 5
- [Bug]: Documentation issue HOT 5
- [Bug]: plugin crashed during creation of mongodbatlas_search_index HOT 5
- [Bug]: Error: Provider produced inconsistent result after apply - .region_usage_restrictions: was null, but now cty.StringVal("COMMERCIAL_FEDRAMP_REGIONS_ONLY") HOT 4
- [Bug]: Removing mongodbatlas_alert_configuration resource block after Alert was deleted manually in UI results in 401 Unauthorized Error in Subsequent Plan HOT 4
- [Bug]: error updating MongoDB Network Peering Connection - 400 (request "INVALID_ATTRIBUTE") Invalid attribute azureDirectoryId specified HOT 7
- COLLECTION_ROLES_LIMIT_EXCEEDED - But not even close to the limit HOT 3
- [Bug]: <your-title> HOT 1
- [Bug]: INVALID_DATABASE_NAME - creating custom_db_role HOT 2
- [Bug]: Unable to add a Slack alert notification without a key HOT 3
- [Bug]: mongodbatlas_network_peering returning incorrect outputs after update to 1.16.1 HOT 4
- [Bug]: Provider produced inconsistent result after apply (mongodbatlas_project_ip_access_list) HOT 2
- [Bug]: mongodbatlas_access_list_api_key returns PATH_PARAM_PARSE_ERROR HOT 4
- [Bug]: Destroy of mongodbatlas_cloud_backup_snapshot_export_bucket fails with EXPORT_BUCKET_DELETE_FAILED_BUCKET_IN_USE HOT 6
- [Bug]: yearly snapshot with terraform HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-mongodbatlas.