Force Reload git project

All of the sudden both of our Git projects stopped retrieving new commits today. Looking at the logs I found the following 2 lines repeated often:

[2016-07-12 13:19:20,742] INFO          VcsService-4       trebuchet ce.LoggingFetchServiceCallback - Fetching trebuchet: Loading commits graph...
[2016-07-12 13:19:20,742] INFO          VcsService-4       trebuchet ntal.CachingCommitGraphFactory - Force reload is required for trebuchet:trebuchet

 

I'm taking this to mean that something has been corrupted and the repo needs to be fully reloaded. So 2 questions:

#1 - how to do a Force reload.

#2 - am I going to lose all my existing reviews tied to branches?

1
5 comments

Hi John,

Yes, if you reset a project review data will be lost.. Do you have an opportunity to take an Upsource backup as described on the following page: 

https://www.jetbrains.com/help/upsource/3.0/backing-up-and-restoring-data.html

0
Avatar
Permanently deleted user

Hi Artem,

I can definitely still make a backup but does that mean I'll be back in the same state with I restore it? 

Also - to Force Reload does that mean I need to actually delete the project in Upsource and then recreate it? Are there any gotchas to ensure I can restore the backup made?

Thanks,

-J

 

0

Hi John,

Actually backup doesn't contain repository contents, only project/user settings, reviews, permissions. Repository data will be fetched from scratch.

>>>Are there any gotchas to ensure I can restore the backup made?

From the error you pasted, looks like vcs content structure inside Upsource DB got corrupted. Since backup doesn't touch this data, restore process should be successfully completed. 

0
Avatar
Permanently deleted user

Thanks Artem,

I deleted the project and then put the backup into place. That seemed to fix it although it chewed up a ton of memory in the process of reindexing the git repo. 

Thanks!

0

We seem to have a similar issue:
[2020-05-14 18:31:51,801] INFO VcsService-6 cta ce.LoggingFetchServiceCallback - Fetching my_project/my_repo: started
[2020-05-14 18:31:51,801] INFO VcsService-6 cta ce.LoggingFetchServiceCallback - Fetching my_project/my_repo: Fetching repository...
[2020-05-14 18:32:04,448] INFO VcsService-6 cta ggers.vcs.git.FetchCommandImpl - Git fetch finished for: ssh://teamcity@my_server/git/my_project/my_repo.git in directory: /opt/upsource/temp/upsource-frontend/vcs-service/caches/plugins/git/git-ADE44EF4.git, took 6768ms
[2020-05-14 18:32:04,449] INFO VcsService-6 cta ce.LoggingFetchServiceCallback - Fetching my_project/my_repo: Loading commits graph...
[2020-05-14 18:32:04,449] INFO VcsService-6 cta ntal.CachingCommitGraphFactory - Force reload is required for my_project:my_repo
[2020-05-14 18:32:04,898] INFO VcsService-6 cta ing.MappingCommitsGraphBuilder - [my_project:my_repo] Constructed graph
[2020-05-14 18:32:04,898] INFO VcsService-6 cta ce.LoggingFetchServiceCallback - Fetching my_project/my_repo: finished

Another weird thing is that our Check interval is 120 sec, yet there are ~60 checks per hour (around twice as many as we'd expect).

What to do?

0

Please sign in to leave a comment.