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?
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:
- Not enough Disk Space
- 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:
- Is the file upload working for other users?
- When did you first notice this issue?
- Are users unable to upload any kind of file?
- Are users able to upload files in newly created pages in the affected space?
Looking forward to your reply Juri!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
- Shutdown Confluence.
- Perform a backup of the home directory (so we can restore any content if required).
- Remove the following directories
- <confluence-home>/index/
- <confluence-home>/journal/
- Restart Confluence
- Go to Cog Icon > General Configuration
- Select Content Indexing
- Click Rebuild
- Wait for the process to finish
Reference:
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:
Let us hear from you Juri!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.