Tag: Atlassian

  • Confluence 5.4.2 installation problem – Confluence not starting post install

    This is not something I’ve hit before, however this is my first time installing Confluence 5.4.2 x32 on a Exigent VPS account. Post the installation, I got the message indicating that the service has started and you should connect to it to finish the configuration.

    However, nothing was found to be running on the default port of 8090, so I checked the catalina.out file in the logs folder to determine what was written. It was showing the lines below;

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    At this point I figured I needed to change the amount of memory being allocated to java during startup so I went looking to see where this was being set from. Turns out its in the setenv.sh file in the bin folder.

    On the first line of the file, change the -Xmx512m to something a little smaller, if your running on a VPS that doesn’t have enough available memory to let it have 512Mb of ram. Save the change and fire it up via “start-confluence.sh” and it should load up fine.

    EDIT: It’s safe to say that my low end VPS account cannot really run the Confluence install, as it failed to create the database in MySQL and put the box under serious load due to all memory being consumed, which subsequently pushed out the load average. See below;

    top – 09:56:16 up 45 days, 16:50, 3 users, load average: 70.49, 37.55, 15.18
    Tasks: 70 total, 3 running, 67 sleeping, 0 stopped, 0 zombie
    Cpu(s): 12.1%us, 87.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 1048576k total, 1048576k used, 0k free, 0k buffers
    Swap: 0k total, 0k used, 0k free, 0k cached

    I gave it a go nonetheless 🙂

  • Confluence 5.4.2 x64 installation error

    I was attempting an installation of Confluence 5.4.2 x64 from the binary file that can be executed and it failed like below;

    root@hostname:/home/username# ./atlassian-confluence-5.4.2-x64.bin
    Unpacking JRE …
    Starting Installer …
    ./atlassian-confluence-5.4.2-x64.bin: 466: /home/username/atlassian-confluence-5.4.2-x64.bin.17671.dir/jre/bin/java: not found

    I’ve seen this problem before with another product, so I knew immediately what the problem is. It’s due to executing the x64 version on a 32bit Linux.

    Go download the 32bit version of the file and execute it. It will work.

  • Atlassian Support resolved Confluence issues

    Should post an update with Confluence and mysql issues I was having. After working with Confluence Support we managed to resolve the problem and get things working as expected.

    I performed another install today at work and it went without a hitch based on the things I already knew and had resolved.

    All good.

  • Confluence issues

    Just as get a few steps ahead, I hit something else. Currently if I shutdown my confluence instance, and start up using the supplied catalina.sh (run|stop) I get the following error;

    SEVERE: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1e648bd]) and a value of type [org.dom4j.DocumentFactory] (value [org.dom4j.DocumentFactory@1b1acc3]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.

    Of course kb says you can ignore it, of course that’s no problem except that when I do get this error after first restart the web application no longer works and I get http 404 type errors. Thus the installation is broken. This error happened right after I got the following one;

    org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.core.BodyContent#98322]; SQL []; Duplicate entry '98322' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '98322' for key 'PRIMARY'
    
    at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:110)
    
    caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '98322' for key 'PRIMARY'
    
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    Which is not fixed by the work around of setting a value in my.cnf as per the kb.

    Hopefully we can get the issues resolved, would really like to use confluence with the mysql backend.

     

  • Mildly annoyed

    I was attempting to setup Confluence to use a mysql database on both Windows and MacOS X. Neither of them would work, same error produced on both. It seems to be fairly common error too.

    Tried to fix it, but didn’t manage to do so. Spent a good 1-2 hours on it I would imagine too. In the end I opened a ticket with Atlassian to assist. Still waiting to hear back regarding that ticket, and it’s now been nearly 24 hours. So hopefully I should hear something tomorrow.

    I am going to build a Linux virtual machine, and host it under that I think. I’ve setup Jira previously for a customer where I use to work, but never played with Confluence until now. Must admit, I quite like it too. So I think if I do get it working with mysql which I am sure we will soon enough, might have to purchase a $10 license.