changes in lnt.cfg file
| Bugzilla Link | 33872 |
| Resolution | FIXED |
| Resolved on | Oct 18, 2018 14:22 |
| Version | unspecified |
| OS | Windows NT |
| Reporter | LLVM Bugzilla Contributor |
| CC | @cmatthew |
Extended Description
Are there any changes introduced lnt.cfg file? My existing lnt setup was all working, but now, with all the latest trunk updates, i get following error
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 5262: ordinal not in range(128)
For the below line in lnt.cfg:
'to' : [('.*', '[email protected]')],
Disabling an email, that is, setting nt_emailer member "'enabled' : False," works file. But no mail is generated.
The exception you mention at the top was probably fixed in: r331968.
The 404 could be caused by an incorrectly configured apache proxy.
An example of how I do it:
<Location /perf> Proxypass http://backend_server_name:8000/perf ProxyPassReverse http:/backend_server_name:8000/perf
RequestHeader set X-FORWARDED-SSL "on"
RequestHeader set X-FORWARDED_PROTO "https"
RequestHeader set SCRIPT_NAME "/perf"
Following patch fixes my issue:
--- /usr/lib/python2.7/email/message.py 2017-07-27 06:30:20.123600654 -0400 +++ message.py 2017-07-27 09:16:24.609498297 -0400 @@ -259,9 +259,8 @@ else: self.set_param('charset', charset.get_output_charset()) if isinstance(self._payload, unicode):
-
#print (self._payload) -
self._payload = self._payload.encode('utf-8') -
#self._payload = self._payload.encode(charset.output_charset)
-
print (self._payload) -
self._payload = self._payload.encode(charset.output_charset) if str(charset) != charset.get_output_charset(): self._payload = charset.body_encode(self._payload) if 'Content-Transfer-Encoding' not in self:
lnt submit --commit http://lntserver/perf/submitRun path/report.json error:
Not Found
The requested URL /perf/submitRun was not found on this server.
Apache/2.4.7 (Ubuntu) Server at lntserver Port 80
could this be the reason for the error?
assigned to @cmatthew