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

Closed
mnencia opened this issue Feb 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@mnencia
Copy link
Member

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/cli.py", line 1320, in main
    p.dispatch(pre_call=global_config)
  File "/usr/lib/python2.7/dist-packages/argh/helpers.py", line 53, in dispatch
    return dispatch(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/argh/dispatching.py", line 124, in dispatch
    for line in lines:
  File "/usr/lib/python2.7/dist-packages/argh/dispatching.py", line 200, in _execute_command
    for line in result:
  File "/usr/lib/python2.7/dist-packages/argh/dispatching.py", line 156, in _call
    result = args.function(args)
  File "/usr/lib/python2.7/dist-packages/barman/cli.py", line 936, in receive_wal
    server.receive_wal(reset=args.reset)
  File "/usr/lib/python2.7/dist-packages/barman/server.py", line 1975, in receive_wal
    archiver.receive_wal(reset)
  File "/usr/lib/python2.7/dist-packages/barman/wal_archiver.py", line 756, in receive_wal
    receive.execute()
  File "/usr/lib/python2.7/dist-packages/barman/command_wrappers.py", line 419, in execute
    self.pipe_processor_loop(processors)
  File "/usr/lib/python2.7/dist-packages/barman/command_wrappers.py", line 485, in pipe_processor_loop
    eof = stream.process()
  File "/usr/lib/python2.7/dist-packages/barman/command_wrappers.py", line 93, in process
    self._handler(line)
  File "/usr/lib/python2.7/dist-packages/barman/command_wrappers.py", line 532, in handler
    output.info("%s%s", prefix, line)
  File "/usr/lib/python2.7/dist-packages/barman/output.py", line 208, in info
    _put('info', message, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/barman/output.py", line 139, in _put
    getattr(_writer, level)(message, *args)
  File "/usr/lib/python2.7/dist-packages/barman/output.py", line 410, in info
    self._out(message, args)
  File "/usr/lib/python2.7/dist-packages/barman/output.py", 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.