Project

General

Profile

Bug #16641

Updated by Alexis Mousset almost 5 years ago

Hello, 
 I'm running Rudder 6.0.2 on a CentOS8 server and I'm using the centreon plugin. 
 First, I encountered the following error when trying to apply a Centreon template : 

 <pre> 
 E| compliant DeploiementGlobalR Monitoring template Global_R Host follows Global_R monitoring template was correct 
 error: Command related to promiser 'echo | cat /var/rudder/tmp/rudder_monitoring.csv.sign - /var/rudder/tmp/rudder_monitoring.csv | /opt/rudder/bin/curl' returned code defined as promise failed 22 
 error: Method 'sharedfile_to_node' failed in some repairs 
 E| repaired Common Monitoring Share Rudder monitoring information with the server was repaired 
 error: Method 'monitoring_hook_post' failed in some repairs 
 </pre> 

 Then thanks to your help I got to patch this error by doing the following actions : 
 I applied the patch showed on https://github.com/Normation/rudder-techniques/pull/1578/files/7a5675ac060c97fd9f548a8f4aea74363104443b on the file /var/rudder/configuration-repository/techniques/system/server-roles/1.0/relayd.conf.tpl, then run cd /var/rudder/configuration-repository, git add techniques/system/server-roles/1.0/relayd.conf.tpl && git commit -m "Fix 16549", and rudder server reload-techniques. 

 The issue is still present and i got the following error on my relayd service: 

 <pre> service : 
 Jan 29 16:15:52 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38578 "HEAD /rudder/relay-api/1/shared-files/root/3ce13542-195b-482a-9e2e-7274add46528/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 64.338µs 
 Jan 29 16:15:52 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38578 "PUT /rudder/relay-api/1/shared-files/root/3ce13542-195b-482a-9e2e-7274add46528/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 41.57µs 
 Jan 29 16:17:48 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38614 "HEAD /rudder/relay-api/1/shared-files/root/d19c9d81-156d-4bac-8704-8cb519779918/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 72.778µs 
 Jan 29 16:17:48 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38614 "PUT /rudder/relay-api/1/shared-files/root/d19c9d81-156d-4bac-8704-8cb519779918/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 59.228µs 
 Jan 29 16:20:09 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38614 "HEAD /rudder/relay-api/1/shared-files/root/3da496fa-40f1-4e66-9018-7d4b2f2f5d03/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 76.745µs 
 Jan 29 16:20:09 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38614 "PUT /rudder/relay-api/1/shared-files/root/3da496fa-40f1-4e66-9018-7d4b2f2f5d03/rudder_monitoring.csv HTTP/1.1" 500 "-" "curl/7.61.0" 674.054µs 
 Jan 29 16:20:18 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38578 "HEAD /rudder/relay-api/1/shared-files/root/093896e1-8c96-4d27-81e7-346312da43ac/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 57.967µs 
 Jan 29 16:20:18 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38614 "PUT /rudder/relay-api/1/shared-files/root/093896e1-8c96-4d27-81e7-346312da43ac/rudder_monitoring.csv HTTP/1.1" 500 "-" "curl/7.61.0" 423.109µs 
 Jan 29 16:20:33 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38664 "HEAD /rudder/relay-api/1/shared-files/root/3ce13542-195b-482a-9e2e-7274add46528/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 60.554µs 
 Jan 29 16:20:33 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38666 "PUT /rudder/relay-api/1/shared-files/root/3ce13542-195b-482a-9e2e-7274add46528/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 47.46µs 
 Jan 29 16:21:33 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38664 "HEAD /rudder/relay-api/1/shared-files/root/093896e1-8c96-4d27-81e7-346312da43ac/rudder_monitoring.csv HTTP/1.1" 404 "-" "curl/7.61.0" 57.561µs 
 Jan 29 16:21:33 hostname rudder-relayd[29531]:    INFO relayd::relay-api: 127.0.0.1:38666 "PUT /rudder/relay-api/1/shared-files/root/093896e1-8c96-4d27-81e7-346312da43ac/rudder_monitoring.csv HTTP/1.1" 500 "-" "curl/7.61.0" 414.567µs 
 </pre> 

 Thank you for your help. 

Back