GitHub user nickaccuweb added a comment to the discussion: CloudStack 4.22.1: 
cloudstack-setup-databases --schema-only initializes database only up to schema 
version 4.6.1, causing Management Server startup failure

@anirudh09041 

Thank you for sharing the detailed information.

Based on the logs, the issue appears to be related to an incomplete database 
schema upgrade.

The --schema-only option initializes the base database schema. CloudStack 
normally performs the remaining schema upgrades automatically during the first 
Management Server startup. No separate manual upgrade is required.

I suggest performing the following checks:

1. Check the Management Server logs for database upgrade failures or 
permission-related errors:

grep -Ei 'DatabaseUpgrade|upgrade|denied|exception' 
/var/log/cloudstack/management/management-server.log | tail -n 100

2. Connect to MySQL using the CloudStack database user and execute:

SHOW GRANTS;
SHOW VARIABLES LIKE 'log_bin_trust_function_creators';

3. Verify that /etc/cloudstack/management/db.properties contains the correct 
OCI MySQL endpoint and credentials.

Although CloudStack supports MySQL 8.4 and the --schema-only option is 
officially documented, OCI managed MySQL may impose additional restrictions 
that prevent the automatic schema upgrade. We cannot yet confirm whether this 
is a known OCI-specific compatibility issue.

I do not recommend manually adding the missing columns or modifying the 
database version table.

Please share the output of the above commands so I can identify the exact cause 
and suggest the appropriate solution.

Regards,
Nick R
AccuWeb.Cloud

GitHub link: 
https://github.com/apache/cloudstack/discussions/13548#discussioncomment-19936373

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to