Project

General

Profile

Actions

Bug #26926

open

On Raspberry 5, error getting generic methods metadata - generic_methods.json truncated at 256 Ko

Added by Michel BOUISSOU 10 days ago. Updated 8 days ago.

Status:
New
Priority:
3
Category:
-
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

EDIT: solution would be to have a rudderc option to write to the destination file directly.

Opening the Technique editor page displays :

Error
Error when getting methods: Could not get generic methods metadata
‣ An Error occurred while extracting data from generic methods ncf API
‣ Inconsistency: Unexpected end of input

It appears that /var/rudder/configuration-repository/ncf/generic_methods.json is incomplete, and truncated at exactly 256 Ko (262144).

Log says :

2025-05-20 08:09:41+0200 ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
zio.FiberFailure: Chained(An Error occurred while extracting data from generic methods ncf API,Inconsistency(Unexpected end of input))
        at com.normation.errors.EitherToIoResult.toIO(ZioCommons.scala:255)
        at com.normation.errors.IOChainError.chainError(ZioCommons.scala:235)
        at com.normation.rudder.ncf.GenericMethodSerialization.decodeGenericMethodLib(EditorTechniqueReader.scala:297)
        at com.normation.rudder.ncf.EditorTechniqueReaderImpl.readMethodsMetadataFile(EditorTechniqueReader.scala:124)
        at com.normation.rudder.ncf.EditorTechniqueReaderImpl.readMethodsMetadataFile(EditorTechniqueReader.scala:120)
        at com.normation.rudder.ncf.EditorTechniqueReaderImpl.getMethodsMetadata(EditorTechniqueReader.scala:108)
        at com.normation.rudder.ncf.EditorTechniqueReaderImpl.readTechniquesMetadataFile(EditorTechniqueReader.scala:83)
        at com.normation.rudder.ncf.TechniqueCompilationStatusService.get(TechniqueCompilationCache.scala:168)
        at com.normation.zio.ZioRuntime.unsafeRun(ZioCommons.scala:497)
2025-05-20 08:09:41+0200 WARN  application - Uncaught exception in thread 'pool-2-thread-230' (in threadgroup 'main'): 'zio.FiberFailure': 'Chained(An Error occurred while extracting data from generic methods ncf API,Inconsistency(Unexpected end of input))' (add it in /opt/rudder/etc/rudder-web.properties -> 'rudder.jvm.fatal.exceptions' to make it fatal)

Files

Error_getting_generic_methods_250519a.png (25.4 KB) Error_getting_generic_methods_250519a.png Error message Michel BOUISSOU, 2025-05-20 08:10
Actions #1

Updated by Michel BOUISSOU 8 days ago

This happens on an ARM server.

Actions #2

Updated by François ARMAND 8 days ago

  • Subject changed from Error getting generic methods metadata - generic_methods.json truncated at 256 Ko to On Raspberry 5, error getting generic methods metadata - generic_methods.json truncated at 256 Ko
  • Description updated (diff)
  • Assignee set to Alexis Mousset
  • Priority changed from To review to 3

For now, I wasn't able to reproduce it. It might be linked with some specific behavior of NuProcess on that plateform. A workaround would be to have rudderc to directly write the file to the resulting file, because here we are hoping through the JVM for nothing.

Actions

Also available in: Atom PDF