MySql was installed using Google Cloud Bitnami Apache-Tomcat Launcher on my instance. Now, when I restart my instance, tomcat starts running on its own, but MySql doesn't start running on its own. And when I give the command, using SSH, to start it, it doesn't start running. But, when I restart the instance severally, it starts running on its own. Please look into the issue as soon as possible.
1) After first restart.jpg
Description: When I restart for the first time, the services stop running.
2) After second restart(1).jpg
Description: After the second restart, I try to start the services. Tomcat and Apache start running.
3) After second restart(2).jpg
Description: When I try to start MySql, the processing is blocked at the last line in the image. Nothing happens after that.
4) After the third restart.jpg
Description: After the third restart, the services start running automatically.
For the time being, I tried a quick-fix for this issue.
I added the following command in the startup script of my instance (sw-automation-vm).
"sudo /opt/bitnami/./ctlscript.sh start"
It deliberates the start of all the 3 services, namely Apache, Tomcat and MySql.
It fixed my issue, but I'm keen to know the reason behind the issue.
If you want, I can remove the command from the startup script for some time.
Please help me, if possible.