PDA

View Full Version : have a strange problem with webinterface



cozmo
13-01-11, 17:48
im running vix1.3 and all is good have been running a wile now with np at all but last night i tried to connect to the web interface with my p.c like have done a few times before np but now when i try i don't get asked for user pass anymore and i get this in browser

<type 'exceptions.IndexError'>: tuple index out of range
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 124 in process
122 self.postpath = map(unquote, string.split(self.path[1:], '/'))
123 try:
124 resrc = self.site.getResourceFor(self)
125 self.render(resrc)
Self
site
twisted.web.server.Site instance @ 0x1e7b080 <twisted.web.server.Site instance at 0x1e7b080>
path '/'
postpath
List instance @ 0x2b4b9e0
Locals
self
twisted.web.server.Request instance @ 0x2d49adc8 <GET / HTTP/1.1>
Globals
unquote <built-in function unquote>
string <module 'string' from '/usr/lib/python2.6/string.pyo'>
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 523 in getResourceFor
521 # servers and disconnected sites.
522 request.sitepath = copy.copy(request.prepath)
523 return resource.getChildForRequest(self.resource, request)
524
Self
resource
Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance @ 0x1e7b120 <Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance at 0x1e7b120>
Locals
self
twisted.web.server.Site instance @ 0x1e7b080 <twisted.web.server.Site instance at 0x1e7b080>
request
twisted.web.server.Request instance @ 0x2d49adc8 <GET / HTTP/1.1>
Globals
copy <module 'copy' from '/usr/lib/python2.6/copy.pyo'>
resource <module 'twisted.web.resource' from '/usr/lib/python2.6/site-packages/twisted/web/resource.pyo'>
/usr/lib/python2.6/site-packages/twisted/web/resource.py, line 61 in getChildForRequest
59 pathElement = request.postpath.pop(0)
60 request.prepath.append(pathElement)
61 resource = resource.getChildWithDefault(pathElement, request)
62 return resource
Locals
pathElement ''
request
twisted.web.server.Request instance @ 0x2d49adc8 <GET / HTTP/1.1>
resource
Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance @ 0x1e7b120 <Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance at 0x1e7b120>
/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py, line 300 in getChildWithDefault
298#============================================== =================================
299 def getChildWithDefault(self, path, request):
300 if self.isAuthenticated(request) is True:
301 return self.resource.getChildWithDefault(path, request)
Self
resource
twisted.web.static.File instance @ 0x1e79ad0 FilePath('/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/web-data/tpl/default')
Locals
path ''
self
Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance @ 0x1e7b120 <Plugins.Extensions.WebInterface.plugin.HTTPAuthRes ource instance at 0x1e7b120>
request
twisted.web.server.Request instance @ 0x2d49adc8 <GET / HTTP/1.1>
Globals
resource <module 'twisted.web.resource' from '/usr/lib/python2.6/site-packages/twisted/web/resource.pyo'>
/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py, line 276 in isAuthenticated
274 # if the auth-information has not yet been stored to the session
275 if not sessionNs.has_key('authenticated'):
276 sessionNs['authenticated'] = check_passwd(request.getUser(), request.getPassword())
277
Locals
sessionNs
Dictionary instance @ 0x2b2c9c0
request
twisted.web.server.Request instance @ 0x2d49adc8 <GET / HTTP/1.1>
Globals
check_passwd
function check_passwd in file /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py at line 368
/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py, line 377 in check_passwd
375
376 try:
377 enc_passwd = getuser(name)
378 except (KeyError, IOError):
Locals
getuser
function <lambda> in file /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py at line 372
name ''
/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py, line 372 in
370
371 if not pwfile or type(pwfile) == type(''):
372 getuser = lambda x, pwfile = pwfile: getpwnam(x, pwfile)[1]
373 else:
Locals
x ''
pwfile '/etc/passwd'
Globals
getpwnam
function getpwnam in file /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/plugin.py at line 333

<type 'exceptions.IndexError'>: tuple index out of range


i have tried ie and firefox and even tried diff computers so it not that the only thing i have done before this happened i think!! is setup a crons job from telnet with the crontab -e command witch is working find by the way

any ideas guys as i just cannot seam to sort it

thanks

cozmo

silverfox0786
13-01-11, 19:31
can you post the actual craash log file please

cozmo
13-01-11, 19:56
i don't have a crash log as the box is not crashing when i try accessing the web-interface from my pc just get that txt on screen in ie on pc
image is working fine in every way just wont let me access the web interface :(

cozmo

cozmo
17-01-11, 13:19
still have no idea what it was making this happen but i have now re flashed a backup i made before all this happened and now is all fine again

thanks

cozmo