Fork me on GitHub
#docker
<
2017-09-20
>
gonewest81820:09:38

@staypufd I’m trying to quickly add nrepl server to that project.

staypufd21:09:05

do you happen to be running DockerMac?

staypufd21:09:09

that’s what I’m running

staypufd21:09:09

not that I won’t want to see yours if you don’t but I’m wondering it that may be part of it

gonewest81821:09:06

Yes, I am using docker on a mac.

gonewest81821:09:53

ok, well, I’ve duplicated your ‘Exception in thread “main” java.net.SocketException: Protocol family unavailable’

staypufd22:09:46

but at least it isn’t just me

gonewest81822:09:58

are you using tools.nrepl 0.2.13? because in the changelog it says “start-server now binds to :: by default, and falls back to localhost, avoiding confusion when working in environments that have both IPv4 and IPv6 networking available. (NREPL-83)”

gonewest81822:09:26

in alpine linux I don’t think ipv6 is enabled by default. in my case I got the socketexception to go away by doing this

gonewest81822:09:39

(start-server :port 7000 :bind "localhost")

gonewest81822:09:56

if that works for you, it suggests the part where they say “falls back to localhost” isn’t actually happening.

gonewest81822:09:11

I mean, the socketexception isn’t being caught in tools.nrepl, right, so my hunch is the unhandled exception is why the fallback to “localhost” never occurs.

gonewest81822:09:23

I suppose the other route would be to enable ipv6 in alpine, but that’s up to you. Either way, would be interested to see if this is your issue.

gonewest81822:09:37

Correction: to actually connect to the repl I needed to (start-server :port 7000 :bind "0.0.0.0")

gonewest81823:09:33

changes pushed to github if you want to see https://github.com/gonewest818/benchcurl