-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Google VM] An error occurred when initializing this installation - bitnami Lamp #1669
Comments
I think I found the cause. This is message I am seeing at login, it is part of the MOTD: And I found this message in the /var/log/cloud-init-output.log: Starting mariadb in background So why did MySQL fail to start? Is there anything I need to check? It looks like mysql is working: root@lampstack# mariadb --version root@lampstack:~# mysqlcheck -c -u root -p --all-databases more of the /var/log/cloud-init-output.log here... |
So what is causing this error when creating a new VM bitnami instance from a machine image and how would I avoid it: ^[[38;5;6mmariadb ^[[38;5;5m20:17:07.33 ^[[0m^[[38;5;1mERROR^[[0m ==> MySQL failed to start I am sure anyone can duplicate this error by creating a new bitnami VM instance from a existing bitnami VM machine image. In a nutshell:
I would feel more confident using a VM created from a machine image that did not have any errors during creation. |
The warning messages shouldn't make the deployment fail. However, it seems that the database is not initialized correctly
I do not know which app you are deploying, but can you ensure that it has enough resources? Please note that some apps require high memory requirements to work. |
Hi jotamartos
Let's look at issue 1: As I stated this warning appears in the cloud-init log with a brand new freshly created bitnami-lamp VM from the google Marketplace. I have not changed anything in the VM. This is my VM info: Issue 2: As I stated this warning occurs when a bitnami VM is created from an existing bitnami-lamp machine image. I would think that a new bitnami-lamp VM created from a bitnami-lamp machine image would not have any warnings from the get go. Can you explain this MySQL warning? Also a basic check of MySQL appears that it's working: You said: "I do not know which app you are deploying, but can you ensure that it has enough resources? Please note that some apps require high memory requirements to work." We have not deployed any apps on the VM and you can see my VM size info above in issue1. |
Hi @tacoma50, I just tried to reproduce the issue and launched a Bitnami WordPress and LAMP solutions. I know you didn't launch WordPress, but another user mentioned this issue as well in #1690. However, my deployments worked as expected, there is no error in the console and the different components were launched without problems Please ensure you launch a VM with enough resources to run the deployment process. Could you please try to launch the VM again? Thanks |
Hi Jotamartos, I am not running WORDPRESS so I cannot speak to that. Can you please test with my setup as follows: With this exact VM: Then stop and start this VM, then run: grep -i Invalid cloud-init-output.log 2024-06-04 14:37:07,323 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors then run: cloud-init schema --system thank you |
Hi, I tried to reproduce the issue, but it's just got a warning.
When deploying the VM the first time or when stopping/starting it, the output just shows a warning and all services are started properly |
Hi Jotamartos, stop and start this new VM, then run: grep -i Invalid /var/log/cloud-init-output.log So are you saying it is OK to ignore this Error: |
I said that I couldn't reproduce the issue, I only got warning messages. I used the latest version of the VM and didn't get the error message. I may be a transient issue with the version you launched (back in June). You can try launching the latest version and see if the issue is solved. |
You said you were able recreate the warning and you posted this: bitnami@jotalamp-vm:~$ grep -i Invalid /var/log/cloud-init-output.log When you see that message above, can you post the output of this command: |
Platform
Google Cloud Platform
bndiagnostic ID know more about bndiagnostic ID
725a6da6-56f5-9279-ed58-af34f8fd44db
bndiagnostic output
These same errors are also found on the original working VM where the machine image created from.
So it seems these errors are unrelated since they appear on both the old working VM and the new VM.
[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]
Found recent error or warning messages in the Apache error log.
Press [Enter] to continue:
The text was updated successfully, but these errors were encountered: