Project

General

Profile

Actions

Bug #6056

closed

rudder agent on sles server logs a lot of errors about service checking

Added by Vincent MEMBRÉ almost 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1 (highest)
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

My rudder agent on SLES 11 is not ok with postgreql and tries to start it repeatdly even if it already ran:

R: [ERROR] Promise could not be repaired, error encountered: Check if the service postgresql is started using ps
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'/default/command_execution/commands/'/sbin/service postgresql start'[0]: Finished command related to promiser '/sbin/service postgresql start' -- an error occurred, returned 1
2014-12-31T01:15:19-0800   notice: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'/default/command_execution/commands/'/sbin/service postgresql start'[0]: Q: "...in/service post": Starting PostgreSQLpg_ctl: another server might be running; trying to start server anyway
Q: "...in/service post": pg_ctl: could not start server
Q: "...in/service post": Examine the log output.
Q: "...in/service post": ..failed

R: [ERROR] Promise could not be repaired, error encountered: Execute the command /sbin/service postgresql start
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'[0]: Method 'command_execution' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Run action start on service postgresql
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'[0]: Method 'service_action' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Start service postgresql
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'[0]: Method 'service_start' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Ensure that service postgresql is running
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'[0]: Method 'service_ensure_running_path' failed in some repairs
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'[0]: Method 'service_ensure_running' failed in some repairs
R: @@server-roles@@result_success@@server-roles@@server-roles-directive@@2@@Check postgresql process@@None@@2014-12-31 09:15:16+00:00##root@#The postgresql process is already running
2014-12-31T01:15:19-0800    error: /default/root_component_check/methods/'any'[0]: Method 'generic_process_check_process' failed in some repairs

Same thing for rudder-jetty:

R: [ERROR] Promise could not be repaired, error encountered: Check if the service rudder-jetty is started using ps
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'/default/command_execution/commands/'/sbin/service rudder-jetty start'[0]: Finished command related to promiser '/sbin/service rudder-jetty start' -- an error occurred, returned 1
2014-12-31T01:15:17-0800   notice: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'/default/command_execution/commands/'/sbin/service rudder-jetty start'[0]: Q: "...in/service rudd": Setting umask to 0007
Q: "...in/service rudd": Starting Jetty: Already Running!

R: [ERROR] Promise could not be repaired, error encountered: Execute the command /sbin/service rudder-jetty start
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'/default/service_action/methods/'action'[0]: Method 'command_execution' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Run action start on service rudder-jetty
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'/default/service_start/methods/'start'[0]: Method 'service_action' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Start service rudder-jetty
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'/default/service_ensure_running_path/methods/'start if not running'[0]: Method 'service_start' failed in some repairs
R: [ERROR] Promise could not be repaired, error encountered: Ensure that service rudder-jetty is running
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'/default/service_ensure_running/methods/'check running'[0]: Method 'service_ensure_running_path' failed in some repairs
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'/default/generic_process_check_process/methods/'start_process'[0]: Method 'service_ensure_running' failed in some repairs
R: @@server-roles@@result_success@@server-roles@@server-roles-directive@@2@@Check jetty process@@None@@2014-12-31 09:15:16+00:00##root@#The jetty process is already running
2014-12-31T01:15:17-0800    error: /default/root_component_check/methods/'any'[0]: Method 'generic_process_check_process' failed in some repairs
Actions #1

Updated by Vincent MEMBRÉ almost 10 years ago

  • Subject changed from rudder agent on sles server logs a lot of erros about service checking to rudder agent on sles server logs a lot of errors about service checking
Actions #2

Updated by Nicolas CHARLES almost 10 years ago

We have similar (but not identical) error on other OSes
On Debian, it tries to check if rudder-jetty is running, with "ps", which does fail (the command line is java something)

Actions #3

Updated by Nicolas CHARLES almost 10 years ago

Ok, th eissue here is that in generic_process_check_process we call service_ensure_running rather than service_ensure_running_path (which does take a service name and a service path)

Actions #4

Updated by Nicolas CHARLES almost 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Nicolas CHARLES to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/626
Actions #5

Updated by Nicolas CHARLES almost 10 years ago

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

Applied in changeset policy-templates:commit:b0dd8e4e87fbf9d57f6e67c120d4df74b6fc1b23.

Actions #6

Updated by Benoît PECCATTE almost 10 years ago

Applied in changeset policy-templates:commit:c9ef9a86ace47001374469c906238bee2d34509e.

Actions #7

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.0, which was released on 2015/02/16

Actions

Also available in: Atom PDF