We run locking on things like alerts.php so if you’ve run it whilst it’s already going this might be why.
It will run every minute so take a look at your process list for alerts.php, if none are running and it’s part way through the minute, run ./alerts.php -d
You can also check for any files called: .*.lock
, if you find them and the date / time is old, try removing the file.