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

No response After enter the username and password to the web #45

Open
xiaowj2010 opened this issue Jan 19, 2020 · 4 comments
Open

No response After enter the username and password to the web #45

xiaowj2010 opened this issue Jan 19, 2020 · 4 comments

Comments

@xiaowj2010
Copy link

First I can login the web successfuly 。But I can't access the web by same username , password and brower.In the meantime there is no changes in the server.Please help urgengtly.
The error is below:
[root@xxx ~]# tailf /usr/local/src/opencanary_web/logs/app.log
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1177, in _execute_context
conn = self._revalidate_connection()
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 463, in _revalidate_connection
"Can't reconnect until invalid "
StatementError: (sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back
[SQL: SELECT User.id AS User_id, User.username AS User_username, User.password AS User_password, User.create_time AS User_create_time
FROM User
WHERE User.username = %(username_1)s AND User.password = %(password_1)s]
[parameters: [{}]]
500 POST /auth/ (127.0.0.1) 5.18ms

[root@xxx]# tailf /var/log/mysqld.log
2020-01-19T04:59:45.327767Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-01-19T04:59:45.328534Z 0 [Warning] CA certificate ca.pem is self signed.
2020-01-19T04:59:45.328598Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-01-19T04:59:45.329065Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2020-01-19T04:59:45.329110Z 0 [Note] IPv6 is available.
2020-01-19T04:59:45.329123Z 0 [Note] - '::' resolves to '::';
2020-01-19T04:59:45.329142Z 0 [Note] Server socket created on IP: '::'.
2020-01-19T04:59:45.338876Z 0 [Note] Event Scheduler: Loaded 0 events
2020-01-19T04:59:45.339041Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.29' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)

@p1r06u3
Copy link
Owner

p1r06u3 commented Jan 19, 2020

Do you have any other instant messager IM online? I can help you with it.

@p1r06u3
Copy link
Owner

p1r06u3 commented Jan 19, 2020

First check the nginx.Because nginx is revers proxy server to tornado web server. And then ensure your python version is 2.7 not 3.x. The backend web username and password is correct.

@xiaowj2010
Copy link
Author

xiaowj2010 commented Jan 19, 2020 via email

@p1r06u3
Copy link
Owner

p1r06u3 commented Jan 20, 2020

这个没遇到过呀~方便的话我远程给你看下

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

2 participants