bitnami / vms

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

[Google Cloud: Bitnami package for WordPress 6.5.2] Faild Restore backup #1524

Closed MeiselMoya closed 3 months ago

MeiselMoya commented 4 months ago

Platform

Google Cloud Platform

bndiagnostic ID know more about bndiagnostic ID

b8a127d3-9f2a-4afd-2df5-50a01b4297d1

bndiagnostic output

===== Begin of bndiagnostic tool output =====
    ✓ Processes: No issues found
    ? Connectivity: Found possible issues
    ✓ Wordpress: No issues found
    ✓ Mariadb: No issues found
    ✓ Php: No issues found
    ✓ Resources: No issues found
    ? Apache: Found possible issues
[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/
[Apache]
Press [Enter] to continue:

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

[Wed Jan 03 21:08:08.076125 2024] [proxy_fcgi:error] [pid 628630:tid 
139992739292928] [client **ip_address**:52857] AH01071: Got error 'PHP message: 
PHP Warning:  Undefined array key "HTTP_HOST" in 
/bitnami/wordpress/wp-config.php on line 173; PHP message: PHP Warning:  
Undefined array key "HTTP_HOST" in /bitnami/wordpress/wp-config.php on line 174; 
PHP message: PHP Warning:  Undefined array key "host" in 
/opt/bitnami/wordpress/wp-includes/canonical.php on line 691; PHP message: PHP 
Warning:  Unde
[Wed Jan 03 21:59:05.630080 2024] [authz_core:error] [pid 460933:tid 
139993947285248] [client **ip_address**:40836] AH01630: client denied by server 
configuration: /opt/bitnami/phpmyadmin/index.php

[Thu Jan 04 00:59:31.741707 2024] [proxy_fcgi:error] [pid 628630:tid 
139992823219968] [client **ip_address**:61000] AH01071: Got error 'PHP message: 
PHP Warning:  Undefined array key "HTTP_HOST" in 
/bitnami/wordpress/wp-config.php on line 173; PHP message: PHP Warning:  
Undefined array key "HTTP_HOST" in /bitnami/wordpress/wp-config.php on line 174; 
PHP message: PHP Warning:  Undefined array key "host" in 
/opt/bitnami/wordpress/wp-includes/canonical.php on line 691; PHP message: PHP 
Warning:  Unde

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

I can't solve the issue

Describe your issue as much as you can

Make my backup to google cloud:

Then restore the backup to Google Cloud:

I followed the steps in the documentation

sudo /opt/bitnami/ctlscript.sh stop
sudo mv /opt/bitnami /tmp/bitnami-backup
sudo tar -pxzvf application-backup.tar.gz -C /
sudo tar -pxzvf application-bin.tar.gz -C /
sudo /opt/bitnami/ctlscript.sh start

At the time of making

sudo /opt/bitnami/ctlscript.sh start

I get the following error

Starting services..
Job for bitnami.service failed because the control process exited with error code.
See "systemctl status bitnami.service" and "journalctl -xeu bitnami.service" for details.
systemctl status bitnami.service:
× bitnami.service - Bitnami service
     Loaded: loaded (/etc/systemd/system/bitnami.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-05-08 16:58:54 UTC; 27s ago
    Process: 912 ExecStart=/bin/bash -ec . /opt/bitnami/scripts/libcloud.sh; cloud_execute_prestart_scripts (code=exited, status=1/FAILURE)
   Main PID: 912 (code=exited, status=1/FAILURE)
        CPU: 3ms

May 08 16:58:54 wordpress-7-vm bash[912]: /bin/bash: line 1: /opt/bitnami/scripts/libcloud.sh: No such file or directory
May 08 16:58:54 wordpress-7-vm systemd[1]: Starting bitnami.service - Bitnami service...
May 08 16:58:54 wordpress-7-vm systemd[1]: bitnami.service: Main process exited, code=exited, status=1/FAILURE
May 08 16:58:54 wordpress-7-vm systemd[1]: bitnami.service: Failed with result 'exit-code'.
May 08 16:58:54 wordpress-7-vm systemd[1]: Failed to start bitnami.service - Bitnami service.
############################################################################################################################################
############################################################################################################################################
journalctl -xeu bitnami.service:
░░ 
░░ A start job for unit bitnami.service has begun execution.
░░ 
░░ The job identifier is 3496.
May 08 16:50:33 wordpress-7-vm systemd[1]: bitnami.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit bitnami.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 08 16:50:33 wordpress-7-vm systemd[1]: bitnami.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit bitnami.service has entered the 'failed' state with result 'exit-code'.
May 08 16:50:33 wordpress-7-vm systemd[1]: Failed to start bitnami.service - Bitnami service.
░░ Subject: A start job for unit bitnami.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit bitnami.service has finished with a failure.
░░ 
░░ The job identifier is 3496 and the job result is failed.
May 08 16:58:54 wordpress-7-vm bash[912]: /bin/bash: line 1: /opt/bitnami/scripts/libcloud.sh: No such file or directory
May 08 16:58:54 wordpress-7-vm systemd[1]: Starting bitnami.service - Bitnami service...
░░ Subject: A start job for unit bitnami.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit bitnami.service has begun execution.
░░ 
░░ The job identifier is 5332.
May 08 16:58:54 wordpress-7-vm systemd[1]: bitnami.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit bitnami.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 08 16:58:54 wordpress-7-vm systemd[1]: bitnami.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit bitnami.service has entered the 'failed' state with result 'exit-code'.
May 08 16:58:54 wordpress-7-vm systemd[1]: Failed to start bitnami.service - Bitnami service.
░░ Subject: A start job for unit bitnami.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit bitnami.service has finished with a failure.
░░ 
░░ The job identifier is 5332 and the job result is failed.
patrick521f commented 4 months ago

Is this query solved or not? Please tell me.

AARP org

gongomgra commented 4 months ago

Hi @MeiselMoya,

Thanks for using Bitnami. We changed the way of building/initializing our Google Cloud images, and therefore the guide you are using is not valid to migrate data between those instances. Also notice that migrating the data that way, you are replacing the Bitnami installation in the new instance with the binaries from the old installation, so you won't benefit from newer versions of Apache, PHP and the rest of elements in the Bitnami folder (which in some cases may fix security issues).

We recommend you to restore the new image to its previous state (or simply launch a new one), and migrate WordPress data only by following the guide linked below

https://docs.bitnami.com/google/how-to/migrate-wordpress/

Hope it helps!

sonia0992alvarez commented 4 months ago

Hello @MeiselMoya CostcoESS

It seems you’re encountering issues while restoring a backup of your WordPress application using the Bitnami package on Google Cloud Platform. Let’s troubleshoot the problem step by step:

Missing libcloud.sh Script: The error message indicates that the libcloud.sh script is missing: /bin/bash: line 1: /opt/bitnami/scripts/libcloud.sh: No such file or directory. Verify that the libcloud.sh script exists in the specified location (/opt/bitnami/scripts/). If it’s missing, you might need to reinstall or update the Bitnami package. Check Backup Files: Ensure that the backup files (application-backup.tar.gz and application-bin.tar.gz) are correctly created and contain the necessary data. Confirm that the backup files are accessible and not corrupted. Permissions and Ownership: When restoring, maintain the original permissions for files and folders. Check if the restored files are owned by the correct user (e.g., root) as per the original installation. Review the Backup Process: Double-check the steps you followed during the backup process. Make sure you stopped all servers before creating the backup. Apache Configuration Issues: The Apache error log shows some warnings related to undefined array keys and denied access to /opt/bitnami/phpmyadmin/index.php. Investigate these issues further. Check your Apache configuration files and ensure that everything is set up correctly. Server Ports Accessibility: The diagnostic tool flagged that server ports 22, 80, and/or 443 are not publicly accessible. Follow the guide to open server ports for remote access: Open Server Ports Guide. Review Documentation: Revisit the official Bitnami documentation for creating and restoring backups: Create and Restore Application Backups. Bitnami Community Support: Consider posting your issue on the Bitnami Community Forum for additional assistance. Other users and Bitnami experts might have encountered similar problems and can provide insights.

Best Regards Sonia Alvareo

github-actions[bot] commented 3 months ago

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[bot] commented 3 months ago

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.