Run Bench while not connected to the internet

I realised that my Bench does not Start when I am not connected to the internet. This is part of the error returned back at the terminal when I run ‘bench start’

20:11:16 socketio.1 | listening on *: 9001
20:11:16 socketio.1 | events.js:160
20:11:16 socketio.1 | throw er; // Unhandled ‘error’ event
20:11:16 socketio.1 | ^
20:11:16 socketio.1 |
20:11:16 socketio.1 | Error: Redis connection to localhost:12001 failed - getaddrinfo EAI_AGAIN localhost:12001
20:11:16 socketio.1 | at Object.exports._errnoException (util.js:1018:11)
20:11:16 socketio.1 | at errnoException (dns.js:33:15)
20:11:16 socketio.1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)

Bench starts just fine if I have an active internet connection. I would like to continue developing even during the few times I don’t have net.

If it’s of any relevance, I am running ubuntu 14.04 and here is my /etc/hosts and I access my sites on port 8001 e.g. http://sc3:8001 sc3 sc4 xxxxxxxxxxx

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Thanks for the continued help.


Your bench will run without internet, the system depend on internet only to send and receive email otherwise you can use the bench without any issues

here issue seems that one of the npm package is not installed which is casing the issue please run the bench update and check if bench start works or not

I ran bench update, but still no luck.

bench start, without internet connection, throws the same error as above.