Unable to accept socket connection. It looks like Zeus is already running. If not, remove .zeus.sock and try again

StackOverflow https://stackoverflow.com/questions/17630211

سؤال

Zeus is a great tool when working on a fairly large Rails projects to lower the load time of Rails application and running the test suite. However after sometime I have started to face this problem with all my projects on starting zeus:

enter image description here

I did some research and also tried some of resources to resolve this error but none of them worked. I would be thankful if somebody can point me to the right direction to resolve this issue.

I am on a Mac OSX 10.8.2

Thanks

هل كانت مفيدة؟

المحلول

The two comments actually pointed me to the right direction:

If ls-a shows .zeus.sock file than doing a simple remove resolves the issue like this :

rm .zeus.sock

نصائح أخرى

This is solved, but still is very high in google for that particular error, so in hopes of helping someone:

The error can also happen if you're trying to run zeus from a shared directory - for example inside vagrant environment. Use the ZEUSSOCK environment variable to move the sock somewhere else (like /tmp).

See this.

It's also possible you're in the wrong directory or a directory without a Rails app in it :)

I solved this with these commands:

ls -al

and found out that it is in my Rails project enter image description here

You can delete .zeus.sock by typing

rm .zeus.sock

There can be multiple things happening here:

  1. You are not in the root directory of the rails app or in the same directory as zeus.json.

  2. Zeus daemon is already running in some other shell.

  3. .zeus.sock file wasn't deleted since the last run. This file is present in the root of the rails app directory. You can go ahead and delete this file and then run zeus start.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top