Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cachet 3.x: Landing page visit: local.CRITICAL: [nightwatch] Connection to tcp://127.0.0.1:2407 failed: Connection refused (ECONNREFUSED) #4513

Closed
hofchr opened this issue Mar 10, 2025 · 2 comments
Milestone

Comments

@hofchr
Copy link

hofchr commented Mar 10, 2025

Everytime I visit the root page I get following error:

[2025-03-10 12:38:55] local.CRITICAL: [nightwatch] Connection to tcp://127.0.0.1:2407 failed: Connection refused (ECONNREFUSED) {"exception":"[object] (RuntimeException(code: 111): Connection to tcp://127.0.0.1:2407 failed: Connection refused (ECONNREFUSED) at phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/socket/src/TcpConnector.php:107)
[stacktrace]
#0 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/event-loop/src/StreamSelectLoop.php(207): NightwatchClient_kden27khxA4QoEfj\React\Socket\TcpConnector->NightwatchClient_kden27khxA4QoEfj\React\Socket\{closure}()
#1 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/event-loop/src/StreamSelectLoop.php(173): NightwatchClient_kden27khxA4QoEfj\React\EventLoop\StreamSelectLoop->waitForStreamActivity()
#2 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/event-loop/src/Loop.php(228): NightwatchClient_kden27khxA4QoEfj\React\EventLoop\StreamSelectLoop->run()
#3 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/async/src/SimpleFiber.php(50): NightwatchClient_kden27khxA4QoEfj\React\EventLoop\Loop::run()
#4 [internal function]: NightwatchClient_kden27khxA4QoEfj\React\Async\SimpleFiber::NightwatchClient_kden27khxA4QoEfj\React\Async\{closure}()
#5 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/async/src/SimpleFiber.php(59): Fiber->start()
#6 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/vendor/react/async/src/functions.php(341): NightwatchClient_kden27khxA4QoEfj\React\Async\SimpleFiber->suspend()
#7 phar:///www/my_cachet_instance/cachet/vendor/laravel/nightwatch/client/build/client.phar/src/Ingest.php(16): NightwatchClient_kden27khxA4QoEfj\React\Async\await()
#8 /www/my_cachet_instance/cachet/vendor/laravel/nightwatch/src/Ingest.php(40): NightwatchClient_kden27khxA4QoEfj\Laravel\NightwatchClient\Ingest->__invoke()
#9 /www/my_cachet_instance/cachet/vendor/laravel/nightwatch/src/Core.php(52): Laravel\Nightwatch\Ingest->write()
#10 /www/my_cachet_instance/cachet/vendor/laravel/nightwatch/src/Hooks/RequestLifecycleIsLongerThanHandler.php(47): Laravel\Nightwatch\Core->ingest()
#11 /www/my_cachet_instance/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(230): Laravel\Nightwatch\Hooks\RequestLifecycleIsLongerThanHandler->__invoke()
#12 /www/my_cachet_instance/cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1222): Illuminate\Foundation\Http\Kernel->terminate()
#13 /www/my_cachet_instance/cachet/public/index.php(26): Illuminate\Foundation\Application->handleRequest()
#14 {main}

It seems nightwatch is part of laravel and used for monitoring application response times etc.

I think this might just be a configuration problem.

I installed Cachet v3.x as mentioned in the installation instructions. Is the nightwatch part missing in the instructions?

Thanks for any help!

Edit:
I can turn nightwatch off in: "./vendor/laravel/nightwatch/config/nightwatch.php", the error message disappears. My question: is it safe to turn this off or does this affect Cachet functionality?

@jbrooksuk
Copy link
Member

Sorry! Can you add NIGHTWATCH_ENABLED=false to your .env file, please.

@jbrooksuk jbrooksuk added this to the v3.x milestone Mar 10, 2025
@hofchr
Copy link
Author

hofchr commented Mar 10, 2025

Thank you very much for the quick response!

Works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants