Project

General

Profile

Actions

Bug #6429

closed

service rudder-* outputs on stderror

Added by Jean Cardona almost 10 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
40
Name check:
Fix check:
Regression:

Description

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

Actions #1

Updated by François ARMAND almost 10 years ago

  • Assignee set to Benoît PECCATTE

Benoit, could you try to qualify that one ?

Actions #2

Updated by Benoît PECCATTE over 9 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 ?

Actions #3

Updated by Jean Cardona over 9 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

Actions #4

Updated by Alexis Mousset almost 9 years ago

  • Assignee changed from Jean Cardona to Alexis Mousset

Reproduced on CentOS 7.

Actions #5

Updated by Alexis Mousset almost 9 years ago

  • Assignee deleted (Alexis Mousset)

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

Actions #6

Updated by Alexis Mousset almost 9 years ago

  • Target version set to 2.11.20
  • Reproduced changed from No to Yes
Actions #7

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #8

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #9

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #10

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #11

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.24 to 308
Actions #12

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 308 to 3.1.14
Actions #13

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #14

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #15

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #16

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #17

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #18

Updated by Jonathan CLARKE over 7 years 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
Actions #19

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #20

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #21

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #22

Updated by Benoît PECCATTE over 7 years ago

  • Priority changed from 21 to 30
Actions #23

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #24

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #25

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #26

Updated by Benoît PECCATTE about 7 years ago

  • Priority changed from 30 to 40
Actions #27

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.25 to 387
Actions #28

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 387 to 4.1.10
Actions #29

Updated by Benoît PECCATTE almost 7 years ago

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

Updated by Benoît PECCATTE almost 7 years 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
Actions #31

Updated by Benoît PECCATTE almost 7 years ago

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

Updated by Vincent MEMBRÉ almost 7 years 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.

Actions

Also available in: Atom PDF