tags:

views:

87

answers:

1

Hello, I got the following error while accessing tracd server, what's going on ?

Thanks.

[oke@localhost Trac-0.11.7]$ sudo tracd -p 8000 /home/deddihp/trac/
Server starting in PID 5082.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 47804)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/wsgi.py", line 194, in handle_one_request
    gateway.run(self.server.application)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/wsgi.py", line 94, in run
    response = application(self.environ, self._start_response)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/standalone.py", line 100, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py", line 346, in dispatch_request
    locale.setlocale(locale.LC_ALL, environ['trac.locale'])
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
----------------------------------------

A: 

Looks like you try to run tracd with unsupported locale, try to set it to your desired locale (en_US?) before starting trac daemon.

LC_ALL=en_US sudo tracd -p 8000 /home/deddihp/trac/
msurovcak