Digital Ocean Region Not able to be shown
ObviouslyAce opened this issue · 1 comments
ObviouslyAce commented
When trying to deploy onto digital ocean, the script is unable to retrieve the available regions and as a result, cannot deploy.
This happens right after entering the digital ocean API token
PLAY [localhost] ***************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************
ok: [localhost]
TASK [Playbook dir stat] *******************************************************************************************
ok: [localhost]
TASK [Ensure Ansible is not being run in a world writable directory] ***********************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
[WARNING]: The value '' is not a valid IP address or network, passing this value to ipaddr filter might result in
breaking change in future.
TASK [Ensure the requirements installed] ***************************************************************************
ok: [localhost]
TASK [Set required ansible version as a fact] **********************************************************************
ok: [localhost] => (item=ansible-core==2.12.3)
TASK [Verify Python meets Algo VPN requirements] *******************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Verify Ansible meets Algo VPN requirements] ******************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
[WARNING]: Found variable using reserved name: no_log
PLAY [Ask user for the input] **************************************************************************************
TASK [Gathering Facts] *********************************************************************************************
ok: [localhost]
[Cloud prompt]
What provider would you like to use?
1. DigitalOcean
2. Amazon Lightsail
3. Amazon EC2
4. Microsoft Azure
5. Google Compute Engine
6. Hetzner Cloud
7. Vultr
8. Scaleway
9. OpenStack (DreamCompute optimised)
10. CloudStack (Exoscale optimised)
11. Linode
12. Install to existing Ubuntu 18.04 or 20.04 server (for more advanced users)
Enter the number of your desired provider
:
1^M
TASK [Cloud prompt] ************************************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ********************************************************************************
ok: [localhost]
[VPN server name prompt]
Name the vpn server
[algo]
:
algo^M
TASK [VPN server name prompt] **************************************************************************************
ok: [localhost]
[Cellular On Demand prompt]
Do you want macOS/iOS clients to enable "Connect On Demand" when connected to cellular networks?
[y/N]
:
n^M
TASK [Cellular On Demand prompt] ***********************************************************************************
ok: [localhost]
[Wi-Fi On Demand prompt]
Do you want macOS/iOS clients to enable "Connect On Demand" when connected to Wi-Fi?
[y/N]
:
n^M
TASK [Wi-Fi On Demand prompt] **************************************************************************************
ok: [localhost]
[Retain the PKI prompt]
Do you want to retain the keys (PKI)? (required to add users in the future, but less secure)
[y/N]
:
y^M
TASK [Retain the PKI prompt] ***************************************************************************************
ok: [localhost]
[DNS adblocking prompt]
Do you want to enable DNS ad blocking on this VPN server?
[y/N]
:
y^M
TASK [DNS adblocking prompt] ***************************************************************************************
ok: [localhost]
[SSH tunneling prompt]
Do you want each user to have their own account for SSH tunneling?
[y/N]
:
y^M
TASK [SSH tunneling prompt] ****************************************************************************************
ok: [localhost]
TASK [Set facts based on the input] ********************************************************************************
ok: [localhost]
PLAY [Provision the server] ****************************************************************************************
TASK [Gathering Facts] *********************************************************************************************
ok: [localhost]
--> Please include the following block of text when reporting issues:
Algo running on: macOS 12.3
Created from git clone. Last commit: 9f241b1 Bump ansible-core from 2.12.1 to 2.12.3 (#14425)
Python 3.10.2
Runtime variables:
algo_provider "digitalocean"
algo_ondemand_cellular "False"
algo_ondemand_wifi "False"
algo_ondemand_wifi_exclude "X251bGw="
algo_dns_adblocking "True"
algo_ssh_tunneling "True"
wireguard_enabled "True"
dns_encryption "True"
TASK [Display the invocation environment] **************************************************************************
changed: [localhost]
TASK [Install the requirements] ************************************************************************************
ok: [localhost]
TASK [Generate the SSH private key] ********************************************************************************
ok: [localhost]
TASK [Generate the SSH public key] *********************************************************************************
ok: [localhost]
TASK [Copy the private SSH key to /tmp] ****************************************************************************
ok: [localhost]
TASK [Include a provisioning role] *********************************************************************************
[cloud-digitalocean : pause]
Enter your API token. The token must have read and write permissions (https://cloud.digitalocean.com/settings/api/tokens):
(output is hidden):
TASK [cloud-digitalocean : pause] **********************************************************************************
ok: [localhost]
TASK [cloud-digitalocean : Set the token as a fact] ****************************************************************
ok: [localhost]
TASK [cloud-digitalocean : Get regions] ****************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "elapsed": 0, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>", "redirected": false, "status": -1, "url": "https://api.digitalocean.com/v2/regions"}
TASK [include_tasks] ***********************************************************************************************
included: /Users/rudolphmilliken/Projects/algo/playbooks/rescue.yml for localhost
TASK [debug] *******************************************************************************************************
ok: [localhost] => {
"fail_hint": [
"Sorry, but something went wrong!",
"Please check the troubleshooting guide.",
"https://trailofbits.github.io/algo/troubleshooting.html"
]
}
TASK [Fail the installation] ***************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
PLAY RECAP *********************************************************************************************************
localhost : ok=27 changed=1 unreachable=0 failed=1 skipped=1 rescued=1 ignored=0
davidemyers commented
This problem is usually caused by an incomplete Python installation. See Deploy from macOS.