vektra / docs

Public Docs
0 stars 2 forks source link

alpha.sh failed on mac os x 10.9 #1

Closed drnic closed 10 years ago

drnic commented 10 years ago

Not sure where you'd like bugs, so I'll drop it in here:

$ ./alpha.sh drnic
+ echo 'Booting vektra outpost instance...'
Booting vektra outpost instance...
+ vektra boot
! Creating VM
+ Downloading image from vektra.com...
+ Image size: 1007489536 bytes
960.82 MB / 960.82 MB [======================================================================================================================================] 100.00 % 4.42 MB/s 
+ Image downloaded!
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x402e79b]

goroutine 16 [running]:
runtime.panic(0x4491000, 0x4784644)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/vektra/components/client.(*BootCommand).hostnet(0xc208074810, 0x0, 0x0, 0x0)
    /Users/evan/go/src/github.com/vektra/components/client/boot.go:67 +0x23b
github.com/vektra/components/client.(*BootCommand).createMachine(0xc208074810, 0x0, 0x0)
    /Users/evan/go/src/github.com/vektra/components/client/boot.go:186 +0x3f2
github.com/vektra/components/client.(*BootCommand).Execute(0xc208074810, 0xc208001be0, 0x0, 0x1, 0x0, 0x0)
    /Users/evan/go/src/github.com/vektra/components/client/boot.go:218 +0xb8
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc2080742d0, 0xc20800e010, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /Users/evan/go/src/github.com/jessevdk/go-flags/parser.go:239 +0x80d
github.com/jessevdk/go-flags.(*Parser).Parse(0xc2080742d0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /Users/evan/go/src/github.com/jessevdk/go-flags/parser.go:113 +0xb3
github.com/vektra/components/client.Run()
    /Users/evan/go/src/github.com/vektra/components/client/client.go:215 +0x225
main.main()
    /Users/evan/go/src/github.com/vektra/components/client/cmd/vektra.go:8 +0x1a

goroutine 19 [finalizer wait]:
runtime.park(0x4013610, 0x47a2ea0, 0x4786709)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x47a2ea0, 0x4786709)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445

goroutine 21 [select, 3 minutes]:
github.com/vektra/components/log.(*localConn).process(0xc20801aaa0)
    /Users/evan/go/src/github.com/vektra/components/log/system.go:139 +0x3f9
created by github.com/vektra/components/log.init·2
    /Users/evan/go/src/github.com/vektra/components/log/system.go:195 +0x10b

goroutine 28 [IO wait]:
net.runtime_pollWait(0x4875d48, 0x72, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc208092df0, 0x72, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc208092df0, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208092d90, 0xc208358000, 0x8000, 0x8000, 0x0, 0x48743a0, 0x23)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20804c6a8, 0xc208358000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc20808d560, 0x4875e48, 0xc20804c6a8, 0x5, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc208078840, 0x17, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc208078840, 0xc20831a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/crypto/tls/conn.go:901 +0x16a
net/http.noteEOFReader.Read(0x487eea8, 0xc208078840, 0xc20805c058, 0xc20831a000, 0x1000, 0x1000, 0x4794e40, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/http/transport.go:1203 +0x72
net/http.(*noteEOFReader).Read(0xc208260560, 0xc20831a000, 0x1000, 0x1000, 0xc208056d40, 0x0, 0x0)
    <autogenerated>:124 +0xca
bufio.(*Reader).fill(0xc2081ac4e0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Peek(0xc2081ac4e0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/bufio/bufio.go:132 +0x101
net/http.(*persistConn).readLoop(0xc20805c000)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/http/transport.go:782 +0x95
created by net/http.(*Transport).dialConn
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/http/transport.go:600 +0x93f

goroutine 17 [syscall, 3 minutes]:
runtime.goexit()
    /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445

goroutine 29 [select]:
net/http.(*persistConn).writeLoop(0xc20805c000)
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /usr/local/Cellar/go/1.3/libexec/src/pkg/net/http/transport.go:601 +0x957
evanphx commented 10 years ago

Had you just installed Virtualbox?

drnic commented 10 years ago

No, I have 4.3.14 installed.

drnic commented 10 years ago

Want me to upgrade?

evanphx commented 10 years ago

So, that bug is not checking an error when creating a hostonlynet properly. I've updated the client to handle that, can you download the client and try again?

drnic commented 10 years ago

kk; also upgraded virtualbox

drnic commented 10 years ago

ok, not failing at this point now