theopolis / RTFn-lite

A shell for Etherpad-lite to assist with cyber CTF team collaboration.
12 stars 6 forks source link

Error on login #1

Open VirusFriendly opened 10 years ago

VirusFriendly commented 10 years ago

Etherpad itself works fine running on Linux Margarita 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali8 i686 GNU/Linux

500 Internal Server Error

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

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 656, in respond response.body = self.handler() File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 188, in call self.body = self.oldhandler(_args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 34, in call return self.callable(_self.args, _self.kwargs) File "/home/gomi/RTFn-lite/rlite/auth.py", line 123, in login creds = self.check_credentials(username, key) File "/home/gomi/RTFn-lite/rlite/auth.py", line 47, in check_credentials c_data = self.caller.db.get_competition_from_key(key) File "/home/gomi/RTFn-lite/rlite/db.py", line 109, in get_competition_from_key return {"db": result.fetchone(), "gid": gid["data"]["groupID"] if gid is not None else None} TypeError: 'NoneType' object has no attribute 'getitem' Powered by CherryPy 3.2.4

I've tried seeding the DB a few times just to make sure that wasn't the problem python ./rlite.py --add test --key test python ./rlite.py --add test2 --key test2

logging in, I'm not sure what my username should be, but I used the password listed in my settings.json

{ "ip": "0.0.0.0", "port": 9000, "password": "password",

"etherpad-dir": "/home/gomi/etherpad-lite/", "etherpad-url": "http://127.0.0.1/ep", "etherpad": { "port" : 9001, "dbType" : "dirty", "dbSettings" : { "filename" : "../var/dirty.db" }, "requireSession" : true, "editOnly" : false, "minify" : true, "maxAge" : 21600, "abiword" : null, "requireAuthentication": false, "requireAuthorization": false, "loglevel": "INFO" } }

theopolis commented 10 years ago

Thanks maetrics! It's been a while since I've looked into the RTFN code. I'll see what I can do about rebasing to Etherpad's mainline and fixing the bounty of regressions that causes. Stay tuned.