Cannot attach file ****.pdf: Unknown server error (413).


Plugin unable to attach file to the project if file size larger than 1 MB.

The limit is set to 20 MB.

What's can be wrong?

9 answers

1 accepted

That was our fault - the problem is in nginx configuration.

While you didn't post the answer here, I assume that it was simply setting client_max_body_size in your nginx config. That certainly solved things for us.

We had the same problem when we moved the system from Windows to Centos with nginx, to resolve it just edit your nginx.conf file which should be somewhere here:


In the http section add the client max body size

client_max_body_size 10M;

If you have more websites running, you can also add this in your jira conf or confluence config file.


Can you post the exception details?

How/where can I get exception details?

log/atlassian-jira.log does not contain any similar to plugin exception information.

may be the log from the tomcat logs directory /<jira-installation-dir>/logs. You will find a lot of logs there like access.log, etc

Could it be possible that a network applicance or proxy server could be throwing the 413? Can you verify the presence of either of those? Could yo hit the machine via localhost direct to port and try the same operation?

Hi Alexandr!

Please report this on the Bitbucket repository of Documents:

Then someone from support will get in touch with you.

Thank you,


access.log does not contain any plugin exception info

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot