Project

General

Profile

Actions

Bug #9799

closed

Grep error when running the agent

Added by Alexandre Anriot over 7 years ago. Updated over 7 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

Also available in: Atom PDF