Bonjour,
J'ai installé Affa3 suivant la nouvelle procédure du wiki (en anglais) sur une machine SME 9.1 fraîchement créée pour sauvegarder en local (LAN) un serveur de production SME 8.2 (serveur et passerelle).
J'ai créé un fichier .conf dénommé locale_sme9 à partir du SME_SME.conf. Configcheck : OK.
Les clés ont été envoyées, check-connections : OK.
Affa --run ne fonctionne pas, cf. log ci-dessous. Il semble qu'il y ait un problème de résolution de nom... ou bien il y a une commande bizarre dans la ligne précédente.
Wed Apr 13 11:22:48[20607]: Affa 3.2.2.3-2: Running /sbin/affa --run locale_sme9
Wed Apr 13 11:22:48[20607]: ##################
Wed Apr 13 11:22:48[20607]: # Affa 3.2.2.3-2 #
Wed Apr 13 11:22:48[20607]: ##################
Wed Apr 13 11:22:48[20607]: Starting job locale_sme9 scheduled (192.168.x.1 )
Wed Apr 13 11:22:48[20607]: Description: sauvegarde locale 2 de LT prod
Wed Apr 13 11:22:48[20607]: Checking SSH connection to root@192.168.x.1
Wed Apr 13 11:22:48[20607]: Exec Cmd: /usr/bin/ssh -o ConnectTimeout=120 -o PasswordAuthentication=no -p 22 -o CheckHostIP=no -o StrictHostKeyChecking=no -o HostKeyAlias=locale_sme9 -o UserKnownHostsFile=/root/.ssh/knownhosts-locale_sme9 root@192.168.x.1 echo OK
Wed Apr 13 11:22:50[20607]: Exec Out: OK
Wed Apr 13 11:22:50[20607]: Exec Out: exitstatus=0
Wed Apr 13 11:22:50[20607]: Installing watchdog on 192.168.x.1 with dt=87000 seconds
Wed Apr 13 11:22:50[20607]: Watchdog parameters:
Wed Apr 13 11:22:50[20607]: _TRIGGER=>201604141132
Wed Apr 13 11:22:50[20607]: _JOBNAME=>'locale_sme9'
Wed Apr 13 11:22:50[20607]: _EMAIL=>'admin@rrrrrrrrrr.fr '
Wed Apr 13 11:22:50[20607]: _BACKUPHOST=>'sme9-1.yyyy.homelinux.com (192.168.x.11)'
Wed Apr 13 11:22:50[20607]: _SCHEDULED=>'Wed Apr 13 11:22:50 2016'
Wed Apr 13 11:22:50[20607]: _WDSCRIPT=>'affa[color=black]-watchdog-locale_sme9-192.168.x.11'
Wed Apr 13 11:22:50[20607]: Exec Cmd: /usr/bin/ssh -o HostKeyAlias=locale_sme9 -p 22 192.168.x.1 /bin/rm -f /etc/cron.hourly/affa-watchdog-locale_sme9-192.168.x.11-reminder
Wed Apr 13 11:22:50[20607]: Exec Out: exitstatus=0
[/color]Wed Apr 13 11:22:50[20607]: Exec Cmd: nice --adjustment=15 [color=blue]rsync --archive --timeout=900 --compress --rsync-path="/bin/nice --adjustment=15 /usr/bin/rsync" --rsh="ssh -p 22 -o CheckHostIP=no -o StrictHostKeyChecking=no -o HostKeyAlias=locale_sme9 -o UserKnownHostsFile=/root/.ssh/knownhosts-locale_sme9" /tmp/20607.affa-watchdog-locale_sme9-192.168.x.11 root@192.168.x.1 :/etc/cron.hourly/affa-watchdog-locale_sme9-192.168.x.11[/color]
Wed Apr 13 11:22:50[20607]: Exec Out: [color=red]ssh: Could not resolve hostname : Name or service not known[/color]
Wed Apr 13 11:22:50[20607]: Exec Out: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Wed Apr 13 11:22:50[20607]: Exec Out: rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
Wed Apr 13 11:22:50[20607]: Exec Out: exitstatus=255
Wed Apr 13 11:22:50[20607]: Error (3508): Couldn't copy /tmp/20607.affa-watchdog-locale_sme9-192.168.x.11 to remote host.
Wed Apr 13 11:22:50[20607]: Starting re-run 1 of 4 in 600 seconds.
Wed Apr 13 11:22:50[20607]: Total execution time: 0m02s
Wed Apr 13 11:22:50[20607]: Failure message sent to admin@yyyy.homelinux.com
Wed Apr 13 11:22:50[20607]: Exiting.
Wed Apr 13 11:22:50[20607]: .
Wed Apr 13 11:22:54[20633]: Affa 3.2.2.3-2: Running /sbin/affa --run locale_sme9 --RetryAttempts=3 --RetryAfter=600
Wed Apr 13 11:22:54[20633]: ##################
Wed Apr 13 11:22:54[20633]: # Affa 3.2.2.3-2 #
Wed Apr 13 11:22:54[20633]: ##################
Wed Apr 13 11:22:54[20633]: Starting job locale_sme9 scheduled (192.168.x.1 )
Wed Apr 13 11:22:54[20633]: Description: sauvegarde locale 2 de LT prod
Wed Apr 13 11:22:54[20633]: Waiting 600 seconds. Continuing at 11:32:54
Wed Apr 13 11:23:51[20633]: scheduled run killed
Wed Apr 13 11:23:51[20633]: Error (3621): Caught interrupt signal TERM
Wed Apr 13 11:23:51[20633]: Total execution time: 0m57s
Wed Apr 13 11:23:51[20633]: Failure message sent to admin@yyyy.homelinux.com
Wed Apr 13 11:23:51[20633]: Exiting.
Wed Apr 13 11:23:51[20633]: .
Si c'est un problème de résolution de nom, ce serait un problème de configuration du serveur SME9 de sauvegarde... Le domaine primaire de ce serveur doit-il être identique à celui du serveur de production ou en être une extension, par exemple sme9.yyyy.homelinux.com dans ce cas ?
Ou bien faut-il indiquer le serveur de production comme serveur DNS dans le dernier écran de configuration ?
J'ai essayé un peu tout çà mais ça ne marche toujours pas.
D'avance merci.