kostya / eye

Process monitoring tool. Inspired from Bluepill and God.
MIT License
1.19k stars 89 forks source link

Eye stopped working until the .eye dir was deleted #229

Open rgaufman opened 4 years ago

rgaufman commented 4 years ago

Eye suddenly stopped working, running "eye i" just showed an empty string, as if eye was started without applications. Rebooting the machine did not resolve the problem.

I had to remove the old .eye folder in order for eye load to work again.

The broken .eye folder has 2 files:

~/.eye-old$ ls -ltra
total 12
-rw-r--r--  1 deployer sudo        4 Sep 26 22:38 pid
srwxr-xr-x  1 deployer sudo        0 Sep 26 22:38 sock
drwxr-xr-x  2 deployer sudo     4096 Sep 26 22:38 .
drwxr-xr-x 10 deployer deployer 4096 Sep 26 23:24 ..
~/.eye-old$ cat sock
cat: sock: No such device or address
:~/.eye-old$ cat pid
4722

Any ideas what could be the issue?

kostya commented 4 years ago

strange case, may be there was two eye's? ps aux | grep eye

rgaufman commented 4 years ago

This is after rebooting the server, so there shouldn't be 2 eye processes, but maybe. Is there anyway to force eye to only allow 1 process?

kostya commented 4 years ago

this folder already force for 1 eye. but maybe you have another eye under other user.

rgaufman commented 4 years ago

There is only 1 user on this system, deployer, there are no other eye processes started by any other user. It is very strange, so I did:

  1. Try to eye quit and eye load, nothing.
  2. Tried to reboot server and run eye load, nothing.
  3. Tried to move the .eye folder to a different folder, this time eye started correctly.

Any ideas at all what could have caused this behaviour?