Project

General

Profile

Actions

Bug #9799

closed

Grep error when running the agent

Added by Alexandre Anriot almost 8 years ago. Updated almost 8 years ago.

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

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 1 (0 open1 closed)

Related to Rudder - User story #9658: Warn the user when he tries to use long arguments with rudder agentReleasedAlexis Mousset2016-11-10Actions
Actions #1

Updated by Alexis Mousset almost 8 years ago

  • Category set to Agent
  • Assignee set to Alexis Mousset
  • Target version set to 4.0.2
Actions #2

Updated by Alexis Mousset almost 8 years ago

  • Status changed from New to In progress
Actions #3

Updated by Benoît PECCATTE almost 8 years ago

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

Updated by Alexis Mousset almost 8 years 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
Actions #5

Updated by Alexis Mousset almost 8 years ago

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

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF