bitnami / vms

Bitnami VMs
https://bitnami.com
Other
204 stars 43 forks source link

[WordPress] Bitnami Wordpress Getting 521 errors #1640

Open mark-ideatheorem opened 2 weeks ago

mark-ideatheorem commented 2 weeks ago

Platform

Azure

bndiagnostic ID know more about bndiagnostic ID

21bffe69-cde5-ee3d-9df7-3bd202c7b36b

bndiagnostic output

===== Begin of bndiagnostic tool output =====

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

[Apache]

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

[Tue Aug 27 14:46:22.347995 2024] [authz_core:error] [pid 991:tid 
140136637515456] [client **ip_address**:48430] AH01630: client denied by server 
configuration: /opt/bitnami/apache/cgi-bin, referer: 
https://platinumcondodeals.com//cgi-bin/wp-login.php
 [Tue Aug 27 15:27:49.490511 2024] [core:error] [pid 1271:tid 140137551861440] 
Press [Enter] to continue:
[client **ip_address**:37052] AH10244: invalid URI path 
(/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
 [Tue Aug 27 15:27:49.996494 2024] [core:error] [pid 1106:tid 140137358894784] 
[client **ip_address**:37060] AH10244: invalid URI path 
(/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32
%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)

Please check the following guide to troubleshoot server issues:

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

[Mariadb]

Found recent error messages in the MariaDB error log:

2024-08-27 13:54:59 37 [Warning] Aborted connection 37 to db: 
'bitnami_wordpress' user: 'bn_wordpress' host: '**ip_address**' (Got an error 
reading communication packets)

Please check the following guide to troubleshoot MariaDB issues: Press [Enter] to continue:

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

[Connectivity]

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

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

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

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

we keep on getting error 521 in our server

Describe your issue as much as you can

we kept on getting error 521 error on our server for about 3 weeks now the timing is random. and earlier when I restarted the server and tried to log in on our dashboard I got an error establishing database connection error. these images were provided to me: image image

jotamartos commented 2 weeks ago

Hi @mark-ideatheorem,

As the support tool mentioned, it seems there are errors in the database. Did you take a look at the log file?

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-mariadb/

Please confirm the database is running or start it using the ctlscript.sh file

sudo /opt/bitnami/ctlscript.sh start
mark-ideatheorem commented 2 weeks ago

Hi @jotamartos,

here's the log from mariadb:

2024-08-27 13:49:01 0 [Note] Starting MariaDB 11.3.2-MariaDB source revision 068a6819eb63bcb01fdfa037c9bf3bf63c33ee42 as process 3027
2024-08-27 13:49:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2024-08-27 13:49:01 0 [Note] InnoDB: Using transactional memory
2024-08-27 13:49:01 0 [Note] InnoDB: Number of transaction pools: 1
2024-08-27 13:49:01 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-08-27 13:49:01 0 [Note] InnoDB: Using Linux native AIO
2024-08-27 13:49:01 0 [Note] InnoDB: Initializing buffer pool, total size = 2.000GiB, chunk size = 32.000MiB
2024-08-27 13:49:01 0 [Note] InnoDB: Completed initialization of buffer pool
2024-08-27 13:49:01 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2024-08-27 13:49:01 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=102769382133
2024-08-27 13:49:01 0 [Note] InnoDB: End of log at LSN=102788386633
2024-08-27 13:49:01 0 [Note] InnoDB: To recover: 790 pages
2024-08-27 13:49:01 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-08-27 13:49:01 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-08-27 13:49:01 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-08-27 13:49:01 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-08-27 13:49:01 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-08-27 13:49:01 0 [Note] InnoDB: log sequence number 102788386633; transaction id 54925233
2024-08-27 13:49:01 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2024-08-27 13:49:01 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-08-27 13:49:01 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-08-27 13:49:02 0 [Note] Recovering after a crash using tc.log
2024-08-27 13:49:02 0 [Note] Starting table crash recovery...
2024-08-27 13:49:02 0 [Note] Crash table recovery finished.
2024-08-27 13:49:02 0 [Note] Server socket created on IP: '127.0.0.1'.
2024-08-27 13:49:02 0 [Warning] 'proxies_priv' entry '@% root@pcd-usrprod' ignored in --skip-name-resolve mode.
2024-08-27 13:49:02 0 [Note] mysqld: Event Scheduler: Loaded 0 events
2024-08-27 13:49:02 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '11.3.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2024-08-27 13:49:02 0 [Note] InnoDB: Buffer pool(s) load completed at 240827 13:49:02
2024-08-27 13:54:59 40 [Warning] Aborted connection 40 to db: 'bitnami_wordpress' user: 'bn_wordpress' host: '127.0.0.1' (Got an error reading communication packets)
2024-08-27 13:54:59 37 [Warning] Aborted connection 37 to db: 'bitnami_wordpress' user: 'bn_wordpress' host: '127.0.0.1' (Got an error reading communication packets)
2024-08-27 13:55:00 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (initiated by: unknown): Normal shutdown
2024-08-27 13:55:00 0 [Note] InnoDB: FTS optimize thread exiting.
2024-08-27 13:55:00 0 [Note] InnoDB: Starting shutdown...
2024-08-27 13:55:00 0 [Note] InnoDB: Dumping buffer pool(s) to /bitnami/mariadb/data/ib_buffer_pool
2024-08-27 13:55:00 0 [Note] InnoDB: Buffer pool(s) dump completed at 240827 13:55:00
2024-08-27 13:55:01 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-08-27 13:55:01 0 [Note] InnoDB: Shutdown completed; log sequence number 102790652846; transaction id 54926932
2024-08-27 13:55:01 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: Shutdown complete

2024-08-27 13:55:22 0 [Note] Starting MariaDB 11.3.2-MariaDB source revision 068a6819eb63bcb01fdfa037c9bf3bf63c33ee42 as process 707
2024-08-27 13:55:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2024-08-27 13:55:22 0 [Note] InnoDB: Using transactional memory
2024-08-27 13:55:22 0 [Note] InnoDB: Number of transaction pools: 1
2024-08-27 13:55:22 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-08-27 13:55:22 0 [Note] InnoDB: Using Linux native AIO
2024-08-27 13:55:22 0 [Note] InnoDB: Initializing buffer pool, total size = 2.000GiB, chunk size = 32.000MiB
2024-08-27 13:55:22 0 [Note] InnoDB: Completed initialization of buffer pool
2024-08-27 13:55:22 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2024-08-27 13:55:22 0 [Note] InnoDB: End of log at LSN=102790652846
2024-08-27 13:55:22 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-08-27 13:55:22 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-08-27 13:55:22 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-08-27 13:55:22 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-08-27 13:55:22 0 [Note] InnoDB: log sequence number 102790652846; transaction id 54926933
2024-08-27 13:55:22 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-08-27 13:55:22 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-08-27 13:55:22 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2024-08-27 13:55:22 0 [Note] Server socket created on IP: '127.0.0.1'.
2024-08-27 13:55:22 0 [Warning] 'proxies_priv' entry '@% root@pcd-usrprod' ignored in --skip-name-resolve mode.
2024-08-27 13:55:22 0 [Note] mysqld: Event Scheduler: Loaded 0 events
2024-08-27 13:55:22 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '11.3.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2024-08-27 13:55:23 0 [Note] InnoDB: Buffer pool(s) load completed at 240827 13:55:23
jotamartos commented 1 week ago

I can only see these warning messages in the log. If the error persists, please check if you keep receiving those errors to know if that's the reason of the failure.

2024-08-27 13:54:59 40 [Warning] Aborted connection 40 to db: 'bitnami_wordpress' user: 'bn_wordpress' host: '127.0.0.1' (Got an error reading communication packets)
2024-08-27 13:54:59 37 [Warning] Aborted connection 37 to db: 'bitnami_wordpress' user: 'bn_wordpress' host: '127.0.0.1' (Got an error reading communication packets)

If that's not the case, review the Apache and PHP logs at /opt/bitnami/apache/logs and /opt/bitnami/php/logs

Idea-Theorem commented 1 week ago

I'll monitor it and will let you know if something comes up on the php logs