meztez / plumberDeploy

Other
50 stars 12 forks source link

do_configure_https fails on DigitalOcean #39

Closed gcpoole closed 1 year ago

gcpoole commented 1 year ago

Hello:

I've successfully configured a droplet using do_provision() but do_configure_https() fails with the following result:

do_configure_https(drop, "myURL.com", "myemail@myURL.com", TRUE)
       112 /tmp/Rtmpm2CFJY/SFELPQjWiI

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21994    0 21994    0     0  1952k      0 --:--:-- --:--:-- --:--:-- 1952k
     21994 /tmp/Rtmpm2CFJY/PCAWsIjeGp

Confirmed that 'marlowe.live' references one of the available IP addresses.
 The PPA has been DEPRECATED.

To get up to date instructions on how to get certbot for your systems, please see https://certbot.eff.org/docs/install.html.
 More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
Hit:1 http://mirrors.digitalocean.com/ubuntu focal InRelease
Get:2 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease [114 kB]
Hit:3 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Get:4 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:6 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease
Get:7 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease [3622 B]
Err:8 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release
  404  Not Found [IP: 185.125.190.52 80]
Reading package lists...
E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file.
Error: ssh failed
add-apt-repository ppa:certbot/certbot
In addition: Warning message:
In do_configure_https(drop, "marlowe.live", "geoff@authors.ai",  :
  You should consider using a Floating IP address on your droplet for DNS. Currently you're using the ephemeral IP address of your droplet for DNS which is dangerous; as soon as you terminate your droplet your DNS records will be pointing to an IP address you no longer control. A floating IP will give you the opportunity to create a new droplet and reassign the floating IP used with DNS later.

It looks to me like the installation process for certbot has changed. Now, apparently, a snap installation is recommended...

https://certbot.eff.org/instructions

meztez commented 1 year ago

https://github.com/meztez/plumberDeploy/commit/a8dbc5ba0a89c589855866c5bc1f99fcf55c474f

Would you mind trying with the latest package version from github?

gcpoole commented 1 year ago

Yes, I installed the current version using remotes::install_git() and that worked. I have the "Plumber is Alive" message via https.

Thanks so much for developing this package! It's quite helpful!