Project

General

Profile

Actions

User story #14275

closed

Rudder server agent does not submit new inventory

Added by Stefan Schmitt almost 6 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Server components
Target version:
-
UX impact:
Suggestion strength:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Name check:
Fix check:
Regression:

Description

when calling "rudder agent inventory" rudder policy server the inventory always lands in /var/rudder/inventories/failed/
Output from "rudder agent inventory -i -w -R -f":

Rudder agent 5.0.6-stretch0
Node uuid: root
rudder     info: Using command line specified bundlesequence
rudder     info: Executing 'no timeout' ... '/opt/rudder/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://rudder/uuid'
rudder     info: Completed execution of '/opt/rudder/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://rudder/uuid'
rudder     info: Executing 'no timeout' ... '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/px-10001-root.ocs'
  notice: Q: "...-inventory --lo": [info] FusionInventory instance: builtin - Perl instance: system
Q: "...-inventory --lo": [info] running task Inventory
Q: "...-inventory --lo": [info] Inventory saved in /var/rudder/tmp/inventory/px-10001-root.ocs
rudder     info: Last 3 quoted lines were generated by promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/px-10001-root.ocs'
rudder     info: Completed execution of '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/px-10001-root.ocs'
rudder     info: Copying from 'localhost:/var/rudder/tmp/inventory/px-10001-root.ocs'
rudder     info: Transforming '/opt/rudder/bin/rudder-sign "/var/rudder/inventories/px-10001-root.ocs"'
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs' => '/opt/rudder/bin/rudder-sign "/var/rudder/inventories/px-10001-root.ocs"' seemed to work ok
rudder     info: Transforming '/opt/rudder/bin/rudder-sign "/var/rudder/inventories/px-10001-root.ocs"'
rudder     info: Transforming '/bin/gzip -fq /var/rudder/inventories/px-10001-root.ocs'
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs' => '/bin/gzip -fq /var/rudder/inventories/px-10001-root.ocs' seemed to work ok
rudder     info: Transforming '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.gz https://rudder/inventory-updates/'
rudder     info: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
rudder     info: <html><head>
rudder     info: <title>201 Created</title>
rudder     info: </head><body>
rudder     info: <h1>Created</h1>
rudder     info: <p>Resource /inventory-updates/px-10001-root.ocs.gz has been created.</p>
rudder     info: <hr />
rudder     info: <address>Apache/2.4.25 (Debian) Server at rudder Port 443</address>
rudder     info: </body></html>
rudder     info: Automatically promoting context scope for 'inventory_sent' to namespace visibility, due to persistence
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs.gz' => '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.gz https://rudder/inventory-updates/' seemed to work ok
rudder     info: Transforming '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.gz https://rudder/inventory-updates/'
rudder     info: Transforming '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.sign https://rudder/inventory-updates/'
rudder     info: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
rudder     info: <html><head>
rudder     info: <title>201 Created</title>
rudder     info: </head><body>
rudder     info: <h1>Created</h1>
rudder     info: <p>Resource /inventory-updates/px-10001-root.ocs.sign has been created.</p>
rudder     info: <hr />
rudder     info: <address>Apache/2.4.25 (Debian) Server at rudder Port 443</address>
rudder     info: </body></html>
rudder     info: Automatically promoting context scope for 'inventory_sent' to namespace visibility, due to persistence
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs.sign' => '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.sign https://rudder/inventory-updates/' seemed to work ok
rudder     info: Transforming '/opt/rudder/bin/curl -L -k -1 -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/px-10001-root.ocs.sign https://rudder/inventory-updates/'
rudder     info: Transforming '/bin/rm -f /var/rudder/inventories/px-10001-root.ocs.gz'
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs.gz' => '/bin/rm -f /var/rudder/inventories/px-10001-root.ocs.gz' seemed to work ok
rudder     info: Transforming '/bin/rm -f /var/rudder/inventories/px-10001-root.ocs.sign'
rudder     info: Transformer '/var/rudder/inventories/px-10001-root.ocs.sign' => '/bin/rm -f /var/rudder/inventories/px-10001-root.ocs.sign' seemed to work ok
rudder     info: Touched (updated time stamps) for path '/var/rudder/tmp/inventory_sent'

Apache2 - access.log:

10.11.0.130 - - [05/Feb/2019:10:26:17 +0100] "GET /uuid HTTP/1.1" 200 1776 "-" "curl/7.61.0" 
10.11.0.130 - - [05/Feb/2019:10:26:18 +0100] "PUT /inventory-updates/px-10001-root.ocs.gz HTTP/1.1" 201 2135 "-" "curl/7.61.0" 
10.11.0.130 - - [05/Feb/2019:10:26:18 +0100] "PUT /inventory-updates/px-10001-root.ocs.sign HTTP/1.1" 201 2139 "-" "curl/7.61.0" 

Files exists but don't get updated (since 3 weeks):

/var/rudder/inventories/received/px-10001-root.ocs [root:root] [0660]
/var/rudder/inventories/received/px-10001-root.ocs.sign [www-data:www-data] [0644]

Only these files are getting updated:

/var/rudder/inventories/failed/px-10001-root.ocs [root:root] [0660]
/var/rudder/inventories/failed/px-10001-root.ocs.sign [www-data:www-data] [0644]

Others clients managed with this rudder server have no problems at all - their inventory-submissions work perfectly.
Any ideas?

Actions

Also available in: Atom PDF