Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The `barman receive-wal` command fails with French locale #196

mnencia opened this issue Feb 5, 2019 · 0 comments


None yet
1 participant
Copy link

commented Feb 5, 2019

The pg_receivexlog output contains an à character that triggers a Traceback.

2019-02-04 17:57:25,153 [30369] barman.command_wrappers DEBUG: Command: ['/usr/bin/pg_receivexlog', '--dbname=dbname=replication host=db options=-cdatestyle=iso port=5432 replication=true user=barman_streaming application_name=barman_receive_wal', '--verbose', '--no-loop', '--no-password', '--directory=/var/lib/barman/main/streaming']
2019-02-04 17:57:25,906 [30369] barman.cli ERROR: 'ascii' codec can't encode character u'\xe0' in position 53: ordinal not in range(128)
See log file for more details.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/barman/", line 1320, in main
  File "/usr/lib/python2.7/dist-packages/argh/", line 53, in dispatch
    return dispatch(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/argh/", line 124, in dispatch
    for line in lines:
  File "/usr/lib/python2.7/dist-packages/argh/", line 200, in _execute_command
    for line in result:
  File "/usr/lib/python2.7/dist-packages/argh/", line 156, in _call
    result = args.function(args)
  File "/usr/lib/python2.7/dist-packages/barman/", line 936, in receive_wal
  File "/usr/lib/python2.7/dist-packages/barman/", line 1975, in receive_wal
  File "/usr/lib/python2.7/dist-packages/barman/", line 756, in receive_wal
  File "/usr/lib/python2.7/dist-packages/barman/", line 419, in execute
  File "/usr/lib/python2.7/dist-packages/barman/", line 485, in pipe_processor_loop
    eof = stream.process()
  File "/usr/lib/python2.7/dist-packages/barman/", line 93, in process
  File "/usr/lib/python2.7/dist-packages/barman/", line 532, in handler"%s%s", prefix, line)
  File "/usr/lib/python2.7/dist-packages/barman/", line 208, in info
    _put('info', message, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/barman/", line 139, in _put
    getattr(_writer, level)(message, *args)
  File "/usr/lib/python2.7/dist-packages/barman/", line 410, in info
    self._out(message, args)
  File "/usr/lib/python2.7/dist-packages/barman/", line 374, in _out
    print(_format_message(message, args), file=sys.stdout)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 53: ordinal not in range(128)

@mnencia mnencia self-assigned this Feb 5, 2019

@mnencia mnencia added this to the 2.7 milestone Feb 5, 2019

@mnencia mnencia closed this in 06eb25f Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.