Projet

Général

Profil

Anomalie #992

etckeeper cassé sur pavot.april.org

Ajouté par Loïc Dachary il y a plus de 11 ans. Mis à jour il y a plus de 9 ans.

Statut:
Fermé
Priorité:
Immédiate
Assigné à:
Catégorie:
Task
Version cible:
Début:
03/11/2012
Echéance:
03/11/2012
% réalisé:

100%

Temps estimé:
Temps passé:
Difficulté:
2 Facile

Description

root@pavot:/etc/init.d# git status
fatal: unable to create '.git/index.lock': File exists

Historique

#1

Mis à jour par Loïc Dachary il y a plus de 11 ans

root         1  0.0  0.0  10312   276 ?        Ss   Oct17   0:04 init [2]  
root       840  0.0  0.0  16920   240 ?        S<s  Oct17   0:00 udevd --daemon
root      2599  0.0  0.0  48868   492 ?        Ss   Oct17   0:03 /usr/sbin/sshd
root     17447  0.0  0.0  66076   568 ?        Ss   Oct17   0:00  \_ sshd: root@pts/0 
root     17617  0.0  0.0  20576   484 pts/0    Ss+  Oct17   0:00  |   \_ -bash
root     19287  0.0  0.0  66076  3116 ?        Ss   17:09   0:00  \_ sshd: root@pts/1 
root     19291  0.0  0.0  20484  3684 pts/1    Ss   17:09   0:00  |   \_ -bash
root     21477  0.0  0.0  15980  1092 pts/1    R+   17:18   0:00  |       \_ ps -faux
root     21471  0.0  0.0  50212  2604 ?        Ss   17:18   0:00  \_ sshd: [accepted] 
sshd     21472  0.0  0.0  50212  1380 ?        S    17:18   0:00      \_ sshd: [net]      
root      2789  0.0  0.0  16568    60 ?        Ss   Oct17   0:00 /usr/bin/daemon /etc/init.d/mpt-statusd check_mpt
root      2790  0.0  0.0  17588   644 ?        S    Oct17   0:01  \_ /bin/sh /etc/init.d/mpt-statusd check_mpt
root     20398  0.0  0.0   8040   588 ?        S    17:14   0:00      \_ sleep 600
ntp       2906  0.0  0.0  22384   648 ?        Ss   Oct17   0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 104:106 -g
daemon    2917  0.0  0.0  16356   184 ?        Ss   Oct17   0:00 /usr/sbin/atd
root      2971  0.0  0.0  19832   364 ?        Ss   Oct17   0:02 /usr/sbin/cron
root      3330  0.0  0.0   3796   192 tty1     Ss+  Oct17   0:00 /sbin/getty 38400 tty1
root      3331  0.0  0.0   3796   192 tty2     Ss+  Oct17   0:00 /sbin/getty 38400 tty2
root      3332  0.0  0.0   3796   192 tty3     Ss+  Oct17   0:00 /sbin/getty 38400 tty3
root      3333  0.0  0.0   3796   192 tty4     Ss+  Oct17   0:00 /sbin/getty 38400 tty4
root      3335  0.0  0.0   3796   192 tty5     Ss+  Oct17   0:00 /sbin/getty 38400 tty5
root      3336  0.0  0.0   3796   192 tty6     Ss+  Oct17   0:00 /sbin/getty 38400 tty6
root      3337  0.0  0.0   3792   152 ttyS1    Ss+  Oct17   0:00 /sbin/getty -h -L ttyS1 57600 ansi
root     25077  0.0  0.0  41780  2564 ?        Ss   Oct19   0:32 /usr/sbin/munin-node
zabbix   25207  0.0  0.0  39428   252 ?        SN   Oct19   0:00 /usr/sbin/zabbix_agentd
zabbix   25208  0.0  0.0  39428   488 ?        SN   Oct19  12:14  \_ /usr/sbin/zabbix_agentd
zabbix   25209  0.0  0.0  39428   212 ?        SN   Oct19   0:00  \_ /usr/sbin/zabbix_agentd
zabbix   25210  0.0  0.0  39428   212 ?        SN   Oct19   0:00  \_ /usr/sbin/zabbix_agentd
zabbix   25211  0.0  0.0  39428   212 ?        SN   Oct19   0:00  \_ /usr/sbin/zabbix_agentd
zabbix   25212  0.0  0.0  39488   388 ?        SN   Oct19   0:04  \_ /usr/sbin/zabbix_agentd
nobody   25232  0.0  0.1  36900  7948 ?        Ss   Oct19   2:18 /usr/sbin/openvpn --writepid /var/run/openvpn.server.pid --daemon ovpn-server
root     25238  0.0  0.0 187132  1428 ?        Sl   Oct19   0:19 /usr/sbin/rsyslogd -c3
root@pavot:/etc/init.d# fuser /etc/.git/index.lock 
root@pavot:/etc/init.d# 

ca pourrait etre un résidu d'un reboot ? Je ne vois aucun process qui tient le lock donc ça parait safe de le supprimer.
#2

Mis à jour par Loïc Dachary il y a plus de 11 ans

  • Assigné à mis à Loïc Dachary
  • % réalisé changé de 0 à 80
root@pavot:/etc/init.d# git fsck-objects --full
dangling blob 37a24b8138f621f157ad4dc2529e1d91fd03436d
dangling tree f70799e03f9b59a3ed12030097a80147f0ef85d6
dangling blob 2b0c13402e4aba26e6a797d5539f363f9e742b2f
dangling blob e113378cf4d832e0149bc03892daa9fb16d4684e
dangling blob 5db50c7c2e5883473658aa87d931dd0ebc252315
dangling blob 1636b3f624cd844ddacea3a4dfa17cff011863a9
root@pavot:/etc/init.d# rm /etc/.git/index.lock 
#3

Mis à jour par Loïc Dachary il y a plus de 11 ans

  • Echéance mis à 03/11/2012
  • Statut changé de Confirmé à Fermé

http://git-scm.com/book/en/Git-Internals-Maintenance-and-Data-Recovery
explique comment on pourrait récupérer les commit manquant. S'agissant de /etc et dans la mesure ou il ne semble pas que /etc soit corrompu, on peut remettre ça a plus tard. En tout ça rien n'indique que ces objets perdus puissent avoir la moindre conséquence néfaste.

Pour bien faire il faudrait restaurer le repository quelque part et comparer le contenu avec /etc.

#4

Mis à jour par Loïc Dachary il y a plus de 11 ans

  • % réalisé changé de 80 à 100
#5

Mis à jour par Vincent-Xavier JUMEL il y a plus de 9 ans

  • Version cible changé de Backlog à Novembre 2013

Formats disponibles : Atom PDF