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 crashed, stopped services #907

Closed
KingMilli75 opened this issue May 12, 2023 · 6 comments
Closed

[WordPress] Server crashed, stopped services #907

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

Comments

@KingMilli75
Copy link

KingMilli75 commented May 12, 2023

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

ab8f50cc-7f16-205d-52e0-a2c9e17e56c3

bndiagnostic output

✓ Resources: No issues found
? Connectivity: Found possible issues
? Mariadb: Found possible issues
✓ Processes: No issues found
✓ Wordpress: No issues found
? Apache: Found possible issues
✓ Php: No issues found
Found recent error or warning messages in the Apache error log.

[Fri May 12 07:23:24.473705 2023] [proxy_fcgi:error] [pid 64199:tid 
139681826313984] [client **ip_address**:65066] AH01079: failed to make 
connection to backend: httpd-UDS
 [Fri May 12 07:23:25.091938 2023] [proxy:error] [pid 63152:tid 139680607606528] 
(2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain 
socket /opt/bitnami/php/var/run/www.sock (www-fpm:8000) failed
 [Fri May 12 07:23:25.091999 2023] [proxy_fcgi:error] [pid 63152:tid 
139680607606528] [client **ip_address**:55044] AH01079: failed to make 
connection to backend: httpd-UDS

/opt/bitnami/apache/logs/error_log
/opt/bitnami/apache2/logs/error_log

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

No, did not pinpoint the issue

Describe your issue as much as you can

hi There,

as title suggestes. Seems Apache stopped all services this morning. After restart of the services and Apache it started working. the log:

image

This is the log from Apache.

Any advice or help in this matter?

Regards,

Dragan

@KingMilli75 KingMilli75 added the tech-issues The user has a technical issue about an application label May 12, 2023
@bitnami-bot bitnami-bot added this to Triage in Support May 12, 2023
@github-actions github-actions bot added the triage Triage is needed label May 12, 2023
@jotamartos
Copy link
Collaborator

The screenshot you posted shows that Apache is running into issues when trying to connect to PHP-FPM. If you take a look that the log file of PHP, you will see these errors

$ cat /opt/bitnami/php/logs/php-fpm.log
...
[01-May-2023 04:46:06] WARNING: [pool www] server reached pm.max_children setting (120), consider raising it
[01-May-2023 04:47:53] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 37 idle, and 97 total children

Please increase the max_children configuration in the php/etc/memory.conf file and restart the service for the change to take effect. I also suggest you take a look at this other thread to troubleshoot the issue

#27

@github-actions github-actions bot moved this from Triage to Pending in Support May 15, 2023
@jotamartos jotamartos changed the title [WordPress Certified by Bitnami and Automattic 6.2.0-14] <Server crashed, stopped services> [WordPress] Server crashed, stopped services May 15, 2023
@KingMilli75
Copy link
Author

Thank you. We now upgrade the instance to have 16gb of Ram and 4vCPU we will monitor the this now more closely as i saw we hit on some occasion a mem limit. Not sure why now with for example 16gb of space we run into sometime very high mem usage it peaks out in some case. We have seen this via Atop and do not know why these even on double the mem we still in some cases reach a peak.

image

we will check this with the children to be honest never thought of this and never done it in the past. Are there any pre config values available for this part maybe?

@bitnami-bot bitnami-bot moved this from Pending to Triage in Support May 15, 2023
@jotamartos
Copy link
Collaborator

Are there any pre config values available for this part maybe?

Depending on the instance type you are using, some parameters are automatically configured. For example, you can take a look at the /opt/bitnami/php/etc/memory.conf file which is a symbolic link to a different file in the system (that is updated in every boot depending on the resources the machine has)

sudo ls -la /opt/bitnami/php/etc/memory.conf

However, you can customize them according to your needs.

@github-actions github-actions bot moved this from Triage to Pending in Support May 16, 2023
@KingMilli75
Copy link
Author

Thank you very much. You have helped us a lot!

@bitnami-bot bitnami-bot moved this from Pending to Triage in Support May 16, 2023
@jotamartos jotamartos moved this from Triage to Solved in Support May 16, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2023
@github-actions github-actions bot removed this from Solved in Support May 23, 2023
@ankitmakati
Copy link

ankitmakati commented Apr 4, 2024

Hello All,

We are facing similar issue and when we checked the apache logs, we found this -

[Thu Apr 04 06:59:40.289445 2024] [proxy_fcgi:error] [pid 7976:tid 140656555063040] [client 162.158.183.111:58738] AH01067: Failed to read FastCGI header
[Thu Apr 04 06:59:40.290235 2024] [proxy_fcgi:error] [pid 7976:tid 140656555063040] (104)Connection reset by peer: [client 162.158.183.111:58738] AH01075: Error dispatching request to :
[Thu Apr 04 06:59:40.305192 2024] [proxy_fcgi:error] [pid 7976:tid 140658660452096] [client 172.68.193.151:62142] AH01067: Failed to read FastCGI header
[Thu Apr 04 06:59:40.305332 2024] [proxy_fcgi:error] [pid 7976:tid 140658660452096] (104)Connection reset by peer: [client 172.68.193.151:62142] AH01075: Error dispatching request to :
[Thu Apr 04 06:59:40.349350 2024] [proxy_fcgi:error] [pid 7976:tid 140658803128064] [client 162.158.107.59:50480] AH01067: Failed to read FastCGI header
[Thu Apr 04 06:59:40.349390 2024] [proxy_fcgi:error] [pid 7976:tid 140658803128064] (104)Connection reset by peer: [client 162.158.107.59:50480] AH01075: Error dispatching request to :
[Thu Apr 04 06:59:41.316779 2024] [proxy:error] [pid 7976:tid 140656504706816] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/bitnami/php/var/run/www.sock (www-fpm:8000) failed
[Thu Apr 04 06:59:41.316811 2024] [proxy_fcgi:error] [pid 7976:tid 140656504706816] [client 172.70.100.69:45932] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 04 06:59:42.303241 2024] [mpm_event:notice] [pid 7967:tid 140659652607232] AH00491: caught SIGTERM, shutting down
[Thu Apr 04 07:04:18.295996 2024] [mpm_event:notice] [pid 11646:tid 139668374375680] AH00489: Apache/2.4.57 (Unix) OpenSSL/1.1.1w configured -- resuming normal operations
[Thu Apr 04 07:04:18.297555 2024] [core:notice] [pid 11646:tid 139668374375680] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf'
[Thu Apr 04 07:04:49.877992 2024] [proxy_fcgi:error] [pid 12750:tid 139667605239552] [client 172.69.129.200:63072] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "taxonomy" on null in /bitnami/wordpress/wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php on line 34'

We keeps on restarting the services 10-12 times a day. Unable to understand this issue. Please please help us to fix this.

@jotamartos
Copy link
Collaborator

[Thu Apr 04 06:59:40.349390 2024] [proxy_fcgi:error] [pid 7976:tid 140658803128064] (104)Connection reset by peer: [client 162.158.107.59:50480] AH01075: Error dispatching request to :
[Thu Apr 04 06:59:41.316779 2024] [proxy:error] [pid 7976:tid 140656504706816] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/bitnami/php/var/run/www.sock (www-fpm:8000) failed

Is there any error in the PHP's log files? You can find it inside the /opt/bitnami/php directory

[Thu Apr 04 07:04:49.877992 2024] [proxy_fcgi:error] [pid 12750:tid 139667605239552] [client 172.69.129.200:63072] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "taxonomy" on null in /bitnami/wordpress/wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php on line 34'

That's a specific error about the application and the woocomerce plugin. The plugin's developers should provide more information.

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

3 participants