Page MenuHomePhabricator

puppet compiler error on catalog with non-ascii output
Closed, ResolvedPublic

Description

discovered when compiling https://gerrit.wikimedia.org/r/#/c/285961

the output files are there, but the html from the compiler isn't, note that the change compiled fine otherwise

HEAD is now at 0274f46... releases: use secret() for gpg keyring
From /var/lib/catalog-differ/production
* branch            production -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
Applying: releases: use secret() for gpg keyring
[ 2016-04-29T10:37:52 ] INFO: Compiling host bromine.eqiad.wmnet (production)  
[ 2016-04-29T10:38:04 ] INFO: Compiling host bromine.eqiad.wmnet (change)   
[ 2016-04-29T10:38:17 ] INFO: Calculating diffs for bromine.eqiad.wmnet
Error: Add --debug for realtime output, add --render-as {json,yaml} for parsed output  
[ 2016-04-29T10:38:28 ] INFO: Error preparing output for bromine.eqiad.wmnet: 'ascii' codec can't decode byte 0xce in position 2644: ordinal not in range(128)
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/puppet_compiler/controller.py", line 190, in run_host
self._build_html(retcode)
File "build/bdist.linux-x86_64/egg/puppet_compiler/controller.py", line 300, in _build_html
host.htmlpage(self.files)
File "build/bdist.linux-x86_64/egg/puppet_compiler/presentation/html.py", line 37, in htmlpage
page = t.render(host=self.hostname, jid=job_id, chid=change_id, **data)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "<template>", line 27, in top-level template code
  File "<template>", line 31, in block "body"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 2644: ordinal not in range(128)
[ 2016-04-29T10:38:28 ] INFO: Nodes: 0 NOOP 1 DIFF 0 ERROR 0 FAIL
[ 2016-04-29T10:38:28 ] INFO: Run finished; see your results at https://puppet-compiler.wmflabs.org/2634/
Finished: SUCCESS SUCCESS