Project

General

Profile

Actions

Bug #17573

closed

Error in technique editor just after install: No such file or directory: '/var/rudder/configuration-repository/ncf/generic_methods.json'

Added by Félix DALLIDET over 4 years ago. Updated over 4 years ago.

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

Description

On a debian9 [update: same on debian 10 and centos 8, so likely everywhere], the installation of the rudder server does not create the /var/rudder/configuration-repository/ncf folder which is needed by the technique editor.
If you go immediately to technique after install, you getthe following error:

[2020-05-29 10:52:07+0200] ERROR com.normation.rudder.rest.RestUtils - "Could not get generic methods metadata <- Inconsistency: An error occured while updating generic methods library,\n error out: Traceback (most recent call last):\n  File \"/usr/share/ncf/ncf\", line 96, in <module>\n    write_all_methods(\"\")\n  File \"/usr/share/ncf/ncf\", line 61, in write_all_methods\n    with open('/var/rudder/configuration-repository/ncf/generic_methods.json', 'w') as outfile:\nFileNotFoundError: [Errno 2] No such file or directory: '/var/rudder/configuration-repository/ncf/generic_methods.json'\n\n std out: " 

WORKAROUND:
- wait for the first agent run, it will create the missing directory,
- or a simple mkdir on the folder /var/rudder/configuration-repository/ncf fixed the issue


Files

clipboard-202006081859-cvdph.png (29.4 KB) clipboard-202006081859-cvdph.png François ARMAND, 2020-06-08 18:59

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #17580: rudder agent reset fails on root serverReleasedNicolas CHARLESActions
Related to Rudder - Bug #17591: The webapp is unable to start after a fresh installReleasedNicolas CHARLESActions
Actions #1

Updated by Nicolas CHARLES over 4 years ago

  • Related to Bug #17580: rudder agent reset fails on root server added
Actions #2

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.1.0~rc2 to 6.1.0~rc3
Actions #3

Updated by François ARMAND over 4 years ago

  • Related to Bug #17591: The webapp is unable to start after a fresh install added
Actions #4

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.1.0~rc3 to 6.1.0~rc4
Actions #6

Updated by François ARMAND over 4 years ago

  • Subject changed from Missing ncf folder after fresh install in /var/rudder/configuration-repository to Error in technique editor just after install: No such file or directory: '/var/rudder/configuration-repository/ncf/generic_methods.json'
  • Description updated (diff)

Directory is created at first rudder agent run so I don't think it's blocking, but it's horrible. We should be sure to create all directories under /var/rudder/configuration-repository at install.

Actions #7

Updated by François ARMAND over 4 years ago

During install, a first run can't be done:

Mon Jun  8 18:56:25 CEST 2020 - Starting rudder-webapp post installation script
Initialized empty shared Git repository in /var/rudder/configuration-repository/.git/
Correctly set option autoupdate-technique-library to value true
INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK,  SQL OK
Overriding existing techniques
INFO: Correcting permissions on /var/rudder/configuration-repository... Done
On branch master
nothing to commit, working tree clean
Techniques have been updated, and update branch set to current state of the Techniques
INFO: New configuration property inventories.watcher.enable added to /opt/rudder/etc/rudder-web.properties
INFO: Checking PostgreSQL service status... OK
INFO: Checking LDAP service status... OK
INFO: The migration has completed successfully.
INFO: Correcting permissions on /var/rudder/configuration-repository... Done
INFO: Agent certificate is missing, creating it... Done
INFO: No disable file detected and no agent executor process either. Restarting agent service... Done
INFO: Inventory older than 3 days, resending ...Rudder agent 6.1.0~rc4~git202006080100-debian9
Node uuid: root
   error: Can't stat file '/var/rudder/cfengine-community/inputs/promises.cf' for parsing. (stat: No such file or directory)
info     Rudder agent was run on a subset of policies - not all policies were checked
## Summary #####################################################################
0 components verified in 1 directives
Execution time: 1.87s
################################################################################
 Done
FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error.
Mon Jun  8 18:57:27 CEST 2020 - Ending rudder-webapp post installation script
Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

  • Assignee set to Alexis Mousset
  • Pull Request set to https://github.com/Normation/ncf/pull/1216
Actions #9

Updated by Anonymous over 4 years ago

  • Status changed from New to Pending release

Applied in changeset ncf:commit:552e8eec0ee8a88ef7ec23852a4e9461d55989ab.

Actions #10

Updated by François ARMAND over 4 years ago

  • Fix check changed from To do to Checked
Actions #11

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~rc4 which was released today.

Actions

Also available in: Atom PDF