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

Also available in: Atom PDF