Amazon ec2 - confluence - upm/gliffy plugin


I have installed Confluence 5.1 standalone on an Amazon ec2 ubuntu image. Confluence works perfectly, but when I try to install upm or gliffy plugin via marketplace or manually, I receive an "unexpected error" message. I use mysql and first I increased the 'max allowed packet size' to 32M, and then to the maximum, but I still receive the error. I don't know if there is something I have to consider with Amazon ec2, but I hope this is an known error for you and you have experience with confluence on Amazon ec2. I would appreciate very much if you can help me as I would start using confluence as soon as possible.

Thank you,
Slaven Imhof

3 answers

1 accepted

1 vote
Accepted answer

Hi Slavin,

If need be, you can update your current ticket with us here:


Problem solved by installing postgresql instead of mysql (see ticket with link above). Everything works perfectly now! Thank you very much!

Hello Slaven Imhof,

To have a better idea about the problem that can be happening could you please check your 'atlassian-confluence.log' (<confluence-home-directory>/logs folder) and then paste here the error stack-trace that appears in the log? This will give us a better idea about what can be the problem.

Just as a side note, would be recommendable also to take a look with the support from Amazon ec2, because as this is not supported platform maybe we can have some problem from the Amazon side here.

Kind Regards,


Hi Luiz

Thank you, I will look at Amazon ec2 support as well. I increased the 'max allowed packet', but I still get the mysql error. Here are some lines form the log file, as the number of characters is limited. Please tell me if you need more.

2013-04-01 17:04:10,938 WARN [pool-4-thread-2] [rest.resources.install.InstallTask] call Unexpected error in install task
-- referer: | url: /rest/plugins/1.0/available/featured | userName: admin
java.lang.RuntimeException: java.lang.RuntimeException: There was a problem evicting or flushing a PluginData object

Caused by: java.lang.RuntimeException: There was a problem evicting or flushing a PluginData object

Caused by: net.sf.hibernate.exception.GenericJDBCException: could not insert: [com.atlassian.confluence.plugin.persistence.PluginData#1245185]

Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (27296117 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

Restart the EC2 instance, it will work.

Hi Slaven,

Would you please check for the size of the currently set max_allowed_packet by querying:

SHOW VARIABLES LIKE 'max_allowed_packet'

What value does it show?

Thank you,
Keith Rockhold

Gliffy Inc.
PO Box 7775 #35255
San Francisco, CA, 94120-7775

877-2-Gliffy (877-245-4339)

Hi Keith

The 'max_allowed_packet' shown is 1048576. As mentioned, I set the value to
the maximum. So what I see now is a value 'slave_max_allowed_packet' which
is 1073741824. Maybe this is an Amazon rds specialty. I don't know how to
change the 'max_allowed_packet'. Is this known to you?

Thank you,

Hi Slaven,

Please check that you do not have more than one my.cnf file. I have seen situations before where it was set in one place, such as /etc/mysql and another file at /etc . If you like, please open a ticket with us at Gliffy, at, and we can work through the problem with you a bit quicker.

It would be remiss of me to mention, you can always install postgresql, which is the recommended database server by Atlassaian, and is not subject to this limitation.


sorry, just noticed you did open a ticket with us.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

61 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you