Clinical-Genomics / NIPT

0 stars 2 forks source link

adding a new user fails #117

Open ingkebil opened 5 years ago

ingkebil commented 5 years ago

As a member of Team Awesome, I would like to have a way to add a new user so that they can view the NIPT viewer.

Problem: submitting a new user results in a 502 Bad Gateway

Steps to reproduce:

  1. log into the nipt viewer
  2. add a user
  3. results in 502 Bad Gateway
  4. checking the log in clinical-db:nipt/log/main.log shows:
    130.229.43.125 - - [18/Dec/2018:09:55:03 +0100] "POST /message HTTP/1.0" 302 237 "https://nipt.scilifelab.se/submit/" "Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0"
    [2018-12-18 09:55:03 +0000] [41443] [ERROR] Socket error processing request.
    Traceback (most recent call last):
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 191, in handle_request
    six.reraise(*sys.exc_info())
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1994, in __call__
    return self.wsgi_app(environ, start_response)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 152, in __call__
    return self.app(environ, start_response)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask_login.py", line 792, in decorated_view
    return func(*args, **kwargs)
    File "/home/hiseq.clinical/nipt/src/PNIPT/PNIPT/views.py", line 54, in submit_status
    return render_template('submit_status.html')
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
    context, ctx.app)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
    rv = template.render(context)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/home/hiseq.clinical/nipt/src/PNIPT/PNIPT/templates/submit_status.html", line 1, in top-level template code
    {% extends 'layout.html' %}
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/templating.py", line 57, in get_source
    return self._get_source_fast(environment, template)
    File "/home/hiseq.clinical/miniconda/envs/nipt/lib/python2.7/site-packages/flask/templating.py", line 85, in _get_source_fast
    raise TemplateNotFound(template)
    TemplateNotFound: layout.html
  5. user has not been added to the database, but email was sent.

Expected: user added to the database

vwirta commented 4 years ago

This issue still remains -

vwirta commented 4 years ago

@mayabrandi kan du kolla på detta när du hinner? Vi vill ha in HO och KN som användare

mayabrandi commented 4 years ago

Buggen kommer inte att fixas då ett helt nytt NIPT verktyg är påväg in. Jag kan lägga in dom manuellt. Behöver deras mailadresser.