+ cf push scheduler-new -f /var/vcap/jobs/deploy-scheduler/scheduler-manifest.yml -i 1 -n scheduler-new -d system.XXXXX -s cflinuxfs4 ... Start unsuccessfulTo get more details as to why the scheduler-new was not able to start.
cf target -o system -s scheduler cf logs scheduler-new --recent
2023-11-13T11:03:21.55+1100 [APP/PROC/WEB/0] OUT Caused by: org.flywaydb.core.api.FlywayException: Found non-empty schema(s) `scheduler` but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.
schema_version.
Scheduler 2.0 requires this table to renamed to flyway_schema_history.
If Scheduler 2.0 was not able to find flyway_schema_history
this error is throwncf target -o system -s scheduler
cf services scheduler-mysql --guid
bosh -d service-instance-<guid> ssh mysql/0
sudo mysql --defaults-file=/var/vcap/jobs/mysql/config/mylogin.cnf
select table_schema, table_name from information_schema.tables where table_name='schema_version';
use service_instance_db;
create table flyway_schema_history select * from schema_version;
select * from flyway_schema_history ;
drop table schema_version;
cf target -o system -s scheduler
cf env scheduler
mysql -h mysql–endpoint.rds.amazonaws.com -P 3306 -u mymasteruser -p
select table_schema, table_name from information_schema.tables where table_name='schema_version';
use scheduler;
create table flyway_schema_history select * from schema_version;
select * from flyway_schema_history ;
drop table schema_version;