/opt/bitnami/ctlscript.sh - Cannot find any running daemon to contact

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Other
bnsupport ID: 2e522a6b-4a5d-b4b8-12d5-825eda9e3d59
Description:
When I type the following command “sudo /opt/bitnami/ctlscript.sh status” I get this message “Cannot find any running daemon to contact. If it is running, make sure you are pointing to the right pid file (/var/run/gonit.pid)”. The command “sudo /etc/init.d/bitnami status” returns that apache and mysql aren’t running and I can’t start apache.

Hello @miilacg,

Could you take a look at this previous case:
https://community.bitnami.com/t/start-and-stop-services-cannot-find-any-running-daemon-to-contact-if-it-is-running-make-sure-you-are-pointing-to-the/81523

Also I can see this:

root       550  0.0  0.8   8428  4080 ?        Ss   23:29   0:00 /usr/sbin/apache2 -k start
www-data   551  0.0  0.7 754320  3764 ?        Sl   23:29   0:00 /usr/sbin/apache2 -k start
www-data   552  0.0  0.7 754320  3764 ?        Sl   23:29   0:00 /usr/sbin/apache2 -k start

This means another apache is running. You can kill it with the following:

sudo pkill -f apache
sudo pkill -f httpd
sudo kill -9 $(sudo lsof -t -i:80)

Regards

Running the command sudo kill -9 $(sudo lsof -t -i:80) gave this message.

I tried the HTTPS solution and gave an error at the end but even so I managed to activate the apache. I rebooted the server and the initial problem came back

I’ve killed apache and restarted their services, but when i run ‘sudo /opt/ bitnami/ctlscript.sh status’ to see the status the error shows up

Hi @miilacg,

I guess this case did not help:
https://community.bitnami.com/t/start-and-stop-services-cannot-find-any-running-daemon-to-contact-if-it-is-running-make-sure-you-are-pointing-to-the/81523

Could you execute the support tool again to check the latest status of your server?

Hi!

6c301b28-6267-740f-a44f-26f8bb160760

Hello @miilacg

According to your bnsupport bundle, your server is running out of free memory, so it may explain why gonit can’t manage the services.


-----------------------------------
Display amount of free and used memory in the system
-----------------------------------
Running: free -m
In: /opt/bitnami

Output:

              total        used        free      shared  buff/cache   available
Mem:            482         331          47          24         103         113
Swap:           634         320         314

You could try to increase your machine type if you face performance issues. This guide explains the process
https://docs.bitnami.com/aws/faq/administration/change-server-type/

Let me share with you our troubleshooting documentation:
https://docs.bitnami.com/aws/faq/troubleshooting/troubleshoot-server-performance/

Apart from that, I can see these Apache errors

1) Found recent error messages in the Apache error log.
[Mon Mar 15 21:06:18.784383 2021] [proxy_fcgi:error] [pid 14509:tid 140677518108416] [client 177.55.225.197:58841] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught ReflectionException: Class translator does not exist in\
 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php:803
Stack trace:
#0 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct()
#1 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build()
#2 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\Container\Container->resolve()
#3 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Foundation\Application->resolve()
#4 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illuminate\Container\Container->make()
#5 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/help...PHP message: PHP Fatal error:  Uncaught ReflectionException: Class translator does not exist in /opt/bitnami/projects/sevenpay/vendor/lara\
vel/framework/src/Illuminate/Container/Container.php:803
Stack trace:
#0 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct()
#1 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build()
#2 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\Container\Container->resolve()
#3 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Foundation\Application->resolve()
#4 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illuminate\Container\Container->make()
#5 /opt/bitnami/projects/sevenpay/vendor/laravel/framework/src/Illuminate/Foundation/help...'


Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

2) The Apache configuration has errors:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK

Please check the configuration.