I’m currently trying to deploy a new node (already got 1) on Digital Ocean VPS by following the very precise and detailed instructions provided on the official documentation.
Even though it worked like a charm for my first node (deployed in mid-2020); I’m now facing a problem that seems to be related to TERRAFORM.
Indeed when executing the UP (
darknode up) command with all the correct parameters, one of the task executed is to call some terraform function to recover the providers list (in my case digitalocean) to initialize the backend with the provider plugings. This always returned the following ERROR message:
Failed to query available provider packages. Could not retrieve the list of available versions for provider hashicorp/digitalocean: provider registry registry.terraform.io does not have a provider named Did you intend to use digitalocean/digitalocean? If so, you mustspecify that source address in each module which requires that provider. To see which modules are currently depending on hashicorp/digitalocean, run the following command: terraform providers
I noticed that even is the deployment completion fails; some of the previous steps are working: the new darknode folder is correctly created and contains 5 files:
However comparing with my previous darknode 2 key components are missing:
- the hidden folder .terraform containing the folder for plugings (normal because this is what is triggering the failure)
- the terraform.tfstate file (that should contain all info for the deployment - and most likely is created at the very end of the process)
When running the command
terraform providers from within this folder (which contains the configuration file main.tf for terraform) I just get:
Providers required by configuration: provider[registry.terraform.io/hashicorp/digitalocean]
and nothing else.
I went onto Terraform website to find and download the latest official version of the
file and set it under the same location in the folder (copying the same folder/files hierarchy as my previous node); but I don’t know how to “continue” the deployment process from here.
The only way if to relaunch the command : darknode UP with new parameters (name at least) or to delete previous node folder created to keep the same parameter, before re-entering the deployment command.
Has someone ever met the same problem ? Do you have any guess related to the reason(s) of such failure ? and more important; what could be done to eventually overcome this issue ?
I searched online (terraform github; forums, etc.) went through Ren Doc and Terraform Doc without any success; so I have no other choice to turn to our amazing community to find some help and new leads.
MacOS 12.4 (mid-2015)
Client Version: 3.1.3
Darknode version: 0.2.25
Terraform version: 1.2.1