meztez / plumberDeploy

Other
50 stars 12 forks source link

do_deploy_api fails #41

Closed maumassaro closed 1 year ago

maumassaro commented 1 year ago

Hi there,

I am trying to understand how plumber works. I followed all the steps reported in the guide. More precisely

id <- plumberDeploy::do_provision(example = FALSE)

The standard droplet is created and visible at its IP address http://143.110.235.122/.

However, when I try to update the api I get the following error

plumberDeploy::do_deploy_api(droplet = id,

  • path = "date",
  • localPath = "./api/",
  • port = 8000,
  • overwrite = TRUE) stopping service: plumber-date disabling service: plumber-date removing service: plumber-date removing config: plumber-date reloading nginx: plumber-date reloading plumber folder: plumber-date Error in ssh::ssh_info(session = session) : ssh session has been disconnected

I tried to rigenerate the ssh key but this is not the problem. Any suggestion on what I am doing wrong? I am working on Mac OS Ventura 13.2.1

Thanks for any help you may provide

maumassaro commented 1 year ago

Hi there, I answer my own question hoping that it could be helpful for someone else. I do not know why, but when I run the command cat ~/.ssh/id_rsa.pub in my terminal to get the ssh key, the key I got ended with the name of my computer. Running ssh::ssh_key_info() in r that part (the name of my computer) is deleted. Just resaving the key on DO, without the name of my computer solved the issue.