Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up AlCaVal locally for testing new changes or bug-fixes #49

Open
3 tasks
saumyaphor4252 opened this issue Sep 3, 2023 · 4 comments
Open
3 tasks
Assignees

Comments

@saumyaphor4252
Copy link
Contributor

Description

  • The set of instructions for setting up local tests for AlCaVal are outdated. See below log snippet:
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][INFO] [GET] /api/system/uptime 0.0001s 200 (api_base.py:36)
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][DEBUG] http://0.0.0.0:8080 "GET /api/system/uptime HTTP/1.1" 200 144 (connectionpool.py:456)
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][WARNING] Refreshing user credentials in client session (__init__.py:29)
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][ERROR] Traceback (most recent call last):
alcaval        |   File "/usr/src/app/core_lib/api/api_base.py", line 84, in exceptions_to_errors_wrapper
alcaval        |     return func(*args, **kwargs)
alcaval        |   File "/usr/src/app/api/system_api.py", line 79, in get
alcaval        |     user_info = UserInfo().get_user_info()
alcaval        |   File "/usr/src/app/core_lib/utils/user_info.py", line 18, in get_user_info
alcaval        |     raise Exception('Session is expired. Please reload the page!')
alcaval        | Exception: Session is expired. Please reload the page!
alcaval        |  (api_base.py:86)
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][INFO] [GET] /api/system/user_info 0.0004s 400 (api_base.py:36)
alcaval        | [03-Sep-23 06:42:40 UTC][main_thread][DEBUG] http://0.0.0.0:8080 "GET /api/system/user_info HTTP/1.1" 400 102 (connectionpool.py:456)
alcaval        | Traceback (most recent call last):
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2095, in __call__
alcaval        |     return self.wsgi_app(environ, start_response)
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2080, in wsgi_app
alcaval        |     response = self.handle_exception(e)
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function
alcaval        |     return cors_after_request(app.make_response(f(*args, **kwargs)))
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask_restful/__init__.py", line 271, in error_router
alcaval        |     return original_handler(e)
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2077, in wsgi_app
alcaval        |     response = self.full_dispatch_request()
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1525, in full_dispatch_request
alcaval        |     rv = self.handle_user_exception(e)
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function
alcaval        |     return cors_after_request(app.make_response(f(*args, **kwargs)))
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask_restful/__init__.py", line 271, in error_router
alcaval        |     return original_handler(e)
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request
alcaval        |     rv = self.dispatch_request()
alcaval        |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request
alcaval        |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
alcaval        |   File "/usr/src/app/application/home_view.py", line 9, in index
alcaval        |     return render_template('Home.html.jinja', user_name=user['response']['fullname'], user=user)
alcaval        | TypeError: 'NoneType' object is not subscriptable

  • Needs to be updated so that the fixes and testing could be done locally before making PR for Dev or Prod

Checklist

  • Docker engine and compose set up commands step by step
  • Set up and run AlCaVal
  • How to make and test new changes or bugfixes
@saumyaphor4252 saumyaphor4252 changed the title Set up AlCaVal locally for testing fixes Set up AlCaVal locally for testing new changes or bug-fixes Sep 3, 2023
@saumyaphor4252
Copy link
Contributor Author

@teteumac Can you share the zipped folder of your working set-up privately on skype. Let's start checking the diff folder by folder to debug the issue.

@teteumac
Copy link
Contributor

@saumyaphor4252, this issue has already been resolved, if this is the case we can close it and I can give you the step by step guide for this correction

@consuegs
Copy link

consuegs commented Dec 5, 2023

@teteumac, can you include here for documentation the PR with the commit(s) that solves the issue opened here? Then we proceed with the closing of this issue

@lakshmip2609
Copy link

@consuegs This issue is regarding authentication failure while setting up a local instance of the tool. The fix to this issue was creating new SSO proxies. This fix does not involve any changes to the existing code. Detailed documentation regarding this is being prepared at https://codimd.web.cern.ch/s/gsT2LV-65# and will also be presented in https://indico.cern.ch/event/1353717/#2-full-track-validation-and-al.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants