Jul 9, 2024
0
Level 1
FATAL Exited too quickly (process log may have details)
I'm using forge to run a daemon for subscribing to an mqtt server using php-mqtt. I'm effectively doing the following
$mqtt->connect($settings, false);
$mqtt->subscribe('/test/*', function($topic, $message) {
//process data
}, 2);
$mqtt->loop(true);
$mqtt->disconnect();
It runs without issue for maybe a week, and then outputs the following errors:
Error: [65] Transferring data over socket failed: Sending data over the socket failed. Has it been closed?
Error: [1000] Establishing a connection to the MQTT broker failed: Socket error [110]: Connection timed out
Error: [1000] Establishing a connection to the MQTT broker failed: Socket error [111]: Connection refused
The last error will repeatedly display until I manually restart the process. And when i view the daemon status, it shows FATAL Exited too quickly (process log may have details).
Would appreciate any help on this
Please or to participate in this conversation.