Bug #26362
openJGitInternalException: Exception caught during execution of add command
Description
This is an error found in the webapp log at first server start right after upgrading the server from 8.2.1 to 8.2.4
2025-02-12 10:15:41+0000 INFO bootchecks - Regenerate all ncf techniques 2025-02-12 10:15:41+0000 INFO bootchecks - Migrating '0' old inventory accept/refuse facts to 'NodeFacts' database table 2025-02-12 10:15:41+0000 INFO bootchecks - Migration of old accept/refuse facts done 2025-02-12 10:15:41+0000 ERROR bootchecks - An error occurred while updating techniques based on ncf; error message is: SystemError: An error occurred; cause was: org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of add command -> com.normation.rudder.git.GitItemRepository.$anonfun$commitAddFile$3(GitItemRepository.scala:122) 2025-02-12 10:15:41+0000 INFO bootchecks - Migrate technique.json to technique.yml 2025-02-12 10:15:41+0000 INFO bootchecks.migration.techniques - Checking if some techniques need to be migrated to YAML format ... ... 2025-02-12 10:15:42+0000 INFO status.techniques - All techniques have success compilation result 2025-02-12 10:15:42+0000 INFO status.techniques - All techniques have success compilation result
Updated by Alexis Mousset about 1 month ago
Also happens on 8.2.4 outside of upgrades (seen on the load testing system by @Nicolas CHARLES).
Updated by Alexis Mousset about 1 month ago
- Assignee set to Clark ANDRIANASOLO
- Priority changed from To review to 1 (highest)
First we need to qualify what the impact could be, for now it is unknown.
Updated by Vincent MEMBRÉ about 1 month ago
- Target version changed from 8.2.5 to 8.2.6
Updated by Clark ANDRIANASOLO about 1 month ago
It happens when attempting to save /var/rudder/configuration-repository/ncf/generic_methods.json.
It seems to be a git problem, maybe the git repo is not initialized or there is another issue that prevents adding the file to the index.
The file should be correctly updated but not saved with git, maybe it is saved later (by other operations on the configuration repository or by hand).
Updated by François ARMAND 4 days ago
- Subject changed from Techniques update error after Rudder server upgrade from 8.2.1 to 8.2.4 to JGitInternalException: Exception caught during execution of add command
- Priority changed from 1 (highest) to 3
We don't know how to reproduce that plus it doesn't seem to break things.
We need to first understand how to reproduce or find a knowledge source in JGit related resources.