Before changing things, what's the output of 'locale'?  

You'll need to specify the .UTF-8 variant of that, though it need not be en_US.  Python's datetime functions use the configured locale, which when it isn't the UTF-8 variant, outputs incompatible encodings.



On Mon, Mar 7, 2016 at 10:09 AM, Marius van den Beek <m.vandenbeek@gmail.com> wrote:
Also it is sometimes necessary to remove outdated compiled mako.
By default this is in database/compiled_templates/

On 7 March 2016 at 16:07, Björn Grüning <bjoern.gruening@gmail.com> wrote:
Can you set your locale to something US UTF8 and restart your Galaxy.

I guess this is happening because of some dates do are not in UTF-8.

Am 07.03.2016 um 16:03 schrieb Anthony Bretaudeau:
> Hi,
> On our prod server that we udated to 16.01, I get this error when trying
> to access the list of saved histories...
> Do you see what's happening?
> Anthony
>
>
> URL: https://galaxy.genouest.org/history/list
> File '/opt/galaxy-dist/lib/galaxy/web/framework/middleware/error.py',
> line 151 in __call__
>   app_iter = self.application(environ, sr_checker)
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/paste/recursive.py',
> line 85 in __call__
>   return self.application(environ, start_response)
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/paste/httpexceptions.py',
> line 640 in __call__
>   return self.application(environ, start_response)
> File '/opt/galaxy-dist/lib/galaxy/web/framework/base.py', line 126 in
> __call__
>   return self.handle_request( environ, start_response )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/base.py', line 184 in
> handle_request
>   body = method( trans, **kwargs )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/decorators.py', line 66
> in decorator
>   return func( self, trans, *args, **kwargs )
> File
> '/opt/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/history.py',
> line 325 in list
>   return self.stored_list_grid( trans, status=status, message=message,
> **kwargs )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/helpers/grids.py', line
> 309 in __call__
>   kwargs=kwargs )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/webapp.py', line 811 in
> fill_template
>   return self.fill_template_mako( filename, **kwargs )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/webapp.py', line 825 in
> fill_template_mako
>   return template.render( **data )
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/mako/template.py',
> line 445 in render
>   return runtime._render(self, self.callable_, args, data)
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/mako/runtime.py',
> line 829 in _render
>   **_kwargs_for_callable(callable_, data))
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/mako/runtime.py',
> line 864 in _render_context
>   _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
> File
> '/opt/galaxy-dist/.venv/lib/python2.7/site-packages/mako/runtime.py',
> line 890 in _exec_template
>   callable_(context, *args, **kwargs)
> File '/opt/galaxy-dist/database/compiled_templates/base.mako.py', line
> 61 in render_body
>   __M_writer(unicode(next.body()))
> File '/opt/galaxy-dist/database/compiled_templates/grid_base.mako.py',
> line 79 in render_body
>   __M_writer(unicode(self.load()))
> File
> '/opt/galaxy-dist/database/compiled_templates/history/grid.mako.py',
> line 53 in render_load
>   __M_writer(unicode(parent.load( embedded=embedded, insert=insert )))
> File '/opt/galaxy-dist/database/compiled_templates/grid_base.mako.py',
> line 107 in render_load
>   __M_writer(unicode( h.dumps( self.get_grid_config( embedded=embedded,
> insert=insert ) ) ))
> File '/opt/galaxy-dist/database/compiled_templates/grid_base.mako.py',
> line 293 in render_get_grid_config
>   value = column.get_value( trans, grid, item )
> File '/opt/galaxy-dist/lib/galaxy/web/framework/helpers/grids.py', line
> 374 in get_value
>   return escape(value)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
> ordinal not in range(128)
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/