puppet-confluence icon indicating copy to clipboard operation
puppet-confluence copied to clipboard

openjdk 11 - UseGCLogFileRotation not accepted in the JVM

Open pier4r opened this issue 5 years ago • 3 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10
  • Ruby:
  • Distribution: CentOS 7.7
  • Module version: 3.2.0

How to reproduce (e.g Puppet code you use)

Use openjdk 11. Namely

class { 'java':
    package => 'java-11-openjdk',
}

...

class { 'confluence':
    version           => $confversion,
    installdir        => '/opt/atlassian',
    homedir           => '/data/confluence-home',
    javahome          => $facts['java_default_home'],
    jvm_xmx           => '10G',
    jvm_xms           => '2G',
    java_opts         => '-XX:MaxMetaspaceSize=512m -XX:+UseG1GC -Dconfluence.upgrade.recovery.file.enabled=false -Dsynchrony.proxy.healthcheck.disabled -Dsynchrony.memory.max=3G -Dsynchrony.enable.xhr.fallback=true -Datlassian.plugins.enable.wait=300',
    manage_server_xml => 'template',
    tomcat_proxy      => {
            scheme    => 'https',
            proxyName => 'localhost',
            proxyPort => '8009',
    },
}

What are you seeing

Puppet can run but confluence can't.

The problem that confluence notify is the following:

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/opt/atlassian/atlassian-confluence-7.1.1/logs/gc-2020-01-29_16-51-35.log instead.
Unrecognized VM option 'UseGCLogFileRotation'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

In: /opt/atlassian/atlassian-confluence-7.1.1/logs/catalina.out

What behaviour did you expect instead

That confluence could work.

Output log

Any additional information you'd like to impart

We used the module version 3.0.0 , there the log option is not reported. In the version 3.2.0 there is, here: https://github.com/voxpupuli/puppet-confluence/blob/v3.2.0/templates/setenv.sh.erb#L85

My request is whether the module could have

  • either setenv.sh compatible with openjdk 11
  • or a setenv.sh that can be controlled with more granularity, so that one can override default decisions.

pier4r avatar Jan 29 '20 16:01 pier4r

FYI: This is already fixed in the repo, however there was no new release of the module since 2018 (i don't know why). If you want to have a working module in your setup put for example this into your Puppetfile instead of your current entry: mod 'puppet-confluence', :git => 'https://github.com/voxpupuli/puppet-confluence', :ref => '847c6e3e8b05709ec136f503cb4fd4baf30786fc'

timdeluxe avatar May 08 '20 16:05 timdeluxe

confluence (7.4.4) works with openjdk-11 and puppet-confluence 4.0.0

augustocarvalho avatar Sep 25 '20 13:09 augustocarvalho

there was no new release of the module since 2018 (i don't know why).

because no one asked for it / initiated it

igalic avatar Sep 26 '20 11:09 igalic