iFolder 3.7 Data Store Created with wrong Owner

  • 7002894
  • 02-Apr-2009
  • 27-Apr-2012

Environment

Novell iFolder 3.7
Novell Open Enterprise Server 2 (OES 2) Support Pack 1

Situation

The /opt/novell/iFolder3/bin/simias-server-setup command may be used to configure or reconfigure the iFolder server.  After running the command, in certain instances, some of the directories that should exist in the data store don't exist, and root owns everything.  Here's an example of that file system folder when the problem is experienced:
 
-rw-r--r-- 1 root root    7 Apr  1 22:24 .simias.ppf
-rwxr-xr-x 1 root root 1946 Apr  1 22:24 Simias.config
-rwxr-xr-x 1 root root 1255 Apr  1 22:24 Simias.log4net
drwxr-xr-x 2 root root   48 Apr  1 22:24 log
drwxr-xr-x 2 root root  128 Apr  1 22:24 modules
 

Resolution

The real problem in this scenario isn't that all of the folders or files that should exist in the data-store (such as CollectionFiles, FlaimSimias.xx, etc.) don't exist, but that the owner of everything is root.  With Root as the owner of everything, Apache cannot use the files or folders, and thus, iFolder cannot start properly.  The missing files and folders are actually created when the iFolder admin console is accessed for the first time.
 
This problem is caused by leaving the 'Configure Apache [N]' to the default while running the simias-server-setup command.
 
To fix this problem run the following commands:
1. rcapache2 stop
2. ps aux | grep mono                (make sure that the only thing returned is the grep command for mono itself - kill any other mono processes)
3. OPTIONAL:remove the iFolder data store (i.e. rm -rf /var/simias/data/simias ), or move it to a different location.
4. /opt/novell/ifolder3/bin/simias-server-setup .  Enter the requested information, and make sure that the 'Configure Apache [N] ' option is set to Y, then complete simias-server-setup.
5. rcapache2 start
After running these commands, the iFolder admin console should be accessible, and the directory listing of the data store should look like similar to this:
 
-rw------- 1 wwwrun www     79 Apr  1 22:57 .local.if
drwx------ 7 wwwrun www    328 Apr  1 22:57 CollectionFiles
-rw------- 1 wwwrun www 319488 Apr  1 22:57 FlaimSimias.01
-rw------- 1 wwwrun www 262144 Apr  1 22:57 FlaimSimias.db
-rw------- 1 wwwrun www      0 Apr  1 22:57 FlaimSimias.lck
drwx------ 2 wwwrun www     80 Apr  1 22:57 FlaimSimias.rfl
-rwxr-xr-x 1 wwwrun www   1961 Apr  1 22:55 Simias.config
-rwxr-xr-x 1 wwwrun www   1255 Apr  1 22:55 Simias.log4net
drwx------ 3 wwwrun www     72 Apr  1 22:57 SimiasFiles
drwx------ 2 wwwrun www    368 Apr  1 22:57 changelog
drwxr-xr-x 2 wwwrun www    120 Apr  1 22:57 log
drwxr-xr-x 2 wwwrun www    168 Apr  1 22:53 modules
drwx------ 2 wwwrun www     48 Apr  1 22:57 report

 

Additional Information

The recommended method for configuring iFolder is by running the yast2 novell-ifolder3 command, and configuring iFolder 3.7 through the YAST iFolder plug-ins.  The above method should be used, when YAST isn't an option for configuring iFolder.