[GH-ISSUE #1599] [Git Adapter] Possible rate-limites when using github #1055

Closed
opened 2026-02-25 22:38:52 +03:00 by kerem · 13 comments
Owner

Originally created by @bigdiff on GitHub (May 9, 2024).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1599

Which version of floccus are you using?

5.1.0

Sync method

Git

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Brave Version 1.65.126 Chromium: 124.0.6367.118 (Official Build) (64-bit)

Which version of Nextcloud Bookmarks are you using? (if relevant)

N/A

Which version of Nextcloud? (if relevant)

N/A

What kind of WebDAV server are you using? (if relevant)

N/A

Describe the Bug

Github seems to heavily rate-limit the git adapater, I've setup two profile one for bookmarks and one for open tabs, and it seems there is a 15 minute limit between 2~3 requests.

Expected Behavior

I'm not sure if this is a known thing, IMO it is worth mentioning when adding a git adapter profile.

To Reproduce

Setup at least two profile, make some changes in both profile and notice the "Scheduled" appearing on both profiles for 15 minutes and it retries every so often.

2024-05-09 (git) checkout branch main
2024-05-09 Resource is locked, trying again soon

Debug log provided

  • I have provided a debug log file
Originally created by @bigdiff on GitHub (May 9, 2024). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1599 ### Which version of floccus are you using? 5.1.0 ### Sync method Git ### Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please. Brave Version 1.65.126 Chromium: 124.0.6367.118 (Official Build) (64-bit) ### Which version of Nextcloud Bookmarks are you using? (if relevant) N/A ### Which version of Nextcloud? (if relevant) N/A ### What kind of WebDAV server are you using? (if relevant) N/A ### Describe the Bug Github seems to heavily rate-limit the git adapater, I've setup two profile one for bookmarks and one for open tabs, and it seems there is a 15 minute limit between 2~3 requests. ### Expected Behavior I'm not sure if this is a known thing, IMO it is worth mentioning when adding a git adapter profile. ### To Reproduce Setup at least two profile, make some changes in both profile and notice the "Scheduled" appearing on both profiles for 15 minutes and it retries every so often. ```log 2024-05-09 (git) checkout branch main 2024-05-09 Resource is locked, trying again soon ``` ### Debug log provided - [X] I have provided a debug log file
kerem 2026-02-25 22:38:52 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (May 9, 2024):

Hello 👋

Thank you for taking the time to open this issue with floccus. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I'm Marcel and I created floccus and have been maintaining it ever since.
I currently work for Nextcloud which leaves me with less time for side projects like this one
than I used to have.
I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself.

I look forward to working with you on this issue
Cheers 💙

<!-- gh-comment-id:2102310404 --> @github-actions[bot] commented on GitHub (May 9, 2024): Hello :wave: Thank you for taking the time to open this issue with floccus. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I'm Marcel and I created floccus and have been maintaining it ever since. I currently work for Nextcloud which leaves me with less time for side projects like this one than I used to have. I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better *together*. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. I look forward to working with you on this issue Cheers :blue_heart:
Author
Owner

@marcelklehr commented on GitHub (May 9, 2024):

Hhm, yeah, when the resource is locked, floccus retries every minute :S That doesn't go down well with rate limiting I imagine :/

<!-- gh-comment-id:2102341331 --> @marcelklehr commented on GitHub (May 9, 2024): Hhm, yeah, when the resource is locked, floccus retries every minute :S That doesn't go down well with rate limiting I imagine :/
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

Sadly Floccus just gave up and removed all my folders (bookmarks and open tabs from github)

I now have 6 tags for floccus-locks and the repo is empty with just a readme.

the content of the readme is

This repository is used to syncrhonize bookmarks via [floccus](https://floccus.org/).

all commit history is gone also 🙁 the only commit left is for adding the markdown

<!-- gh-comment-id:2102349683 --> @bigdiff commented on GitHub (May 9, 2024): Sadly Floccus just gave up and removed all my folders (bookmarks and open tabs from github) I now have 6 tags for floccus-locks and the repo is empty with just a readme. the content of the readme is ```markdown This repository is used to syncrhonize bookmarks via [floccus](https://floccus.org/). ``` all commit history is gone also :slightly_frowning_face: the only commit left is for adding the markdown
Author
Owner

@marcelklehr commented on GitHub (May 9, 2024):

I now have 6 tags for floccus-locks and the repo is empty with just a readme.

Wut?!

<!-- gh-comment-id:2102351519 --> @marcelklehr commented on GitHub (May 9, 2024): > I now have 6 tags for floccus-locks and the repo is empty with just a readme. Wut?!
Author
Owner

@marcelklehr commented on GitHub (May 9, 2024):

Could you send the log of that sync?

<!-- gh-comment-id:2102352984 --> @marcelklehr commented on GitHub (May 9, 2024): Could you send the log of that sync?
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

the thing is they're multiple so I don't know which one triggered this lol

<!-- gh-comment-id:2102354905 --> @bigdiff commented on GitHub (May 9, 2024): the thing is they're multiple so I don't know which one triggered this lol
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

I think I know why now, it initialized a new git repo and it did not detect that there is already a git repo

Starting sync process for account bigdiff@github.com:work/ls-toolbar.xbel
onSyncStart: begin
(git) init
(git) fetch from remote
(git) checkout branch main
Resource is locked, trying again soon
<!-- gh-comment-id:2102358744 --> @bigdiff commented on GitHub (May 9, 2024): I think I know why now, it initialized a new git repo and it did not detect that there is already a git repo ```log Starting sync process for account bigdiff@github.com:work/ls-toolbar.xbel onSyncStart: begin (git) init (git) fetch from remote (git) checkout branch main Resource is locked, trying again soon ```
Author
Owner

@marcelklehr commented on GitHub (May 9, 2024):

Yeah, it should only ever do that if the branch cannot be found... I'm gonna take that part out I guess. Can't have floccus bulldoze the entire repo.

<!-- gh-comment-id:2102361669 --> @marcelklehr commented on GitHub (May 9, 2024): Yeah, it should only ever do that if the branch cannot be found... I'm gonna take that part out I guess. Can't have floccus bulldoze the entire repo.
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

it should only ever do that if the branch cannot be found...

It was main by default in github and the default is main in floccus so I'm not sure what happened there

<!-- gh-comment-id:2102364860 --> @bigdiff commented on GitHub (May 9, 2024): > it should only ever do that if the branch cannot be found... It was `main` by default in github and the default is `main` in floccus so I'm not sure what happened there
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

thank you for the prompt replies and the hot fix 🔥

<!-- gh-comment-id:2102367444 --> @bigdiff commented on GitHub (May 9, 2024): thank you for the prompt replies and the hot fix :fire:
Author
Owner

@bigdiff commented on GitHub (May 9, 2024):

Could it be due to the rate-limiting that it failed and "bulldozed" 😀 the repo?

we can keep the try catch in https://github.com/floccusaddon/floccus/pull/1602 but instead of initializing a new repo we can put the error into the logger, what do you think?

<!-- gh-comment-id:2102379305 --> @bigdiff commented on GitHub (May 9, 2024): Could it be due to the rate-limiting that it failed and "bulldozed" :grinning: the repo? we can keep the try catch in https://github.com/floccusaddon/floccus/pull/1602 but instead of initializing a new repo we can put the error into the logger, what do you think?
Author
Owner

@marcelklehr commented on GitHub (May 9, 2024):

we can keep the try catch in https://github.com/floccusaddon/floccus/pull/1602 but instead of initializing a new repo we can put the error into the logger, what do you think?

The try-catch is only used to set up a new repo, so if we don't want that, the error will be caught higher up and displayed, no need to log it manually.

<!-- gh-comment-id:2102393611 --> @marcelklehr commented on GitHub (May 9, 2024): > we can keep the try catch in https://github.com/floccusaddon/floccus/pull/1602 but instead of initializing a new repo we can put the error into the logger, what do you think? The try-catch is only used to set up a new repo, so if we don't want that, the error will be caught higher up and displayed, no need to log it manually.
Author
Owner

@github-actions[bot] commented on GitHub (May 10, 2025):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:2868144510 --> @github-actions[bot] commented on GitHub (May 10, 2025): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#1055
No description provided.