Confluence

Confluence Installation and Operation

Install Confluence 6.5.19

environment

  • The only supported OpenJDK vendor is AdoptOpenJDK
  • Need to install fontconfig

JVM parameter tweaks

Update /data/atlassian-confluence-6.15.9/bin/setenv.sh

CATALINA_OPTS="-Xms4096m -Xmx16384m -XX:+UseG1GC ${CATALINA_OPTS}"
CATALINA_OPTS="-Dsynchrony.enable.xhr.fallback=true -Dsynchrony.memory.max=4g ${CATALINA_OPTS}"

Flow

graph TB; A[Install AdoptOpenJDK] --> B[Install fontconfig] B --> C[Start Tomcat] C --> D[Stop Tomcat] D --> E[Write down server id] E --> F[Replace Jar] F --> G[Get license] G --> C

Steps

  • Download confluence from Atlassian official site
  • Open web browser at http://10.5.1.5:8090
  • Follow the installation guide and write down server id.
  • Stop confluence
  • Replace atlassian-extras-decoder-v2-3.4.1.jar under /data/atlassian-confluence-6.15.9/confluence/WEB-INF/lib
  • Replace atlassian-universal-plugin-manager-plugin-3.0.jar under /data/atlassian-confluence-6.15.9/confluence/WEB-INF/atlassian-bundled-plugins
  • Generate license in base64 format
    • SEN-LXXXXXXXX should be picked up using randomized digits
    • Here’s an example
    Description=Confluence
    NumberOfUsers=-1
    CreationDate=2019-04-05
    ContactName=confluence
    conf.active=true
    [email protected]
    Evaluation=false
    conf.LicenseTypeName=COMMERCIAL
    MaintenanceExpiryDate=2337-12-25
    conf.NumberOfClusterNodes=0
    SEN=SEN-L14792638
    Organisation=Some TEAM
    ServerID=BZXH-50E1-CFZK-9ABN
    LicenseID=LIDSEN-L14232670
    LicenseExpiryDate=2337-12-25
    PurchaseDate=2019-03-05
    
  • Start confluence and paste the license in base64
  • If confluence is behind a proxy, need to update conf/server.xml
    <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                   maxThreads="48" minSpareThreads="10"
                   enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                   protocol="org.apache.coyote.http11.Http11NioProtocol" address="10.5.1.6"
                   scheme="https" secure="true" proxyName="wiki.henryzhou.com" proxyPort="443"/>
    

FAQ

Decode failure

  1. Remove character X02f3 at the end