Project

General

Profile

Bug #9799

Grep error when running the agent

Added by Alexandre Anriot 3 months ago. Updated 3 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Found in version (s):
How to reproduce:
Reproduced:
No

Description

Hello,

When running the agent, I get on some servers:

# /opt/rudder/bin/rudder agent check
grep: : No such file or directory

# /opt/rudder/bin/rudder agent check -i
grep: -i: No such file or directory

Here is a few more informations :

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.6 (jessie)
Release:        8.6
Codename:       jessie

# dpkg -l|grep rudder-agent
ii  rudder-agent                   4.0.1-jessie0               amd64        Configuration management and audit tool - agent

It seems to be related to the rerouting of stderr in /opt/rudder/share/lib/common.sh line 2:

# Warn on potentially invalid arguments
if grep -- -- "$*" > /dev/null

Thanks.

Alexandre


Related issues

Related to Rudder - User story #9658: Warn the user when he tries to use long arguments with rudder agent Released 2016-11-10

Associated revisions

Revision 2ede2b9b
Added by Alexis MOUSSET 3 months ago

Fixes #9799: Grep error when running the agent

History

#1 Updated by Alexis MOUSSET 3 months ago

  • Category set to Agent
  • Assignee set to Alexis MOUSSET
  • Target version set to 4.0.2

#2 Updated by Alexis MOUSSET 3 months ago

  • Status changed from New to In progress

#3 Updated by Benoît PECCATTE 3 months ago

  • Related to User story #9658: Warn the user when he tries to use long arguments with rudder agent added

#4 Updated by Alexis MOUSSET 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/106

#5 Updated by Alexis MOUSSET 3 months ago

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

#6 Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.2 which was released today.

Also available in: Atom PDF