Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #16493: Missing store git commit lead to fatal exception #2700

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class GitTechniqueReader(
Inconsistancy("Please add a root category.xml and commit it before restarting Rudder.").fail
}
} yield res
case e:MissingObjectException => //ah, that commit is not know on our repos
case SystemError(m, ex:MissingObjectException) => //ah, that commit is not know on our repos
TechniqueReaderLoggerPure.error("The stored Git revision for the last version of the known Technique Library was not found in the local Git repository. " +
"That may happen if a commit was reverted, the Git repository was deleted and created again, or if LDAP datas where corrupted. Loading the last available Techique library version.") *>
revisionProvider.getAvailableRevTreeId.flatMap(newRevTreeId =>
Expand Down