Discarding changes button blocks and never finishes

Hi,

I have a project with git-repo integration. When I click “Discard Changes” button, it blocks and doesn’t finish.

Attached is a screenshot of the page.

Below are logs from the app:

appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 5ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-33: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 4ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: FS application save, Time elapsed: 25ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_fetch, appId 62e78bec59d22e5d800cab52, Time elapsed: 1571ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-32: Get status for repo  /appsmith-stacks/git-storage/62e78abf59d22e5d800cab4a/62e78bec59d22e5d800cab52/appsmith-support, branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 13ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_status, appId 62e78bec59d22e5d800cab52, Time elapsed: 1592ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 1643ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-33: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 6ms
appsmith    | backend stdout | 
appsmith    | editor stdout | 172.30.0.1 - - [04/Aug/2022:08:27:07 +0000] "GET /api/v1/git/status/app/62e78bec59d22e5d800cab52?branchName=master HTTP/1.1" 200 1090 "http://127.0.0.1/app/appsmith-support/users-62e78bf259d22e5d800cab55/edit?branch=master" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0"
appsmith    | editor stdout | 
appsmith    | backend stdout | userEmail=dorian.hoxha@gmail.com, sessionId=f4c70b69-232c-456d-b7b2-04478995ce9a, thread=lettuce-epollEventLoop-7-1, requestId=e484e0f9-eff7-4d67-a298-8b036f437683 - Going to discard changes for branch master with defaultApplicationId 62e78bec59d22e5d800cab52
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-31: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-33: Pull changes from remote  git@github.com:shortformhq/appsmith-support.git for the branch master
appsmith    | backend stdout | 
appsmith    | editor stdout | 127.0.0.1 - - [04/Aug/2022:08:27:11 +0000] "GET / HTTP/1.1" 200 4973 "-" "curl/7.68.0"
appsmith    | editor stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_pull, appId 62e78bec59d22e5d800cab52, Time elapsed: 1933ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-33: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: FS reconstruct application, Time elapsed: 12ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: import_application, Time elapsed: 162ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 7ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-32: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_reset, appId 62e78bec59d22e5d800cab52, Time elapsed: 3ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: FS application save, Time elapsed: 23ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Trying to commit to local repo path, /appsmith-stacks/git-storage/62e78abf59d22e5d800cab4a/62e78bec59d22e5d800cab52/appsmith-support
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_commit, appId 62e78bec59d22e5d800cab52, Time elapsed: 42ms
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-32: Switching to the branch master
appsmith    | backend stdout | 
appsmith    | backend stdout |  - boundedElastic-31: pushing changes to remote git@github.com:shortformhq/appsmith-support.git
appsmith    | backend stdout | 
appsmith    | backend stdout |  - Execute time: JGIT git_push, appId 62e78bec59d22e5d800cab52, Time elapsed: 1968ms
appsmith    | backend stdout | 

What can I do to fix this or get more log?

Thanks

Ok this happened because I just upgraded Appsmith and it needed to do an upgrade to the git-repo too.
So, after I commited the upgrade, it successfully was able to revert changes.

1 Like