-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eye crashes unless run in foreground #237
Comments
My config file (with the change for simplifying testing)
|
looks like your ~/.eye folder can not be writable, or there some old pid, try to delete it. |
The original problem went away after rebooting the server. (I never thought I would see that happen on Linux.) But it came back several weeks later, so I tried troubleshooting again. I found that using
I then returned here and read your reply, and found that you were exactly right about the old pid file needing to be deleted. Why would an old pid be left around? Do you have any ideas? Besides a bug, the only theory I could think of is that someone has not been cleanly rebooting the server. I do have confirmation that the system administrator sometimes reboots from the AWS console rather than the shell, although I don't know if that would be a problem or not. Is it possible to make eye (when started up) not simply believe it is already running based on the presence of the pid file, but also verify this by checking for a running process? That would avoid the situation I found myself in. In the meantime, I have written a script that I trigger with
These are my crontab entries:
I hope my solution is helpful to someone, but I think ideally |
This works (note the
-f
):Without
-f
it FAILS:To test whether this was because it somehow lost the environment variable when run in the background, I hardcoded the value 'production' in the lib/eye/sidekiq.eye:
and it was still instantly killed.
When I watch the sidekiq log I don't see anything appear at all, unless I use the -f flag with eye load. And when I tail the eye log, there is likewise nothing that appears. So there's no log output that gives me a clue as to what's going on.
Checking the configuration, eye tells me it's fine:
The text was updated successfully, but these errors were encountered: