git ssb


14+

cel / git-ssb-web



unknown ip address not available

%S4ge2EIz0Upz6HxSJ1tDWJrmpEqDJ8rqhnZZsZAUZhc=.sha256
Closedev opened this issue on 6/7/2017, 1:57:56 AM

unknown ip address not available

I'm getting this error on my pub when trying to install git-ssb-web. I'm trying to get gitmx.com back up, because I have time to maintain it again! However, I'm not sure why I'm getting this error:

events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRNOTAVAIL 192.64.119.209:7718
    at Object.exports._errnoException (util.js:1050:11)
    at exports._exceptionWithHostPort (util.js:1073:20)
    at Server.setupListenHandle [as _listen2] (net.js:1243:19)
    at listenInCluster (net.js:1307:12)
    at doListen (net.js:1432:7)
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:10)
error Command failed with exit code 1.

The weird thing is my ip is not 192.64.119.209, it's 138.197.93.75. Where is git-ssb-web getting the other ip from?

I tried configuring a hostname, but git-ssb-web is still grabbing the ip for some reason.

%E3z5sJC8lhrGukUZnqpvhYHy8ZSQkQdK4FljKiqhcso=.sha256 cel · 6/7/2017, 2:04:32 AM

what is in your ssb config.git-ssb-web?

%h5fe4dU4wttN918L5Xp+baKasSIYx1sJzDbsairaLYQ=.sha256 ev · 6/7/2017, 2:25:48 AM

@cel

  "git-ssb-web": {
    "host": "gitmx.com"
  }

Does git-ssb-web scan the sbot log for the pub's IP? I think my pub's IP has changed a few times, maybe that's it?

%ch2dwKjBJyVJpx2NV6y6o6vCN/OJB/6CES2ltRelmuM=.sha256 cel · 6/7/2017, 2:33:35 AM

@ev
git-ssb-web does not scan the log for the ip, it listens on the host in the config. node takes the host and does a reverse dns lookup to pick which ip or interface to bind to. dns resolves it to 192.64.119.209. i recommend changing the git-ssb-web.host config option from gitmx.com to 138.197.93.75, or '0.0.0.0' to listen on all ipv4 addresses (in case your ip changes). this config option is not used in the UI anywhere.

%hLx6amdwByiBjyeA+2eNw3CtsXsI5pUpWHS/d+zcVSo=.sha256 jake · 6/7/2017, 3:00:11 AM

I attempted to run git-ssb-web on git.doge.haus as well It runs for a bit, but after browsing around a little I get the same error @ev mentioned, except with a diff host and port

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE 127.0.0.1:7718
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Server.setupListenHandle [as _listen2] (net.js:1305:14)
    at listenInCluster (net.js:1353:12)
    at doListen (net.js:1479:7)
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:84:16)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:100:10)

I'm going on vacation next week and might be able to dive into this more when I get that free time, unless the reason is more obvious that it seems to me at the moment

%JNsVj3DOM9rbTG4U4rWOfPze/JAGqJ5AMxofE0pDq0c=.sha256 ev · 6/7/2017, 2:23:45 PM

@cel Setting the hostname to the correct IP worked! I wonder if my reverse dns is wrong? I'm looking into that.

%UfyS6Q+OT0oCwjZZVFOeRv58YmaEGGmzC+OwT/l+rlA=.sha256 ev · 6/7/2017, 2:54:12 PM

Alright, gitmx.com is back up!

· 6/7/2017, 2:56:30 PM

Built with git-ssb-web