Skip to content

Instantly share code, notes, and snippets.

@blaggacao
Last active July 15, 2017 22:09
Show Gist options
  • Save blaggacao/cda58c151168ad8b41c95c4415483eee to your computer and use it in GitHub Desktop.
Save blaggacao/cda58c151168ad8b41c95c4415483eee to your computer and use it in GitHub Desktop.
atlantic812:~/rancher# cat docker-compose.yml
version: "2"
services:
rancher-server:
image: rancher/server:stable
restart: unless-stopped
command: ["--db-host", "104.xyz.xyz.xyz", "--db-port", "3306", "--db-name", "cattle", "--db-user", "cattle", "--db-pass", "ERASED"]
environment:
ports:
- "8080:8080"
- "9108:9108"
logging:
driver: json-file
options:
max-file: '2'
atlantic812:~/rancher# docker-compose up
Starting rancher_rancher-server_1
Attaching to rancher_rancher-server_1
rancher-server_1 | CATTLE_AGENT_PACKAGE_HOST_API_URL=/usr/share/cattle/artifacts/host-api.tar.gz
rancher-server_1 | CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL=/usr/share/cattle/artifacts/go-agent.tar.gz
rancher-server_1 | CATTLE_CATTLE_VERSION=v0.181.13
rancher-server_1 | CATTLE_DB_CATTLE_MYSQL_HOST=104.xyz.xyz.xyz
rancher-server_1 | CATTLE_DB_CATTLE_MYSQL_PORT=3306
rancher-server_1 | CATTLE_GRAPHITE_HOST=
rancher-server_1 | CATTLE_HOME=/var/lib/cattle
rancher-server_1 | CATTLE_LOGBACK_OUTPUT_GELF_HOST=
rancher-server_1 | CATTLE_PROMETHEUS_EXPORTER=true
rancher-server_1 | CATTLE_RANCHER_COMPOSE_VERSION=v0.12.5
rancher-server_1 | CATTLE_RANCHER_SERVER_VERSION=v1.6.4
rancher-server_1 | DEFAULT_CATTLE_API_UI_CSS_URL=/api-ui/ui.min.css
rancher-server_1 | DEFAULT_CATTLE_API_UI_JS_URL=/api-ui/ui.min.js
rancher-server_1 | DEFAULT_CATTLE_CATALOG_EXECUTE=true
"url":"https://git.rancher.io/community-catalog.git","branch":"master"},"library":{"url":"https://git.rancher.io/rancher-catalog.git","branch":"${RELEASE}"}}}
rancher-server_1 | DEFAULT_CATTLE_GRAPHITE_HOST=127.0.0.1
rancher-server_1 | DEFAULT_CATTLE_MACHINE_EXECUTE=true
rancher-server_1 | DEFAULT_CATTLE_RANCHER_CLI_LINUX_URL=https://releases.rancher.com/cli/v0.6.2/rancher-linux-amd64-v0.6.2.tar.gz
rancher-server_1 | DEFAULT_CATTLE_RANCHER_COMPOSE_DARWIN_URL=https://releases.rancher.com/compose/v0.12.5/rancher-compose-darwin-amd64-v0.12.5.tar.gz
rancher-server_1 | DEFAULT_CATTLE_RANCHER_COMPOSE_WINDOWS_URL=https://releases.rancher.com/compose/v0.12.5/rancher-compose-windows-386-v0.12.5.zip
rancher-server_1 | DEFAULT_CATTLE_WEBHOOK_SERVICE_EXECUTE=true
source="main.go:196"
rancher-server_1 | time="2017-07-15T22:01:45Z" level=info msg="Listening on :9108" source="main.go:261"
rancher-server_1 | 2017-07-15 22:01:52,933 INFO [main] [ConsoleStatus] Starting DB migration
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,784 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:01:58,785 WARN [main] [liquibase] modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-spec
ify all configuration if this is the case
rancher-server_1 | 2017-07-15 22:02:17,704 ERROR [:] [] [] [] [igurationSource] [c.n.config.AbstractPollingScheduler ] Error getting result from polling source java.sql.SQL
SyntaxErrorException: (conn:2107) Table 'cattle.setting' doesn't exist
rancher-server_1 | Query is: SELECT distinct name, value FROM setting
rancher-server_1 | at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:139) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.internal.util.ExceptionMapper.getException(ExceptionMapper.java:101) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.internal.util.ExceptionMapper.throwAndLogException(ExceptionMapper.java:77) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.MariaDbStatement.executeQueryEpilog(MariaDbStatement.java:224) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.MariaDbClientPreparedStatement.executeInternal(MariaDbClientPreparedStatement.java:232) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.MariaDbClientPreparedStatement.executeQuery(MariaDbClientPreparedStatement.java:177) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) ~[commons-dbcp-1.4.jar:1.4]
rancher-server_1 | at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) ~[commons-dbcp-1.4.jar:1.4]
rancher-server_1 | at com.netflix.config.sources.JDBCConfigurationSource.load(JDBCConfigurationSource.java:107) ~[archaius-core-0.5.14.jar:na]
rancher-server_1 | at com.netflix.config.sources.JDBCConfigurationSource.poll(JDBCConfigurationSource.java:88) ~[archaius-core-0.5.14.jar:na]
rancher-server_1 | at io.cattle.platform.archaius.sources.LazyJDBCSource.poll(LazyJDBCSource.java:31) ~[cattle-framework-archaius-0.5.0-SNAPSHOT.jar:na]
rancher-server_1 | at com.netflix.config.AbstractPollingScheduler$1.run(AbstractPollingScheduler.java:163) ~[archaius-core-0.5.14.jar:na]
rancher-server_1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_72]
rancher-server_1 | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_72]
rancher-server_1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_72]
rancher-server_1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_72]
rancher-server_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_72]
rancher-server_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_72]
rancher-server_1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
rancher-server_1 | Caused by: org.mariadb.jdbc.internal.util.dao.QueryException: Table 'cattle.setting' doesn't exist
rancher-server_1 | Query is: SELECT distinct name, value FROM setting
rancher-server_1 | at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readErrorPacket(AbstractQueryProtocol.java:1115) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1047) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1002) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:174) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | at org.mariadb.jdbc.MariaDbClientPreparedStatement.executeInternal(MariaDbClientPreparedStatement.java:223) ~[mariadb-java-client-1.5.8.jar:na]
rancher-server_1 | ... 14 common frames omitted
rancher-server_1 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment