Try making the directory - Python 2.4 doesn''t do this automatically for some reason. Cheers, Mark On Saturday 13 August 2005 19:17, Aaron // LT wrote:> Not sure if I''m posting this in correct place. I receive the following > error message when trying to access the web interface (CentOS 4.1, Dell > 2450, SCSI RAID): > > *web.Server Traceback (most recent call last):* > > exceptions.OSError: [Errno 2] No such file or directory: ''/var/lib/xen/sv'' > > <http://72.29.118.212:8080/#tbend> > /usr/lib/python2.3/site-packages/twisted/web/server.py, line 164 in process > 162 self.postpath = map(unquote, string.split(self.path[1:], ''/'')) > 163 try: > 164 resrc = self.site.getResourceFor(self) > 165 self.render(resrc) > *Self* > site twisted.web.server.Site instance @ 0xb7fb2cac > <twisted.web.server.Site instance at 0xb7fb2cac> > path ''/'' > postpath List instance @ 0xb797690c > > *Locals* > self twisted.web.server.Request instance @ 0xb79766cc <GET / HTTP/1.1> > > *Globals* > unquote |<built-in function unquote>| > string |<module ''string'' from ''/usr/lib/python2.3/string.pyc''>| > > /usr/lib/python2.3/site-packages/twisted/web/server.py, line 517 in > getResourceFor > 515 # servers and disconnected sites. > 516 request.sitepath = copy.copy(request.prepath) > 517 return resource.getChildForRequest(self.resource, request) > 518 > *Self* > resource twisted.web.static.File instance @ 0xb7fa804c > FilePath(''/var/lib/xen/sv'') > > *Locals* > self twisted.web.server.Site instance @ 0xb7fb2cac > <twisted.web.server.Site instance at 0xb7fb2cac> > request twisted.web.server.Request instance @ 0xb79766cc <GET / > HTTP/1.1> > > *Globals* > copy |<module ''copy'' from ''/usr/lib/python2.3/copy.pyc''>| > resource |<module ''twisted.web.resource'' from > ''/usr/lib/python2.3/site-packages/twisted/web/resource.pyc''>| > > /usr/lib/python2.3/site-packages/twisted/web/resource.py, line 62 in > getChildForRequest > 60 pathElement = request.postpath.pop(0) > 61 request.prepath.append(pathElement) > 62 resource = resource.getChildWithDefault(pathElement, request) > 63 return resource > *Locals* > pathElement '''' > request twisted.web.server.Request instance @ 0xb79766cc <GET / > HTTP/1.1> > resource twisted.web.static.File instance @ 0xb7fa804c > FilePath(''/var/lib/xen/sv'') > > /usr/lib/python2.3/site-packages/twisted/web/resource.py, line 162 in > getChildWithDefault > 160 return self.children[path] > 161 > 162 return self.getChild(path, request) > 163 > *Self* > children Dictionary instance @ 0xb797d68c > > *Locals* > path '''' > self twisted.web.static.File instance @ 0xb7fa804c > FilePath(''/var/lib/xen/sv'') > request twisted.web.server.Request instance @ 0xb79766cc <GET / > HTTP/1.1> > > /usr/lib/python2.3/site-packages/twisted/web/static.py, line 268 in > getChild > 266 """See twisted.web.Resource.getChild. > 267 """ > 268 self.restat() > 269 > *Locals* > self twisted.web.static.File instance @ 0xb7fa804c > FilePath(''/var/lib/xen/sv'') > > /usr/lib/python2.3/site-packages/twisted/python/filepath.py, line 144 in > restat > 142 def restat(self, reraise=True): > 143 try: > 144 self.statinfo = stat(self.path) > 145 except OSError: > *Self* > statinfo |0| > path ''/var/lib/xen/sv'' > > *Locals* > reraise |True| > self twisted.web.static.File instance @ 0xb7fa804c > FilePath(''/var/lib/xen/sv'') > > *Globals* > stat |<built-in function stat>| > > exceptions.OSError: [Errno 2] No such file or directory: ''/var/lib/xen/sv'' > > > > Is it possible to fix this problem, or does it look like a bug? > > Thanks, > Aaron > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Not sure if I''m posting this in correct place. I receive the following error message when trying to access the web interface (CentOS 4.1, Dell 2450, SCSI RAID): *web.Server Traceback (most recent call last):* exceptions.OSError: [Errno 2] No such file or directory: ''/var/lib/xen/sv'' <http://72.29.118.212:8080/#tbend> /usr/lib/python2.3/site-packages/twisted/web/server.py, line 164 in process 162 self.postpath = map(unquote, string.split(self.path[1:], ''/'')) 163 try: 164 resrc = self.site.getResourceFor(self) 165 self.render(resrc) *Self* site twisted.web.server.Site instance @ 0xb7fb2cac <twisted.web.server.Site instance at 0xb7fb2cac> path ''/'' postpath List instance @ 0xb797690c *Locals* self twisted.web.server.Request instance @ 0xb79766cc <GET / HTTP/1.1> *Globals* unquote |<built-in function unquote>| string |<module ''string'' from ''/usr/lib/python2.3/string.pyc''>| /usr/lib/python2.3/site-packages/twisted/web/server.py, line 517 in getResourceFor 515 # servers and disconnected sites. 516 request.sitepath = copy.copy(request.prepath) 517 return resource.getChildForRequest(self.resource, request) 518 *Self* resource twisted.web.static.File instance @ 0xb7fa804c FilePath(''/var/lib/xen/sv'') *Locals* self twisted.web.server.Site instance @ 0xb7fb2cac <twisted.web.server.Site instance at 0xb7fb2cac> request twisted.web.server.Request instance @ 0xb79766cc <GET / HTTP/1.1> *Globals* copy |<module ''copy'' from ''/usr/lib/python2.3/copy.pyc''>| resource |<module ''twisted.web.resource'' from ''/usr/lib/python2.3/site-packages/twisted/web/resource.pyc''>| /usr/lib/python2.3/site-packages/twisted/web/resource.py, line 62 in getChildForRequest 60 pathElement = request.postpath.pop(0) 61 request.prepath.append(pathElement) 62 resource = resource.getChildWithDefault(pathElement, request) 63 return resource *Locals* pathElement '''' request twisted.web.server.Request instance @ 0xb79766cc <GET / HTTP/1.1> resource twisted.web.static.File instance @ 0xb7fa804c FilePath(''/var/lib/xen/sv'') /usr/lib/python2.3/site-packages/twisted/web/resource.py, line 162 in getChildWithDefault 160 return self.children[path] 161 162 return self.getChild(path, request) 163 *Self* children Dictionary instance @ 0xb797d68c *Locals* path '''' self twisted.web.static.File instance @ 0xb7fa804c FilePath(''/var/lib/xen/sv'') request twisted.web.server.Request instance @ 0xb79766cc <GET / HTTP/1.1> /usr/lib/python2.3/site-packages/twisted/web/static.py, line 268 in getChild 266 """See twisted.web.Resource.getChild. 267 """ 268 self.restat() 269 *Locals* self twisted.web.static.File instance @ 0xb7fa804c FilePath(''/var/lib/xen/sv'') /usr/lib/python2.3/site-packages/twisted/python/filepath.py, line 144 in restat 142 def restat(self, reraise=True): 143 try: 144 self.statinfo = stat(self.path) 145 except OSError: *Self* statinfo |0| path ''/var/lib/xen/sv'' *Locals* reraise |True| self twisted.web.static.File instance @ 0xb7fa804c FilePath(''/var/lib/xen/sv'') *Globals* stat |<built-in function stat>| exceptions.OSError: [Errno 2] No such file or directory: ''/var/lib/xen/sv'' Is it possible to fix this problem, or does it look like a bug? Thanks, Aaron _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Saturday 13 August 2005 20:17, Aaron // LT wrote:> Is it possible to fix this problem, or does it look like a bug?Take a look at http://marc.theaimsgroup.com/?l=xen-users&m=112394102830442&w=2 and see if that fixes your problem - I just filed a bugreport for this issue. J. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks, that fixed it! I''m not sure how complete the web interface is, but I did notice that it was not password protected in anyway, and a few things like pause, and restart were not working... Is there a way to password protect the web interface? Thanks, Aaron J. Kendzorra wrote:>On Saturday 13 August 2005 20:17, Aaron // LT wrote: > > >>Is it possible to fix this problem, or does it look like a bug? >> >> > >Take a look at http://marc.theaimsgroup.com/?l=xen-users&m=112394102830442&w=2 >and see if that fixes your problem - I just filed a bugreport for this issue. > >J. > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sunday 14 August 2005 10:55, Aaron // LT wrote:> I''m not sure how complete the web interface is, but I did notice that it > was not password protected in anyway, and a few things like pause, and > restart were not working...Somewhere on the archives it''s said that these functions were removed (for security purposes?) and xensv is not actively maintained at the moment.> Is there a way to password protect the web interface?You could use apache as a reverse proxy and use its authentification interface. Maybe it would be a good idea to let xensv listen to localhost only - it can be simply done (in Daemon.py): - reactor.listenTCP( SV_PORT, server.Site( root ) ) + reactor.listenTCP( SV_PORT, server.Site( root ), interface="localhost" ) J. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the info... I think we will probably end up writing our own simple PHP based web interface if we decide to go with xen on a large scale. Although having a native web interface would also be great :) Aaron J. Kendzorra wrote:>On Sunday 14 August 2005 10:55, Aaron // LT wrote: > > >>I''m not sure how complete the web interface is, but I did notice that it >>was not password protected in anyway, and a few things like pause, and >>restart were not working... >> >> > >Somewhere on the archives it''s said that these functions were removed (for >security purposes?) and xensv is not actively maintained at the moment. > > > >>Is there a way to password protect the web interface? >> >> > >You could use apache as a reverse proxy and use its authentification >interface. Maybe it would be a good idea to let xensv listen to localhost >only - it can be simply done (in Daemon.py): > >- reactor.listenTCP( SV_PORT, server.Site( root ) ) >+ reactor.listenTCP( SV_PORT, server.Site( root ), >interface="localhost" ) > >J. > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users