--> --> -->
 
 
<type 'exceptions.OSError'>
Python 2.5.2: /lsst/DC3/stacks/32bit/19aug10/Linux/external/python/2.5.2/bin/python
Sat Oct 16 08:11:35 2010

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/cgi-bin/DATAarch/dc3GetProduct.py in ()
  124 def verb(lev, msg, *args, **kw):
  125     logger.log(logging.INFO-lev, msg, *args, **kw)
  126 
  127 if __name__ == "__main__":
  128     main()
main = <function main at 0x82ddfb4>
 /var/www/cgi-bin/DATAarch/dc3GetProduct.py in main()
   54     if id is None:  id = ""
   55     id = id.strip('/')
   56     deliver(id, cfg)
   57     sys.exit(0)
   58 
global deliver = <function deliver at 0x82e32cc>, id = 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', cfg = <ncsa_sciarch.config.ConfigProperty object at 0x82e2bac>
 /var/www/cgi-bin/DATAarch/dc3GetProduct.py in deliver(id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', conf=<ncsa_sciarch.config.ConfigProperty object at 0x82e2bac>)
   73     t0 = time.time()
   74     if not res.available(id):
   75         restore(res, id, int(cfg.timeout))
   76         tell(" RESTORED: %s in %d s", id, time.time()-t0)
   77 
global restore = <function restore at 0x82e3304>, res = <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, id = 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', builtin int = <type 'int'>, cfg = <ncsa_sciarch.config.ConfigProperty object at 0x82e52ac>, cfg.timeout = '1200'
 /var/www/cgi-bin/DATAarch/dc3GetProduct.py in restore(res=<lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits', timeout=1200)
  104     lock = inprogress.lockId(id, timeout=60)
  105     if not res.available(id):
  106         res.restore(id)
  107     del lock
  108 
res = <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, res.restore = <bound method Restorer.restore of <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>>, id = 'obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits'
 /appl/DATAarch/python/lsst/daf/web/dc3restore.py in restore(self=<lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, id='obs/CFHTLS/D1/raw/v723742-fu/s00/c00-a1.fits')
  453 
  454                 # restore the tar file into the cache
  455                 self.restore(tid)
  456 
  457                 if not os.path.exists(tpath):
self = <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, self.restore = <bound method Restorer.restore of <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>>, tid = 'obs/CFHTLS/D1/raw/v723742-fu/s00.tar'
 /appl/DATAarch/python/lsst/daf/web/dc3restore.py in restore(self=<lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, id='obs/CFHTLS/D1/raw/v723742-fu/s00.tar')
  472             # else restore file from mss
  473             sz = int(math.ceil(ditem.getSize() / 4096)) * 4 # in allocated blocks
  474             reservation = self._opencache(sz)
  475             ditem.copyTo(reservation.stagedir)
  476             target = os.path.basename(ditem.getItemPath())
reservation undefined, self = <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, self._opencache = <bound method Restorer._opencache of <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>>, sz = 1380888
 /appl/DATAarch/python/lsst/daf/web/dc3restore.py in _opencache(self=<lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, amount=1380888)
  392 
  393     def _opencache(self, amount):
  394         return self._cachemgr.reserve(amount)
  395 
  396     def exists(self, id):
self = <lsst.daf.web.dc3restore.Restorer object at 0x82e2e6c>, self._cachemgr = <ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc>, self._cachemgr.reserve = <bound method CacheMgr.reserve of <ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc>>, amount = 1380888
 /home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/CacheMgr.py in reserve(self=<ncsa_sciarch.cachemgr.CacheMgr.CacheMgr object at 0x82e2fcc>, amount=1380888, longterm=False, timeout=None)
   81         for need, cache in filter(lambda c: c[0] > 0, needfrom):
   82             if cache.available():
   83                 plan = cache.createRemovalPlan(need)
   84                 if plan.getAmountFreed() >= need:
   85                     plans.append( (plan.getScore(), plan) )
plan = <ncsa_sciarch.cachemgr.cache.simple._RemovalPlan object at 0x86b6d8c>, cache = <ncsa_sciarch.cachemgr.cache.simple.SimpleCache object at 0x82e568c>, cache.createRemovalPlan = <bound method SimpleCache.createRemovalPlan of <...gr.cache.simple.SimpleCache object at 0x82e568c>>, need = 1313983.0
 /appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py in createRemovalPlan(self=<ncsa_sciarch.cachemgr.cache.simple.SimpleCache object at 0x82e568c>, amount=1313983.0)
  121         """
  122         plnr = self._Planner(self, self._scorer, self._comparer, self._logger)
  123         return plnr.makePlan(amount)        
  124 
  125     def free(self, amount, lock=None):
plnr = <ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c>, plnr.makePlan = <bound method _Planner.makePlan of <ncsa_sciarch...hemgr.cache.simple._Planner object at 0x82e914c>>, amount = 1313983.0
 /appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py in makePlan(self=<ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c>, amount=1313983.0, urgency=0)
   80 
   81         def makePlan(self, amount, urgency=0):
   82             items = self._listCache()
   83             items.sort(self._cmp)
   84 
global items = <module 'ncsa_sciarch.cachemgr.cache.items' from...ch/python/ncsa_sciarch/cachemgr/cache/items.pyc'>, self = <ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c>, self._listCache = <bound method _Planner._listCache of <ncsa_sciar...hemgr.cache.simple._Planner object at 0x82e914c>>
 /appl/DATAarch/python/ncsa_sciarch/cachemgr/cache/simple.py in _listCache(self=<ncsa_sciarch.cachemgr.cache.simple._Planner object at 0x82e914c>)
   72                 # set the priority to zero to indicate that this is a trashed
   73                 # file
   74                 ditems.addPath(file, 0)
   75 
   76             for file in os.listdir(self._cache._cachedir):
ditems = <ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac>, ditems.addPath = <bound method CacheItemList.addPath of <ncsa_sci...r.cache.items.CacheItemList object at 0x82e90ac>>, file = 'cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
 /home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py in addPath(self=<ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac>, path='cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', priority=0, score=None)
  152 
  153     def addPath(self, path, priority=1, score=None):
  154         self._additem(CacheItem.makeFor(path, self._cachedir, priority), score)
  155 
  156     def addData(self, path, size, atime, mtime, priority=1, isdir=False, 
self = <ncsa_sciarch.cachemgr.cache.items.CacheItemList object at 0x82e90ac>, self._additem = <bound method CacheItemList._additem of <ncsa_sc...r.cache.items.CacheItemList object at 0x82e90ac>>, global CacheItem = <class 'ncsa_sciarch.cachemgr.cache.items.CacheItem'>, CacheItem.makeFor = <function makeFor at 0x82cd72c>, path = 'cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', self._cachedir = '/data/cache/1/datacache/cache', priority = 0, score = None
 /home/rplante/devlp/sciarchtools-trunk/python/ncsa_sciarch/cachemgr/cache/items.py in makeFor(path='cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar', cachedir='/data/cache/1/datacache/cache', priority=0, size=None)
   41         if cachedir and not os.path.isabs(fullpath):
   42             fullpath = os.path.join(cachedir, path)
   43         fs = os.stat(fullpath)
   44         isdir = stat.S_ISDIR(fs.st_mode)
   45         if size is None:
fs undefined, global os = <module 'os' from '/lsst/DC3/stacks/32bit/19aug10/Linux/external/python/2.5.2/lib/python2.5/os.pyc'>, os.stat = <built-in function stat>, fullpath = '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'

<type 'exceptions.OSError'>: [Errno 2] No such file or directory: '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
      args = (2, 'No such file or directory')
      errno = 2
      filename = '/data/cache/1/datacache/cache/cache/obs:CFHTLS:D3:raw:v740098-fr:s00.tar'
      message = ''
      strerror = 'No such file or directory'