ERROR com.google.gerrit.server.account.externalids.ExternalIdNotes : Ignoring invalid external ID note eb7605f8c930f32a1c404033c8891ff25fba88be org.eclipse.jgit.errors.ConfigInvalidException: Invalid external ID config for note 'eb7605f8c930f32a1c404

87 views
Skip to first unread message

bonnie chen

unread,
Aug 21, 2024, 6:58:33 AM8/21/24
to Repo and Gerrit Discussion
we upgrade gerrit 3.4.3 to 3.5.2 via docker


And then during reindex there are some errors like:

ERROR com.google.gerrit.server.account.externalids.ExternalIdNotes : Ignoring invalid external ID note eb7605f8c930f32a1c404033c8891ff25fba88be
org.eclipse.jgit.errors.ConfigInvalidException: Invalid external ID config for note 'eb7605f8c930f32a1c404033c8891ff25fba88be': SHA1 of external ID 'gerrit:Bob.li' does not match note ID 'eb7605f8c930f32a1c404033c8891ff25fba88be'
        at com.google.gerrit.server.account.externalids.ExternalIdFactory.invalidConfig(ExternalIdFactory.java:333)
        at com.google.gerrit.server.account.externalids.ExternalIdFactory.parse(ExternalIdFactory.java:257)
        at com.google.gerrit.server.account.externalids.ExternalIdNotes.all(ExternalIdNotes.java:564)
        at com.google.gerrit.server.account.externalids.ExternalIdReader.all(ExternalIdReader.java:149)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheLoader.reloadAllExternalIds(ExternalIdCacheLoader.java:279)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheLoader.load(ExternalIdCacheLoader.java:173)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheLoader.load(ExternalIdCacheLoader.java:60)
        at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache$SingleLoader.load(CaffeinatedGuavaLoadingCache.java:136)
        at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:141)
        at com.github.benmanes.caffeine.cache.LocalCache.lambda$statsAware$0(LocalCache.java:139)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2344)
        at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2342)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2325)
        at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
        at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:54)
        at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.get(CaffeinatedGuavaLoadingCache.java:59)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheImpl.get(ExternalIdCacheImpl.java:117)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheImpl.get(ExternalIdCacheImpl.java:112)
        at com.google.gerrit.server.account.externalids.ExternalIdCacheImpl.byAccount(ExternalIdCacheImpl.java:83)
        at com.google.gerrit.server.account.externalids.ExternalIds.byAccount(ExternalIds.java:85)
        at com.google.gerrit.server.account.AccountState.forCachedAccount(AccountState.java:133)
        at com.google.gerrit.server.account.AccountCacheImpl.get(AccountCacheImpl.java:133)
        at com.google.gerrit.server.account.AccountCacheImpl.get(AccountCacheImpl.java:105)
        at com.google.gerrit.server.index.account.AllAccountsIndexer.lambda$reindexAccounts$0(AllAccountsIndexer.java:97)
        at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
        at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
        at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
        at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:113)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:612)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

And then I clone All-User.git and want to checkout  refs/meta/external-ids
It return ""juan.chen@sse-lab-shared-dev-011:~/All-Users$ git checkout refs/meta/external-ids
error: pathspec 'refs/meta/external-ids' did not match any file(s) known to git

How to resolve it???


Thanks

Matthias Sohn

unread,
Aug 21, 2024, 7:47:41 AM8/21/24
to bonnie chen, Repo and Gerrit Discussion
git clone by default only clones branches and tags but not any custom refs like refs/meta/*.
Either fetch those explicitly or do a mirror clone

git clone --mirrror url
 
How to resolve it???


Thanks

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f1c01807-a430-4c96-9237-4ab03a4e1231n%40googlegroups.com.

Sven Selberg

unread,
Aug 21, 2024, 7:53:19 AM8/21/24
to Repo and Gerrit Discussion
On Wednesday, August 21, 2024 at 12:58:33 PM UTC+2 bonnie chen wrote:
we upgrade gerrit 3.4.3 to 3.5.2 via docker


And then during reindex there are some errors like:

I think you will find that this is the root cause, as outlined in the v3.5 release-notes (please read the release notes before upgrading):
https://www.gerritcodereview.com/3.5.html#case-insensitive-usernames

bonnie chen

unread,
Aug 21, 2024, 10:12:00 PM8/21/24
to Repo and Gerrit Discussion
Cool, that is the root cause
Thanks guys

Reply all
Reply to author
Forward
0 new messages