执行sh ./wildfirechat.sh

梦渊 27天前 85

root@ecs36013:/bin# sh ./wildfirechat.sh / 警告:没有设置JVM内存参数! 请设置JVM参数Xmx和Xms,设置为您为IM服务预留的内存大小,注意需要刨除操作系统占用,如果有其它系统也需要相应去除占用。

ERROR StatusLogger Unable to access file://config/log4j2.xml java.net.UnknownHostException: config at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:229) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:1062) at java.base/sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:1024) at java.base/sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1119) at java.base/sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1105) at java.base/sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:312) at java.base/sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:418) at org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:342) at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:507) at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:500) at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:424) at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:325) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:690) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55) at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383) at io.moquette.server.Server.<clinit>(Server.java:76) at cn.wildfirechat.server.Server.main(Server.java:15) ERROR StatusLogger Reconfiguration failed: No configuration found for '8bcc55f' at 'null' in 'null'


(_)| | | | / |() _ _ | | | | \ \ /\ / /| || | / ` || |_ | || '_|/ \ / || ' \ / ` || | \ V V / | || || (| || || || | | / | ( | | | || (| || | _/_/ |||| _,||| |||| \| _||| || _,| \|

您正在使用h2数据库,建议仅在开发验证或者用户数小于100人时才使用此数据库。正式上线时建议切换到MySQL数据库。 Exception in thread "main" org.flywaydb.core.internal.exception.FlywaySqlException: Unable to obtain connection from database: Connections could not be acquired from the underlying database!

SQL State : null Error Code : 0 Message : Connections could not be acquired from the underlying database!

    at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:60)
    at org.flywaydb.core.internal.database.DatabaseFactory.createDatabase(DatabaseFactory.java:72)
    at org.flywaydb.core.Flyway.execute(Flyway.java:1670)
    at org.flywaydb.core.Flyway.migrate(Flyway.java:1356)
    at win.liyufan.im.DBUtil.init(DBUtil.java:120)
    at io.moquette.server.Server.startServer(Server.java:234)
    at io.moquette.server.Server.startServer(Server.java:226)
    at io.moquette.server.Server.startServer(Server.java:210)
    at io.moquette.server.Server.start(Server.java:120)
    at cn.wildfirechat.server.Server.main(Server.java:15)

Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database! at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:692) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140) at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:56) ... 9 more Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1507) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:758) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:685) ... 11 more Caused by: org.h2.jdbc.JdbcSQLException: IO Exception: "java.net.UnknownHostException: ecs36013: ecs36013: Name or service not known" [90028-197] at org.h2.message.DbException.getJdbcSQLException(DbException.java:357) at org.h2.message.DbException.get(DbException.java:168) at org.h2.message.DbException.convert(DbException.java:299) at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:254) at org.h2.server.TcpServer.getURL(TcpServer.java:198) at org.h2.tools.Server.start(Server.java:483) at org.h2.engine.Database.startServer(Database.java:820) at org.h2.engine.Database.open(Database.java:676) at org.h2.engine.Database.openDatabase(Database.java:286) at org.h2.engine.Database.<init>(Database.java:280) at org.h2.engine.Engine.openSession(Engine.java:66) at org.h2.engine.Engine.openSession(Engine.java:179) at org.h2.engine.Engine.createSessionAndValidate(Engine.java:157) at org.h2.engine.Engine.createSession(Engine.java:140) at org.h2.engine.Engine.createSession(Engine.java:28) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:351) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:103) at org.h2.Driver.connect(Driver.java:69) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163) at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44) at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) Caused by: java.net.UnknownHostException: ecs36013: ecs36013: Name or service not known at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1656) at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:252) ... 24 more Caused by: java.net.UnknownHostException: ecs36013: Name or service not known at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929) at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1529) at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1519) at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1651) ... 25 more

最新回复 (4)
  • HeavyRain 26天前
    引用 2
    确认一下,
    1,jdk版本是不是1.8?
    2,如果任何改动都不做,下载我们发布的版本解压,能够成功执行吗?
  • 梦渊 26天前
    引用 3
    HeavyRain 确认一下, 1,jdk版本是不是1.8? 2,如果任何改动都不做,下载我们发布的版本解压,能够成功执行吗?
    我jre11点多
    我还安装了宝塔里面的一些插件
  • x86 26天前
    引用 4

    请你执行下面个命令看下:

    1. hostname
    2. cat /etc/hosts

    如果 /etc/hosts里面,没有包含hostname命令的输出,请把hostname的输出,加到 /etc/hosts里面去,如下:

    127.0.0.1 {hostname 命令的输出}

  • 梦渊 25天前
    引用 5
    x86 请你执行下面个命令看下: 1. ```hostname``` 2. ```cat /etc/hosts``` 如果 ```/etc/hosts```里面,没有包含```hostname` ...
    谢谢!已经解决啦
返回