Project

General

Profile

Bug #10669

Updated by Tom Morris over 7 years ago

When Not sure what's going on here, but I got this when logging in to a shell node, I got the error below, apparently because the cached version of the discovery document was corrupted. Deleting the contents of ~/.cache/discovery/ fixed the issue, but I think there are two things that need to be fixed: node: 

 1. Make sure that the file gets truncated to the new length if a shorter discovery document is downloaded. The fact that the corrupted version of the file ends with: 
       ,"websocketUrl":"wss://ws.e51c5.arvadosapi.com/websocket"}om/web 
    makes me suspicious of the garbage at the end of the file. 

 2. If there's an error parsing the cached file, it should be deleted and re-downloaded to see if the problem can be cleared 

 Last login: Mon Dec    5 21:54:40 2016 from switchyard.e51c5.arvadosapi.com 
 mkdir: cannot create directory ‘/home/tfmorris/keep’: File exists 
 No handlers could be found for logger "googleapiclient.discovery" 
 Traceback (most recent call last): 
   File "/usr/local/arvados/record-login.py", line 9, in <module> 
     arv = arvados.api('v1') 
   File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 185, in api 
     return api_from_config(version=version, cache=cache, **kwargs) 
   File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 244, in api_from_config 
     return api(version=version, host=host, token=token, insecure=insecure, **kwargs) 
   File "/usr/lib/python2.7/dist-packages/arvados/api.py", line 208, in api 
     svc = apiclient_discovery.build('arvados', version, **kwargs) 
   File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 140, in positional_wrapper 
     return wrapped(*args, **kwargs) 
   File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 196, in build 
 tfmorris@shell:~$       cache) 
   File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 256, in _retrieve_discovery_doc 
     raise InvalidJsonError() 
 googleapiclient.errors.InvalidJsonError

Back