[ https://issues.apache.org/jira/browse/CLOUDSTACK-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448958#comment-15448958 ]
ASF subversion and git services commented on CLOUDSTACK-9444: ------------------------------------------------------------- Commit 0671a80972cc1b268b84489b2c3b54644ad3fd4c in cloudstack's branch refs/heads/master from [~rohit.ya...@shapeblue.com] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=0671a80 ] Merge pull request #1621 from milamberspace/FixPR1610_addLineReturn [CLOUDSTACK-9444] Fix a little issue from PR1610 if the db.properties file hasn't EOL character at the end of file And some improvements about the dir/file using variables cc @wido @rhtyd * pr/1621: Fix a little issue from PR1610 if the db.properties file hasn't EOL character at the end of file And some improvements about the dir/file using variables Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com> > ERROR c.c.u.d.DriverLoader DB driver type null is not supported (during > migration from 4.7.1 to 4.9) > ---------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-9444 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9444 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Install and Setup > Affects Versions: 4.7.1, 4.8.0, 4.8.1, 4.9.0 > Environment: Ubuntu 14.04 + KVM + CS 4.7.1 > Reporter: Milamber > Assignee: Milamber > Priority: Minor > Labels: patch > Fix For: 4.9.1 > > > The PR #1610 has been include with the latest CS 4.9.0, unfortunately if the > last line of the db.properties file hasn't a EOL character, the first line of > your patch from #1610 (db.cloud.driver=jdbc:mysql) will be concatenate to the > last line: > example: > db.cloud.secondsBeforeRetryMaster=3600db.cloud.driver=jdbc:mysql > db.usage.driver=jdbc:mysql > db.simulator.driver=jdbc:mysql > And after the migration, the management service don't start correctly. > The error messages: > 2016-07-31 15:05:10,684 ERROR c.c.u.d.DriverLoader DB driver type null is not > supported! > 2016-07-31 15:05:10,709 WARN c.c.u.d.T.Transaction Unable to load db > configuration, using defaults with 5 connections. Falling back on assumed > datasource on localhost:3306 using username:password=cloud:cloud. Please > check your configuration > com.cloud.utils.exception.CloudRuntimeException: DB driver type null is not > supported! > [...] > 2016-07-31 15:05:10,979 ERROR c.c.u.d.Merovingian2 Unable to get a new db > connection > java.sql.SQLException: Access denied for user 'cloud'@'localhost' (using > password: YES) > [...] > === > The workaround is to edit the /etc/cloudstack/management/db.properties file > and insert a line return before "db.cloud.driver=jdbc:mysql" > and restart the cloudstack-management service -- This message was sent by Atlassian JIRA (v6.3.4#6332)