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

Multiple Clicks to push repository #5827

Open
lmtr0 opened this issue Dec 12, 2024 · 5 comments
Open

Multiple Clicks to push repository #5827

lmtr0 opened this issue Dec 12, 2024 · 5 comments
Labels
bug Something isn't working feedback requested Feedback was requested to help resolve the issue

Comments

@lmtr0
Copy link

lmtr0 commented Dec 12, 2024

Version

0.14.2

Operating System

Linux

Distribution Method

deb (Linux)

Describe the issue

I'm on linux RPM btw

When I push the commits to my gitlab remote repository, it most of the time, doesn't push the repo, and resets, then I click it again and it works

How to reproduce

  • Make a repo
  • Install Gitbutler into said repo
  • make changes
  • commit changes
  • click to push it to remote (this fails)
  • click to push it to remote again (this works)

Expected behavior

push the changes to the remote the first time

Relevant log output

2024-12-12T14:59:21.911303Z  INFO push_stack: crates/gitbutler-repo/src/credentials.rs:51: authenticating with https://gitlab.com/.... as '.....' with password using credential helper project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:22.226704Z  INFO push_stack: crates/gitbutler-repo-actions/src/repository.rs:295: git fetched project_id=dade7851-4756-470f-b9f6-08488879a6f2 refspec=+refs/heads/*:refs/remotes/origin/* project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:22.546474Z  INFO push_stack: crates/gitbutler-repo/src/credentials.rs:51: authenticating with https://..... as '...' with password using credential helper project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:23.063867Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=91.2µs time.idle=71.6µs id=dade7851-4756-470f-b9f6-08488879a6f2 window="main" project_id=dade7851-4756-470f-b9f6-08488879a6f2 fs_events=3 fs_events=3 ignored=0 ignored=0 git_noop=0 git_noop=0 git=1 git=1 project=0 project=0 git_dedup=1 git_dedup=1
2024-12-12T14:59:23.075797Z  INFO handle: crates/gitbutler-watcher/src/handler.rs:57: close time.busy=308µs time.idle=60.6µs event=GitFileChange(dade7851-4756-470f-b9f6-08488879a6f2, FETCH_HEAD)
2024-12-12T14:59:23.659723Z  INFO get_base_branch_data:get_base_branch_data: crates/gitbutler-branch-actions/src/actions.rs:141: close time.busy=3.69ms time.idle=166µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:23.659855Z  INFO get_base_branch_data: crates/gitbutler-tauri/src/virtual_branches.rs:137: close time.busy=4.04ms time.idle=116µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:23.758220Z  INFO push_stack: crates/gitbutler-repo-actions/src/repository.rs:220: pushed git branch project_id=dade7851-4756-470f-b9f6-08488879a6f2 remote=origin head=e7b9bf12ed563222ef689866ac4e03ab52a5ea45 branch="wip" project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:23.758759Z  INFO push_stack: crates/gitbutler-tauri/src/stack.rs:102: close time.busy=2.17s time.idle=37.2µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:23.818972Z  INFO handle:calculate_virtual_branches: crates/gitbutler-watcher/src/handler.rs:91: close time.busy=59.9ms time.idle=32.7µs event=VirtualBranch(dade7851-4756-470f-b9f6-08488879a6f2)
2024-12-12T14:59:23.819015Z  INFO handle: crates/gitbutler-watcher/src/handler.rs:57: close time.busy=59.9ms time.idle=17.6µs event=VirtualBranch(dade7851-4756-470f-b9f6-08488879a6f2)
2024-12-12T14:59:23.876118Z  INFO list_virtual_branches: crates/gitbutler-tauri/src/virtual_branches.rs:54: close time.busy=113ms time.idle=49.1µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:23.895114Z  INFO list_branches: crates/gitbutler-tauri/src/virtual_branches.rs:452: close time.busy=2.66ms time.idle=59.6µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 filter=Some(BranchListingFilter { local: None, applied: None })
2024-12-12T14:59:23.945047Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:464: close time.busy=22.5ms time.idle=46.4µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_names=["dev", "@fe072f73", "lore"]
2024-12-12T14:59:23.953491Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=230µs time.idle=49.0µs key="user.name"
2024-12-12T14:59:23.956061Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=213µs time.idle=37.0µs key="user.email"
2024-12-12T14:59:24.005499Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=222µs time.idle=42.6µs key="user.name"
2024-12-12T14:59:24.039734Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=213µs time.idle=40.9µs key="user.email"
2024-12-12T14:59:24.197635Z  INFO list_branches: crates/gitbutler-tauri/src/virtual_branches.rs:452: close time.busy=2.69ms time.idle=43.4µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 filter=Some(BranchListingFilter { local: None, applied: None })
2024-12-12T14:59:24.217735Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:464: close time.busy=17.5ms time.idle=34.6µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_names=["dev", "@fe072f73", "lore"]
2024-12-12T14:59:24.227157Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=191µs time.idle=33.1µs key="user.name"
2024-12-12T14:59:24.229320Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=154µs time.idle=32.0µs key="user.email"
2024-12-12T14:59:24.251782Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=175µs time.idle=43.8µs key="user.name"
2024-12-12T14:59:24.260347Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=186µs time.idle=35.1µs key="user.email"
2024-12-12T14:59:24.314901Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=31.4µs time.idle=42.2µs id=dade7851-4756-470f-b9f6-08488879a6f2 window="main" project_id=dade7851-4756-470f-b9f6-08488879a6f2 fs_events=7 fs_events=7 ignored=0 ignored=0 git_noop=2 git_noop=2 git=0 git=0 project=0 project=0
2024-12-12T14:59:25.782435Z  INFO push_stack: crates/gitbutler-repo/src/credentials.rs:51: authenticating with https://...... as '.....' with password using credential helper project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:26.097016Z  INFO push_stack: crates/gitbutler-repo-actions/src/repository.rs:295: git fetched project_id=dade7851-4756-470f-b9f6-08488879a6f2 refspec=+refs/heads/*:refs/remotes/origin/* project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:26.415653Z  INFO push_stack: crates/gitbutler-repo/src/credentials.rs:51: authenticating with https://...... as '.....' with password using credential helper project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:26.815724Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=73.4µs time.idle=52.9µs id=dade7851-4756-470f-b9f6-08488879a6f2 window="main" project_id=dade7851-4756-470f-b9f6-08488879a6f2 fs_events=7 fs_events=7 ignored=0 ignored=0 git_noop=2 git_noop=2 git=1 git=1 project=0 project=0 git_dedup=1 git_dedup=1
2024-12-12T14:59:26.816091Z  INFO handle: crates/gitbutler-watcher/src/handler.rs:57: close time.busy=159µs time.idle=35.0µs event=GitFileChange(dade7851-4756-470f-b9f6-08488879a6f2, FETCH_HEAD)
2024-12-12T14:59:27.324005Z  INFO get_base_branch_data:get_base_branch_data: crates/gitbutler-branch-actions/src/actions.rs:141: close time.busy=2.21ms time.idle=26.5µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:27.324038Z  INFO get_base_branch_data: crates/gitbutler-tauri/src/virtual_branches.rs:137: close time.busy=2.37ms time.idle=26.6µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:27.704588Z  INFO push_stack: crates/gitbutler-repo-actions/src/repository.rs:220: pushed git branch project_id=dade7851-4756-470f-b9f6-08488879a6f2 remote=origin head=e7b9bf12ed563222ef689866ac4e03ab52a5ea45 branch="wip" project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:27.705124Z  INFO push_stack: crates/gitbutler-tauri/src/stack.rs:102: close time.busy=2.22s time.idle=40.5µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_id=700ad7df-7904-4889-a77a-416a36a57a6c with_force=false
2024-12-12T14:59:27.769776Z  INFO handle:calculate_virtual_branches: crates/gitbutler-watcher/src/handler.rs:91: close time.busy=64.3ms time.idle=36.0µs event=VirtualBranch(dade7851-4756-470f-b9f6-08488879a6f2)
2024-12-12T14:59:27.769826Z  INFO handle: crates/gitbutler-watcher/src/handler.rs:57: close time.busy=64.4ms time.idle=46.7µs event=VirtualBranch(dade7851-4756-470f-b9f6-08488879a6f2)
2024-12-12T14:59:27.835756Z  INFO list_virtual_branches: crates/gitbutler-tauri/src/virtual_branches.rs:54: close time.busy=128ms time.idle=53.4µs project_id=dade7851-4756-470f-b9f6-08488879a6f2
2024-12-12T14:59:27.898310Z  INFO list_branches: crates/gitbutler-tauri/src/virtual_branches.rs:452: close time.busy=2.38ms time.idle=38.8µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 filter=Some(BranchListingFilter { local: None, applied: None })
2024-12-12T14:59:27.983627Z  INFO list_branches: crates/gitbutler-tauri/src/virtual_branches.rs:452: close time.busy=2.40ms time.idle=55.5µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 filter=Some(BranchListingFilter { local: None, applied: None })
2024-12-12T14:59:28.015833Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:464: close time.busy=26.0ms time.idle=57.2µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_names=["dev", "@fe072f73", "lore"]
2024-12-12T14:59:28.157086Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=188µs time.idle=40.0µs key="user.name"
2024-12-12T14:59:28.157397Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=147µs time.idle=50.5µs key="user.name"
2024-12-12T14:59:28.183005Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:464: close time.busy=26.3ms time.idle=52.3µs project_id=dade7851-4756-470f-b9f6-08488879a6f2 branch_names=["dev", "@fe072f73", "lore"]
2024-12-12T14:59:28.194790Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=186µs time.idle=35.7µs key="user.email"
2024-12-12T14:59:28.195580Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=164µs time.idle=29.7µs key="user.email"
2024-12-12T14:59:28.196997Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=173µs time.idle=25.5µs key="user.name"
2024-12-12T14:59:28.199351Z  INFO git_get_global_config: crates/gitbutler-tauri/src/commands.rs:88: close time.busy=176µs time.idle=31.8µs key="user.email"
2024-12-12T14:59:28.817046Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=23.5µs time.idle=36.0µs id=dade7851-4756-470f-b9f6-08488879a6f2 window="main" project_id=dade7851-4756-470f-b9f6-08488879a6f2 fs_events=7 fs_events=7 ignored=0 ignored=0 git_noop=2 git_noop=2 git=0 git=0 project=0 project=0
@lmtr0 lmtr0 added the bug Something isn't working label Dec 12, 2024
@lmtr0
Copy link
Author

lmtr0 commented Dec 12, 2024

FYI: sensitive information is masked

@Byron
Copy link
Collaborator

Byron commented Dec 13, 2024

Thanks a lot for reporting!

It looks like there is no issue in the backend though. Would it be possible to open the console to see if anything shows there?
Thanks again.

@Byron Byron added the feedback requested Feedback was requested to help resolve the issue label Dec 13, 2024
@lmtr0
Copy link
Author

lmtr0 commented Dec 14, 2024

Nothing in the console.
Nothing in the network tab

Notes:
I'm using the git store credential helper, without it, I've to type the passwords every time

@Byron Byron removed the feedback requested Feedback was requested to help resolve the issue label Dec 15, 2024
@Byron
Copy link
Collaborator

Byron commented Dec 15, 2024

Thanks, and too bad there is nothing obvious.

I'm using the git store credential helper, without it, I've to type the passwords every time

This is something GitButler is expected, and if there was an authentication failure, it would definitely fail loudly. So it's probably something else.

@mtsgrd
Copy link
Contributor

mtsgrd commented Jan 2, 2025

@lmtr0 I'm interested in what's going on here, and I've looked through the logs you included.. While I see nothing weird here, could you help me narrow things down by verifying if the branch has pushed correctly before doing the second push? Either just reload the app (cmd + r), or check it on e.g. github?

@mtsgrd mtsgrd added the feedback requested Feedback was requested to help resolve the issue label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback requested Feedback was requested to help resolve the issue
Projects
None yet
Development

No branches or pull requests

3 participants