{"action":"created","issue":{"url":"https://api.github.com/repos/subutai-io/p2p/issues/85","repository_url":"https://api.github.com/repos/subutai-io/p2p","labels_url":"https://api.github.com/repos/subutai-io/p2p/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/subutai-io/p2p/issues/85/comments","events_url":"https://api.github.com/repos/subutai-io/p2p/issues/85/events","html_url":"https://github.com/subutai-io/p2p/issues/85","id":140676546,"number":85,"title":"P2P panic if you have running OpenVPN connection (and vise-versa)","user":{"login":"slavakimod","id":17647050,"avatar_url":"https://avatars.githubusercontent.com/u/17647050?v=3","gravatar_id":"","url":"https://api.github.com/users/slavakimod","html_url":"https://github.com/slavakimod","followers_url":"https://api.github.com/users/slavakimod/followers","following_url":"https://api.github.com/users/slavakimod/following{/other_user}","gists_url":"https://api.github.com/users/slavakimod/gists{/gist_id}","starred_url":"https://api.github.com/users/slavakimod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavakimod/subscriptions","organizations_url":"https://api.github.com/users/slavakimod/orgs","repos_url":"https://api.github.com/users/slavakimod/repos","events_url":"https://api.github.com/users/slavakimod/events{/privacy}","received_events_url":"https://api.github.com/users/slavakimod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/subutai-io/p2p/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/subutai-io/p2p/labels/HIGH","name":"HIGH","color":"e11d21"},{"url":"https://api.github.com/repos/subutai-io/p2p/labels/Windows","name":"Windows","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T13:42:48Z","updated_at":"2016-03-24T19:28:26Z","closed_at":"2016-03-24T19:28:25Z","body":"**Behavior**\r\nIf you have P2P running - you cannot start any OpenVPN connection\r\nIf you have any active OpenVPN connections you are getting panic on command p2p start -ip ...\r\n\r\n**Log of exception**\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xc0000005 code=0x0 addr=0x8 pc=0x4c805f]\r\n\r\ngoroutine 7 [running]:\r\ngithub.com/subutai-io/p2p/lib.openDevice(0xc082128d00, 0x5, 0xc08202b468, 0x0, 0x0)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/lib/tuntap_windows.go:147 +0x25f\r\ngithub.com/subutai-io/p2p/lib.Open(0xc082128d00, 0x5, 0x1, 0x8b1680, 0x0, 0x0)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/lib/tuntap_windows.go:258 +0x3e\r\nmain.(*PTPCloud).AssignInterface(0xc082062c60, 0xc082009e30, 0xa, 0xc08210e3e0, 0x11, 0xc082009e50, 0xd, 0xc082128d00, 0x5, 0x0, ...)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/p2p.go:80 +0x3ef\r\nmain.p2pmain(0xc082009e30, 0xa, 0xc082009e50, 0xd, 0xc08210e3e0, 0x11, 0xc082128d00, 0x5, 0x0, 0x0, ...)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/p2p.go:283 +0x11a3\r\nmain.(*Procedures).Run(0xc0820d6450, 0xc082070dc0, 0xc08210e2c0, 0x0, 0x0)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/instance.go:201 +0x3bf\r\nreflect.Value.call(0x801880, 0x883510, 0x13, 0x8bba50, 0x4, 0xc08202bed8, 0x3, 0x3, 0x0, 0x0, ...)\r\n        c:/go/src/reflect/value.go:432 +0x1211\r\nreflect.Value.Call(0x801880, 0x883510, 0x13, 0xc08202bed8, 0x3, 0x3, 0x0, 0x0, 0x0)\r\n        c:/go/src/reflect/value.go:300 +0xb8\r\nnet/rpc.(*service).call(0xc0820d0700, 0xc0820d0200, 0xc082009700, 0xc0820dc280, 0xc082003ae0, 0x76e4e0, 0xc082070dc0, 0x16, 0x76e480, 0xc08210e2c0, ...)\r\n        c:/go/src/net/rpc/server.go:383 +0x1c8\r\ncreated by net/rpc.(*Server).ServeCodec\r\n        c:/go/src/net/rpc/server.go:477 +0x4b3\r\n\r\ngoroutine 1 [sleep]:\r\ntime.Sleep(0x12a05f200)\r\n        c:/go/src/runtime/time.go:59 +0x107\r\nmain.Daemon(0x8bb4b8, 0x5, 0x0, 0x0, 0x0, 0x0)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/main.go:339 +0x641\r\nmain.main()\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/main.go:118 +0x162e\r\n\r\ngoroutine 17 [syscall]:\r\nos/signal.loop()\r\n        c:/go/src/os/signal/signal_unix.go:22 +0x1f\r\ncreated by os/signal.init.1\r\n        c:/go/src/os/signal/signal_unix.go:28 +0x3e\r\n\r\ngoroutine 18 [IO wait]:\r\nnet.runtime_pollWait(0x2a312b0, 0x72, 0xc0820096b0)\r\n        c:/go/src/runtime/netpoll.go:157 +0x67\r\nnet.(*pollDesc).Wait(0xc0820342f0, 0x72, 0x0, 0x0)\r\n        c:/go/src/net/fd_poll_runtime.go:73 +0x41\r\nnet.(*ioSrv).ExecIO(0xc0820d8030, 0xc0820341e0, 0x8c5f30, 0x8, 0xc082003a60, 0xc08201ad80, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:182 +0x177\r\nnet.(*netFD).acceptOne(0xc082034180, 0xc0820841c0, 0x2, 0x2, 0xc0820341e0, 0x220000, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:564 +0x26c\r\nnet.(*netFD).accept(0xc082034180, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:594 +0x173\r\nnet.(*TCPListener).AcceptTCP(0xc0820d8040, 0xc0820ede60, 0x0, 0x0)\r\n        c:/go/src/net/tcpsock_posix.go:254 +0x54\r\nnet.(*TCPListener).Accept(0xc0820d8040, 0x0, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/tcpsock_posix.go:264 +0x44\r\nnet/http.(*Server).Serve(0xc0820f0060, 0x2a30308, 0xc0820d8040, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:1887 +0xba\r\nnet/http.Serve(0x2a30308, 0xc0820d8040, 0x0, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:1765 +0x8c\r\ncreated by main.Daemon\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/main.go:323 +0x55a\r\n\r\ngoroutine 19 [chan receive]:\r\nmain.Daemon.func1(0xc0820f0000)\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/main.go:332 +0x85\r\ncreated by main.Daemon\r\n        C:/Projects/go/src/github.com/subutai-io/p2p/main.go:337 +0x62e\r\n\r\ngoroutine 6 [IO wait]:\r\nnet.runtime_pollWait(0x2a311f0, 0x72, 0xc082009e80)\r\n        c:/go/src/runtime/netpoll.go:157 +0x67\r\nnet.(*pollDesc).Wait(0xc0820348f0, 0x72, 0x0, 0x0)\r\n        c:/go/src/net/fd_poll_runtime.go:73 +0x41\r\nnet.(*ioSrv).ExecIO(0xc0820d8030, 0xc0820347e0, 0x8bdbc8, 0x7, 0x9847c8, 0xc082078201, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:182 +0x177\r\nnet.(*netFD).Read(0xc082034780, 0xc08210a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:463 +0x17e\r\nnet.(*conn).Read(0xc082024080, 0xc08210a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/net.go:172 +0xeb\r\nbufio.(*Reader).fill(0xc08200e420)\r\n        c:/go/src/bufio/bufio.go:97 +0x1f0\r\nbufio.(*Reader).Read(0xc08200e420, 0xc0820096e0, 0x1, 0x9, 0x0, 0x0, 0x0)\r\n        c:/go/src/bufio/bufio.go:207 +0x267\r\nio.ReadAtLeast(0x3a4a50, 0xc08200e420, 0xc0820096e0, 0x1, 0x9, 0x1, 0x0, 0x0, 0x0)\r\n        c:/go/src/io/io.go:298 +0xed\r\nio.ReadFull(0x3a4a50, 0xc08200e420, 0xc0820096e0, 0x1, 0x9, 0xc0820fd000, 0x0, 0x0)\r\n        c:/go/src/io/io.go:316 +0x69\r\nencoding/gob.decodeUintReader(0x3a4a50, 0xc08200e420, 0xc0820096e0, 0x9, 0x9, 0x0, 0x1, 0x0, 0x0)\r\n        c:/go/src/encoding/gob/decode.go:121 +0x99\r\nencoding/gob.(*Decoder).recvMessage(0xc082078280, 0xc08202f408)\r\n        c:/go/src/encoding/gob/decoder.go:76 +0x65\r\nencoding/gob.(*Decoder).decodeTypeSequence(0xc082078280, 0x984e00, 0xc082078280)\r\n        c:/go/src/encoding/gob/decoder.go:140 +0x4e\r\nencoding/gob.(*Decoder).DecodeValue(0xc082078280, 0x771ae0, 0xc08210e2e0, 0x16, 0x0, 0x0)\r\n        c:/go/src/encoding/gob/decoder.go:208 +0x164\r\nencoding/gob.(*Decoder).Decode(0xc082078280, 0x771ae0, 0xc08210e2e0, 0x0, 0x0)\r\n        c:/go/src/encoding/gob/decoder.go:185 +0x290\r\nnet/rpc.(*gobServerCodec).ReadRequestHeader(0xc0820878f0, 0xc08210e2e0, 0x0, 0x0)\r\n        c:/go/src/net/rpc/server.go:403 +0x58\r\nnet/rpc.(*Server).readRequestHeader(0xc0820d0200, 0x3a4aa0, 0xc0820878f0, 0x0, 0x0, 0xc08210e2e0, 0xc08202f700, 0x0, 0x0)\r\n        c:/go/src/net/rpc/server.go:576 +0x97\r\nnet/rpc.(*Server).readRequest(0xc0820d0200, 0x3a4aa0, 0xc0820878f0, 0xc0820d0200, 0xc082009700, 0xc0820dc280, 0x0, 0x0, 0x0, 0x0, ...)\r\n        c:/go/src/net/rpc/server.go:543 +0x92\r\nnet/rpc.(*Server).ServeCodec(0xc0820d0200, 0x3a4aa0, 0xc0820878f0)\r\n        c:/go/src/net/rpc/server.go:462 +0x93\r\nnet/rpc.(*Server).ServeConn(0xc0820d0200, 0x3a49f0, 0xc082024080)\r\n        c:/go/src/net/rpc/server.go:454 +0x4f5\r\nnet/rpc.(*Server).ServeHTTP(0xc0820d0200, 0x3a4940, 0xc0820b5810, 0xc0820842a0)\r\n        c:/go/src/net/rpc/server.go:694 +0x50a\r\nnet/http.(*ServeMux).ServeHTTP(0xc082086d80, 0x3a4940, 0xc0820b5810, 0xc0820842a0)\r\n        c:/go/src/net/http/server.go:1699 +0x184\r\nnet/http.serverHandler.ServeHTTP(0xc0820f0060, 0x3a4940, 0xc0820b5810, 0xc0820842a0)\r\n        c:/go/src/net/http/server.go:1862 +0x1a5\r\nnet/http.(*conn).serve(0xc0820b5760)\r\n        c:/go/src/net/http/server.go:1361 +0xbf5\r\ncreated by net/http.(*Server).Serve\r\n        c:/go/src/net/http/server.go:1910 +0x3fd"},"comment":{"url":"https://api.github.com/repos/subutai-io/p2p/issues/comments/200983539","html_url":"https://github.com/subutai-io/p2p/issues/85#issuecomment-200983539","issue_url":"https://api.github.com/repos/subutai-io/p2p/issues/85","id":200983539,"user":{"login":"crioto","id":671147,"avatar_url":"https://avatars.githubusercontent.com/u/671147?v=3","gravatar_id":"","url":"https://api.github.com/users/crioto","html_url":"https://github.com/crioto","followers_url":"https://api.github.com/users/crioto/followers","following_url":"https://api.github.com/users/crioto/following{/other_user}","gists_url":"https://api.github.com/users/crioto/gists{/gist_id}","starred_url":"https://api.github.com/users/crioto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crioto/subscriptions","organizations_url":"https://api.github.com/users/crioto/orgs","repos_url":"https://api.github.com/users/crioto/repos","events_url":"https://api.github.com/users/crioto/events{/privacy}","received_events_url":"https://api.github.com/users/crioto/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T19:28:25Z","updated_at":"2016-03-24T19:28:25Z","body":"Currently p2p application conflicts with OpenVPN software under Windows. It will not panic anymore, but will gently disable existing openvpn interfaces. "}}