Skip to content

Error executing mysql-zrm/plugins/ssh-copy.pl -> "Unable to open config file. This is only meant to be invoked from mysql-zrm" #288

Description

@yinyangPT

Hi,

while setting up mysql-zrm, for some reason I can't get the ssh-copy plugin to work, it complains of not having config file.

OS : FC42
RPM : MySQL-zrm-3.0
Config :
backup-level=1
backup-mode=logical
backup-type=regular
destination=/mnt/Backup01/am_tapes_apollo/zrm-backups
retention-policy=40d
compress=1
compress-plugin=/usr/bin/gzip
all-databases=1
exclude-pattern=
user="XXXXXXX"
password="XXXXXXXXXXXXXXXXXXXXXX"
host="XXXXX.XXXXXXX.XXX"
mysql-binlog-path="/mnt/Data/mysql-log"
verbose=1
mailto="XXXX@XXXX.XXXXXX.XXX"
mail-policy=always
html-reports=backup-status-info
copy-plugin=/usr/share/mysql-zrm/plugins/ssh-copy.pl
ssh-user="XXXXX"

Error Message :
src = /mnt/Data/mysql-log/binary-log.000145
k = /mnt/Backup01/am_tapes_apollo/zrm-backups/castle_daily/20260426003537/binary-log.000145
Unable to open config file. This is only meant to be invoked from mysql-zrm
castle_daily:backup:ERROR: Could not copy file "/mnt/Data/mysql-log/binary-log.000145"
castle_daily:backup:ERROR: copy-plugin exited with error 512
castle_daily:backup:ERROR: Could not copy bin log file /mnt/Backup01/am_tapes_apollo/zrm-backups/castle_daily/20260426003537/binary-log.000145

Confirmed the configuration works for FULL backup with no issues, only have problems with the incremental using the plugin/ssh-copy.pl

Also confirmed existance and access with the remote user to the file : /mnt/Data/mysql-log/binary-log.000145

It seems the plugin is expecting to find a environment variable that is not handed by ZRM $ENV['ZRM_CONF'], but could not find where is would be handed to plugin.

Any ideas ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions