cnr-ibf-pa / hbp-bsp-issues

Ticketing system for developers/testers and power users of the Brain Simulation Platform of the Human Brain Project
4 stars 0 forks source link

Basal Ganglia Morphology Validation: 401 Client Error: Unauthorized #465

Closed alex4200 closed 5 years ago

alex4200 commented 5 years ago

Expected behavior

Usecase should run without problems.

Actual Behavior (please include screenshot if possible)

After "Part 1: Hard Constraints Validation" an error occurs:

ExceptionTraceback (most recent call last)
<ipython-input-25-370598d92b5c> in <module>()
     13     else:
     14         test_alias = "basalg_fs_morph_hardChecks"
---> 15     result_id, score = utils.run_test(username=HBP_USERNAME, environment="integration", model=morph_model, test_alias=test_alias, test_version="1.0", storage_collab_id=collab_id, register_result=True, client_obj=testLibrary)
     16     result_uuids.append(result_id)
     17 

/opt/conda/envs/python2/lib/python2.7/site-packages/hbp_validation_framework/utils.pyc in run_test(username, password, environment, model, test_instance_id, test_id, test_alias, test_version, storage_collab_id, register_result, client_obj, **params)
    434     test_config_file = prepare_run_test_offline(username=username, password=password, environment=environment, test_instance_id=test_instance_id, test_id=test_id, test_alias=test_alias, test_version=test_version, client_obj=client_obj, **params)
    435     test_result_file = run_test_offline(model=model, test_config_file=test_config_file)
--> 436     result_id, score = upload_test_result(username=username, password=password, environment=environment, test_result_file=test_result_file, storage_collab_id=storage_collab_id, register_result=register_result, client_obj=client_obj)
    437     return result_id, score
    438 

/opt/conda/envs/python2/lib/python2.7/site-packages/hbp_validation_framework/utils.pyc in upload_test_result(username, password, environment, test_result_file, storage_collab_id, register_result, client_obj)
    370                                      auth=test_library.auth)
    371 
--> 372     response = test_library.register_result(test_result=score, data_store=collab_storage)
    373     return response, score
    374 

/opt/conda/envs/python2/lib/python2.7/site-packages/hbp_validation_framework/__init__.pyc in register_result(self, test_result, data_store, project)
   1374             return response.json()["uuid"][0]
   1375         else:
-> 1376             raise Exception(response.content)
   1377 
   1378     def delete_result(self, result_id=""):

Exception: HTTPError at /results/
401 Client Error: Unauthorized for url: https://nexus.humanbrainproject.org/v0/data/neuralactivity/core/collection/v0.1.0

Request Method: POST
Request URL: https://validation-staging.brainsimulation.eu/results/?format=json
Django Version: 1.10.5
Python Executable: /usr/local/bin/uwsgi
Python Version: 2.7.13
Python Path: ['.', '', '/home/docker', '/home/docker/site', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/docker/packages/hbp-app-python-auth-0.1.5']
Server time: Wed, 4 Sep 2019 12:46:51 +0000
Installed Applications:
...
...

Steps to reproduce the problem

  1. use 'environment="integration"'
  2. Use model msn_d1_morphologies
  3. Use instance models [1,2]

Optional infrastructural data (user, platform, browser, environment, ...)

DEV, with KG staging Model Validation App

apdavison commented 5 years ago

I will look at the problem this week

appukuttan-shailesh commented 5 years ago

@alex4200 : Could you test this again? It works fine for me. Maybe it was a temporary problem with the server (expired certificates etc). If the problem persists, I will ask Andrew to take a look.

alex4200 commented 5 years ago

Seems to work now, ticket closed.