I have a PHP CLI script that continually times out, and I can’t figure out the source of the timeout. Seemingly “randomly” the script will stop (with no PHP error in the logs) and give the following output to console:
timeout, elapsed_time = 60
I’m setting PHP’s time limit via set_time_limit(0); intermittently but it doesn’t seem to be making a difference.
Besides that, PHP is supposed to throw an error if it hits its timeout, and no error is thrown, so could this timeout be triggered by something other than PHP?
The script is started by a bash script “.sh” on a Ubuntu machine.
Thanks!
Thanks to everyone who helped me out.
I tried running the script through
nohupand the timeout issue seems to have disappeared. Hope this helps someone else!