cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

4.13 Fresh Install fails: Cannot Upgrade Database

Open rvalle opened this issue 6 years ago • 7 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
Cloudstack Manager / Database
CLOUDSTACK VERSION
4.13 distribution
CONFIGURATION
OS / ENVIRONMENT

Centos 7, KVM, following Quick Installation Guide

SUMMARY

Everything installs OK, on first run CloudStack Manager fails.

STEPS TO REPRODUCE
follow the quick instllation guide.  

The latest guide is here

EXPECTED RESULTS
The CloudStack Management web UI should work 
ACTUAL RESULTS
503 error on web
Exception during database migration for version 4.0.0 to 4.13.0.0
ERROR Unable to upgrade the database

Check management-server.log

rvalle avatar Feb 12 '20 13:02 rvalle

I have googled around and found old threads that point to the java mysql connector version. For reference the one installed on my centos-7 is:

Name        : mysql-connector-java
Arch        : noarch
Epoch       : 1
Version     : 8.0.19
Release     : 1.el7

In the Mysql repostories installed pas per quick guide there is no other alternative present.

rvalle avatar Feb 12 '20 13:02 rvalle

@rvalle the workaround is to remove this and replace it with a version 5.x connector. This is fixed in #3601 towards master/4.14.

yadvr avatar Feb 12 '20 13:02 yadvr

@rhtyd and were can one get the connector from? it is not in the repo any idea?

rvalle avatar Feb 12 '20 13:02 rvalle

@rvalle you can search alternate repo, epel, or install manually from https://centos.pkgs.org/7/centos-x86_64/mysql-connector-java-5.1.25-3.el7.noarch.rpm.html or rpmfind

yadvr avatar Feb 12 '20 13:02 yadvr

@rhtyd thanks

rvalle avatar Feb 12 '20 14:02 rvalle

@rhtyd I'm new to CS and am unsure how to do the suggested fix. I'm receiving a similar error on a fresh installation of CS 4.13 with MySQL 5.7. I wish the documentation and caveats were more clear.

coreymr avatar Apr 10 '20 14:04 coreymr

@rhtyd you have more information in the bug report: #3954 hope that helps.

rvalle avatar Apr 15 '20 19:04 rvalle