Bug #17573
Updated by François ARMAND over 4 years ago
On a debian9 [update: same on debian 10 and centos 8, so likely everywhere], debian9, 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 I got the following error in my technique after install, you getthe following error: editor: <pre> [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: " </pre> WORKAROUND: - wait for the first agent run, it will create the missing directory, - or Doing a simple mkdir on the folder @/var/rudder/configuration-repository/ncf@ fixed the issue