Skip to content

Instantly share code, notes, and snippets.

@neggert
Created May 2, 2012 10:07
Show Gist options
  • Save neggert/2575681 to your computer and use it in GitHub Desktop.
Save neggert/2575681 to your computer and use it in GitHub Desktop.
cms-sh|1> info run=160915
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
/afs/cern.ch/user/n/neggert/<ipython-input-1-c10902d46b4c> in <module>()
----> 1 get_ipython().magic(u'info run=160915')
/afs/cern.ch/work/v/valya/public/soft/install/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input)
1983 self._magic_locals = sys._getframe(1).f_locals
1984 with self.builtin_trap:
-> 1985 result = fn(magic_args)
1986 # Ensure we're not keeping object references around:
1987 self._magic_locals = {}
/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/cms_cmds.pyc in cms_info(arg)
571 cmssh# info run=160915
572 """
--> 573 cms_ls(arg)
574
575 def cms_cp(arg):
/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/cms_cmds.pyc in cms_ls(arg)
553 elif pat_run.match(arg):
554 arg = arg.replace('run=', '')
--> 555 res = run_info(arg, verbose)
556 elif pat_release.match(arg):
557 arg = arg.replace('release=', '')
/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/cmsfs.pyc in run_info(run, verbose)
423 params = {'Runs':run, 'lumiType':'delivered'}
424 data = get_data(url, method, params)
--> 425 runinfo = [r for r in runsum(run)]
426 runlumi = [r for r in data]
427 plist = []
/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/runsum.pyc in runsum(run, debug)
42 cert = os.path.join(os.environ['HOME'], '.globus/usercert.pem')
43 with working_pem(PEMMGR.pem) as key:
---> 44 data = get_data(url, key, cert, debug)
45 for row in xml_parser(data, 'runInfo'):
46 yield row['runInfo']
/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/auth_utils.pyc in get_data(url, key, cert, debug)
119 url = 'https://cmswbm.web.cern.ch/Shibboleth.sso/ADFS'
120 params = urllib.urlencode(param_dict)
--> 121 fdesc = opener.open(url, params)
122 return fdesc
/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.pyc in open(self, fullurl, data, timeout)
393 for processor in self.process_response.get(protocol, []):
394 meth = getattr(processor, meth_name)
--> 395 response = meth(req, response)
396
397 return response
/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.pyc in http_response(self, request, response)
506 if not (200 <= code < 300):
507 response = self.parent.error(
--> 508 'http', request, response, code, msg, hdrs)
509
510 return response
/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.pyc in error(self, proto, *args)
431 if http_err:
432 args = (dict, 'default', 'http_error_default') + orig_args
--> 433 return self._call_chain(*args)
434
435 # XXX probably also want an abstract factory that knows when it makes
/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.pyc in _call_chain(self, chain, kind, meth_name, *args)
365 func = getattr(handler, meth_name)
366
--> 367 result = func(*args)
368 if result is not None:
369 return result
/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.pyc in http_error_default(self, req, fp, code, msg, hdrs)
514 class HTTPDefaultErrorHandler(BaseHandler):
515 def http_error_default(self, req, fp, code, msg, hdrs):
--> 516 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
517
518 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 500: Internal Server Error
cms-sh|2> ls /store/data/CRUZET3/Cosmics/RAW/v1/000/050/832/186585EC-024D-DD11-B747-000423D94AA8.root
bytes : 5490199
created : 2008-07-09 11:24:52 GMT
createdby : /DC=ch/DC=cern/OU=computers/CN=vocms39.cern.ch
logical_file_name: /store/data/CRUZET3/Cosmics/RAW/v1/000/050/832/186585EC-024D-DD11-B747-000423D94AA8.root
modified : 2009-04-16 19:19:14 GMT
modifiedby : /DC=ch/DC=cern/OU=computers/CN=vocms39.cern.ch
nevents : 130
pfn : []
se : []
size : 5.2MB
cms-sh|3> cp /store/data/CRUZET3/Cosmics/RAW/v1/000/050/832/186585EC-024D-DD11-B747-000423D94AA8.root .
Traceback (most recent call last):
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/cms_cmds.py", line 610, in cms_cp
status = copy_lfn(src, dst, verbose, background)
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/filemover.py", line 599, in copy_lfn
status = FM_SINGLETON.copy(lfn, dst, verbose, background)
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/filemover.py", line 442, in copy
for cmd in srmcp("srm-copy", lfn, dst, verbose):
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/filemover.py", line 270, in srmcp
json_dict = get_data(phedex_url(), method, params)
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/url_utils.py", line 70, in get_data
res = urllib2.urlopen(req)
File "/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.py", line 389, in open
response = self._open(req, data)
File "/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.py", line 407, in _open
'_open', req)
File "/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.py", line 367, in _call_chain
result = func(*args)
File "/afs/cern.ch/work/v/valya/public/soft/cmssh/src/cmssh/url_utils.py", line 34, in https_open
return self.do_open(self.get_connection, req)
File "/afs/cern.ch/cms/slc5_amd64_gcc462/external/python/2.6.4/lib/python2.6/urllib2.py", line 1121, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib>
Wrong argument '/store/data/CRUZET3/Cosmics/RAW/v1/000/050/832/186585EC-024D-DD11-B747-000423D94AA8.root .'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment