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

AAU OneDay site throws errors #29

Closed
falkecarlsen opened this issue Jul 1, 2019 · 2 comments
Closed

AAU OneDay site throws errors #29

falkecarlsen opened this issue Jul 1, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@falkecarlsen
Copy link
Owner

Might just be a temporary bug or seasonal, as summer break is in effect.

chwifi throws this error but correctly identifies the update as failed:

/tmp/chwifi-passwords.html:6: HTML parser error : Unexpected end tag : meta
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
                                                                              ^
XPath set is empty
Failed to update cached passwords!

AAU OneDay throws this 500 error upon logging in:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/srv/web/AauWifi/aauwifi/lib/fast/cas/cas.py", line 64, in wrapper
    return func(*args, **kwargs)
  File "/srv/web/AauWifi/aauwifi/aauwifi.py", line 177, in oneday
    db = fast.db3.FastDB(psycopg2.connect(**cherrypy.config['dbinfo']))
  File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: could not connect to server: Connection refused
	Is the server running on host "db1.adm.es.aau.dk" (130.225.51.117) and accepting
	TCP/IP connections on port 5432?

Powered by CherryPy 3.5.0 

This should probably be handled better, somehow identifying whether the site is functioning properly instead of failing on unexpected input.

@falkecarlsen falkecarlsen added the bug Something isn't working label Jul 1, 2019
@falkecarlsen
Copy link
Owner Author

Note that connection is still handled fine, only the password update routine is broken.

@falkecarlsen
Copy link
Owner Author

AAU OneDay is now up again after AAU IT has fixed their network errors, and chwifi again works as intended.

Opened #30 to reflect findings.

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