Hola Stephen:

2018-04-27 10:18 GMT-05:00 Stephen Amell <stephenam...@inbox.lv>:

> Buenos días lista, como va?
>
> Estoy empezando a probar Barman 2.3 (http://docs.pgbarman.org/release/2.3/),
> pero estoy teniendo un problema con una base LATIN1. Mas abajo les dejo el
> log a ver si me pueden orientar, por lo pronto me estoy uniendo al grupo de
> barman a ver si ahi encuentro algo (pero es en ingles ;P)
>
> ¿Alguien sabe si hay alguna limitación con los diccionarios que respalda
> barman?
>
>
> 2018-04-27 11:48:04,547 [16909] barman.cli ERROR: 'ascii' codec can't
> encode character u'\xab' in position 455: ordinal not in range(128)
> See log file for more details.
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/barman/cli.py", line 1123, in
> main
>     p.dispatch(pre_call=global_config)
>   File "/usr/lib/python2.7/site-packages/argh/helpers.py", line 55, in
> dispatch
>     return dispatch(self, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/argh/dispatching.py", line 174,
> in dispatch
>     for line in lines:
>   File "/usr/lib/python2.7/site-packages/argh/dispatching.py", line 277,
> in _execute_command
>     for line in result:
>   File "/usr/lib/python2.7/site-packages/argh/dispatching.py", line 231,
> in _call
>     result = function(namespace_obj)
>   File "/usr/lib/python2.7/site-packages/barman/cli.py", line 215, in
> backup
>     server.backup()
>   File "/usr/lib/python2.7/site-packages/barman/server.py", line 989, in
> backup
>     self.backup_manager.backup()
>   File "/usr/lib/python2.7/site-packages/barman/backup.py", line 369, in
> backup
>     msg_lines = str(e).strip().splitlines()
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xab' in
> position 455: ordinal not in range(128)
>
> 2018-04-27 11:49:02,101 [17847] barman.config DEBUG: Including
> configuration file: vm-latin1.cx.ar.conf
> 2018-04-27 11:49:02,101 [17845] barman.config DEBUG: Including
> configuration file: latin1.cx.ar.conf
> 2018-04-27 11:49:02,102 [17847] barman.cli DEBUG: Initialised Barman
> version 2.3 (config: /etc/barman.conf, args: {'debug': False, 'command':
> 'cron', 'quiet': True, 'format': 'console'})
>
> Esto es un issue conocido que se solucionará en la próxima versión. La
solución temporal es la siguiente:

Modifica en el fichero /usr/lib/python2.7/site-packages/barman/cli.py  la
función main y al principio de la función haz el cambio siguiente:

def main(): try: reload(sys) sys.setdefaultencoding('utf8') except: pass #
... el resto de la función main aqui

 Saludos



-- 
Daymel Bonne               https://www.2ndQuadrant.com/
<https://www.2ndquadrant.com/>
Database Consultant, Training & Services

Reply via email to