简单的rancher server 启动失败,显示连接cattle,运行命令为: docker run -d -p 8085:8080 rancher/server:stable

部分日志如下:  rancher 运行起来很慢,某一次启动容器可以成功,但是页面缓慢、最终卡死     2018-05-08 03:24:58,309 INFO    [main] [ConsoleStatus] Starting [90/93]: VolumeStoragePoolMapActivate  2018-05-08 03:24:58,309 INFO    [main] [ConsoleStatus] Starting [91/93]: VolumeStoragePoolMapRemove  2018-05-08 03:24:58,309 INFO    [main] [ConsoleStatus] Starting [92/93]: WebhookServiceLauncher  2018-05-08 03:24:58,309 INFO    [main] [ConsoleStatus] Starting [93/93]: project.template.reload  time="2018-05-08T03:24:58Z" level=info msg="Starting rancher-compose-executor" version=v0.14.28  time="2018-05-08T03:24:58Z" level=fatal msg="Unable to create event router" error="Get http://localhost:8080/v2-beta: dial tcp [::1]:8080: getsockopt: connection refused"  time="2018-05-08T03:24:59Z" level=fatal msg="Failed to configure cattle client: Get http://localhost:8080/v2-beta: dial tcp [::1]:8080: connect: connection refused"     2018-05-08 04:50:38,154 ERROR [:] [] [] [] [igurationSource] [c.n.config.AbstractPollingScheduler ] Error getting result from polling source org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object     at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:114)     at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)     at com.netflix.config.sources.JDBCConfigurationSource.getConnection(JDBCConfigurationSource.java:143)     at com.netflix.config.sources.JDBCConfigurationSource.load(JDBCConfigurationSource.java:105)     at com.netflix.config.sources.JDBCConfigurationSource.poll(JDBCConfigurationSource.java:88)     at io.cattle.platform.archaius.sources.LazyJDBCSource.poll(LazyJDBCSource.java:31)     at com.netflix.config.AbstractPollingScheduler$1.run(AbstractPollingScheduler.java:163)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)     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) Caused by: java.util.NoSuchElementException: Timeout waiting for idle object     at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1174)     at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)     ... 13 common frames omitted time="2018-05-08T04:50:44Z" level=info msg="Waiting for handler registration (1/2)" service=gms  2018-05-08 04:58:25,149 ERROR [:] [] [] [] [igurationSource] [c.n.c.s.JDBCConfigurationSource     ] An error occured on closing the connection java.sql.SQLException: Already closed.     at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:114)     at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:191)     at com.netflix.config.sources.JDBCConfigurationSource.close(JDBCConfigurationSource.java:174)     at com.netflix.config.sources.JDBCConfigurationSource.load(JDBCConfigurationSource.java:117)     at com.netflix.config.sources.JDBCConfigurationSource.poll(JDBCConfigurationSource.java:88)     at io.cattle.platform.archaius.sources.LazyJDBCSource.poll(LazyJDBCSource.java:31)     at com.netflix.config.AbstractPollingScheduler$1.run(AbstractPollingScheduler.java:163)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)     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) time="2018-05-08T04:54:15Z" level=fatal msg="Exiting go-machine-service: Get http://localhost:8080/v2-beta: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" service=gms  FATAL: Exiting due to failed cluster check-in 2018-05-08 04:58:28,141 ERROR [:] [] [] [] [igurationSource] [c.n.config.AbstractPollingScheduler ] Error getting result from polling source java.sql.SQLNonTransientConnectionException: (conn:6) Connection timed out     at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:137)     at org.mariadb.jdbc.internal.util.ExceptionMapper.getException(ExceptionMapper.java:101)     at org.mariadb.jdbc.internal.util.ExceptionMapper.throwAndLogException(ExceptionMapper.java:77)     at org.mariadb.jdbc.MariaDbStatement.executeQueryEpilog(MariaDbStatement.java:224)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal(MariaDbServerPreparedStatement.java:411)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.execute(MariaDbServerPreparedStatement.java:361)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeQuery(MariaDbServerPreparedStatement.java:342)     at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)     at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)     at com.netflix.config.sources.JDBCConfigurationSource.load(JDBCConfigurationSource.java:107)     at com.netflix.config.sources.JDBCConfigurationSource.poll(JDBCConfigurationSource.java:88)     at io.cattle.platform.archaius.sources.LazyJDBCSource.poll(LazyJDBCSource.java:31)     at com.netflix.config.AbstractPollingScheduler$1.run(AbstractPollingScheduler.java:163)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)     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) Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Connection timed out     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.throwErrorWithQuery(AbstractQueryProtocol.java:960)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery(AbstractQueryProtocol.java:591)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal(MariaDbServerPreparedStatement.java:399)     ... 15 common frames omitted Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Could not read packet: Read timed out Query is: SELECT distinct name, value FROM setting     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1031)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1002)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery(AbstractQueryProtocol.java:588)     ... 16 common frames omitted Caused by: java.net.SocketTimeoutException: Read timed out     at java.net.SocketInputStream.socketRead0(Native Method)     at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)     at java.net.SocketInputStream.read(SocketInputStream.java:170)     at java.net.SocketInputStream.read(SocketInputStream.java:141)     at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)     at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)     at java.io.BufferedInputStream.read(BufferedInputStream.java:345)     at org.mariadb.jdbc.internal.packet.read.ReadPacketFetcher.getReusableBuffer(ReadPacketFetcher.java:176)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1022)     ... 18 common frames omitted 2018-05-08 04:58:29,752 ERROR   [pool-4-thread-1] [ConsoleStatus] Check-in failed org.jooq.exception.DataAccessException: SQL [update `cluster_membership` set `cluster_membership`.`heartbeat` = ? where `cluster_membership`.`uuid` = ?]; (conn:42) Connection timed out     at org.jooq.impl.Utils.translate(Utils.java:1287)     at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:495)     at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:326)     at org.jooq.impl.AbstractDelegatingQuery.execute(AbstractDelegatingQuery.java:140)     at io.cattle.platform.hazelcast.membership.dao.impl.ClusterMembershipDAOImpl.checkin(ClusterMembershipDAOImpl.java:32)     at io.cattle.platform.hazelcast.membership.DBDiscovery.checkin(DBDiscovery.java:174)     at io.cattle.platform.hazelcast.membership.DBDiscovery.doRun(DBDiscovery.java:163)     at org.apache.cloudstack.managed.context.NoExceptionRunnable.runInContext(NoExceptionRunnable.java:15)     at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)     at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)     at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:108)     at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)     at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)     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) Caused by: java.sql.SQLNonTransientConnectionException: (conn:42) Connection timed out     at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:137)     at org.mariadb.jdbc.internal.util.ExceptionMapper.getException(ExceptionMapper.java:101)     at org.mariadb.jdbc.internal.util.ExceptionMapper.throwAndLogException(ExceptionMapper.java:77)     at org.mariadb.jdbc.MariaDbStatement.executeQueryEpilog(MariaDbStatement.java:224)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal(MariaDbServerPreparedStatement.java:411)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.execute(MariaDbServerPreparedStatement.java:361)     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)     at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)     at org.jooq.tools.jdbc.DefaultPreparedStatement.execute(DefaultPreparedStatement.java:194)     at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:376)     at org.jooq.impl.AbstractStoreQuery.execute(AbstractStoreQuery.java:289)     at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:322)     ... 17 common frames omitted Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Connection timed out     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.throwErrorWithQuery(AbstractQueryProtocol.java:960)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery(AbstractQueryProtocol.java:591)     at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal(MariaDbServerPreparedStatement.java:399)     ... 24 common frames omitted Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Could not read packet: Read timed out Query is: update `cluster_membership` set `cluster_membership`.`heartbeat` = ? where `cluster_membership`.`uuid` = ?, parameters [1525755353344,'54809bef-e497-4a4b-b20e-5ed1528ff5c7']     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1031)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1002)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executePreparedQuery(AbstractQueryProtocol.java:588)     ... 25 common frames omitted Caused by: java.net.SocketTimeoutException: Read timed out     at java.net.SocketInputStream.socketRead0(Native Method)     at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)     at java.net.SocketInputStream.read(SocketInputStream.java:170)     at java.net.SocketInputStream.read(SocketInputStream.java:141)     at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)     at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)     at java.io.BufferedInputStream.read(BufferedInputStream.java:345)     at org.mariadb.jdbc.internal.packet.read.ReadPacketFetcher.getReusableBuffer(ReadPacketFetcher.java:176)     at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1022)     ... 27 common frames omitted time="2018-05-08T04:58:21Z" level=info msg="Starting rancher-compose-executor" version=v0.14.28  time="2018-05-08T04:58:45Z" level=fatal msg="Unable to create event router" error="Get http://localhost:8080/v2-beta: read tcp [::1]:45330->[::1]:8080: read: connection reset by peer"  time="2018-05-08T04:58:45Z" level=fatal msg="Failed to configure cattle client: Get http://localhost:8080/v2-beta: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"  2018/05/08 04:58:59 http: proxy error: net/http: request canceled 2018/05/08 04:58:59 http: proxy error: read tcp [::1]:46176->[::1]:8081: read: connection reset by peer time="2018-05-08T04:59:00Z" level=fatal msg="Parent process went away. Shutting down."  time="2018-05-08T04:59:00Z" level=fatal msg="Failed to configure cattle client: Bad response statusCode [500]. Status [500 Internal Server Error]. Body: [] from [http://localhost:8080/v2-beta]" 
已邀请:
别用8085 换个端口;

要回复问题请先登录注册