Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

when I start hipache ,there is an error #16

Open
kaka3052 opened this Issue · 7 comments

6 participants

@kaka3052

when I start hipache ,there is an error,
anybody has the same error?

root@AY121114091050444f816:/usr/local/lib/node_modules/hipache/config# hipache
30 Jan 11:14:12 - Loading config from /usr/local/lib/node_modules/hipache/config/config.json
30 Jan 11:14:12 - Spawning worker #0
30 Jan 11:14:12 - Server is running. {"debug":true,"accessLog":"/tmp/proxy2_test_access.log","port":80,"workers":1,"maxSockets":100,"deadBackendTTL":30,"tcpTimeout":50,"retryOnError":30,"httpKeepAlive":false,"lruCache":{"size":5,"ttl":5}}
30 Jan 11:14:12 - Loading config from /usr/local/lib/node_modules/hipache/config/config.json
30 Jan 11:14:12 - (worker #19334) Cache: LRU cache is enabled

events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL
at errnoException (net.js:769:11)
at Server._listen2 (net.js:892:19)
at net.js:933:12
at Object.cluster._getServer (cluster.js:555:5)
at handleResponse (cluster.js:149:41)
at respond (cluster.js:170:5)
at handleMessage (cluster.js:180:5)
at process.EventEmitter.emit (events.js:126:20)
at handleMessage (child_process.js:269:12)
at Pipe.channel.onread (child_process.js:293:9)
30 Jan 11:14:12 - Worker died (pid: 19334, suicide: false, exitcode: 1). Spawning a new one.

@samalba
Owner

Hi,

could you try using the test config? Looks like there is an error when it tries to bind on localhost.

Try: hipache -c config_test.json

(specify the correct location for the config_test.json file)

@kaka3052

Thank you! I have tried hipache -c config_test.json, but show the same error. Do you kown what is the port that worker will take?

@jpetazzo

Unfortunately, this is probably an issue related to the cluster module.

Here are a few suggestions:

  • try to run on a different port;
  • make sure that nothing else is listening on port 80 (check with netstat -ntlp);
  • run hipache with strace (e.g. strace -o log -f hipache -c config_test.json) and put the log in a gist.

Can you try that and let us know the results?

Thank you!

@aledbf

Check if IPV6 is enabled.

@dmp42 dmp42 added the need-info label
@dmp42 dmp42 added this to the Paradise milestone
@siminm

I had the same issue and my problem was resolved by uninstalling node-hipache via apt-get, and installing it via npm.

@dmp42
Owner

@siminm were you using tsuru package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.