Problem when running Upsource 1.0 in Docker image

Hi!

Upsource hit 1.0 and I wanted to test it out. After having great success when running Youtrack in a Docker container I thought I'd do the same with Upsource. My Dockerfile is below:

--
FROM java:8

RUN     mkdir /app && \
        cd /app && \
        wget -qq http://download.jetbrains.com/upsource/upsource-1.0.12551.zip && \
        unzip -qq upsource-1.0.12551.zip -d . && \
        rm -f upsource-1.0.12551.zip

VOLUME ["/app/Upsource/data", "/app/Upsource/logs", "/app/Upsource/backup"]

RUN /app/Upsource/bin/upsource.sh configure --launcher -J-Djava.awt.headless=true

EXPOSE 8080

CMD ["/app/upsource/bin/upsource.sh", "run"]
--

After...
[2014-12-12 14:35:52,889]   INFO - gs.logging.Log4jConfigListener - =================================
[2014-12-12 14:35:52,889]   INFO - gs.logging.Log4jConfigListener - VCS Settings web application started
[2014-12-12 14:35:52,890]   INFO - .web.servlet.DispatcherServlet - FrameworkServlet 'VcsSettingsService': initialization completed in 8852 ms
* Starting VCS Settings
* Starting Upsource Analyzer

.... things start spinning out of control. Here's an excerpt. The full log is attached.

[2014-12-12 14:36:22,304]  DEBUG - rver.settings.hub.HubConnector - Updating 0 resources...
upsource-analyzer: [Upsource Analyzer Error] [2014-12-12 14:36:24,129] WARN     New I/O worker #3 tax.driver.core.RequestHandler - /127.0.0.1:10030 replied with server error (java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible), trying next host.
upsource-analyzer: [Upsource Analyzer Error] [2014-12-12 14:36:24,289] WARN     New I/O worker #3 tax.driver.core.RequestHandler - /127.0.0.1:10030 replied with server error (java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible), trying next host.
upsource-analyzer: [Upsource Analyzer Error] [2014-12-12 14:36:24,292] ERROR APP-WRAPPER] Proxy 1 atabase.datastax.WriteExecutor - Error writing to cassandra
upsource-analyzer: [Upsource Analyzer Error] com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:65)
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:259)
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:79)
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.WriteSessionWrapper.prepare(WriteSessionWrapper.java:42)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory$3.convert(StatementFactory.java:78)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory$3.convert(StatementFactory.java:75)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.ThroughDbMediator$1.consume(ThroughDbMediator.java:39)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.ThroughDbMediator$1.consume(ThroughDbMediator.java:36)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.WriteExecutor.execute(WriteExecutor.java:31)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.ThroughDbMediator.submitSync(ThroughDbMediator.java:36)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory.fromSelect(StatementFactory.java:75)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory.access$400(StatementFactory.java:16)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory$2.get(StatementFactory.java:55)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory$2.get(StatementFactory.java:43)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory.createSelect(StatementFactory.java:137)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.StatementFactory.createSelect(StatementFactory.java:67)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.CqlDynamicTable.iterateRow(CqlDynamicTable.java:61)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.database.datastax.CqlDynamicTable.iterateRow(CqlDynamicTable.java:20)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.db.impl.BufferingTable.iterateRow(BufferingTable.java:94)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.server.core.db.SystemDatabase.getDatabaseVersion(SystemDatabase.java:94)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.cli.FirstTimeInit.run(FirstTimeInit.java:89)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.<init>(UpsourceApplicationEnvironment.java:103)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.cli.UpsourceApplicationEnvironmentDaemonBase.startDaemon(UpsourceApplicationEnvironmentDaemonBase.java:12)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.cli.UpsourceAnalyzerDaemon.startDaemon(UpsourceAnalyzerDaemon.java:51)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:145)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:206)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
upsource-analyzer: [Upsource Analyzer Error]    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
upsource-analyzer: [Upsource Analyzer Error]    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
upsource-analyzer: [Upsource Analyzer Error]    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
upsource-analyzer: [Upsource Analyzer Error]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
upsource-analyzer: [Upsource Analyzer Error]    at java.lang.Thread.run(Thread.java:745)
upsource-analyzer: [Upsource Analyzer Error] Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:102)
upsource-analyzer: [Upsource Analyzer Error]    at com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:176)
upsource-analyzer: [Upsource Analyzer Error]    ... 3 more
upsource-analyzer: [Upsource Analyzer Error] [2014-12-12 14:44:47,553] ERROR APP-WRAPPER] Proxy 1 end.cli.UpsourceAnalyzerDaemon - Unable to start daemon



Attachment(s):
upsource.log.zip
1 comment

Hello,

I've found that's the bug in cassandra 2.1.1: https://issues.apache.org/jira/browse/CASSANDRA-8209

Please use Java 1.7, we'll fix compatibility with Java 1.8 in Upsource 1.1.

You may track the progress here: https://youtrack.jetbrains.com/issue/UP-2787

P.S.
  "upsource.sh configure" step is not required, headless mode is enabled by default

0

Please sign in to leave a comment.