Internal Server Error when installing SENAITE

If you encounter the following traceback when installing a new SENAITE site:

2023-03-11 12:21:53,473 ERROR   [waitress:358][waitress-2] Exception while serving /@@senaite-addsite
Traceback (most recent call last):
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/waitress-1.4.4-py2.7.egg/waitress/channel.py", line 350, in service
    task.service()
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/waitress-1.4.4-py2.7.egg/waitress/task.py", line 171, in service
    self.execute()
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/waitress-1.4.4-py2.7.egg/waitress/task.py", line 441, in execute
    app_iter = self.channel.server.application(environ, start_response)
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/Paste-3.5.2-py2.7.egg/paste/translogger.py", line 69, in __call__
    return self.application(environ, replacement_start_response)
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/Zope-4.8.7-py2.7.egg/ZPublisher/httpexceptions.py", line 30, in __call__
    return self.application(environ, start_response)
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/Zope-4.8.7-py2.7.egg/ZPublisher/WSGIPublisher.py", line 404, in publish_module
    start_response(status, headers)
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/Paste-3.5.2-py2.7.egg/paste/translogger.py", line 67, in replacement_start_response
    self.write_log(environ, method, req_uri, start, status, bytes)
  File "/Users/rbartl/develop/ridingbytes/senaite/eggs/Paste-3.5.2-py2.7.egg/paste/translogger.py", line 73, in write_log
    if bytes is None:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

Please go ahead and read this post:

TL;DR: Your terminal is probably localized and you are in a month containing a unicode character in the month, e.g. march in Germany (März).

This is not a SENAITE issue and you need to probably work around with temporarily changing your locales to US.

1 Like