chenqingyu / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Error while saving webroot to 'old' configfile #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think this function is still under development, but it is in the GUI
Saving the webroot for the proxy stuff generates an error 500

27/Oct/2012:21:08:17] HTTP
Request Headers:
  AUTHORIZATION: Basic ZGVubmlzOmZyZGlqajEy
  X-FORWARDED-SERVER: nblinux
  REFERER: http://nblinux.local/autosub/config/
  X-FORWARDED-HOST: nblinux.local
  Remote-Addr: 127.0.0.1
  Content-Length: 2012
  USER-AGENT: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
  CONNECTION: Keep-Alive
  COOKIE: plushContainerWidth=100%25; plushNoTopMenu=0; plushHistPerPage=50; plushQueuePerPage=50
  VIA: 1.1 nblinux
  HOST: localhost:8083
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  ACCEPT-LANGUAGE: nl,en-us;q=0.7,en;q=0.3
  X-FORWARDED-FOR: 192.168.1.116
  Content-Type: application/x-www-form-urlencoded
  ACCEPT-ENCODING: gzip, deflate
[27/Oct/2012:21:08:17] HTTP Traceback (most recent call last):
  File "/usr/local/src/auto-sub/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/src/auto-sub/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/src/auto-sub/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/src/auto-sub/autosub/WebServer.py", line 149, in saveConfig
    message = autosub.Config.WriteConfig()
  File "/usr/local/src/auto-sub/autosub/Config.py", line 961, in WriteConfig
    restart = checkForRestart()
  File "/usr/local/src/auto-sub/autosub/Config.py", line 926, in checkForRestart
    webroot = cfg.get('webserver', 'webroot')
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
NoOptionError: No option 'webroot' in section: 'webserver'

127.0.0.1 - - [27/Oct/2012:21:08:17] "POST /config/saveConfig HTTP/1.1" 500 513 
"http://nblinux.local/autosub/config/" "Mozilla/5.0 (Windows NT 6.2; WOW64; 
rv:16.0) Gecko/20100101 Firefox/16.0"

Original issue reported on code.google.com by aroundmyroom on 27 Oct 2012 at 7:11

GoogleCodeExporter commented 9 years ago
Thanks for reporting

Original comment by romke.va...@gmail.com on 28 Oct 2012 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by romke.va...@gmail.com on 28 Oct 2012 at 9:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f8695bd8af71.

Original comment by romke.va...@gmail.com on 8 Nov 2012 at 12:38