Project

General

Profile

Actions

Bug #10534

closed

Update error on relay and node (copy/read file errors)

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Relay server or API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
17
Name check:
Fix check:
Regression:

Description

After accepting a new node which is behind a relay, wainting that the generation finished, I did and observed:

## on root - ubuntu 16.04

rudder agent update && rudder agent run 
# everything fine

##
## on relay - ubuntu 14.04
##

root@relay:/home/vagrant# rudder agent update && rudder agent run
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
   error: Function 'readfile' failed to read file: /var/rudder/tools/rudder_tools_updated.tmp
ok: Rudder agent promises were updated.
Rudder agent 4.1.0-trusty0 (CFEngine Core 3.10.0)
Node uuid: c5f5d338-7b65-4918-9ea4-dd36a2c4f486
Start execution with config [20170329-163946-59ba4c0a]
[...everything ok...]
## Summary #####################################################################
32 components verified in 4 directives
   => 32 components in Enforce mode
      -> 14 compliant
      -> 1 repaired
      -> 17 not-applicable
execution time: 6.57s
################################################################################

##
## and on the node behind the relay - ubuntu 16.04
##

root@agent1:/home/ubuntu# rudder agent update
   error: Copy from server 'relay' to destination '/var/rudder/cfengine-community/inputs/inventory/1.0/virtualMachines.cf.cfnew' failed (open: File exists)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/inventory/1.0/virtualMachines.cf' to '/var/rudder/cfengine-community/inputs/inventory/1.0/virtualMachines.cf'
   error: Copy from server 'relay' to destination '/var/rudder/cfengine-community/inputs/rudder-system-directives.cf.cfnew' failed (open: File exists)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/rudder-system-directives.cf' to '/var/rudder/cfengine-community/inputs/rudder-system-directives.cf'
   error: Can't stat new file '/var/rudder/cfengine-community/inputs/common/1.0/nxlog-activation.cf.cfnew' - another agent has picked it up?. (stat: No such file or directory)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/common/1.0/nxlog-activation.cf' to '/var/rudder/cfengine-community/inputs/common/1.0/nxlog-activation.cf'
   error: Copy from server 'relay' to destination '/var/rudder/cfengine-community/inputs/common/1.0/rudder-parameters.cf.cfnew' failed (open: File exists)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/common/1.0/rudder-parameters.cf' to '/var/rudder/cfengine-community/inputs/common/1.0/rudder-parameters.cf'
   error: Could not install copy file as '/var/rudder/cfengine-community/inputs/common/1.0/update.cf', directory in the way?. (rename: No such file or directory)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/common/1.0/update.cf' to '/var/rudder/cfengine-community/inputs/common/1.0/update.cf'
   error: Copy from server 'relay' to destination '/var/rudder/cfengine-community/inputs/common/1.0/site.cf.cfnew' failed (open: File exists)
   error: Was not able to copy '/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/common/1.0/site.cf' to '/var/rudder/cfengine-community/inputs/common/1.0/site.cf'
   error: Could not install copy file as '/var/rudder/cfengine-community/inputs/rudder_expected_reports.csv', directory in the way?. (rename: No such file or directory)
   error: Copy from 'relay:/var/rudder/share/e7cb7d79-e27f-48f8-aff3-4e493fb55b82/rules/cfengine-community/rudder_expected_reports.csv' failed
   error: Can't stat new file '/var/rudder/tools/check-rsyslog-version.cfnew' - another agent has picked it up?. (stat: No such file or directory)
   error: Copy from 'relay:/var/rudder/tools/check-rsyslog-version' failed
   error: Could not install copy file as '/var/rudder/tools/checkroute.pl', directory in the way?. (rename: No such file or directory)
   error: Copy from 'relay:/var/rudder/tools/checkroute.pl' failed
   error: Could not install copy file as '/var/rudder/tools/rudder_tools_updated', directory in the way?. (rename: No such file or directory)
   error: Copy from 'relay:/var/rudder/tools/rudder_tools_updated' failed
   error: New file '/var/rudder/tools/apache-vhost.tpl.cfnew' seems to have been corrupted in transit, aborting.
   error: Copy from 'relay:/var/rudder/tools/apache-vhost.tpl' failed
ok: Rudder agent promises were updated.
root@agent1:/home/ubuntu# rudder agent run
Rudder agent 4.1.0-xenial0 (CFEngine Core 3.10.0)
Node uuid: e7cb7d79-e27f-48f8-aff3-4e493fb55b82
Start execution with config [20170329-163946-b7b7209f]

M| State         Technique                 Component                 Key                Message
E| repaired      Common                    Update                                       Rudder policy, tools or ncf instance were updated or CFEngine service restarted
E| compliant     Common                    ncf Initialization                           The ncf initialization was correct
E| compliant     Common                    Security parameters                          The internal environment security is acceptable
E| compliant     Common                    Red Button                                   Red Button is not in effect, continuing as normal...
E| n/a           Common                    Process checking                             CFEngine proccesses check is done by the rudder-agent CRON job
E| compliant     Common                    CRON Daemon                                  Cron daemon status was correct
E| repaired      Common                    Log system for reports                       Configured logging system for report centralization
E| compliant     Common                    Binaries update                              The CFEngine binaries in /var/rudder/cfengine-community/bin are up to date
E| compliant     Inventory                 inventory                                    Next inventory scheduled between 00:00 and 06:00

## Summary #####################################################################
9 components verified in 2 directives
   => 9 components in Enforce mode
      -> 6 compliant
      -> 2 repaired
      -> 1 not-applicable
execution time: 2.77s
################################################################################

I tried again immediately, and got the same result for both relay and node. After a couple of minutes, the errors on both relay and node vanished.

The compliance was ok even with the errors.

Actions #1

Updated by Benoît PECCATTE over 7 years ago

  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 17
Actions #2

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from New to Rejected

I could not reproduce that error, everything went fine by itself without any error message

I'm closing this issue, feel free to open it again.

Actions

Also available in: Atom PDF