[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448615#comment-15448615
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9444:
--------------------------------------------

GitHub user milamberspace reopened a pull request:

    https://github.com/apache/cloudstack/pull/1621

    [CLOUDSTACK-9444] Fix a little issue from PR1610 if the db.properties file 
hasn't EOL c…

    …haracter at the end of file
    
    And some improvements about the dir/file using variables
    
    cc @wido @rhtyd 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/milamberspace/cloudstack 
FixPR1610_addLineReturn

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1621.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1621
    
----
commit 6051fa503a2da7b96256f21e6b7c42aa1f3cb01e
Author: Milamber <[email protected]>
Date:   2016-08-02T08:00:21Z

    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

----


> 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)

Reply via email to