Can only log into Webui once...
Ok, so I followed the directions for getting the web_interface stack installed and configured to talk to my Lego NXT bot.
The first time I hit the web page (from the same machine running the server) it asks me to set a new admin password. I set it to admin again. At that point I'm taken into the UI and can see some of the status stuff and messages and such.
If I close the browser and try to go into the page again though, using the admin/admin (which is what I set the "new" password to) it spins for a while and then I see the following message on the browser:
A copy of this error report has been submitted to the developers. The details of the error report are below. --> --> odb_Exception
DatabaseError("database is locked(INSERT INTO auth_login (uid,username,time,loginType,browserid,ipaddr) VALUES (1,'admin','1315528565.09',1,NULL,'127.0.0.1'))",) Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
1.
/opt/ros/diamondback/stacks/web_interface/pyclearsilver/src/pyclearsilver/CSPage.py in start (self=<mod.login.cgibin.signin.SignInPage instance>)
1. 199 # call page main function!
2. 200 try:
3. 201 self.main()
4. 202 except DisplayDone:
5. 203 SHOULD_DISPLAY = 0
* self = <mod.login.cgibin.signin.SignInPage instance>
* self.main = <bound method SignInPage.main of <mod.login.cgibin.signin.SignInPage instance>>
2.
/opt/ros/diamondback/stacks/web_interface/pyclearsilver/src/pyclearsilver/CSPage.py in main (self=<mod.login.cgibin.signin.SignInPage instance>)
1. 157 __call(self.setup)
2. 158
3. 159 self.handle_actions()
4. 160
5. 161 __call(self.display)
* self = <mod.login.cgibin.signin.SignInPage instance>
* self.handle_actions = <bound method SignInPage.handle_actions of <mod.login.cgibin.signin.SignInPage instance>>
3.
/opt/ros/diamondback/stacks/web_interface/pyclearsilver/src/pyclearsilver/CSPage.py in handle_actions (self=<mod.login.cgibin.signin.SignInPage instance>)
1. 177 method = getattr(self,method_name)
2. 178 if method.im_func.func_code.co_argcount == 2:
3. 179 apply(method,[hdf])
4. 180 else:
5. 181 apply(method,[])
* builtin apply = <built-in function apply>
* method = <bound method SignInPage.Action_Login of <mod.login.cgibin.signin.SignInPage instance>>
* hdf = <HDFObjectType object>
4.
/opt/ros/diamondback/stacks/web_interface/webui/src/webui/mod/login/cgibin/signin.py in Action_Login (self=<mod.login.cgibin.signin.SignInPage instance>, hdf=<HDFObjectType object>)
1. 134
2. 135 loginRow.loginType = 1
3. 136 loginRow.save()
4. 137
5. 138 cookieauth.issueLoginCookie(self.ncgi, self.authdb, q_username, userRec.pw_hash, q_persist)
* loginRow = Row from (auth_login): {'username': u'admin', 'u... 'browserid': None, 'time': 1315528565.0882859}{}
* loginRow.save = <bound method HdfRow.save of Row from (auth_logi...'browserid': None, 'time': 1315528565.0882859}{}>
5.
/opt/ros/diamondback/stacks/web_interface/pyclearsilver/src/pyclearsilver/odb.py in save (self=Row from (auth_login): {'username': u'admin', 'u... 'browserid': None, 'time': 1315528565.0882859}{}, cursor=None)
1. 2251
2. 2252 if self._should_insert:
3. 2253 toTable.r_insertRow(self,replace=self._should_replace)
4. 2254 self._should_insert = 0
5. 2255 self._should_replace ...