Actions
Anomalie #1339
fermébackuppc @ harmine : backup de puppet.vm.april-int échoué
Ajouté par Quentin CHERGUI il y a plus de 11 ans. Mis à jour il y a presque 4 ans.
Début:
06/08/2013
Echéance:
% réalisé:
100%
Temps estimé:
Difficulté:
2 Facile
Description
L'état du backuppc@harmine indique que la machine puppet.vm.april-int n'est pas sauvegardé.
Extrait du fichier de log :
2013-08-06 15:07:08 full backup started for directory / 2013-08-06 15:07:09 Got fatal error during xfer (fileListReceive failed) 2013-08-06 15:07:14 Backup aborted (fileListReceive failed)
Actions
#1
Mis à jour par Quentin CHERGUI il y a plus de 11 ans
Fouille dans les logs de backuppc :
full backup started for directory / Running: /usr/bin/ssh -q -i /var/lib/backuppc/.ssh/abackup -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=false -x -l abackup puppet.vm.april-int /var/local/abackup/rsync_sender --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --checksum-seed=32761 --one-file-system --bwlimit=2560 --ignore-times . / Xfer PIDs are now 9564 Got remote protocol 1768845161 Fatal error (bad version): ionice: Sent exclude: /proc Sent exclude: /sys Sent exclude: /backup Sent exclude: /mnt Sent exclude: /var/cache/apt/archives Read EOF: Tried again: got 0 bytes fileListReceive() failed Done: 0 files, 0 bytes Got fatal error during xfer (fileListReceive failed) Backup aborted (fileListReceive failed) Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)
Tentative d'exécuter la commande à la main : il semblerait juste que sudo ne soit pas installé :
root@harmine:/# /usr/bin/ssh -q -i /var/lib/backuppc/.ssh/abackup -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=false -x -l abackup puppet.vm.april-int /var/local/abackup/rsync_sender --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --checksum-seed=32761 --one-file-system --bwlimit=2560 --ignore-times . / bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR.UTF-8) /bin/bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR.UTF-8) ionice: executing sudo failed: No such file or directory
Ça se confirme en se connectant sur la machine :
root@puppet:~# sudo -bash: sudo: command not found
Actions
#2
Mis à jour par Quentin CHERGUI il y a plus de 11 ans
- Sujet changé de backuppc @ harmine : lackup de puppet.vm.april-int échoué à backuppc @ harmine : backup de puppet.vm.april-int échoué
Un puppet agent -vt --noop indique bien que Puppet aimerai installer sudo, avec la classe backuppc::client :
root@puppet:~# puppet agent -vt --noop info: Retrieving plugin info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb info: Caching catalog for puppet.vm.april-int info: Applying configuration version '1375353269' notice: /Stage[main]/Ssh::Knownhosts/Sshkey[agenda-du-libre.vm.april-int_rsa]/ensure: current_value absent, should be present (noop) notice: /Stage[main]/Ssh::Knownhosts/Sshkey[spip.libre-en-fete.org_dsa]/ensure: current_value absent, should be present (noop) notice: /Stage[main]/Ssh::Knownhosts/Sshkey[agenda-du-libre.vm.april-int_dsa]/ensure: current_value absent, should be present (noop) notice: /Stage[main]/Backuppc::Client/Package[sudo]/ensure: current_value purged, should be present (noop) err: /Stage[main]/Backuppc::Client/File_line[abackup_sudoers]: Could not evaluate: No such file or directory - /etc/sudoers notice: Class[Backuppc::Client]: Would have triggered 'refresh' from 1 events notice: /Stage[main]/Vim/Package[vim]/ensure: current_value purged, should be present (noop) notice: /Stage[main]/Vim/File[/etc/vim/vimrc.local]/content: --- /etc/vim/vimrc.local 2012-12-10 15:15:12.578206000 +0100 +++ /tmp/puppet-file20130806-28082-5i005w-0 2013-08-06 15:54:13.950206001 +0200 @@ -2,5 +2,18 @@ " DO NOT CHANGE : IT WILL BE OVERRIDEN BY PUPPET ON THE NEXT RUN " GENERATED FROM puppet.vm.april-int:/etc/puppet/modules/vim/files/vimrc.local " +set nocompatible syntax on -set paste + +" Edit options +set autoindent + +" UI options +set background=dark +set ruler +set laststatus=2 +set showcmd + +" Search options +set ignorecase +set hlsearch notice: /Stage[main]/Vim/File[/etc/vim/vimrc.local]/content: current_value {md5}2e31556d175342cc9633b30a8737297c, should be {md5}3a02a3855537126c2e03eabaf9c7ce4d (noop) notice: Class[Vim]: Would have triggered 'refresh' from 2 events notice: /Stage[main]/Ssh::Knownhosts/Sshkey[spip.libre-en-fete.org_rsa]/ensure: current_value absent, should be present (noop) notice: Class[Ssh::Knownhosts]: Would have triggered 'refresh' from 4 events notice: Stage[main]: Would have triggered 'refresh' from 3 events notice: Finished catalog run in 1.43 seconds
On a une idée de la raison pour laquelle il n'est pas installé ?
Actions
#3
Mis à jour par Loïc Dachary il y a plus de 11 ans
Apres un
apt-get update
j'ai fait un
root@puppet:~# puppet agent -vt info: Retrieving plugin info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb info: Caching catalog for puppet.vm.april-int info: Applying configuration version '1375353269' notice: /Stage[main]/Backuppc::Client/Package[sudo]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]/Backuppc::Client/File_line[abackup_sudoers]/ensure: created notice: /Stage[main]/Vim/Package[vim]/ensure: ensure changed 'purged' to 'present' notice: Finished catalog run in 13.80 seconds
car en effet, il n'avait pas du etre run depuis un certain temps.
Actions
#4
Mis à jour par Quentin CHERGUI il y a plus de 11 ans
- Statut changé de Confirmé à Résolu
- % réalisé changé de 0 à 100
Les mises à jour se font correctement.
Le problème est résolu.
Actions
#6
Mis à jour par Christian P. Momon il y a presque 4 ans
- Description mis à jour (diff)
- Assigné à mis à Quentin CHERGUI
Actions