Deploying a Minimal API using plumber on DigitalOcean

Hello! I try to 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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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 <-, 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”)

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:

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?