lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Integrate Natty into Lantern

Open myleshorton opened this issue 12 years ago • 8 comments

This will involve Natty running as a separate process.

myleshorton avatar Jun 19 '14 16:06 myleshorton

6225   2014-11-09 00:37:19,087 ERROR [Thread-20] pt.BasePluggableTransport.run (LoggingStreamHandler.java:117) - panic: Unable to construct byteexec for natty: Unable to determine user's home directory: user: Current no
t implemented on linux/amd64

goroutine 16 [running]:
runtime.panic(0x75a760, 0xc2080008c0)
        /Users/ox/git/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/getlantern/go-natty/natty.init??1()
        /Users/ox/gocode/src/github.com/getlantern/go-natty/natty/natty.go:44 +0x282
github.com/getlantern/go-natty/natty.init()
        /Users/ox/gocode/src/github.com/getlantern/go-natty/natty/natty_linux_amd64.go:96 +0x1e5
github.com/getlantern/nattywad.init()
        /Users/ox/gocode/src/github.com/getlantern/nattywad/server.go:187 +0x5d
github.com/getlantern/flashlight/server.init()
        /Users/ox/gocode/src/github.com/getlantern/flashlight/server/server.go:320 +0x4e
main.init()
        /Users/ox/gocode/src/github.com/getlantern/flashlight/flashlight.go:210 +0x5d

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()

ed2k avatar Nov 09 '14 05:11 ed2k

@ed2k Which linux distribution did this happen on?

oxtoacart avatar Nov 09 '14 08:11 oxtoacart

This may be of use - https://inconshreveable.com/04-30-2014/cross-compiling-golang-programs-with-native-libraries/

oxtoacart avatar Nov 09 '14 08:11 oxtoacart

Also potentially of use - https://groups.google.com/forum/#!msg/golang-nuts/YnYOXhdgnes/qIFzTTYvrqkJ

oxtoacart avatar Nov 09 '14 08:11 oxtoacart

@oxtoacart the problem happened on ubuntu14.04 vps, which is openvz based. btw, I tried go-natty demo on the vps as well, my ATT gateway doesn't support UDP traversal. Also when it works, the hello printout got all messed up on VPS.

ed2k avatar Nov 09 '14 18:11 ed2k

So I've narrowed the problem down to a cross compilation issue. Will have a fix tomorrow. On Nov 9, 2014 12:13 PM, "ed2k" [email protected] wrote:

@oxtoacart https://github.com/oxtoacart the problem happened on ubuntu14.04 vps, which is openvz based. btw, I tried go-natty demo on the vps as well, my ATT gateway doesn't support UDP traversal. Also when it works, the hello printout got all messed up on VPS.

— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1606#issuecomment-62312999.

oxtoacart avatar Nov 09 '14 19:11 oxtoacart

Cross compilation issue should be fixed now - see https://github.com/getlantern/flashlight/commit/3e100b395051412c4d5b5fc5aface8dd5e29f6a9

oxtoacart avatar Nov 10 '14 15:11 oxtoacart

Sounds good. Let me know if I should build a new version.

On Mon, Nov 10, 2014 at 7:13 AM, oxtoacart [email protected] wrote:

Cross compilation issue should be fixed now - see getlantern/flashlight@ 3e100b3 https://github.com/getlantern/flashlight/commit/3e100b395051412c4d5b5fc5aface8dd5e29f6a9

— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1606#issuecomment-62397342.

President Brave New Software Project, Inc. https://www.getlantern.org pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89

myleshorton avatar Nov 10 '14 16:11 myleshorton