Fix Error: "Job for bitnami.service failed because the control process exited with error code."

cedar@nowhere:/opt/bitnami$ sudo /opt/bitnami/ctlscript.sh restart
Restarting services..
Job for bitnami.service failed because the control process exited with error code.
See "systemctl status bitnami.service" and "journalctl -xe" for details.
cedar@nowhere:/opt/bitnami$ sudo journalctl -xe

May 04 15:33:50 nowhere bitnami[1539]: ## 2022-05-04 15:33:50+00:00 ## INFO ## Starting services...
May 04 15:33:50 nowhere bitnami[1539]: 2022-05-04T15:33:50.936Z - info: Saving configuration info to disk
May 04 15:33:51 nowhere bitnami[1539]: 2022-05-04T15:33:51.408Z - info: Performing service start operation for elasticsearch
May 04 15:33:51 nowhere bitnami[1539]: elasticsearch 15:33:51.81 INFO  ==> elasticsearch is already running
May 04 15:33:51 nowhere bitnami[1539]: 2022-05-04T15:33:51.815Z - info: Performing service start operation for logstash
May 04 15:33:52 nowhere bitnami[1539]: logstash 15:33:52.21 INFO  ==> logstash is already running
May 04 15:33:52 nowhere bitnami[1539]: 2022-05-04T15:33:52.219Z - info: Performing service start operation for kibana
May 04 15:33:52 nowhere bitnami[1539]: kibana 15:33:52.63 INFO  ==> kibana is already running
May 04 15:33:52 nowhere bitnami[1539]: 2022-05-04T15:33:52.639Z - info: Performing service start operation for apache
May 04 15:33:53 nowhere bitnami[1539]: (20014)Internal error (specific information not available): AH00058: Error retrieving pid file /opt/bitnami/apache/var
May 04 15:33:53 nowhere bitnami[1539]: AH00059: Remove it before continuing if it is corrupted.
May 04 15:33:53 nowhere bitnami[1539]: 2022-05-04T15:33:53.100Z - error: Unable to perform start operation Export start for apache failed with exit code 1
May 04 15:33:53 nowhere bitnami[1539]: ## 2022-05-04 15:33:53+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/010_bitnami_agent_extra...
May 04 15:33:53 nowhere bitnami[1539]: ## 2022-05-04 15:33:53+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/020_bitnami_agent...
May 04 15:33:53 nowhere bitnami[1539]: ## 2022-05-04 15:33:53+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/030_update_welcome_file...
May 04 15:33:53 nowhere bitnami[1539]: ## 2022-05-04 15:33:53+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/040_bitnami_credentials_file...
May 04 15:33:53 nowhere bitnami[1539]: ## 2022-05-04 15:33:53+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/050_clean_metadata...
May 04 15:33:53 nowhere systemd[1]: bitnami.service: Control process exited, code=exited, status=1/FAILURE

cedar@nowhere:/opt/bitnami$ ls /opt/bitnami/apache/var/run/httpd.pid -altr
-rw-r--r-- 1 root root 0 May  4 10:48 /opt/bitnami/apache/var/run/httpd.pid
#that was hours ago. it was probably that forced shutdown, left a hung process.
cedar@nowhere:/opt/bitnami$ date
Wed 04 May 2022 03:35:27 PM UTC
cedar@nowhere:/opt/bitnami$ sudo rm /opt/bitnami/apache/var/run/httpd.pid
cedar@nowhere:/opt/bitnami$ sudo /opt/bitnami/ctlscript.sh start apache
Started apache

Add a comment

HTML code is displayed as text and web addresses are automatically converted.

Page top