Project

General

Profile

Actions

Bug #19429

closed

rudder-agent-postinst fails in 7.0 while closing fd

Added by Félix DALLIDET over 3 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

An old hack in the postinst to close the open fd right after the install seems to block the installation on the 7.0 version.
On a debian 10 the postinst fails like such:

    debian10_server: Setting up augeas-lenses (1.11.0-3) ...
    debian10_server: Setting up libaugeas0:amd64 (1.11.0-3) ...
    debian10_server: Setting up augeas-tools (1.11.0-3) ...
    debian10_server: Setting up rudder-agent (7.0.0~alpha1~git202106141100-debian10) ...
    debian10_server: /opt/rudder/share/package-scripts/rudder-agent-postinst: 1: exec: 10: not found
    debian10_server: dpkg: error processing package rudder-agent (--configure):
    debian10_server:  installed rudder-agent package post-installation script subprocess returned error exit status 127
    debian10_server: dpkg: dependency problems prevent configuration of rudder-server-relay:
    debian10_server:  rudder-server-relay depends on rudder-agent (>> 7.0.0~alpha1~git000000000000); however:
    debian10_server:   Package rudder-agent is not configured yet.
    debian10_server:   Version of rudder-agent on system, provided by rudder-agent:amd64, is <none>.
    debian10_server:  rudder-server-relay depends on rudder-agent (<< 7.0.0~alpha1~git999999999999); however:
    debian10_server:   Package rudder-agent is not configured yet.
    debian10_server:   Version of rudder-agent on system, provided by rudder-agent:amd64, is <none>.
    debian10_server: 
    debian10_server: dpkg: error processing package rudder-server-relay (--configure):
    debian10_server:  dependency problems - leaving unconfigured
    debian10_server: Errors were encountered while processing:
    debian10_server:  rudder-agent
    debian10_server:  rudder-server-relay


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #20522: rudder-agent-postinst doesn't close file descriptors anymoreReleasedAlexis MoussetActions
Actions #1

Updated by Félix DALLIDET over 3 years ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Félix DALLIDET over 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2496
Actions #3

Updated by Félix DALLIDET over 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Benoît PECCATTE over 3 years ago

  • Target version changed from 7.0.0~beta1 to 6.1.14

Bugs must be patched in oldest supported version

Actions #6

Updated by Alexis Mousset over 3 years ago

  • Fix check changed from To do to Checked
Actions #7

Updated by Vincent MEMBRÉ over 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.14 and 6.2.8 which were released today.

Actions #8

Updated by Benoît PECCATTE almost 3 years ago

  • Related to Bug #20522: rudder-agent-postinst doesn't close file descriptors anymore added
Actions

Also available in: Atom PDF