Project

General

Profile

Bug #4644

Cannot upgrade from 2.9.2 to 2.9.4 due to an error on '/etc/logrotate.d/rudder'

Added by Vincent MEMBRÉ over 6 years ago. Updated over 5 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

I tried upgrading a Rudder server (debian squeeze) from 2.9.2 to 2.9.4 but at the end (seems rudder-server-root postinst)

I get that error (sorry about the french in error ...) :

Paramétrage de rudder-server-root (2.9.4-squeeze0) ...
Installation de la nouvelle version du fichier de configuration /etc/init.d/rudder-server-root ...
Preserving user changes to /etc/logrotate.d/rudder (renamed from /etc/logrotate.d/rudder-server-root)...
mv: impossible d'évaluer « /etc/logrotate.d/rudder »: Aucun fichier ou dossier de ce type
dpkg : erreur de traitement de rudder-server-root (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
configured to not write apport reports
                                      Des erreurs ont été rencontrées pendant l'exécution :
 rudder-server-root
E: Sub-process /usr/bin/dpkg returned an error code (1)

Saying that '/etc/logrotate.d/rudder' is missing, but this file is actually present ...

The server seems to work fine but the installation is not complete...

#1

Updated by Nicolas CHARLES about 6 years ago

  • Status changed from New to 8
  • Assignee set to Matthieu CERDA
  • Priority changed from 2 to 1
#2

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.9.5 to 2.9.6
#3

Updated by Jonathan CLARKE about 6 years ago

  • Target version changed from 2.9.6 to 2.9.7
#4

Updated by Jonathan CLARKE about 6 years ago

  • Target version changed from 2.9.7 to 150
#5

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 150 to 2.10.4
#6

Updated by Nicolas PERRON almost 6 years ago

  • Target version changed from 2.10.4 to 2.10.5
#7

Updated by Jonathan CLARKE almost 6 years ago

  • Status changed from 8 to Pending technical review
  • Assignee changed from Matthieu CERDA to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/461

This is a bit of a weird one. We use the "dpkg-maintscript-helper mv_conffile" helper to move the old config file (/etc/logrotate.d/rudder-server-root) to it's new name (/etc/logrotate.d/rudder). However, this helper tries to mv the new file to /etc/logrotate.d/rudder.dpkg-new, without checking if it exists. This seems weird to me, and at least some other people, as shown in https://code.launchpad.net/~neil-aldur/ubuntu/precise/iptables-persistent/fix-for-967018-905517/+merge/100652.

However, the workaround is simple: we touch the new file if it doesn't exist, so that "dpkg-maintscript-helper mv_conffile" always succeeds.

#8

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.10.5 to 2.10.6
#9

Updated by Benoît PECCATTE almost 6 years ago

  • Status changed from Pending technical review to In progress
  • Assignee changed from Benoît PECCATTE to Jonathan CLARKE
#10

Updated by Jonathan CLARKE almost 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request changed from https://github.com/Normation/rudder-packages/pull/461 to https://github.com/Normation/rudder-packages/pull/485
#11

Updated by Jonathan CLARKE almost 6 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset commit:a5fec0d5941792e6b583d0e462e65a1bbd672f0c.

#12

Updated by Matthieu CERDA almost 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.6, which was released today.
Check out:

#13

Updated by Matthieu CERDA almost 6 years ago

This bug has been fixed in Rudder 2.10.6, which was released today.
Check out:

#14

Updated by Benoît PECCATTE over 5 years ago

  • Project changed from packages to Rudder
  • Category set to Packaging

Also available in: Atom PDF