Server isn't responding

Keywords: LAMP/MAMP/WAMP - Google Cloud Platform - Technical issue - Other

bnsupport ID: 86938dab-8692-e1a1-fcc2-0810e9fa4add

bndiagnostic output:

? Connectivity: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/faq/administration/use-firewall/

bndiagnostic failure reason: The documentation did not make any significant change

Description:
I have set up my own virtual server in Google Cloud using the Bitnami service to run online experiments as explained heel: https://lioness-doc.readthedocs.io/en/latest/0303_set_up.html

The server has been working for a couple of weeks and now I cannot get access.

Do you know what can be the problems?

Hi @stefanolp,

Did you follow the suggestions the Bitnami Diagnotic Tool provided you? For example, it warned you that ports 80 and 443 were not reachable, did you modify the configuration of the firewall?

https://docs.bitnami.com/google/faq/administration/use-firewall/

Hi @jota,

yes I configured the firewall as explained but the 34.65.33.161’s server IP address could not be found.

I have also tried to run a connectivity test on GCP and this is the result:
> Last test time
> 2021-11-04 (09:30:13)
> Last configuration analysis result
> Reachable
> Configuration analysis trace result
> Packet could be delivered
> Configuration analysis trace path
> External IP address (34.65.33.161)
> VM instance (bitnami-lampstack-9b25)
> Network interface: nic0
> Network: default
> Internal IP: 10.172.0.2
> External IP: 34.65.252.196
> View network interface details
> Ingress firewall rule (firewall-esperimento)
> Network: default
> Action: ALLOW
> Priority: 1000
> Packet could be delivered

Hi @stefanolp,

Let’s get more info from inside the machine. Can you run these commands?

sudo /opt/bitnami/ctlscript.sh status
ps aux | grep bitnami
curl -LI localhost

Thanks

stefano_lipira@bitnami-lampstack-9b25:~$ sudo /opt/bitnami/ctlscript.sh status
apache already running
mariadb already running
php-fpm already running
stefano_lipira@bitnami-lampstack-9b25:~$ ps aux | grep bitnami
root 1011 0.0 1.3 1155092 8144 ? Ssl Nov04 0:01 /opt/bitnami/gonit/bin/gonit
root 3864 0.1 5.6 289672 33700 ? Ss 10:10 0:00 php-fpm: master process (/opt/bitnami
/php/etc/php-fpm.conf)
root 3888 0.0 1.2 14248 7652 ? Ss 10:10 0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
daemon 3891 0.0 1.3 1867340 8040 ? Sl 10:10 0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
daemon 3892 0.0 1.6 1867340 10080 ? Sl 10:10 0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
mysql 4226 0.5 12.5 831144 74888 ? Sl 10:10 0:00 /opt/bitnami/mariadb/sbin/mysqld --de
faults-file=/opt/bitnami/mariadb/conf/my.cnf --basedir=/opt/bitnami/mariadb --datadir=/bitnami/mariadb
/data --socket=/opt/bitnami/mariadb/tmp/mysql.sock --pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid
stefano+ 4338 0.0 0.1 6076 880 pts/0 S+ 10:11 0:00 grep bitnami
stefano_lipira@bitnami-lampstack-9b25:~$ curl -LI localhost
HTTP/1.1 200 OK
Date: Fri, 05 Nov 2021 10:11:22 GMT
Server: Apache/2.4.49 (Unix) OpenSSL/1.1.1d
Last-Modified: Thu, 23 Sep 2021 21:54:32 GMT
ETag: “12fc-5ccb0acfb1600”
Accept-Ranges: bytes
Content-Length: 4860
Vary: Accept-Encoding
Content-Type: text/html

stefano_lipira@bitnami-lampstack-9b25:~$ sudo /opt/bitnami/ctlscript.sh status
apache already running
mariadb already running
php-fpm already running
stefano_lipira@bitnami-lampstack-9b25:~$ ps aux | grep bitnami
root      1011  0.0  1.3 1155092 8144 ?        Ssl  Nov04   0:01 /opt/bitnami/gonit/bin/gonit
root      3864  0.1  5.6 289672 33700 ?        Ss   10:10   0:00 php-fpm: master process (/opt/bitnami
/php/etc/php-fpm.conf)
root      3888  0.0  1.2  14248  7652 ?        Ss   10:10   0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
daemon    3891  0.0  1.3 1867340 8040 ?        Sl   10:10   0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
daemon    3892  0.0  1.6 1867340 10080 ?       Sl   10:10   0:00 /opt/bitnami/apache/bin/httpd -f /opt
/bitnami/apache/conf/httpd.conf
mysql     4226  0.5 12.5 831144 74888 ?        Sl   10:10   0:00 /opt/bitnami/mariadb/sbin/mysqld --de
faults-file=/opt/bitnami/mariadb/conf/my.cnf --basedir=/opt/bitnami/mariadb --datadir=/bitnami/mariadb
/data --socket=/opt/bitnami/mariadb/tmp/mysql.sock --pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid
stefano+  4338  0.0  0.1   6076   880 pts/0    S+   10:11   0:00 grep bitnami
stefano_lipira@bitnami-lampstack-9b25:~$ curl -LI localhost
HTTP/1.1 200 OK
Date: Fri, 05 Nov 2021 10:11:22 GMT
Server: Apache/2.4.49 (Unix) OpenSSL/1.1.1d
Last-Modified: Thu, 23 Sep 2021 21:54:32 GMT
ETag: "12fc-5ccb0acfb1600"
Accept-Ranges: bytes
Content-Length: 4860
Vary: Accept-Encoding
Content-Type: text/html

Hi @stefanolp,

All services are up and running and you can connect to the webserver from inside the machine. You will need to check if you are using the correct IP to access your instance and check the firewall settings again to ensure ports 22, 80 and 443 are open.

Thanks @jota. Now it is working indeed. How much time does it take to change the firewall settings?
maybe I just needed to wait >6h…

Hi @stefanolp,

The change should take effect instantly

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.