nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.3k stars 132 forks source link

Issue(provider): [DO - Digitalocean] - Droplet create event failed, please try again #1405

Closed rinor closed 1 year ago

rinor commented 1 year ago

Are there any new known issues on DO that prevent successful nanos deployments?

For some reasons the instances (droplets) created by nanos images fail to be created/instantiated properly. digitalocean_nanos

➜  ops image create boringtun-cli -c config.json -t do -z nyc3 -i boringtun   
do image 'boringtun' created...
➜  ops instance create boringtun -t do -c config.json
do instance 'boringtun-1673602491' created...

francescolavra commented 1 year ago

There are no known issues with running Nanos on DO, in fact I just tried creating a Nanos image and then a droplet, and everything seems to work fine: Screenshot from 2023-01-13 17-58-44 My droplet is running an example program instead of boringtun, but I don't think this makes a difference, it seems to me you encountered a problem with DigitalOcean. I'm using sfo3 as zone instead of nyc3, but this shouldn't make a difference either. I also tried creating the droplet manually from the uploaded image (also tried with different instance flavors), and it worked flawlessly. Tested with Nanos 0.1.43 and nightly. Perhaps there was a transient issue in DigitalOcean when you were using it? Your error message says "please try again in a few minutes".

rinor commented 1 year ago

Ok, thanks. Will try other zones and apps jic. Maybe I'm missing smth in the config file.

Perhaps there was a transient issue in DigitalOcean when you were using it? Your error message says "please try again in a few minutes".

It's 3 days in a row now.

Thank you.

eyberg commented 1 year ago

it could easily be booting and dying very fast - if you haven't tried a simple hello world there first I'd prob do that to see if you could even do that before tackling the wireguard app

rinor commented 1 year ago

Indeed started fresh again today.

Will get back to checking boringtun-cli, just to understand what the issue is and if it's related to nanos.

Thank you.

rinor commented 1 year ago

It turns up that on DO, the tun interface comes up as wg3 instead of wg2 and while wireguard-go can autoswitch to that wg3 even when instructed to expect wg2, boringtun-cli needs the exact name.

So indeed the instance was fast failing hence DO deleted it.