I've set up and configured Dropbox, and I'm getting an error when I place a file into a watched directory. The error looks like this:
2010-10-19 10:35:43,445 INFO [ omero.remote] (Dummy-6 ) Meth: SingleUserMonitorClient.fsEventHappened
2010-10-19 10:35:43,446 INFO [ fsclient.fsDropBoxMonitorClient] (Dummy-6 ) EVENT_RECORD::Cookie::1287498943.45::Batch::1
2010-10-19 10:35:43,446 INFO [ fsclient.fsDropBoxMonitorClient] (Dummy-6 ) EVENT_RECORD::Cookie::1287498943.45::Create::/OMERO/DropBox/shall/2330_morainelakepanorama_2560x1024.jpg
2010-10-19 10:35:43,487 INFO [ omero.remote] (Dummy-6 ) Rslt: None
2010-10-19 10:36:38,726 INFO [ fsclient.fsDropBoxMonitorClient] (Thread-5 ) Processing 1 events (1 ids). 0 remaining
2010-10-19 10:36:38,726 INFO [ fsclient.fsDropBoxMonitorClient] (Thread-5 ) Getting filesets on : set(['/OMERO/DropBox/shall/2330_morainelakepanorama_2560x1024.jpg'])
2010-10-19 10:36:38,926 ERROR [ fsclient.fsDropBoxMonitorClient] (Thread-5 ) Failed to get filesets
Traceback (most recent call last):
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/fsDropBoxMonitorClient.py", line 444, in callback
fileSets = self.getUsedFiles(list(ids), readers=self.readers)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/util/decorators.py", line 28, in handler
return func(*args, **kwargs)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/util/import_candidates.py", line 61, in as_dictionary
as_stdout(path, readers=readers)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/util/import_candidates.py", line 37, in as_stdout
cli.invoke(["import", "-f"]+path)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/cli.py", line 702, in invoke
stop = self.onecmd(line, previous_args)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/cli.py", line 771, in onecmd
self.execute(line, previous_args)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/cli.py", line 851, in execute
args.func(args)
File "/home/shall/OMERO.server-Beta-4.2.0/lib/python/omero/plugins/import.py", line 74, in importer
args.args.remove(out)
AttributeError: 'Namespace' object has no attribute 'args'
From this I can tell that Dropbox has found the file, since the file's name is in the error, but cannot properly import it. Here is my Dropbox configuration in etc/grid/templates.xml
<property name="omero.fs.importUsers" value="root;shall"/>
<property name="omero.fs.watchDir" value="/OMERO/DropBox/root;/OMERO/DropBox/shall"/>
<property name="omero.fs.eventTypes" value="Creation,Modification;Creation,Modification"/>
<property name="omero.fs.pathMode" value="Follow;Follow"/>
<property name="omero.fs.whitelist" value=";"/>
<property name="omero.fs.blacklist" value=";"/>
<property name="omero.fs.timeout" value="0.0;0.0"/>
<property name="omero.fs.blockSize" value="0;0"/>
<property name="omero.fs.ignoreSysFiles" value="True;True"/>
<property name="omero.fs.ignoreDirEvents" value="True;True"/>
<property name="omero.fs.dirImportWait" value="5;5"/>
<property name="omero.fs.readers" value=";"/>
<property name="omero.fs.importArgs" value=";"/>
and the permissions on the Dropbox folders
[root@omero-test DropBox]# ls -lh
total 16K
drwxrwxrwx 2 apache apache 4.0K Sep 23 10:04 root
drwxr-xr-x 2 shall shall 4.0K Oct 26 10:17 shall
Both /OMERO and /OMERO/DropBox are owned by apache.