Closed BarbzYHOOL closed 5 years ago
Again it seems to be an issue for click
library. You can check if suggested environment variables fixes the issue.
Please do following exports and check again.
yeah but they fuck up everything else xD
I can change to en_US but still I had already configured my locales so it's kind of surprising it asks me for that
I am unaware of what is going on there for sure :) Maybe I will detect the same thing with my fresh installation.
I did not find such issue with my environment. So closing.
@ShahriyarR I have this issue again when running the script in a crontab, because cron doesn't have my environment variable set
Can't you do something about it? lol I'm wondering if it's because I use LXC containers or if it's something that can be fixed in autoxtrabackup
And do you have this issue if you try to run autoxtrabackup in a crontab?
@BarbzYHOOL
Well, even in official doc they have mentioned the problem: https://click.palletsprojects.com/en/7.x/python3/#python-3-surrogate-handling
One of the questions: https://stackoverflow.com/questions/32234393/encoding-issue-with-python3-and-click-package
You can specify this env variables in crontab as described here: https://stackoverflow.com/questions/2229825/where-can-i-set-environment-variables-that-crontab-will-use
And do you have this issue if you try to run autoxtrabackup in a crontab? (in your own setup)
@BarbzYHOOL I have no crontab related to autoxtrabackup to check with.
add in cron.hourly/
#!/bin/sh
autoxtrabackup --backup
if you want to test
I know how to add things to crontab but still it is not an issue with autoxtrabackup
it is related to click
library which clearly described this issue and stated some workarounds.
Please figure out how to add env variables in cronjob.
ok so it means you would have this issue too and you don't use autoxtrabackup in a crontab?? weird I thought everybody would put it in cron
I have used as others and there was no issue like yours, until you have opened this issue. So yes it means you will have such issue - you need to figure out how to pass env variables. That's it.
Ah finally, thank you for finally answering -__-
and I don't want to pass env variable in the script if you guys don' tdo it, it makes no sense for me to do it, it's extremely dirty
Any idea why I get this error: