Actions
Bug #26926
openOn Raspberry 5, error getting generic methods metadata - generic_methods.json truncated at 256 Ko
Pull Request:
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
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