Skip to content

Instantly share code, notes, and snippets.

@bencomp
Created May 13, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencomp/d31c3bf0f3b81aabab1d98d847245686 to your computer and use it in GitHub Desktop.
Save bencomp/d31c3bf0f3b81aabab1d98d847245686 to your computer and use it in GitHub Desktop.
Trellis-LDP startup
$ docker-compose -f ~/serverconf/bencomp/files/docker-compose.trellis.yml up
files_trellisdb_1 is up-to-date
Starting files_trellis_1 ... done
Attaching to files_trellisdb_1, files_trellis_1
trellisdb_1 |
trellisdb_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
trellisdb_1 |
trellisdb_1 | 2020-05-13 14:29:53.133 UTC [1] LOG: starting PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
trellisdb_1 | 2020-05-13 14:29:53.133 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
trellisdb_1 | 2020-05-13 14:29:53.134 UTC [1] LOG: listening on IPv6 address "::", port 5432
trellisdb_1 | 2020-05-13 14:29:53.141 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
trellisdb_1 | 2020-05-13 14:29:53.302 UTC [25] LOG: database system was shut down at 2020-05-13 14:29:40 UTC
trellisdb_1 | 2020-05-13 14:29:53.385 UTC [1] LOG: database system is ready to accept connections
trellisdb_1 | 2020-05-13 14:31:00.346 UTC [1] LOG: received smart shutdown request
trellisdb_1 | 2020-05-13 14:31:00.364 UTC [1] LOG: background worker "logical replication launcher" (PID 31) exited with exit code 1
trellisdb_1 | 2020-05-13 14:31:00.365 UTC [26] LOG: shutting down
trellisdb_1 | 2020-05-13 14:31:00.444 UTC [1] LOG: database system is shut down
trellisdb_1 |
trellisdb_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
trellisdb_1 |
trellisdb_1 | 2020-05-13 14:32:18.144 UTC [1] LOG: starting PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
trellisdb_1 | 2020-05-13 14:32:18.144 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
trellisdb_1 | 2020-05-13 14:32:18.145 UTC [1] LOG: listening on IPv6 address "::", port 5432
trellisdb_1 | 2020-05-13 14:32:18.154 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
trellisdb_1 | 2020-05-13 14:32:18.323 UTC [27] LOG: database system was shut down at 2020-05-13 14:31:00 UTC
trellisdb_1 | 2020-05-13 14:32:18.386 UTC [1] LOG: database system is ready to accept connections
trellisdb_1 | 2020-05-13 14:37:00.080 UTC [1] LOG: received smart shutdown request
trellisdb_1 | 2020-05-13 14:37:00.098 UTC [1] LOG: background worker "logical replication launcher" (PID 33) exited with exit code 1
trellisdb_1 | 2020-05-13 14:37:00.104 UTC [28] LOG: shutting down
trellisdb_1 | 2020-05-13 14:37:00.166 UTC [1] LOG: database system is shut down
trellisdb_1 |
trellisdb_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
trellisdb_1 |
trellisdb_1 | 2020-05-13 14:37:28.897 UTC [1] LOG: starting PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
trellisdb_1 | 2020-05-13 14:37:28.898 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
trellisdb_1 | 2020-05-13 14:37:28.898 UTC [1] LOG: listening on IPv6 address "::", port 5432
trellisdb_1 | 2020-05-13 14:37:28.904 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
trellisdb_1 | 2020-05-13 14:37:29.053 UTC [29] LOG: database system was shut down at 2020-05-13 14:37:00 UTC
trellisdb_1 | 2020-05-13 14:37:29.099 UTC [1] LOG: database system is ready to accept connections
trellis_1 | __ ____ __ _____ ___ __ ____ ______
trellis_1 | --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
trellis_1 | -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
trellis_1 | --\___\_\____/_/ |_/_/|_/_/|_|\____/___/
trellis_1 | 2020-05-13 15:51:43,376 INFO [org.tre.fil.FileBinaryService] (main) Storing binaries as files at /opt/trellis/data/binaries
trellis_1 | 2020-05-13 15:51:43,752 INFO [org.tre.ext.db.DBResourceService] (main) Using database persistence with TrellisLDP
trellis_1 | 2020-05-13 15:51:44,187 INFO [org.tre.app.AppUtils] (main) Starting Trellis Database Application
trellis_1 |
trellis_1 |
trellis_1 |
trellis_1 | tttt lllllll lllllll iiii
trellis_1 | ttt:::t l:::::l l:::::l i::::i
trellis_1 | t:::::t l:::::l l:::::l iiii
trellis_1 | t:::::t l:::::l l:::::l
trellis_1 | ttttttt:::::ttttttt rrrrr rrrrrrrrr eeeeeeeeeeee l::::l l::::l iiiiiii ssssssssss
trellis_1 | t:::::::::::::::::t r::::rrr:::::::::r ee::::::::::::ee l::::l l::::l i:::::i ss::::::::::s
trellis_1 | t:::::::::::::::::t r:::::::::::::::::r e::::::eeeee:::::eel::::l l::::l i::::i ss:::::::::::::s
trellis_1 | tttttt:::::::tttttt rr::::::rrrrr::::::re::::::e e:::::el::::l l::::l i::::i s::::::ssss:::::s
trellis_1 | t:::::t r:::::r r:::::re:::::::eeeee::::::el::::l l::::l i::::i s:::::s ssssss
trellis_1 | t:::::t r:::::r rrrrrrre:::::::::::::::::e l::::l l::::l i::::i s::::::s
trellis_1 | t:::::t r:::::r e::::::eeeeeeeeeee l::::l l::::l i::::i s::::::s
trellis_1 | t:::::t ttttttr:::::r e:::::::e l::::l l::::l i::::i ssssss s:::::s
trellis_1 | t::::::tttt:::::tr:::::r e::::::::e l::::::ll::::::li::::::is:::::ssss::::::s
trellis_1 | tt::::::::::::::tr:::::r e::::::::eeeeeeee l::::::ll::::::li::::::is::::::::::::::s
trellis_1 | tt:::::::::::ttr:::::r ee:::::::::::::e l::::::ll::::::li::::::i s:::::::::::ss
trellis_1 | ttttttttttt rrrrrrr eeeeeeeeeeeeee lllllllllllllllliiiiiiii sssssssssss
trellis_1 |
trellis_1 | version: 0.11.2
trellis_1 |
trellis_1 | 2020-05-13 15:51:45,044 INFO [org.fly.cor.int.lic.VersionPrinter] (main) Flyway Community Edition 6.3.1 by Redgate
trellis_1 | 2020-05-13 15:51:45,103 WARN [io.agr.pool] (main) Datasource '<default>': Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | 2020-05-13 15:51:45,112 INFO [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary
trellis_1 | 2020-05-13 15:51:45,133 WARN [io.agr.pool] (Agroal_16788899281) Datasource '<default>': Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | 2020-05-13 15:51:45,136 ERROR [io.qua.application] (main) Failed to start application: org.flywaydb.core.internal.exception.FlywaySqlException:
trellis_1 | Unable to obtain connection from database: Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | -------------------------------------------------------------------------------------------------------------------------------
trellis_1 | SQL State : null
trellis_1 | Error Code : 0
trellis_1 | Message : Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 |
trellis_1 | at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:65)
trellis_1 | at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:80)
trellis_1 | at org.flywaydb.core.Flyway.execute(Flyway.java:449)
trellis_1 | at org.flywaydb.core.Flyway.migrate(Flyway.java:153)
trellis_1 | at io.quarkus.flyway.runtime.FlywayRecorder.migrate(FlywayRecorder.java:57)
trellis_1 | at io.quarkus.flyway.runtime.FlywayRecorder.doStartActions(FlywayRecorder.java:40)
trellis_1 | at io.quarkus.deployment.steps.FlywayProcessor$configureRuntimeProperties41.deploy_0(FlywayProcessor$configureRuntimeProperties41.zig:79)
trellis_1 | at io.quarkus.deployment.steps.FlywayProcessor$configureRuntimeProperties41.deploy(FlywayProcessor$configureRuntimeProperties41.zig:98)
trellis_1 | at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:194)
trellis_1 | at io.quarkus.runtime.Application.start(Application.java:90)
trellis_1 | at io.quarkus.runtime.Application.run(Application.java:228)
trellis_1 | at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:41)
trellis_1 | Caused by: java.sql.SQLException: Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | at io.agroal.pool.ConnectionFactory.connectionSetup(ConnectionFactory.java:215)
trellis_1 | at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:200)
trellis_1 | at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:390)
trellis_1 | at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:372)
trellis_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
trellis_1 | at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:65)
trellis_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
trellis_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
trellis_1 | at java.lang.Thread.run(Thread.java:748)
trellis_1 |
trellis_1 | 2020-05-13 15:51:45,148 WARN [io.qua.arc.impl] (main) An error occurred during delivery of the @BeforeDestroyed(ApplicationScoped.class) event: java.lang.RuntimeException: Error injecting io.vertx.core.Vertx io.quarkus.vertx.runtime.VertxProducer.vertx
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_Bean.create(VertxProducer_Bean.zig:81)
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_Bean.create(VertxProducer_Bean.zig:29)
trellis_1 | at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:80)
trellis_1 | at io.quarkus.arc.impl.ComputingCache$CacheFunction.lambda$apply$0(ComputingCache.java:99)
trellis_1 | at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
trellis_1 | at io.quarkus.arc.impl.ComputingCache.getValue(ComputingCache.java:41)
trellis_1 | at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:25)
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_ClientProxy.arc$delegate(VertxProducer_ClientProxy.zig:144)
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_ClientProxy.arc_contextualInstance(VertxProducer_ClientProxy.zig:191)
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_Observer_undeployVerticles_fda2b2454e6ce0536013345bb7220782b683de7e.notify(VertxProducer_Observer_undeployVerticles_fda2b2454e6ce0536013345bb7220782b683de7e.zig:65)
trellis_1 | at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:282)
trellis_1 | at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:267)
trellis_1 | at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:217)
trellis_1 | at io.quarkus.arc.impl.ArcContainerImpl.shutdown(ArcContainerImpl.java:319)
trellis_1 | at io.quarkus.arc.Arc.shutdown(Arc.java:49)
trellis_1 | at io.quarkus.arc.runtime.ArcRecorder$1.run(ArcRecorder.java:39)
trellis_1 | at io.quarkus.runtime.StartupContext.runAllInReverseOrder(StartupContext.java:69)
trellis_1 | at io.quarkus.runtime.StartupContext.close(StartupContext.java:58)
trellis_1 | at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:274)
trellis_1 | at io.quarkus.runtime.Application.start(Application.java:90)
trellis_1 | at io.quarkus.runtime.Application.run(Application.java:228)
trellis_1 | at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:41)
trellis_1 | Caused by: java.lang.NullPointerException
trellis_1 | at io.quarkus.vertx.core.runtime.VertxCoreProducer.vertx(VertxCoreProducer.java:26)
trellis_1 | at io.quarkus.vertx.core.runtime.VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.create(VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.zig:248)
trellis_1 | at io.quarkus.vertx.core.runtime.VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.create(VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.zig:69)
trellis_1 | at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:80)
trellis_1 | at io.quarkus.arc.impl.ComputingCache$CacheFunction.lambda$apply$0(ComputingCache.java:99)
trellis_1 | at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
trellis_1 | at io.quarkus.arc.impl.ComputingCache.getValue(ComputingCache.java:41)
trellis_1 | at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:25)
trellis_1 | at io.quarkus.vertx.core.runtime.VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.get(VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.zig:128)
trellis_1 | at io.quarkus.vertx.core.runtime.VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.get(VertxCoreProducer_ProducerMethod_vertx_c3372c086117ae1666bc66dfa7ac379ab76c5253_Bean.zig:84)
trellis_1 | at io.quarkus.vertx.runtime.VertxProducer_Bean.create(VertxProducer_Bean.zig:64)
trellis_1 | ... 21 more
trellis_1 |
trellis_1 | 2020-05-13 15:51:45,153 INFO [io.sma.rea.mes.ext.MediatorManager] (main) Cancel subscriptions
trellis_1 | Exception in thread "main" java.lang.RuntimeException: Failed to start quarkus
trellis_1 | at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:280)
trellis_1 | at io.quarkus.runtime.Application.start(Application.java:90)
trellis_1 | at io.quarkus.runtime.Application.run(Application.java:228)
trellis_1 | at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:41)
trellis_1 | Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
trellis_1 | Unable to obtain connection from database: Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | -------------------------------------------------------------------------------------------------------------------------------
trellis_1 | SQL State : null
trellis_1 | Error Code : 0
trellis_1 | Message : Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 |
trellis_1 | at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:65)
trellis_1 | at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:80)
trellis_1 | at org.flywaydb.core.Flyway.execute(Flyway.java:449)
trellis_1 | at org.flywaydb.core.Flyway.migrate(Flyway.java:153)
trellis_1 | at io.quarkus.flyway.runtime.FlywayRecorder.migrate(FlywayRecorder.java:57)
trellis_1 | at io.quarkus.flyway.runtime.FlywayRecorder.doStartActions(FlywayRecorder.java:40)
trellis_1 | at io.quarkus.deployment.steps.FlywayProcessor$configureRuntimeProperties41.deploy_0(FlywayProcessor$configureRuntimeProperties41.zig:79)
trellis_1 | at io.quarkus.deployment.steps.FlywayProcessor$configureRuntimeProperties41.deploy(FlywayProcessor$configureRuntimeProperties41.zig:98)
trellis_1 | at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:194)
trellis_1 | ... 3 more
trellis_1 | Caused by: java.sql.SQLException: Driver does not support the provided URL: jdbc:postgresql://trellisdb:5432/trellisdb
trellis_1 | at io.agroal.pool.ConnectionFactory.connectionSetup(ConnectionFactory.java:215)
trellis_1 | at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:200)
trellis_1 | at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:390)
trellis_1 | at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:372)
trellis_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
trellis_1 | at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:65)
trellis_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
trellis_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
trellis_1 | at java.lang.Thread.run(Thread.java:748)
files_trellis_1 exited with code 1
Stopping files_trellisdb_1 ... done
version: "3"
services:
trellis:
image: trellisldp/trellis-database:latest
environment:
QUARKUS_DATASOURCE_DRIVER: org.postgresql.Driver
QUARKUS_DATASOURCE_URL: "jdbc:postgresql://trellisdb:5432/trellisdb"
QUARKUS_DATASOURCE_USERNAME: trellis
QUARKUS_DATASOURCE_PASSWORD: changeme
QUARKUS_FLYWAY_MIGRATE_AT_START: "true"
TRELLIS_FILE_MEMENTO_PATH: /opt/trellis/data/mementos
TRELLIS_FILE_BINARY_PATH: /opt/trellis/data/binaries
ports:
- 8088:8080
depends_on:
- trellisdb
volumes:
- /Users/companjenba/trellis/data:/opt/trellis/data
- /Users/companjenba/trellis/log:/opt/trellis/log
# Please see note below about the ./etc directory
# - /Users/companjenba/trellis/conf:/opt/trellis/etc
trellisdb:
image: postgres
environment:
POSTGRES_DB: trellisdb
POSTGRES_PASSWORD: changeme
POSTGRES_USER: trellis
PGDATA: /var/lib/postgresql/data/pgdata/mydata
volumes:
- /Users/companjenba/trellis/database:/var/lib/postgresql/data/pgdata/mydata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment