Menu

#57 script is exiting with code 1 when the output does not indicate an error

v1.0 (example)
open
nobody
None
5
2023-06-18
2023-06-18
No

I am getting a note from cron that automysqlbackup exited with code 1. Manually running it shows that this is the case:

elyograg@smeagol:~/git/haproxy-scripts$ sudo automysqlbackup || echo BLEH
Invoking backup method.

certsconfig
erinat
kadythaine
lheisey
lights
mysql_innodb_cluster_metadata
nextcloud
opendmarc
paste
phpmyadmin
piwigo
purgatory
secrets
sys
yourls
Parsed config file "/etc/automysqlbackup/automysqlbackup.conf"

# Checking for permissions to write to folders:
base folder /var/backups/misc ... exists ... ok.
backup folder /var/backups/misc/mysql ... exists ... writable? yes. Proceeding.
BLEH

I have made changes as discussed in ticket #56 to fix errors caused by shifting to InnoDB cluster. I haven't yet looked at the script to determine why it is exiting with code 1. When I find some free time I will do so.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.