In continuation of the above, I tried installing convoy on an EC2 instance. While creating a volume, it is throwing up the following error but the volume seems to be created and also got attached to the instance. Pls update if this is an issue or am I missing something here ?
I initially tried with Docker 1.10 version (default option in Rancher while launching AWS instance) and also with the ‘latest’ option (docker version). The following error are with the latest docker version
root@Convoy-EBS-VM2-LatestDocker:~# docker --version
Docker version 1.12.1, build 23cf638
root@Convoy-EBS-VM2-LatestDocker:~#
root@Convoy-EBS-VM2-LatestDocker:~# convoy create convoy-vol03
ERRO[0017] Post http://%!F(MISSING)var%!F(MISSING)run%!F(MISSING)convoy%!F(MISSING)convoy.sock/v1/volumes/create: EOF
{
“Error”: “Post http://%!F(MISSING)var%!F(MISSING)run%!F(MISSING)convoy%!F(MISSING)convoy.sock/v1/volumes/create: EOF”
}
Also got the following error logs
time=“2016-09-27T20:43:38Z” level=debug msg=“Calling: POST, /volumes/create, request: POST, /v1/volumes/create” pkg=daemon
time=“2016-09-27T20:43:38Z” level=debug msg= event=create object=volume opts=map[BackupURL: VolumeName:convoy-vol03 VolumeDriverID: VolumeType: VolumeIOPS:0 PrepareForVM:false Size:0] pkg=daemon reason=prepare volume=convoy-vol03
time=“2016-09-27T20:43:44Z” level=debug msg=“Adding tags for vol-23d7e58f, as map[Name:convoy-vol03]” pkg=ebs
time=“2016-09-27T20:43:44Z” level=debug msg=“Created volume convoy-vol03 from EBS volume vol-23d7e58f” pkg=ebs
time=“2016-09-27T20:43:44Z” level=debug msg=“Attaching vol-23d7e58f to i-80bc5096’s /dev/sdf” pkg=ebs
time=“2016-09-27T20:43:50Z” level=debug msg=“Attached EBS volume vol-23d7e58f to /dev/xvdf” pkg=ebs
time=“2016-09-27T20:43:51Z” level=debug msg=“Created volume” event=create object=volume pkg=daemon reason=complete volume=convoy-vol03
2016/09/27 20:43:56 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
goroutine 23 [running]:
net/http.(*conn).serve.func1(0xc820197000)
/usr/local/go/src/net/http/server.go:1389 +0xc1
panic(0xb3fcc0, 0xc820010130)
/usr/local/go/src/runtime/panic.go:443 +0x4e9
github.com/rancher/convoy/ebs.(*Driver).GetVolumeInfo(0xc82005b270, 0xc8201a9a50, 0xc, 0x0, 0x0, 0x0)
/go/src/github.com/rancher/convoy/ebs/ebs.go:501 +0x898
github.com/rancher/convoy/daemon.(*daemon).getVolumeDriverInfo(0xc820078500, 0xc820456d80, 0xc820456d80, 0x0, 0x0)
/go/src/github.com/rancher/convoy/daemon/volume.go:303 +0xbb
github.com/rancher/convoy/daemon.(*daemon).doVolumeCreate(0xc820078500, 0xc55960, 0x1, 0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0, 0xc820195a10, 0x0, 0x0)
/go/src/github.com/rancher/convoy/daemon/volume.go:157 +0x133
github.com/rancher/convoy/daemon.(*daemon).(github.com/rancher/convoy/daemon.doVolumeCreate)-fm(0xc55960, 0x1, 0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0, 0xc820195a10, 0x0, 0x0)
/go/src/github.com/rancher/convoy/daemon/daemon.go:76 +0x74
github.com/rancher/convoy/daemon.makeHandlerFunc.func1(0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0)
/go/src/github.com/rancher/convoy/daemon/daemon.go:142 +0x29d
net/http.HandlerFunc.ServeHTTP(0xc82015f8c0, 0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0)
/usr/local/go/src/net/http/server.go:1618 +0x3a
github.com/rancher/convoy/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc82005b2c0, 0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0)
/go/src/github.com/rancher/convoy/vendor/github.com/gorilla/mux/mux.go:98 +0x29e
net/http.serverHandler.ServeHTTP(0xc820196e80, 0x7f7594b844b0, 0xc82013f450, 0xc8201bc1c0)
/usr/local/go/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc820197000)
/usr/local/go/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2137 +0x44e