13 Eylül 2012 Perşembe

Confluence Increase Maximum Heap Size


You can only view Maximum Heap Size  from Confluence > Administration > System Information.

To Edit:

Do not set your memory using CATALINA_OPTS this is overridden by JAVA_OPTS.
On Linux
  • In the unpacked Confluence standalone directory, edit the file bin/setenv.sh
  • Edit the line beginning with JAVA_OPTS= substituting new values for -Xms (starting memory) and -Xmx (maximum memory)
  • Leave the rest of the options in that line unchanged
An example of a minimal setting for a large system - max heap size is set to 1Gb :
JAVA_OPTS="-Xmx1024m $JAVA_OPTS -Djava.awt.headless=true "

Reference

FishEye Upgrade Guide


1. Download Fisheye
2. Extract the new FishEye archive into a directory such as <New FishEye home directory>.
3. Shut down the old FishEye instance if it is running.
4. Copy <FishEye home directory>/config.xml to <New FishEye home directory>.
5. Copy  the <FishEye home directory>/var directory to <New FishEye home directory>/var.
6. Copy the <FishEye home directory>/cache directory to <New FishEye home directory>/cache.
7. Start FishEye from the new installation by running <New FishEye home directory>/bin/run.sh.

linux commands:

wget -c http://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.0.zip

unzip fisheye-2.8.0.zip

<FishEye home directory>/bin ./stop.sh

cp <FishEye home directory>/config.xml <New FishEye home directory>/config.xml

<New FishEye home directory> rm -rf var

<New FishEye home directory> mkdir var

cp <FishEye home directory>/var/* <New FishEye home directory>/var/*

<New FishEye home directory> mkdir cache

cp <FishEye home directory>/cache/* <New FishEye home directory>/cache/*

<New FishEye home directory>/bin ./run.sh

Go to your fisheye 2.8, ex: http://localhost:8060/

12 Eylül 2012 Çarşamba

'java.sql.SQLException Got error 28 from storage engine' Error when Viewing a Page

Symptoms:

Viewing a page fails with this stack trace found in the atlassian-confluence.log:
...
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute query; uncategorized SQLException for SQL []; SQL state [HY000]; error code [1030]; Got error 28 from storage engine; nested exception is java.sql.SQLException: Got error 28 from storage engine
Caused by: java.sql.SQLException: Got error 28 from storage engine
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1072)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)
...
Cause:

MySQL database server has no space left to work in its tmp directory.
Resolution:

Verify whether there is sufficient disk space on the MySQL database server.

Reference

30 new and updated Confluence tutorials



We now have 11 new and 19 updated Confluence tutorials – a great resource for plugin developers, nicely timed with the release of Confluence 4.3.
New Confluence tutorials:

Working with the Tasks REST API in Confluence

Sending Emails in a Plugin

Posting notifications in Confluence

Preformatted Table – Example of a User Macro

Panel Preformatted with Specific Colours – Example of a User Macro

Adding an Option to the Editor Insert Menu

Adding Keyboard Shortcuts to Confluence

Writing Integration Tests for your Plugin (to be published after review)

Altering Confluence page output using a Pipeline Transformer module (to be published after completion, some time in October)

Writing Soy Templates (to be published after review)

Defining a Pluggable Service in a Confluence Plugin (to be published after completion, some time in September)

Updated Confluence tutorials:

Extending Autoconvert

Adding Menu Items to Confluence

Creating a Cross-Platform Admin Configuration Form

Writing Macros for pre-4.0 versions of Confluence

Preventing XSS issues with macros in Confluence 4.0

Creating a new Confluence Macro

Extending the Macro Property Panel

Writing a Confluence Theme

Writing Unit Tests for your Plugin

Writing a Macro Using JSON

Developing Technical Documentation on Confluence Wiki

Developing a Knowledge Base on Confluence Wiki

Searching using the V2 Search API (in progress)

Writing a search result renderer (in progress)

Adding a Custom Action to Confluence (to be published after review)




11 Eylül 2012 Salı

confluence suddenly unusable -- java error

System Error
A system error has occurred — our apologies!
For immediate troubleshooting, consult our knowledge base for a solution.
If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:
a description of your problem and what you were doing at the time it occurred
a copy of the error and system information found below
a copy of the application logs (if possible).
Your Confluence administrator can use the support request form to create a support ticket which will include this information.
We will respond as promptly as possible.
Thank you!
Return to site homepage…
The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.NullPointerException
Cause
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
caused by: java.lang.NullPointerException
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)

If you get this error message, permission error may cause this error.
To solve it,
1. Go to your confluence home directory
2. list all items with ls -al

testwww1:/usr/local/confluence-data# ls -al
total 152
drwx--S---  19 confluence confluence  4096 2012-08-20 10:27
(...)
drwxr-sr-x   2 root       confluence  4096 2012-07-10 15:41 plugins-cache

3. Then, (Our) Confluence is running with confluence user, so permissions were wrong (without writing for group). When I changed owner with:

chown -R confluence:confluence confluence
chown -R confluence:confluence confluence-data
 and restarted Confluence with
/etc/init.d/confluence restart
 it raised up and is working. Hope you will find it useful :)

4 Eylül 2012 Salı

How to add a facebook like button in a Confluence page?

1. You should create the code from the facebook developers' page for the page that you want to like.

          http://developers.facebook.com/docs/reference/plugins/like/


















2. Copy the generated code.
3. Create a confluence page or open editing for an existing one. Add a html-include macro.
4. Paste the copied code into it, and save the page.







5. Here it is!






Similiarly, you can add twitter follow button.

https://twitter.com/about/resources/buttons