Problems with uploading files

LabKey Support Forum
Problems with uploading files Bika  2022-04-06 22:16
Status: Active
 

Dear Labkey

I have installed a Labkey Server v19.1 or v21.3. When I upload a file in the files interface. I get the following error:“Couldn't create file on server. This may be a server configuration problem. Contact the site administrator.” Please help me to solve this problem.

Deployment Environment for Labkey v19.1:
Windows Server 2008 R2 SP1
PostgreSQL Version 9.52
Java Runtime Version12.0.2.10
Apache Tomcat Version 9.0.37

Deployment Environment for Labkey v21.3:
Windows Server 2012 R2
PostgreSQL Version 13.1
Java Runtime Version 15.0.1.9
Apache Tomcat Version 9.0.40

Best Regards
Bika

 
 
mohara responded:  2022-04-15 11:59

Hi Bika:

Are you seeing the same error on both servers? Does the error happen in any container with any file type?
Have you checked your site file root (or project/folder file root if set) to ensure it points to a writable location on the underlying file system? Documentation: File Root Options

The best next step is to check the labkey.log for additional details about what is wrong. Repro the error again and then check the most recent logs. Documentation: How to find the logs.

If you aren't sure how to interpret the log errors you see, please attach the relevant portion and I can take a look.

--Molly

 
Bika responded:  2022-04-15 18:55

Hi Molly:

Thank you very much for your reply. Both servers are getting the same error. I upload test just text files. Checking the project/folder configuration are true. My user permission is site administrator. Attached is the error log. Also installed Labkey v8.1 uploads normally without error.

Best Regards
Bika

 
mohara responded:  2022-04-18 15:29

That error log implies the problem is the permissions settings for your file system. On Windows, check the 'Properties > Security' tab for this location (and subdirectories if they exist) to make sure they are writable:
C:\Program Files (x86)\Labkey Server\files
If the file root isn't writable by LabKey, you can't upload files there. I was able to reproduce this locally by denying write access to the "Users" group in my enlistment; your specific configuration and permission needs may vary.

I've added the original error message you saw to the troubleshooting documentation here:
https://www.labkey.org/Documentation/wiki-page.view?name=troubleshootingAdmin#perms

 
Bika responded:  2022-04-19 04:58

Hi Molly:

The problem has been solved. Thank you very much.

Best Regards
Bika