Closed inductor closed 7 years ago
Any advice would be appreciated.
Thanks.
@kelaductor Could you provide more details with --debug
enabled?
$ docker-machine --debug create --driver vultr --vultr-api-key=foobar --vultr-region-id 25 --vultr-plan-id 94 server-name
I have the same problem. The command and output follows: (except for my key - removed for privacy)
docker-machine --debug create --driver vultr --vultr-api-key=xxxxxxxxxxxxxxx --vultr-region-id=1 --vultr-plan-id=204 vultr1
Docker Machine Version: 0.10.0, build 76ed2a6
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:49714
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-vultr
Launching plugin server for driver vultr
Plugin server listening at address 127.0.0.1:49718
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(vultr1) Calling .GetMachineName
(vultr1) Calling .DriverName
(vultr1) Calling .GetCreateFlags
(vultr1) Calling .SetConfigFromFlags
Running pre-create checks...
(vultr1) Calling .PreCreateCheck
(vultr1) Validating Vultr VPS parameters...
Error with pre-create check: "strconv.ParseFloat: parsing \"<nil>\": invalid syntax"
notifying bugsnag: [Error with pre-create check: "strconv.ParseFloat: parsing \"<nil>\": invalid syntax"]
I got the same error. It got fixed after I added some balance to the account. It seems like the code can not handle an account with no balance.
Unfortunately I've already added balance to the specific account so I'm unable to check the actual response of the API in a situation like this.
Update
I found out that the account info API returns the following JSON:
{"balance":"0","pending_charges":"0.00"}
Appearance the "0" makes the code crash.
This has been fixed in the upstream Vultr libary: https://github.com/JamesClonk/vultr/pull/37. Closing.
$ docker-machine create --driver vultr --vultr-api-key=foobar --vultr-region-id 25 --vultr-plan-id 94 server-name
Got this reponse