@files directory not created in some places

CPAS Forum (Inactive)
@files directory not created in some places dompealer  2010-07-08 07:55
Status: Closed
 
Hello,

  We recently upgraded to labkey 10.1, and are having problems uploading files. I have noticed that the new '@files' directory has only appeared in some of our folders, and I would like to know the significance of that.

  The error is this: I just created a project in a sub directory, and I want to upload all of my related raw data files (mzXML files) into this project. When I tried to add the "Files" as Web Part from the "Select Part" list, I got an error message "The file root for this folder is invalid. It may not exist or may have been configured incorrectly. File roots can be configured from the project settings view."
  
  The new project inherits its settings from its parent, and I know the parent's root exists. Could someone please explain what may be wrong? Thanks in advance.
 
 
Karl Lum responded:  2010-07-08 09:48
Assigned To: Karl Lum
The server should automatically create the directory hierarchy, including the @files subdir on demand so once the site level file root default and/or a project level file root override is established, you shouldn't need to do anything else to use the files web part. There are a few obscure cases where the server will not automatically create this hierarchy (but from your description this doesn't sound like that is the problem).

It would be helpful to know what your site level and project level roots are. Maybe the best way to gather this information is to go to the admin console, select the files link and in the 'Summary View for File Directories' click on the 'Expand All' button and send us a screen shot of the folders you are having difficulty with.
 
dompealer responded:  2010-07-08 10:42
Site-level root: /raid/labkey
Parent project root: /raid/labkey/Xiang_Group

recently created folder: Xiang_Group -> Orbitrap_iTRAQ -> Cai_Trail

  The expanded summary view you asked for does indeed show an @files for every folder, but the 'Manage Files' browser does not. It doesn't even show the new folder inside of Orbitrap_iTRAQ. This is the source of my confusion.
 
Karl Lum responded:  2010-07-08 12:10
That's correct, the 'manage files' web part will not display the @files directory, it's needed to allow creation of folders in the manage files web part. Other administrative views may show the full path, but we try to hide it as much as possible. When you are editing file root locations from any of the LabKey server UI, you should avoid explicitly adding an '@files' subdirectory (the server will automatically create it for server-managed file roots).

Can you determine whether the directory:

/raid/labkey/Xiang_Group/Orbitrap_iTRAQ/Cai_Trail/@files

exists in your file system?
 
dompealer responded:  2010-07-13 14:14
I had to wait to get access to the server, but it seems that the folder Cai_Trail itself does not have an actual directory, although its siblings in Orbitrap_iTRAQ do.

As for these sibling folders, they definitely don't have @files directories. I instead see only my data files sitting right inside the directory. Other folders however, like Xiang_Group, have a properly implemented @files containing my data.

Thank you for the explanation, it makes good sense. To fix this, will I simply be manually creating @files directories for the folders that need it (not with the web UI) in the file system?