Author Topic: NSM Remote BackUp does not work  (Read 2174 times)

minga_private

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
NSM Remote BackUp does not work
« on: December 07, 2012, 05:02:13 am »
Hello,

we have a weird problem with the remote backup of a stand alone NSM (CentOS 5.7)

/usr/netscreen/HaSvr/var/errorLog/backup.log
20121203152837: START executeBackupCommand()... nsm /usr/bin/rsync --rsync-path=/usr/bin/rsync -avzte
 /usr/bin/ssh /var/netscreen/<directory>/startToken/startToken <remote-ip>:/var/netscreen/<directory>/backup1/
20121203152837: END executeBackupCommand()...
20121203152837: START displayBackupStatus()...
20121203152837: Consecutive remote rsync failures..0
20121203152837: Gui Server Status...
20121203152837: ...Consecutive start failures......
20121203152837: ...Consecutive backup failures.....0
20121203152837: Dev Server Status...
20121203152837: ...Consecutive start failures......
20121203152837: ...Consecutive backup failures.....0
20121203152837: END displayBackupStatus()...
20121203152837: sendToken ... has issues
20121203152837: START executeBackupCommand()... nsm /usr/bin/rsync --rsync-path=/usr/bin/rsync --excl
ude-from=/var/netscreen/<directory>/excludeRemote.​rsync --timeout=7200 --delete -avze /usr/bin/ssh /
var/netscreen/<directory> /var/netscreen/GuiSvr <remote-ip>:/var/netscreen/<directory>/backup1/
20121203152837: END executeBackupCommand()...
20121203152837: START displayBackupStatus()...
20121203152837: Consecutive remote rsync failures..1
20121203152837: Gui Server Status...
20121203152837: ...Consecutive start failures......
20121203152837: ...Consecutive backup failures.....0
20121203152837: Dev Server Status...
20121203152837: ...Consecutive start failures......
20121203152837: ...Consecutive backup failures.....0
20121203152837: END displayBackupStatus()...
20121203152837: END backupRsync()...
20121203152837: END doRemoteBackup()...

/usr/netscreen/HaSvr/bin/.backupDoRemote.result:
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w tunnel:tunnel] [user@]hostname [command]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w tunnel:tunnel] [user@]hostname [command]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
doRemoteBackup returned FAILURE

local backup is fine

SSH Trustship is working, nsm is owner of /var/netscreen/<directory> on the remote server

/usr/bin/rsync is executable for user nsm on the remote server

it seems that ssh-command from NSM ist starting w/o any rsync-command or parameters (because of usage:ssh entry)

haSvr.cfg:
highAvail.isWatchdogEnabled                   y
highAvail.isHaEnabled                         n
highAvail.isLocalDbBackupEnabled              y
highAvail.pathDbBackup                        /var/netscreen/<directory>
highAvail.numOfBackups                        3
highAvail.isRemoteDbBackupReplicationEnabled  y
highAvail.remoteSyncIp                        <remote-ip>
highAvail.backupTimeHour                      04
highAvail.rsyncCommandBackupTimeout           7200
highAvail.rsyncCommandReplicationTimeout      7200
highAvail.rsyncLocation                       /bin/usr/rsync
highAvail.sshLocation                         ""

Any idea ?

thanks

regards

minga_private