Project

General

Profile

Actions

Bug #17430

closed

Bug #17416: Inventories from new nodes should be sent using the "rudder" password and not generated one

reports and inventory cannot be send to relay server

Added by Vincent MEMBRÉ over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

webdav password is not set with correct value (still use default "rudder" password)

send report command on node:

   warning       Common                    Log system for reports                       Could not send report /var/rudder/reports/ready/2020-05-15T23:04:04+00:00@7e6d68ab-3309-4d83-bdf2-6a1a19bcad1d.log.gz
E| error         Common                    Log system for reports                       Reports forwarding to policy server could not be repaired

detailed command:

2020-05-18T09:39:41+00:00    error: Finished command related to promiser '/opt/rudder/bin/curl --tlsv1.2 --location --insecure --fail --silent --proxy '' --user rudder:a15c6a70070a924cc277 --upload-file /var/rudder/reports/ready/2020-05-16T00:14:06+00:00@7e6d68ab-3309-4d83-bdf2-6a1a19bcad1d.log.gz https://relay.rudder.local/reports/' -- an error occurred, returned 22
2020-05-18T09:39:41+00:00 rudder     info: Completed execution of '/opt/rudder/bin/curl --tlsv1.2 --location --insecure --fail --silent --proxy '' --user rudder:a15c6a70070a924cc277 --upload-file /var/rudder/reports/ready/2020-05-16T00:14:06+00:00@7e6d68ab-3309-4d83-bdf2-6a1a19bcad1d.log.gz https://relay.rudder.local/reports/'
2020-05-18T09:39:41+00:00 R: @@Common@@log_warn@@hasPolicyServer-e74cb896-ec7c-42e7-b20d-686b1de5bd94@@common-e74cb896-ec7c-42e7-b20d-686b1de5bd94@@0@@Log system for reports@@None@@2020-05-18 09:39:41+00:00##7e6d68ab-3309-4d83-bdf2-6a1a19bcad1d@#Could not send report /var/rudder/reports/ready/2020-05-16T00:14:06+00:00@7e6d68ab-3309-4d83-bdf2-6a1a19bcad1d.log.gz
2020-05-18T09:39:41+00:00    error: Method 'send_rudder_report' failed in some repairs

apache log on relay:

192.168.44.5 - rudder [15/May/2020:16:18:17 +0200] "PUT /reports/2020-05-15T14%3A08%3A50%2B00%3A00%407e6d68ab-3309-4d83-bdf2-6a1a19bcad1d.log.gz HTTP/1.1" 401 2249 "-" "curl/7.61.0" 

It's the same for inventory.

This is because promise to check webdav configuation are not run, because of an undefined variable

Actions

Also available in: Atom PDF