Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2AF76200BF4 for ; Fri, 6 Jan 2017 12:21:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 29783160B49; Fri, 6 Jan 2017 11:21:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74F02160B1F for ; Fri, 6 Jan 2017 12:21:02 +0100 (CET) Received: (qmail 84646 invoked by uid 500); 6 Jan 2017 11:20:59 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 84435 invoked by uid 500); 6 Jan 2017 11:20:59 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 84380 invoked by uid 99); 6 Jan 2017 11:20:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2017 11:20:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 92F272C1F5A for ; Fri, 6 Jan 2017 11:20:59 +0000 (UTC) Date: Fri, 6 Jan 2017 11:20:59 +0000 (UTC) From: "Rohit Yadav (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-9444) ERROR c.c.u.d.DriverLoader DB driver type null is not supported (during migration from 4.7.1 to 4.9) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 06 Jan 2017 11:21:03 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohit Yadav closed CLOUDSTACK-9444. ----------------------------------- Resolution: Fixed > 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.0 > > > 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)