|
楼主 |
发表于 2016-11-1 14:55:38
|
显示全部楼层
本帖最后由 lhylying 于 2016-11-2 16:55 编辑
这部执行完成后,还是没有,我不知道我那儿做错了.
postgresql.postgresql-9.4.1208.jar:9.4.1208]
- Cannot acquire connection from da
ta source
org.postgresql.util.PSQLException: FATAL: role "admin" is not permitted to log i
n
- Timeout failure stats (total=0, a
ctive=0, idle=0, waiting=0)
Exception in thread "main" org.flywaydb.core.api.FlywayException: Unable to obta
in Jdbc connection from DataSource
Caused by: java.sql.SQLTransientConnectionException: - Connection is not availa
ble, request timed out after 1011ms.
at scala.util.Try$.apply(Try.scala:192) at com.zaxxer.hikari.pool.Hikari
Pool.getConnection(HikariPool.java:196) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:147)
~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.jav
a:83) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUti
ls.java:50) ~[org.flywaydb.flyway-core-3.1.jar:na]
... 35 common frames omitted
Caused by: org.postgresql.util.PSQLException: FATAL: role "admin" is not permitt
ed to log in
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
ectionFactoryImpl.java:712) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
ctionFactoryImpl.java:213) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
y.java:67) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:216) ~[org.
postgresql.postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.Driver.makeConnection(Driver.java:406) ~[org.postgresq
l.postgresql-9.4.1208.jar:9.4.1208]
at org.postgresql.Driver.connect(Driver.java:274) ~[org.postgresql.postg
resql-9.4.1208.jar:9.4.1208]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSourc
e.java:95) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSourc
e.java:101) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:316) ~[co
m.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:173) ~[com
.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:443
) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.HikariPool.access$500(HikariPool.java:66) ~[co
m.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.ja
va:568) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.ja
va:561) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_7
4]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142) ~[na:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617) ~[na:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
08:49:29.819UTC INFO a.r.RemoteActorRefProvider$RemotingTerminator akka.tcp://a
ctor-server@127.0.0.1:53569/system/remoting-terminator Shutting down remote da
emon.
08:49:29.826UTC INFO a.r.RemoteActorRefProvider$RemotingTerminator akka.tcp://a
ctor-server@127.0.0.1:53569/system/remoting-terminator Remote daemon shut down
; proceeding with flushing remote transports.
at im.actor.server.db.DbExtension$.createExtension(DbExtension.scala:53)
at im.actor.server.db.DbExtension$.createExtension(DbExtension.scala:32)
at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:737)
at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1.apply(ActorSys
tem.scala:770)
at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1.apply(ActorSys
tem.scala:768)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at akka.actor.ActorSystemImpl.loadExtensions$1(ActorSystem.scala:768)
at akka.actor.ActorSystemImpl.loadExtensions(ActorSystem.scala:783)
at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:652)
at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:645)
at akka.actor.ActorSystemImpl._start(ActorSystem.scala:645)
at akka.actor.ActorSystemImpl.start(ActorSystem.scala:661)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:119)
at im.actor.server.ActorServerBuilder.start(ActorServer.scala:105)
at im.actor.server.Main$.delayedEndpoint$im$actor$server$Main$1(Main.sca
la:7)
at im.actor.server.Main$delayedInit$body.apply(Main.scala:6)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:
12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(Traversab
leForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at im.actor.server.Main$.main(Main.scala:6)
at im.actor.server.Main.main(Main.scala)
Caused by: java.sql.SQLTransientConnectionException: - Connection is not availa
ble, request timed out after 1011ms.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:196)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:147)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.jav
a:83)
at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUti
ls.java:50)
... 35 more
Caused by: org.postgresql.util.PSQLException: FATAL: role "admin" is not permitt
ed to log in
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
ectionFactoryImpl.java:712)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
ctionFactoryImpl.java:213)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
y.java:67)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:216)
at org.postgresql.Driver.makeConnection(Driver.java:406)08:49:29.980UTC
at org.postgresql.Driver.connect(Driver.java:274)INFO
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSourc
e.java:95)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSourc
e.java:101)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:316)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:173)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:443
)
at com.zaxxer.hikari.pool.HikariPool.access$500(HikariPool.java:66)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.ja
va:568)
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.ja
va:561)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
akka.remote.Remoting akka.remote.Remoting Remoting shut down
[INFO] [11/02/2016 16:49:29.982] [actor-server-akka.remote.default-remote-dispat
cher-7] [akka.tcp://actor-server@127.0.0.1:53569/system/remoting-terminator] Rem
oting shut down.
INFO com.zaxxer.hikari.pool.HikariPool - Close initiated...
DEBUG com.zaxxer.hikari.pool.HikariPool - Before closing stats (total=0, ac
tive=0, idle=0, waiting=0)
DEBUG com.zaxxer.hikari.pool.HikariPool - After adding stats (total=0, acti
ve=0, idle=0, waiting=0)
DEBUG com.zaxxer.hikari.pool.HikariPool - After closing stats (total=0, act
ive=0, idle=0, waiting=0)
INFO com.zaxxer.hikari.pool.HikariPool - Closed.
|
-
|