Bug #11402

Failure caching discovery document in crunch

Added by Peter Amstutz 7 months ago. Updated 7 months ago.

Status:ResolvedStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:2017-04-12 sprint
Story points-
Velocity based estimate-

Description

2017-03-31_19:58:37 salloc: Granted job allocation 560
2017-03-31_19:58:37 35198 Sanity check is `/usr/bin/docker ps -q`
2017-03-31_19:58:37 35198 sanity check: start
2017-03-31_19:58:37 35198 stderr starting: ['srun','--nodes=1','--ntasks-per-node=1','/usr/bin/docker','ps','-q']
2017-03-31_19:58:37 35198 sanity check: exit 0
2017-03-31_19:58:37 35198 Sanity check OK
2017-03-31_19:58:38 Traceback (most recent call last):
2017-03-31_19:58:38 File "/usr/bin/arv-put", line 4, in <module>
2017-03-31_19:58:38 main()
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/commands/put.py", line 851, in main
2017-03-31_19:58:38 api_client = arvados.api('v1')
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 186, in api
2017-03-31_19:58:38 return api_from_config(version=version, cache=cache, **kwargs)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 245, in api_from_config
2017-03-31_19:58:38 return api(version=version, host=host, token=token, insecure=insecure, **kwargs)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 209, in api
2017-03-31_19:58:38 svc = apiclient_discovery.build('arvados', version, cache_discovery=False, **kwargs)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 140, in positional_wrapper
2017-03-31_19:58:38 return wrapped(*args, **kwargs)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 196, in build
2017-03-31_19:58:38 cache)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 242, in _retrieve_discovery_doc
2017-03-31_19:58:38 resp, content = http.request(actual_url)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 78, in _intercept_http_request
2017-03-31_19:58:38 return self.orig_http_request(uri, **kwargs)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1501, in request
2017-03-31_19:58:38 cached_value = self.cache.get(cachekey)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/cache.py", line 38, in get
2017-03-31_19:58:38 filename = self._filename(url)
2017-03-31_19:58:38 File "/usr/lib/python2.7/dist-packages/arvados/cache.py", line 35, in _filename
2017-03-31_19:58:38 return os.path.join(self._dir, md5.new(url).hexdigest()+'.tmp')
2017-03-31_19:58:38 File "/usr/lib/python2.7/posixpath.py", line 70, in join
2017-03-31_19:58:38 elif path == '' or path.endswith('/'):
2017-03-31_19:58:38 AttributeError: 'NoneType' object has no attribute 'endswith'
2017-03-31_19:58:38 c97qk-8i9sb-34fm9tuy3za1fvk 35198 running from /usr/local/arvados/src/sdk/cli/bin/crunch-job with arvados-cli Gem version(s) 0.1.20161017193526
2017-03-31_19:58:38 salloc: Relinquishing job allocation 560

Associated revisions

Revision 55c34fb9
Added by Tom Clegg 7 months ago

11402: Disable caching if $HOME/ is not writable, instead of returning a broken cache.

closes #11402

History

#1 Updated by Peter Amstutz 7 months ago

  • Description updated (diff)

#2 Updated by Tom Clegg 7 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:55c34fb97edfba5a014eb43b965130cf11dbda8a.

Also available in: Atom PDF