Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Zoigderb's avatar

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

0 likes
0 replies

Please or to participate in this conversation.