-
Notifications
You must be signed in to change notification settings - Fork 79
Config not generated on setup #446
Comments
Also, I've had similar issues before in 1.5.x. Maybe to circum/prevent this issue there could be a |
Hmm why I missed this issue? :D |
As discussed in #446 it can be valuable to add an commandline option to generate the default config file is this was somehow eliminated by setup. --generate-config-file flag option was added. Sample run will be something like this: autoxtrabackup --generate-config-file --verbose 2021-10-03 19:03:07 INFO [autoxtrabackup:278] Default config file is generated in /home/shako/.autoxtrabackup/autoxtrabackup.cnf 2021-10-03 19:03:07 INFO [autoxtrabackup:313] Xtrabackup command history: 2021-10-03 19:03:07 INFO [autoxtrabackup:315] ['command', 'xtrabackup_function', 'start time', 'end time', 'duration', 'exit code'] 2021-10-03 19:03:07 INFO [autoxtrabackup:316] Autoxtrabackup completed successfully!
…ath (#448) As discussed in #446 it can be valuable to add an commandline option to generate the default config file is this was somehow eliminated by setup. --generate-config-file flag option was added. Sample run will be something like this: autoxtrabackup --generate-config-file --verbose 2021-10-03 19:03:07 INFO [autoxtrabackup:278] Default config file is generated in /home/shako/.autoxtrabackup/autoxtrabackup.cnf 2021-10-03 19:03:07 INFO [autoxtrabackup:313] Xtrabackup command history: 2021-10-03 19:03:07 INFO [autoxtrabackup:315] ['command', 'xtrabackup_function', 'start time', 'end time', 'duration', 'exit code'] 2021-10-03 19:03:07 INFO [autoxtrabackup:316] Autoxtrabackup completed successfully!
Hi @ShahriyarR , After this merge I've got this:
I'm not really sure what's causing this. Looks like autoxtrabackup.py: 208 tries to get the logging options from generalops.py:42 which tries to get it from the config file.. but that one doesn't exist. |
@JasperAlgra This project is can be shown as a study case of what happens - "when you have no tests" :D |
Thanks a lot man! I've got a taste from the mongodb backup with PointInTime recovery and fully managed + verified backups, which is very very nice... but it seems we will continue to use Percona xtraDB cluster in production instead of the planned mongo. So I'm also willing to donate some time to this project as it's valuable for us. But Pyhton is very-much not my language so I'm struggling a bit to contribute in a efficient way :') I really like your idea of the new API. It would be a nice way to verify if/when backups are made by a monitoring tool and get alerting etc. |
Hi,
When installing the new v.2 (awesome by the way!) the config dir ~/.autoxtrabackup and config files are not created.
Host: Debian 10.
Command:
as root. Result of install:
The dir ~/.autoxtrabackup and config files are not created. I'm not sufficient enough in Python to quickly see why the
__init__.py
fromgeneral_conf
isn't doing it's job.I've cleared the pip cache, same result.
I've also tried building from source, please see log all the way down.
Thus autoxtrabackup is not working:
If I can provide more info please let me now
Building from source log:
The text was updated successfully, but these errors were encountered: