Hello! I try to deploying a minimal API using plumber on DigitalOcean https://www.r-bloggers.com/deploying-a-minimal-api-using-plumber-on-digitalocean/
I followed the all instruction steps thoroughly After command id <- do_provision() I have an error (Error: Region is not available), here is the log
THIS ACTION COSTS YOU MONEY! Provisioning a new server for which you will get a bill from DigitalOcean. Waiting for authentication in browser… Press Esc/Ctrl + C to abort Authentication complete. Using default ssh keys: Error: Region is not available In addition: Warning message: You have not specified any ssh_keys. This is NOT recommended. (You will receive an email with the root password in a few minutes
Why is my region is not available?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
I’m not an expert on this software, but I did some digging and I found a tip on how to expose debugging data from here: https://github.com/trestletech/plumber/issues/224
It seems that running “traceback()” can gather more information. Could you do that and let us know a bit more about the variables behind this attempt to create a droplet?
Jarland
Thank you, Jarland!
I managed to go a little further. I needed to provide region as an argument. But I still could not deploy Plumber. Here is the log and traceback:
plumber::do_provision(region = ‘sgp1’) THIS ACTION COSTS YOU MONEY! Provisioning a new server for which you will get a bill from DigitalOcean. Using default ssh keys: Caelestis, hppc NB: This costs $0.00744 / hour until you droplet_delete() it Waiting for create … New server fingerprint: a6:28:21:ec:bf:2c:7f:3e:77:de:da:84:d5:88:5e:70:e9:82:41:4f 2 C:\Users\CAELES~1\AppData\Local\Temp\Rtmp67l0BA\file804066ec378e/cWMJuYpixl Error in file(con, “wb”) : cannot open the connection In addition: Warning message: In file(con, “wb”) : cannot open file ‘C:\Users\CAELES~1\AppData\Local\Temp\Rtmp67l0BA\file804066ec378e/cWMJuYpixl’: No such file or directory
traceback() 9: file(con, “wb”) 8: writeBin(data, target) 7: (function (data, filepath) { target <- do.call(file.path, as.list(c(to, filepath))) if (verbose) cat(sprintf(“%10d %s\n”, length(data), target)) if (is.null(data)) return(dir.create(target, recursive = TRUE, showWarnings = FALSE)) writeBin(data, target) })(as.raw(c(0x30, 0x0a)), “cWMJuYpixl”) 6: ssh::scp_download(session = session, files = remote, to = local, verbose = TRUE) 5: cat(ssh::scp_download(session = session, files = remote, to = local, verbose = TRUE), sep = “\n”) 4: do_scp(droplet, local, remote, user, scp = “download”, keyfile, ssh_passwd, verbose = verbose) 3: analogsea::droplet_download(droplet, paste0(“/tmp/”, randName), tf) 2: droplet_capture(droplet, “swapon | grep "/swapfile" | wc -l”) 1: plumber::do_provision(region = “sgp1”)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.