fts_scanner error on startup
When restarting supervisord and hence restarting the probes the fts_scanner probe wouldn't start. It gave the dump below. The error was on line 60 but I inserted a print in that line that showed it was trying to open the cdf db file. When I looked on the filesystem, the cdf file was there but zero size. I just did an rm of the file and then the probe started.
Traceback (most recent call last):
File "./fts_scanner.py", line 92, in <module>
File "./fts_scanner.py", line 85, in poll
File "./fts_scanner.py", line 61, in scan
fs = shelve.open("%s/%s_files.db.new" % (self.workdir, item["experiment"]),flag="n",writeback=True)
File "/home/poms/products/python/v2_7_6/Linux64bit-2-6-2-12/lib/python2.7/shelve.py", line 239, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "/home/poms/products/python/v2_7_6/Linux64bit-2-6-2-12/lib/python2.7/shelve.py", line 223, in init
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
File "/home/poms/products/python/v2_7_6/Linux64bit-2-6-2-12/lib/python2.7/anydbm.py", line 82, in open
raise error, "db type could not be determined"
anydbm.error: db type could not be determined
It looks like that error has been in the log for a while but this was the last thing that was printing out before the probe died so it seems like it was causing it to crash. Maybe the supervisor usually restarts it.