2017-11-21 22 views
0

Error - java.sql.SQLException:基になるデータベースから接続を取得できませんでした。 (..) INFO:SQLクエリでエラーが発生しました。 スーパバイザIDが存在しない場合は、スーパバイザIDが存在しない場合は、テーブルを作成します(ID BIGINT ID、SUITEREPORTID VARCHAR(255)、SUITENAME VARCHAR(2000)、SUITEPATH VARCHAR(2000)、STARTTIME TIMESTAMP、ENDTIME TIMESTAMP、VARCHAR(255)、TOTALCOUNT INT、PASSEDCOUNT INT、FAILEDCOUNT INT 、TIMETAKEN INT、BROWSERTYPE VARCHAR(255))Sahi on Jenkins DBエラー - 基になるデータベースから接続を取得できませんでした

一時的に(空き容量がなかったために可能です)、sahiがジェンキンをビルドして作業を停止します。ログDBを開くと、テキストが表示されます。接続は基になるデータベースから取得できませんでした。

とコンソールログに:問題となる可能性が

[java] Nov 21, 2017 1:37:22 PM in.co.sahi.datastore.SahiDB createTables 
[java] INFO: version=2017-05-09 20:45:45 
[java] Nov 21, 2017 1:37:22 PM in.co.sahi.datastore.SahiDB createTables 
[java] INFO: Updating tables structures. 
[java] java.sql.SQLException: Connections could not be acquired from the underlying database! 
[java]  at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:690) 
[java]  at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140) 
[java]  at net.sf.sahi.plugin.PooledDBClient.getConnection(PooledDBClient.java:31) 
[java]  at net.sf.sahi.plugin.DBClient.execute(DBClient.java:66) 
[java]  at in.co.sahi.datastore.SahiDB.executeSQL(SahiDB.java:162) 
[java]  at in.co.sahi.datastore.SahiDB.createTables(SahiDB.java:98) 
[java]  at in.co.sahi.datastore.SahiDB.<clinit>(SahiDB.java:32) 
[java]  at net.sf.sahi.f.run(Unknown Source) 
[java]  at java.lang.Thread.run(Thread.java:748) 
[java] Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1418) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:606) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:526) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683) 
[java]  ... 8 more 
[java] Nov 21, 2017 1:37:54 PM in.co.sahi.datastore.SahiDB createTables 
[java] INFO: ----------------------------------------------- 
[java] Nov 21, 2017 1:37:54 PM in.co.sahi.datastore.SahiDB createTables 
[java] INFO: Error in Sql Query. 
[java] CREATE TABLE IF NOT EXISTS SUITEREPORTS (ID BIGINT IDENTITY, SUITEREPORTID VARCHAR(255), SUITENAME VARCHAR(2000), SUITEPATH VARCHAR(2000), STARTTIME TIMESTAMP, ENDTIME TIMESTAMP, STATUS VARCHAR(255), TOTALCOUNT INT, PASSEDCOUNT INT, FAILEDCOUNT INT, TIMETAKEN INT, BROWSERTYPE VARCHAR(255)) 
[java] exception: java.sql.SQLException: Connections could not be acquired from the underlying database! 
[java]  at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:690) 
[java]  at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140) 
[java]  at net.sf.sahi.plugin.PooledDBClient.getConnection(PooledDBClient.java:31) 
[java]  at net.sf.sahi.plugin.DBClient.execute(DBClient.java:66) 
[java]  at in.co.sahi.datastore.SahiDB.executeSQL(SahiDB.java:162) 
[java]  at in.co.sahi.datastore.SahiDB.createTables(SahiDB.java:98) 
[java]  at in.co.sahi.datastore.SahiDB.<clinit>(SahiDB.java:32) 
[java]  at net.sf.sahi.f.run(Unknown Source) 
[java]  at java.lang.Thread.run(Thread.java:748) 
[java] Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1418) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:606) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:526) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683) 
[java]  ... 8 more 
[java] 
[java] Nov 21, 2017 1:37:54 PM in.co.sahi.datastore.SahiDB createTables 
[java] INFO: ----------------------------------------------- 
[java] java.sql.SQLException: Connections could not be acquired from the underlying database! 
[java]  at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:690) 
[java]  at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140) 
[java]  at net.sf.sahi.plugin.PooledDBClient.getConnection(PooledDBClient.java:31) 
[java]  at net.sf.sahi.plugin.DBClient.execute(DBClient.java:66) 
[java]  at in.co.sahi.datastore.SahiDB.executeSQL(SahiDB.java:162) 
[java]  at net.sf.sahi.test.SuiteSummary.init(SuiteSummary.java:104) 
[java]  at in.co.sahi.distributed.DSuiteRunner.execute(DSuiteRunner.java:72) 
[java]  at in.co.sahi.command.Master$1.run(Master.java:117) 
[java]  at java.lang.Thread.run(Thread.java:748) 
[java] Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1418) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:606) 
[java]  at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:526) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756) 
[java]  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683) 
[java]  ... 8 more 

?修正するために何ができますか?

+0

これは組み込みのデータベースです。私はこの時点で2つの別々のDBがダウンしていた。立ち上がる唯一の方法は、DBファイルを空白の新しいものに置き換えることです – abiab

答えて

0

あなたはSahiで使用しているデータベースを教えてください。

Sahiプロパティでデータベースの正しいJDBC URLを追加したことを確認してください。

+0

それは組み込みのデータベースです。私はこの時点で2つの別々のDBがダウンしていた。立ち上がる唯一の方法は、DBファイルを空の新しいファイルに置き換えることです – abiab

関連する問題