uzzal2k5 / polis_container

4 stars 1 forks source link

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) on PolisMath #1

Open uzzal2k5 opened 6 years ago

uzzal2k5 commented 6 years ago

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 18-04-25 10:12:39 fde8e03be878 INFO [polismath.poller:23] - Polling :moderation > 1523786901619 18-04-25 10:12:39 fde8e03be878 INFO [polismath.components.postgres:116] - modpoll 1523786901619 18-04-25 10:12:39 fde8e03be878 ERROR [polismath.components.postgres:124] - moderation polling failed The server does not support SSL. 18-04-25 10:12:39 fde8e03be878 INFO [polismath.poller:23] - Polling :votes > 1523786901644 18-04-25 10:12:39 fde8e03be878 INFO [polismath.components.postgres:100] - poll 1523786901644 18-04-25 10:12:39 fde8e03be878 ERROR [polismath.components.postgres:107] - polling failed The server does not support SSL. org.postgresql.util.PSQLException: The server does not support SSL. at org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:307) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:105) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:136) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:397) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at clojure.java.jdbc$get_connection.invokeStatic(jdbc.clj:272) at clojure.java.jdbc$get_connection.invoke(jdbc.clj:193) at polismath.components.postgres$poll.invokeStatic(postgres.clj:102) at polismath.components.postgres$poll.invoke(postgres.clj:97) at polismath.poller$poll$fn46603$state_machine17687auto__46632$fn46637.invoke(poller.clj:21) at polismath.poller$poll$fn__46603$state_machine17687auto__46632.invoke(poller.clj:21) at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973) at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972) at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977) at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975) at clojure.core.async.impl.ioc_macros$takeBANG$fn17705.invoke(ioc_macros.clj:986) at clojure.core.async.impl.channels.ManyToManyChannel$fn12637.invoke(channels.clj:265) at clojure.lang.AFn.run(AFn.java:22) 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) 18-04-25 10:12:40 fde8e03be878 INFO [polismath.poller:23] - Polling :moderation > 1523786901619 18-04-25 10:12:40 fde8e03be878 INFO [polismath.components.postgres:116] - modpoll 1523786901619 18-04-25 10:12:40 fde8e03be878 ERROR [polismath.components.postgres:124] - moderation polling failed The server does not support SSL. 18-04-25 10:12:40 fde8e03be878 INFO [polismath.poller:23] - Polling :votes > 1523786901644 18-04-25 10:12:40 fde8e03be878 INFO [polismath.components.postgres:100] - poll 1523786901644 18-04-25 10:12:40 fde8e03be878 ERROR [polismath.components.postgres:107] - polling failed The server does not support SSL. org.postgresql.util.PSQLException: The server does not support SSL. at org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:307) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:105) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:136) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:397) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at clojure.java.jdbc$get_connection.invokeStatic(jdbc.clj:272) at clojure.java.jdbc$get_connection.invoke(jdbc.clj:193) at polismath.components.postgres$poll.invokeStatic(postgres.clj:102) at polismath.components.postgres$poll.invoke(postgres.clj:97) at polismath.poller$poll$fn46603$state_machine17687auto__46632$fn46637.invoke(poller.clj:21) at polismath.poller$poll$fn46603$state_machine17687auto__46632.invoke(poller.clj:21) at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973) at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972) at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977) at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975) at clojure.core.async.impl.ioc_macros$takeBANG$fn__17705.invoke(ioc_macros.clj:986) at clojure.core.async.impl.channels.ManyToManyChannel$fn12637.invoke(channels.clj:265) at clojure.lang.AFn.run(AFn.java:22) 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) 18-04-25 10:12:41 fde8e03be878 INFO [polismath.poller:23] - Polling :moderation > 1523786901619 18-04-25 10:12:41 fde8e03be878 INFO [polismath.components.postgres:116] - modpoll 1523786901619 18-04-25 10:12:41 fde8e03be878 ERROR [polismath.components.postgres:124] - moderation polling failed The server does not support SSL. 18-04-25 10:12:41 fde8e03be878 INFO [polismath.poller:23] - Polling :votes > 1523786901644 18-04-25 10:12:41 fde8e03be878 INFO [polismath.components.postgres:100] - poll 1523786901644 18-04-25 10:12:41 fde8e03be878 ERROR [polismath.components.postgres:107] - polling failed The server does not support SSL. org.postgresql.util.PSQLException: The server does not support SSL. at org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:307) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:105) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:136) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:397) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at clojure.java.jdbc$get_connection.invokeStatic(jdbc.clj:272) at clojure.java.jdbc$get_connection.invoke(jdbc.clj:193) at polismath.components.postgres$poll.invokeStatic(postgres.clj:102) at polismath.components.postgres$poll.invoke(postgres.clj:97)

szymonkochanski commented 5 years ago

Hi, I have the same problem with ERROR [polismath.components.postgres:124] - moderation polling failed The server does not support SSL. I was wondering if you figured out how to fix it.

szymonkochanski commented 5 years ago

Based on https://github.com/pol-is/polisServer/issues/44 The issue goes away by setting DATABASE_URL: postgres://polis:polis@polisdb:5432/polis?sslmode=disable for Polis Math container in docker-compose.yml