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] Server crashes, roll back didn't fix #1227

Closed
varnals761 opened this issue Nov 12, 2023 · 2 comments
Closed

[WordPress] Server crashes, roll back didn't fix #1227

varnals761 opened this issue Nov 12, 2023 · 2 comments
Assignees
Labels
solved tech-issues The user has a technical issue about an application triage Triage is needed wordpress

Comments

@varnals761
Copy link

varnals761 commented Nov 12, 2023

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

173e4fac-35f2-f2b6-2242-b9a872969fe8

bndiagnostic output

? Resources: Found possible issues
✓ Connectivity: No issues found
✓ Mariadb: No issues found
✓ Processes: No issues found
✓ Wordpress: No issues found
? Apache: Found possible issues
✓ Php: No issues found

[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 3873 2434 744 75 695 1081
Swap: 0 0 0

You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.
Press [Enter] to continue:

You can also enable swap memory to improve performance.

https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-memory-linux/

[Apache]

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

[Sun Nov 12 15:30:40.086196 2023] [proxy_fcgi:error] [pid 2916:tid
140209148626688] [client **ip_address**:59011] AH01071: Got error 'PHP message:
PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string
is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 2795'
 [Sun Nov 12 15:30:40.877365 2023] [proxy_fcgi:error] [pid 2916:tid
140209140233984] [client **ip_address**:59011] AH01071: Got error 'PHP message:
PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string
is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 2795'
 [Sun Nov 12 15:30:47.496837 2023] [proxy_fcgi:error] [pid 2917:tid
140210088150784] [client **ip_address**:37971] AH01071: Got error 'PHP message:
PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string
is deprecated in /opt/bitnami/wordpress/wp-includes/formatting.php on line 2795'

Press [Enter] to continue:

Please check the following guide to troubleshoot server issues:

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

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

Fixes were more general and not specific for my case

Describe your issue as much as you can

Hi Support,

My wordpress/woocommerce store started crashing every 15 minutes starting 2 days ago, and I attempted a roll back to 7 days ago but the issue is still happening after roll back. The issue gets fixed temporarily after restarting all the services, the website comes back online but then quickly crashes again. It seems like the php logs throw "[12-Nov-2023 15:50:06] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 34 idle, and 50 total children":

image

I recently upgraded my servers to the $20/month tier and stability was great for months, but 2 days ago seems like the server can't stay online.

Any help or advice on this to fix my issue? I provided the bndiagnostic ID, and appreciate any help

Regards,
Ryan V

@varnals761 varnals761 added the tech-issues The user has a technical issue about an application label Nov 12, 2023
@github-actions github-actions bot added the triage Triage is needed label Nov 12, 2023
@jotamartos
Copy link
Collaborator

Hi @varnals761,

You can adjust the pm.start_servers, or pm.min/max_spare_servers parameters according to your needs, please take a look at similar issues in this forum.

I also suggest you monitor the requests you receive to know if there is any bot/attacker accessing your site with malicious intentions

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/deny-connections-bots-apache/

@jotamartos jotamartos changed the title [WordPress | Lightsail] Server crashes, roll back didn't fix [WordPress] Server crashes, roll back didn't fix Nov 13, 2023
@varnals761
Copy link
Author

Thank you for the comment. I see a lot of requests coming from 1 IP address but it looks like Google LLC is the domain. So I added to my robots.txt "Crawl-delay: 5" to limit how much crawling happens.

I also updated my PHP memory settings since I recently upgraded my package in AWS Lightsail, using this url from bitnami:
https://docs.bitnami.com/aws/apps/wordpress/configuration/configure-phpfpm-options/

After both changes, the website has been up for 30 minutes and is running much better. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved 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

2 participants