Skip to content

Eye crashes unless run in foreground #237

@brandonzylstra

Description

@brandonzylstra

This works (note the -f):

app_rsp@ip-10-0-0-36:/var/www/rsp/current$ bundle exec eye load -f lib/eye/sidekiq.eye
2020.06.26 13:49:46 INFO  -- [Eye] starting Eye v0.10.0 (c) 2012-2017 @kostya <27950>
2020.06.26 13:49:46 INFO  -- [Eye] => command: load /var/www/rsp/releases/20200621015518/lib/eye/sidekiq.eye
2020.06.26 13:49:46 INFO  -- [Eye] => loading: ["/var/www/rsp/releases/20200621015518/lib/eye/sidekiq.eye"]
config
/var/www/rsp/releases/20200621015518
2020.06.26 13:49:46 INFO  -- [Eye] loading: /var/www/rsp/releases/20200621015518/lib/eye/sidekiq.eye
2020.06.26 13:49:46 INFO  -- [sidekiq:__default__] call:
2020.06.26 13:49:46 INFO  -- [sidekiq:__default__] schedule :monitor (load by user)
2020.06.26 13:49:46 INFO  -- [sidekiq:__default__] => monitor  (load by user)
2020.06.26 13:49:46 INFO  -- [sidekiq:__default__] starting async with 0.2s chain monitor
2020.06.26 13:49:46 INFO  -- [Eye] <= loading: ["/var/www/rsp/releases/20200621015518/lib/eye/sidekiq.eye"]
2020.06.26 13:49:46 INFO  -- [Eye] <= command: load /var/www/rsp/releases/20200621015518/lib/eye/sidekiq.eye (0.061073686s)
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] schedule :monitor (monitor by user)
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] => monitor  (monitor by user)
2020.06.26 13:49:46 INFO  -- [sidekiq:__default__] <= monitor
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] load_external_pid_file: pid_file not found
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] switch :starting [:unmonitored => :starting] monitor by user
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] daemonizing: `bundle exec sidekiq -C ./config/sidekiq.yml -e production` with start_grace: 10.0s, env: '', <27973> (in /var/www/rsp/releases/20200621015518)
2020.06.26 13:49:46 INFO  -- [sidekiq:sidekiq] sleeping for :start_grace 10.0
2020.06.26 13:49:56 INFO  -- [sidekiq:sidekiq] switch :started [:starting => :up] monitor by user

Without -f it FAILS:

app_rsp@ip-10-0-0-36:/var/www/rsp/current$ bundle exec eye load lib/eye/sidekiq.eye
Killed

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:

    #start_command "bundle exec sidekiq -C ./config/sidekiq.yml -e #{ENV['RAILS_ENV']}"
    start_command "bundle exec sidekiq -C ./config/sidekiq.yml -e production"

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:

app_rsp@ip-10-0-0-36:/var/www/rsp/current$ bundle exec eye check lib/eye/sidekiq.eye
config
/var/www/rsp/releases/20200621015518
Config ok!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions