起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1890|回复: 4

[处理中1] Linux下部署铛铛的问题

[复制链接]

36

主题

112

帖子

364

积分

中级会员

Rank: 3Rank: 3

积分
364
QQ
发表于 2016-12-26 10:55:33 | 显示全部楼层 |阅读模式
执行actor是报错

Exception in thread "main" org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException:
Migration V20150502124700__CreateDepartments.sql failed
-------------------------------------------------------
SQL State  : 58P01
Error Code : 0
Message    : ERROR: could not open extension control file "/usr/pgsql-9.5/share/extension/ltree.control": No such file or directory
Location   : sql/migration/V20150502124700__CreateDepartments.sql (/opt/BeX5_V3.4/dangchat-server/bin/file:/opt/BeX5_V3.4/dangchat-server/lib/im.actor.server.actor-persist-0.8.jar!/sql/migration/V20150502124700__CreateDepartments.sql)
Line       : 1
Statement  : CREATE extension IF NOT EXISTS ltree

        at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:117)
        at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:71)
        at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:287)
        at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:285)
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
        at org.flywaydb.core.internal.command.DbMigrate.applyMigration(DbMigrate.java:285)
        at org.flywaydb.core.internal.command.DbMigrate.access$800(DbMigrate.java:46)
        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:207)
        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156)
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
        at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:972)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:919)
        at org.flywaydb.core.Flyway.execute(Flyway.java:1320)
        at org.flywaydb.core.Flyway.migrate(Flyway.java:919)
        at im.actor.server.db.DbExtensionImpl.migrate(DbExtension.scala:29)
        at im.actor.server.db.DbExtension$.im$actor$server$db$DbExtension$$$anonfun$2(DbExtension.scala:53)
        at scala.compat.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
        at scala.util.Try$.apply(Try.scala:192)
        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(ActorSystem.scala:770)
        at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1.apply(ActorSystem.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)02:49:58.054UTC ERROR im.actor.server.db.DbExtension$ DbExtension$(akka://actor-server)   Migration failed
org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException:
Migration V20150502124700__CreateDepartments.sql failed
-------------------------------------------------------
SQL State  : 58P01
Error Code : 0
Message    : ERROR: could not open extension control file "/usr/pgsql-9.5/share/extension/ltree.control": No such file or directory
Location   : sql/migration/V20150502124700__CreateDepartments.sql (/opt/BeX5_V3.4/dangchat-server/bin/file:/opt/BeX5_V3.4/dangchat-server/lib/im.actor.server.actor-persist-0.8.jar!/sql/migration/V20150502124700__CreateDepartments.sql)
Line       : 1
Statement  : CREATE extension IF NOT EXISTS ltree

        at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:117) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:71) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:287) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate$5.doInTransaction(DbMigrate.java:285) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate.applyMigration(DbMigrate.java:285) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate.access$800(DbMigrate.java:46) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:207) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:972) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:919) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.Flyway.execute(Flyway.java:1320) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.Flyway.migrate(Flyway.java:919) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at im.actor.server.db.DbExtensionImpl.migrate(DbExtension.scala:29) ~[im.actor.server.actor-persist-0.8.jar:0.8]
        at im.actor.server.db.DbExtension$.im$actor$server$db$DbExtension$$$anonfun$2(DbExtension.scala:53) ~[im.actor.server.actor-persist-0.8.jar:0.8]
        at scala.compat.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) ~[org.scala-lang.modules.scala-java8-compat_2.11-0.7.0.jar:na]
        at scala.util.Try$.apply(Try.scala:192) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at im.actor.server.db.DbExtension$.createExtension(DbExtension.scala:53) ~[im.actor.server.actor-persist-0.8.jar:0.8]
        at im.actor.server.db.DbExtension$.createExtension(DbExtension.scala:32) ~[im.actor.server.actor-persist-0.8.jar:0.8]
        at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:737) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1.apply(ActorSystem.scala:770) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl$$anonfun$loadExtensions$1$1.apply(ActorSystem.scala:768) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at scala.collection.Iterator$class.foreach(Iterator.scala:893) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1336) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.collection.AbstractIterable.foreach(Iterable.scala:54) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at akka.actor.ActorSystemImpl.loadExtensions$1(ActorSystem.scala:768) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl.loadExtensions(ActorSystem.scala:783) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:652) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:645) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl._start(ActorSystem.scala:645) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystemImpl.start(ActorSystem.scala:661) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:142) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:119) ~[com.typesafe.akka.akka-actor_2.11-2.4.10.jar:na]
        at im.actor.server.ActorServerBuilder.start(ActorServer.scala:105) ~[im.actor.server.actor-server-sdk-0.8.jar:0.8]
        at im.actor.server.Main$.delayedEndpoint$im$actor$server$Main$1(Main.scala:7) ~[im.actor.server.actor-0.8.jar:0.8]
        at im.actor.server.Main$delayedInit$body.apply(Main.scala:6) ~[im.actor.server.actor-0.8.jar:0.8]
        at scala.Function0$class.apply$mcV$sp(Function0.scala:34) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.App$$anonfun$main$1.apply(App.scala:76) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.App$$anonfun$main$1.apply(App.scala:76) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.collection.immutable.List.foreach(List.scala:381) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at scala.App$class.main(App.scala:76) ~[org.scala-lang.scala-library-2.11.8.jar:na]
        at im.actor.server.Main$.main(Main.scala:6) ~[im.actor.server.actor-0.8.jar:0.8]
        at im.actor.server.Main.main(Main.scala) ~[im.actor.server.actor-0.8.jar:0.8]


36

主题

112

帖子

364

积分

中级会员

Rank: 3Rank: 3

积分
364
QQ
 楼主| 发表于 2016-12-26 10:55:51 | 显示全部楼层
Caused by: org.postgresql.util.PSQLException: ERROR: could not open extension control file "/usr/pgsql-9.5/share/extension/ltree.control": No such file or directory
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:313) ~[org.postgresql.postgresql-9.4.1208.jar:9.4.1208]
        at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
        at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) ~[com.zaxxer.HikariCP-2.4.6.jar:na]
        at org.flywaydb.core.internal.dbsupport.JdbcTemplate.executeStatement(JdbcTemplate.java:238) ~[org.flywaydb.flyway-core-3.1.jar:na]
        at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:114) ~[org.flywaydb.flyway-core-3.1.jar:na]
        ... 47 common frames omitted
02:49:58.062UTC INFO  a.r.RemoteActorRefProvider$RemotingTerminator akka.tcp://actor-server@127.0.0.1:32585/system/remoting-terminator   Shutting down remote daemon.
02:49:58.069UTC INFO  a.r.RemoteActorRefProvider$RemotingTerminator akka.tcp://actor-server@127.0.0.1:32585/system/remoting-terminator   Remote daemon shut down; proceeding with flushing remote transports.

        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.scala: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(TraversableForwarder.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: org.postgresql.util.PSQLException: ERROR: could not open extension control file "/usr/pgsql-9.5/share/extension/ltree.control": No such file or directory
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
        at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321)
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:313)
        at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
        at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
        at org.flywaydb.core.internal.dbsupport.JdbcTemplate.executeStatement(JdbcTemplate.java:238)
        at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:114)
        ... 47 more
02:49:58.117UTC INFO  akka.remote.Remoting akka.remote.Remoting   Remoting shut down
02:49:58.120UTC INFO  a.r.RemoteActorRefProvider$RemotingTerminator akka.tcp://actor-server@127.0.0.1:32585/system/remoting-terminator   Remoting shut down.
02:49:58.121UTC DEBUG akka.event.EventStream EventStream   shutting down: StandardOutLogger started
INFO  com.zaxxer.hikari.pool.HikariPool     - Close initiated...


回复 支持 反对

使用道具 举报

36

主题

112

帖子

364

积分

中级会员

Rank: 3Rank: 3

积分
364
QQ
 楼主| 发表于 2016-12-26 11:18:14 | 显示全部楼层
上面错误解决了,但是又报了个错
QQ截图20161226111704.png
回复 支持 反对

使用道具 举报

1

主题

385

帖子

615

积分

高级会员

Rank: 4

积分
615
QQ
发表于 2016-12-28 10:51:10 | 显示全部楼层
铛铛需要使用x5平台的3.6版本,以前版本对铛铛兼容性不好
回复 支持 反对

使用道具 举报

36

主题

112

帖子

364

积分

中级会员

Rank: 3Rank: 3

积分
364
QQ
 楼主| 发表于 2016-12-28 11:32:12 | 显示全部楼层
liuhongjian 发表于 2016-12-28 10:51
铛铛需要使用x5平台的3.6版本,以前版本对铛铛兼容性不好

我用的就是3.6版本!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-23 06:55 , Processed in 0.060112 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表