Project

General

Profile

Actions

Bug #19429

closed

rudder-agent-postinst fails in 7.0 while closing fd

Added by Félix DALLIDET 11 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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

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

Updated by Félix DALLIDET 11 months ago

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

Updated by Félix DALLIDET 11 months 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 11 months ago

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

Updated by Benoît PECCATTE 11 months ago

  • Target version changed from 7.0.0~beta1 to 6.1.14

Bugs must be patched in oldest supported version

Actions #7

Updated by Vincent MEMBRÉ 10 months 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 4 months ago

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

Also available in: Atom PDF