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

[WordPress] Failed to start LSB: bitnami init script, Apache configuration Error after SSL Certificate Update attempt. #1649

Closed
docmedia2 opened this issue Sep 1, 2024 · 5 comments
Assignees
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress

Comments

@docmedia2
Copy link

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

57c79d01-df57-c25d-3cab-cecfacc433e0

bndiagnostic output

===== Begin of bndiagnostic tool output =====
? Apache: Found possible issues
✓ Mariadb: No issues found
? Connectivity: Found possible issues
✓ Wordpress: No issues found
? Resources: Found possible issues
✓ Processes: No issues found
✓ Php: No issues found

[Apache]

Found recent error or warning messages in the Apache error log.

[Sun Sep 01 11:42:54.132010 2024] [authz_core:error] [pid 21136:tid 
140566234793728] [client **ip_address**:59408] AH01630: client denied by server 
configuration: /opt/bitnami/apache/cgi-bin
 [Sun Sep 01 12:17:09.127760 2024] [proxy_fcgi:error] [pid 20812:tid 
140566268364544] (70008)Partial results are valid but processing is incomplete: 
Press [Enter] to continue:
[client **ip_address**:53566] AH01075: Error dispatching request to : (reading 
input brigade)
 [Sun Sep 01 12:33:22.855331 2024] [authz_core:error] [pid 21136:tid 
140566234793728] [client **ip_address**:35456] AH01630: client denied by server 
configuration: /opt/bitnami/apache/cgi-bin

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro
rs-apache/
The Apache configuration has errors:

AH00526: Syntax error on line 5 of 
/opt/bitnami/apache/conf/vhosts/wordpress-https-vhost.conf: SSLCertificateFile: 
file '/opt/bitnami/apache/conf/yardbots.ca.crt' does not exist or is empty

Please check the configuration.

[Connectivity]

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
Press [Enter] to continue:
following guide to open server ports for remote access:

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

[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 987 351 70 7 564 466 Swap: 634 
0 634

You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.

===== End of bndiagnostic tool output =====

bndiagnostic was not useful. Could you please tell us why?

I ran bndiagnostic tool, there are things I don't understand well enough to tackle myself.

Describe your issue as much as you can

I ran into this issue after trying to reinstall an SSL Certificate after having to adjust my DNS Records after switching domain registrars.

These are the steps as best as I can remember that created this error:

  1. I Changed DNS settings at the new registrar to point to AWS servers.
  2. Setup a new DNS Zone on AWS and attached the instance to the new zone
  3. I then noticed an "SSL Error" due to records not matching those on the certificate file (I think)
  4. Tried renewing the SSL Certificate using the bncert-tool
  5. Ran that successfully, but it gave me an error on the conical (www) domain because I had only setup the non-www version in the DNS Zone
  6. Stopped the services
  7. Went back and created the www version, and ran bncert-tool again, then received an message:Please type a directory that contains a Bitnami installation. The default installation directory for Linux installers is a directory inside /opt.

This is where it gets foggy...

  1. Thought that maybe I didn't restart the services, which was true, so I tried restarting with sudo /opt/bitnami/ctlscript.sh start, and received:
    Starting services..
    Job for bitnami.service failed because the control process exited with error code.
    See "systemctl status bitnami.service" and "journalctl -xe" for details.
    systemctl status bitnami service gave me:
    ● bitnami.service - LSB: bitnami init script
    Loaded: loaded (/etc/init.d/bitnami; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Sun 2024-09-01 20:38:13 UTC; 1min 16s ago
    Process: 2468 ExecStart=/etc/init.d/bitnami start (code=exited, status=1/FAILURE)
    Failed to start LSB: bitnami init script.

  2. So I tried checking the service status using sudo /opt/bitnami/ctlscript.sh status and received the following 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)

Here's where I am now stuck.

@docmedia2 docmedia2 added the tech-issues The user has a technical issue about an application label Sep 1, 2024
@github-actions github-actions bot added the triage Triage is needed label Sep 1, 2024
@jotamartos
Copy link
Collaborator

The error is clear, the certificate file you configured doesn't exist

AH00526: Syntax error on line 5 of 
/opt/bitnami/apache/conf/vhosts/wordpress-https-vhost.conf: SSLCertificateFile: 
file '/opt/bitnami/apache/conf/yardbots.ca.crt' does not exist or is empty

Please ensure the file exists and restart Apache to start using it.

@jotamartos jotamartos changed the title [<WordPress Certified by Bitnami >] < Failed to start LSB: bitnami init script, Apache configuration Error after SSL Certificate Update attempt.> [WordPress] Failed to start LSB: bitnami init script, Apache configuration Error after SSL Certificate Update attempt. Sep 2, 2024
@docmedia2
Copy link
Author

docmedia2 commented Sep 2, 2024

Hello Juan, thank you for your assistance. I have confirmed that the file exits, but it is empty (see attached). Is there a way to create a new certificate file to replace the old one? As I mentioned in the first part of my ticket, another certificate and key file exists for the www version of the domain, which is not empty and looks good.

If I cannot replace the empty cert file and key file, can I remove them and just use the www version?

Thanks again for your time.
-Dave
Screen Shot 2024-09-02 at 8 32 56 AM

@docmedia2
Copy link
Author

docmedia2 commented Sep 2, 2024

Hello Juan, I was able to fix this issue by following the alternative process for SSL https://docs.bitnami.com/general/how-to/generate-install-lets-encrypt-ssl/#alternative-approach))

Once the certificates were installed manually, it allowed me to restart services, and everything seems to be working now. Thanks for putting me on the right path.

-Dave

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Sep 18, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress
Projects
None yet
Development

No branches or pull requests

3 participants