jamesrwhite / minicron

🕰️ Monitor your cron jobs
GNU General Public License v3.0
2.34k stars 154 forks source link

Server restart randomly fails #288

Open LaszloHont opened 7 years ago

LaszloHont commented 7 years ago

When I run minicron server restart I don't get an error, but it doesn't restart either. I must do a stop then a start.

jamesrwhite commented 7 years ago

Can you run it with --verbose and --debug? You should then see the error that is preventing it from restarting.

LaszloHont commented 7 years ago

restart does not do a stop first:

no acceptor (port is in use or requires root privileges)

jamesrwhite commented 7 years ago

Hmm, it should stop the app first and then start it again. This is handled here by the gem minicron uses for this.

I can recreate this sporadically though so I guess it's some kind of race condition.