Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence - Uploading attachement results in error

Juri Begoihn May 15, 2019

Hi,

I have multiple spaces in Confluence and one group that has the permissions to manage the attachements in these spaces.

In some of the spaces an error occurs when uploading an attachment. It says "Error creating temp file in folder ...".

I found suggestions for a solultion regarding the permissions of the users and the disk space. But users who have the same permissions in different spaces can upload attachements in one space but not in the other.

Do you have ideas or hints how to solve this problem?

2 answers

0 votes
Milena Gonzalez June 24, 2020

Hi

 

I am presenting the same error, I would like to know what your solution was? @Juri Begoihn 

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2019

Hello there Juri!

As I understand, users are currently unable to upload attachments to Confluence. Is that right?

The error you showed us can be caused by some factors:

  1. Not enough Disk Space
  2. Not enough Permissions under the <confluence-home> folder

 

Both have something to do with the underlying structure rather than Confluence itself. We can start by checking the Available Disk Space in the drive where <confluence-home> is located.

After that, we can also check Permissions set for <confluence-home>. The user that runs Confluence must have full Read, Write and Execute permissions for that folder.

 

Also, could you clarify a few points for us? Here they are:

  1. Is the file upload working for other users?
  2. When did you first notice this issue?
  3. Are users unable to upload any kind of file?
  4. Are users able to upload files in newly created pages in the affected space?

Looking forward to your reply Juri!

Juri Begoihn May 27, 2019

Hello Diego,

thank you for your reply and excuse my belated answer.

The two factors "disk space" and "permissions" have already been checked.

 

The points you asked me to clarify:

1. The file upload in the spaces works for no user, but the same users can upload files in other spaces.

 

2. Two or three months ago we encountered this problem the first time. The solution that worked at this newly created space was to delete the whole space and create it again.

3. We found out with pdfs, but docx, jpg and png also does not work.

4. No, they aren't.

 

I hope, this helps you.

Regards

Juri

Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 28, 2019

Hey there!

Thanks for replying Juri. Make sure that the permissions and ownership of Both <confluence-home> and <confluence-install> folders are not under root, but under the user Designated to run Confluence.

For you to check this, you can use this command after navigating to the folders:

ls -la 

If you Do Not have the correct ownership and permissions, you can use the following commands:

chown -R confluence.confluence <confluence-install-folder>
chown -R confluence.confluence <confluence-home-folder>
chmod -R u=rwx,go-rwx <confluence-install-folder>
chmod -R u=rwx,go-rwx <confluence-home-folder>

Please, keep in mind that the confluence user that we specified in the excerpt above is simply a Placeholder for actual username used in your instance. Also, keep in mind that Confluence Must Be Down for this to be done.

You can also fetch some data for troubleshooting with the following command:

df -h <confluence-install>/folder
df -h <confluence-home>/folder

After that, you could also perform a Re-index From Scratch:

  1. Shutdown Confluence.
  2. Perform a backup of the home directory (so we can restore any content if required).
  3. Remove the following directories
    • <confluence-home>/index/
    • <confluence-home>/journal/

  4. Restart Confluence
  5. Go to Cog Icon > General Configuration
  6. Select Content Indexing
  7. Click Rebuild
  8. Wait for the process to finish

Reference:

Content Index Administration

How to Rebuild the Content Indexes From Scratch on Confluence Server

 

Also, keep an eye for write.lock files in your folders. Incorrect ownership of anything in the <confluence-home> and <confluence-install> folders can be root cause of many problems.

Further, we also try the Safe Mode and check if the issue is being caused by a third-party application:

Disabling and enabling apps

 

Let us hear from you Juri!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events