disc / terraform-provider-pritunl

Pritunl Terraform provider
https://pritunl.com
Mozilla Public License 2.0
47 stars 18 forks source link

Error when updating routes #67

Open gkaskonas opened 1 month ago

gkaskonas commented 1 month ago

                                  │ Error: Error on detaching route from the server: Non-200 response on deleting a route on the server
                                  │ body=404 page not found
                                  │ 
                                  │   with pritunl_server.oncalladminserver (oncalladminserver),
                                  │   on cdk.tf.json line 363, in resource.pritunl_server.oncalladminserver (oncalladminserver):
                                  │  363:       },
                                  │ 
                                  ╵

This is my apply

                                  # pritunl_server.oncalladminserver (oncalladminserver) will be updated in-place
                                    ~ resource "pritunl_server" "oncalladminserver" {
                                          id                 = "66d86f9c62ffb695dea99daf"
                                          name               = "oncalladmin"
                                        ~ status             = "offline" -> "online"
                                          # (34 unchanged attributes hidden)

                                        ~ route {
                                            ~ nat         = false -> true
                                              # (3 unchanged attributes hidden)
                                          }
                                        ~ route {
                                            + comment     = "DNS Server"
                                            ~ nat         = false -> true
                                            + network     = "10.7.0.2/32"
                                              # (1 unchanged attribute hidden)
                                          }

Its trying to change some routes and it returns that error

disc commented 1 month ago

Hey @gkaskonas. Can you share your state of routes (from terraform state file) before applying new changes? It tries to delete a route but receives 404 error (probably route can't be found) in response, and I'd like to see which route can't be deleted.