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

Sql error on initial login #114

Open
cbabs opened this issue Aug 13, 2021 · 0 comments
Open

Sql error on initial login #114

cbabs opened this issue Aug 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@cbabs
Copy link

cbabs commented Aug 13, 2021

Describe the bug
On initial login using docker, login is not possible due to sqlalchemy error

To Reproduce
Steps to reproduce the behavior:

  1. Spin up new container
  2. Login with creds from env vars
  3. Check logs

Platform:

  • OS: Ubuntu 20 LTS/Docker version 20.10.8, build 3967b7d
  • Browser FF 91.0 (64-bit) and Chrome on Ubuntu

Stacktrace/error output
wg-manager | [2021-08-13 17:25:55 +0000] [12] [INFO] Application startup complete.
wg-manager | No row was found for one()
wg-manager | Traceback (most recent call last):
wg-manager | File "/app/schemas.py", line 74, in from_db
wg-manager | db_item = self.filter_query(sess).one()
wg-manager | File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py", line 3500, in one
wg-manager | raise orm_exc.NoResultFound("No row was found for one()")
wg-manager | sqlalchemy.orm.exc.NoResultFound: No row was found for one()
wg-manager | No row was found for one()
wg-manager | Traceback (most recent call last):
wg-manager | File "/app/schemas.py", line 74, in from_db
wg-manager | db_item = self.filter_query(sess).one()
wg-manager | File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py", line 3500, in one
wg-manager | raise orm_exc.NoResultFound("No row was found for one()")
wg-manager | sqlalchemy.orm.exc.NoResultFound: No row was found for one()
wg-manager | We did not find any records in the database that corresponds to the model. This means you are trying to fetch a unsaved schema!
wg-manager | We did not find any records in the database that corresponds to the model. This means you are trying to fetch a unsaved schema!
wg-manager | 68.53.141.76:32770 - "POST /api/v1/login HTTP/1.1" 401
wg-manager | 68.53.141.76:32770 - "POST /api/v1/login HTTP/1.1" 401

@cbabs cbabs added the bug Something isn't working label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant