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

5

13

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

Difficile answered 13/7, 2013 at 12:32 Comment(2)
Did you try rm .zeus.sock like it suggests? I get that error whenever I try to start zeus and there's already a .zeus.sock file in the directory (for example, if Zeus crashed without cleaning itself up).Doriadorian
Check what files are in the root of your rails project: ls -a. If there is a .zeus.sock, remove it. [This is not a zsh issue, so I'm removing the tag].Selia
D
25

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
Difficile answered 14/7, 2013 at 18:4 Comment(5)
What if you have never run zeus, and there is no .zeus.sock file anywhere on your system?Trakas
@Trakas that should never be the case, but you can also check if the process is running. If you try to start the process and it fails it still generates a zeus.sock file which you can see with ls -laStipend
@Trakas What you describe can happen when using a Parallels VM and access your project via Parallels Shared Folders. The solution I've found is to clone/copy the project on the VM.Westland
Thanks @duma, that was helpful. I am getting the same behavior RedMage described, and my project folder is in fact a shared folder, but in VirtualBox instead of Parallels. Can you link to the SO question or other article where you learned this? Or was it just through first hand experimentation?Vernitavernoleninsk
The file is present in the same directory as zeus.json. Most probably in the root of the project directory.Euhemerize
M
3

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.

Milomilon answered 11/8, 2016 at 14:51 Comment(0)
I
2

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

Intervalometer answered 10/9, 2015 at 20:28 Comment(1)
Yes that is also possible, the error message should be descriptive of this.Euhemerize
Z
1

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
Zoroastrianism answered 17/10, 2013 at 2:8 Comment(0)
E
0

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.

Euhemerize answered 13/5, 2021 at 14:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.