Project

General

Profile

Bug #6429

service rudder-* outputs on stderror

Added by Jean Cardona over 3 years ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Target version (plugin):
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
40

Description

using "service rudder-agent/server-root/... somevalidcommand" outputs on stderr and not stdout on Debian, even if there is no error.

Associated revisions

Revision 2e577734 (diff)
Added by Benoît PECCATTE 7 months ago

Fixes #6429: service rudder-* outputs on stderror

History

#1 Updated by François ARMAND over 3 years ago

  • Assignee set to Benoît PECCATTE

Benoit, could you try to qualify that one ?

#2 Updated by Benoît PECCATTE over 3 years ago

  • Assignee changed from Benoît PECCATTE to Jean Cardona

Sorry but I could not find any trace of stderr output in init scripts, except this one:
echo "Cannot find a Java JDK. Please set either set JAVA or put java (>=1.5) in your PATH." 2>&2

Which leads to a failure to start.

Jean, can you elaborate a bit ?
Where and how did you detect this behavior ?

#3 Updated by Jean Cardona over 3 years ago

If I want to redirect the output of

service rudder-agent restart

I need to use
service rudder-agent restart 2> /tmp/test.txt

the agent restarted without error, so as I understand it output should not be stderr
% cat /tmp/test.txt
rudder-agent[16804]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[16807]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[16808]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[16809]: [INFO] can't read PID file, not stopping cf-serverd
rudder-agent[16810]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[17435]: [INFO] Launching CFEngine Community cf-execd...
rudder-agent[17533]: [OK] CFEngine Community cf-execd started after 1 seconds

#4 Updated by Alexis MOUSSET over 2 years ago

  • Assignee changed from Jean Cardona to Alexis MOUSSET

Reproduced on CentOS 7.

#5 Updated by Alexis MOUSSET over 2 years ago

  • Assignee deleted (Alexis MOUSSET)

It's the logger -s option which sends output to stdout.

#6 Updated by Alexis MOUSSET over 2 years ago

  • Target version set to 2.11.20
  • Reproduced changed from No to Yes

#7 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.20 to 2.11.21

#8 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.21 to 2.11.22

#9 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.22 to 2.11.23

#10 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.23 to 2.11.24

#11 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.24 to 308

#12 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 308 to 3.1.14

#13 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 3.1.14 to 3.1.15

#14 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 3.1.15 to 3.1.16

#15 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 3.1.16 to 3.1.17

#16 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 3.1.17 to 3.1.18

#17 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.18 to 3.1.19

#18 Updated by Jonathan CLARKE over 1 year ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Small
  • Priority set to 21

#19 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.19 to 3.1.20

#20 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.20 to 3.1.21

#21 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.21 to 3.1.22

#22 Updated by Benoît PECCATTE about 1 year ago

  • Priority changed from 21 to 30

#23 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.22 to 3.1.23

#24 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.23 to 3.1.24

#25 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 3.1.24 to 3.1.25

#26 Updated by Benoît PECCATTE 11 months ago

  • Priority changed from 30 to 40

#27 Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 3.1.25 to 387

#28 Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 387 to 4.1.10

#29 Updated by Benoît PECCATTE 7 months ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE

#30 Updated by Benoît PECCATTE 7 months ago

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

#31 Updated by Benoît PECCATTE 7 months ago

  • Status changed from Pending technical review to Pending release

#32 Updated by Vincent MEMBRÉ 7 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.

Also available in: Atom PDF