Vinzent03 / obsidian-git

Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md
MIT License
6.97k stars 298 forks source link

[Bug]: Pushing broken on iphone obsidian git #609

Open AdityaKrishnaProjects opened 1 year ago

AdityaKrishnaProjects commented 1 year ago

Describe the bug

Pushing stops working on iphone obsidian git, but works briefly after recloning.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No errors from console. Phone gets stuck on initializing push. 

https://media.discordapp.net/attachments/232554307755573248/1155686950875959326/image.png?width=459&height=993

Steps to reproduce

Clone a repo using alpine client (iphone app iSH).

Set author information and provide authentication key.

Use obsidian git, and eventually push will break. Pull and commit fully functional.

Expected Behavior

Should be able to push.

Addition context

This issue arises on the phone after 1-2 days of using obsidian git as my sync method. I am using iSH as the client through which I am initially cloning the repo, but then from there using obsidian git to manage my push, pull and commits. After a fresh clone the issue stops for a bit, but eventually return. My guess is that the request somehow times out. My confusion is that it somehow is fixed when I clone the repo fresh.

I have a suspicion that this may be related to iSH, but I do not know how to investigate this further as I get no error message.

Operating system

iOS

Installation Method

None

Plugin version

Newest

AdityaKrishnaProjects commented 1 year ago

Hasn't been an issue for a couple days with current clone of vault, which leads me to believe it's not an issue with vault size

idalsin commented 1 year ago

I've been seeing this as well on iOS, though unsure how to consistently reproduce. After editing a file I will commit all changes, then push - the "initializing push" banner message appears, hangs for approx 60-75 seconds, and then it looks like the plugin restarts. The push does not complete and there is no error message. This happens on both manual push and the scheduled backup push.

I am not using any other client like iSH or Working Copy, but handling everything through this plugin.

It appears that sometimes fully restarting the iPhone fixes the issue and allows a push to succeed.

TheUncannyObserver commented 10 months ago

I'm also having this issue now as well.

kunfoo commented 3 months ago

I leave this as a note for anyone who has the same problem: for some reason, after restarting the iPhone, push works again.

AdityaKrishnaProjects commented 2 months ago

Just wanted to provide an update that this error still occurs for me on mobile, however unlike the above commentator restarting my phone does not seem to help. I would theorize that the cause is when a push gets interrupted by some other process, as that seems to be when the error occurs.

nickdavila commented 2 months ago

Same error occurs for me as well!