fit icon indicating copy to clipboard operation
fit copied to clipboard

Unable to sync - internet issue

Open olivia-hc opened this issue 1 year ago • 12 comments
trafficstars

image The first sync seemed to work fine. I sorted one conflict I had and then deleted the fit folder. After this I started getting an "unable to sync error" (I've attached the screenshot for the full message, but it essentially relates it to the internet). I disconnected & then reconnected to my WiFi source and still got this issue. I then tried uninstalling & reinstalling this plugin (I'm thinking maybe this wasn't a good idea but alas) in case it was the fit folder deletion that was the issue and that didn't work either.

Any suggestions?

(thank you by the way though)

olivia-hc avatar Apr 08 '24 13:04 olivia-hc

Stale issue message

github-actions[bot] avatar Jun 08 '24 01:06 github-actions[bot]

I have the same issue: on my Samsung S23 phone, the Fit sync works for the initial sync. Even without changing anything, all subsequent sync attempts fail with "Unable to sync" message. The console.log indicates a 403 response. The Personal Access Token is permissioned with full "repo" perms.

maxamplitude avatar Jun 14 '24 18:06 maxamplitude

@joshuakto I have the same fit sync issue on my iPhone. Worked fine initially and I could also sync from my mobile device, but a couple of days ago stopped working

Is this happening only on mobile devices? Could we add a debug option to enable on the phone and check for errors?

gabimoncha avatar Jun 23 '24 16:06 gabimoncha

Reinstalled the app on iPhone in order to resync. Will try and pay more attention on future syncs to figure out any patterns

gabimoncha avatar Jun 24 '24 09:06 gabimoncha

Same issue here. Can't even get the first sync right, it just throws back this.

ecficies avatar Aug 21 '24 14:08 ecficies

i faced this issue, while checking console ctl+shift+i i can see that it was error due to Some "folder already existing ".

Earlier i pushed all files include app's system files.

So i just

Created new repo. and started sync using fit. it worked.

my suggestion is please dont sync with existing repository with existing vault. make one of them is new for fit

REPLY IF IT WAS USEFUL

trinityzhub avatar Aug 23 '24 19:08 trinityzhub

I already did that but I tried it again and it didn't work, I still can't sync at all.

ecficies avatar Aug 23 '24 19:08 ecficies

i faced this issue, while checking console ctl+shift+i i can see that it was error due to Some "folder already existing ".

Earlier i pushed all files include app's system files.

So i just

Created new repo. and started sync using fit. it worked.

my suggestion is please dont sync with existing repository with existing vault. make one of them is new for fit

REPLY IF IT WAS USEFUL

Holy crap it worked! What I did is created a new access token that had permissions for repositories, then created a new repository from the link inside settings. Then had it sync my local files to populate the repo. I then did a fresh install on my phone and downloaded to the plugin to sync everything. Thanks.

SpacePiggy17 avatar Sep 07 '24 04:09 SpacePiggy17

I already did that but I tried it again and it didn't work, I still can't sync at all.

NOTE I am just an end-user, I am just sharing my experience and my fix. I am not official person.

@sambuca1g

I am just an end-user, I just sharing my experience and my fix. I am not official person.

Steps i followed:

  1. Please create new fresh empty repo in GitHub.
  2. Create new empty vault in local (phone or pc).
  3. Disable other git plugin for safety (it doesn't matter but try to avoid conflict)
  4. sync repo in fit
  5. populate/move files to vault from old vault/folder => it automatically sync to repo
  6. Enjoy

I hope it will fix

REPLY IF IT WAS USEFUL

trinityzhub avatar Sep 12 '24 15:09 trinityzhub

I created a fresh vault for this and it still doesn't work. The first sync works, but subsequent syncs don't.

ciriousjoker avatar Sep 16 '24 01:09 ciriousjoker

Steps i followed [updated]:

  1. Please create new fresh empty repo in GitHub.
  2. Create new empty vault in local ( pc). <<< CHANGED >>>
  3. Disable other git plugin for safety (it doesn't matter but try to avoid conflict)
  4. sync repo in fit
  5. populate/move files to vault from old vault/folder => it automatically sync to repo
  6. create empty vault in android phone. <<< CHANGED >>>
  7. Dont copy folders from PC and Dont use git plugin => it may cause "Unable to sync - if you are not connected to the internet, ... error" <<< NEW >>>>_
  8. configure fit in android <<< NEW >>>>
  9. Sync and Enjoy

trinityzhub avatar Sep 16 '24 09:09 trinityzhub

Unforunately, for me - that isn't working. It seems like Fit can't handle some specific aspect of the git logs... which is a shame, becuase it was far easier and more convenient to setup than Git on Android at least :/

delize avatar Oct 05 '24 17:10 delize

sadly

IwantHappiness avatar Oct 18 '24 16:10 IwantHappiness

I figured out what the problem was. The folder .obsidian should be added to .gitignore because it breaks the plugin.

IwantHappiness avatar Oct 29 '24 16:10 IwantHappiness

@IwantHAPPINESS Tried it, didn't work. Error message still appears. The folder does not exist on the remote repo and the local .gitignore is definitely correct.

ciriousjoker avatar Oct 30 '24 17:10 ciriousjoker

Same. Do you more exact steps?

On Wed, Oct 30, 2024, 1:28 PM Philipp Bauer @.***> wrote:

@IwantHAPPINESS https://github.com/IwantHAPPINESS Tried it, didn't work. Error message still appears. The folder does not exist on the remote repo and the local .gitignore is definitely correct.

— Reply to this email directly, view it on GitHub https://github.com/joshuakto/fit/issues/12#issuecomment-2447883222, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA22ER4LFUXUVPS7WH6S6EDZ6EJMJAVCNFSM6AAAAABF4W2VYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXHA4DGMRSGI . You are receiving this because you commented.Message ID: @.***>

maxamplitude avatar Oct 30 '24 17:10 maxamplitude

@ciriousjoker have you tried to create a new repository?

IwantHappiness avatar Oct 30 '24 17:10 IwantHappiness

How did I do it :

  • I deleted the old repository and also deleted the vault on the phone and the folder .git on pc.

  • Then I created a new repository and linked it to the local one on the PC.

  • I created a new vault and also re-installed the plugin, added a token.

And everything worked for me.

This is what my :

.obsidian/

The only problem is that you have to re-configure everything on each device.

IwantHappiness avatar Oct 30 '24 17:10 IwantHappiness

Stale issue message

github-actions[bot] avatar Dec 30 '24 02:12 github-actions[bot]

This isn't stale. It still happens, there just isn't any information the community can provide without specific instructions.

ciriousjoker avatar Jan 01 '25 10:01 ciriousjoker

I noticed some of the error messages are not treated. And the "Unable to sync - if you are not connected to the internet..." is a default message for when Fit does not know what happened. For me, it was a file named with uppercase in my Windows and lowercase in my Android. The github repo had both (as 2 different files, one uppercase, one lowercase) but Fit could not manage the conflict. I removed one of them from github and it fixed it for me.

mauriciopiccini avatar Jan 15 '25 12:01 mauriciopiccini

Just delete the .obsidian folder. I noticed that in this folder are the fit settings on the PC and when loading the plugin on the phone, its settings break`

IwantHappiness avatar Jan 15 '25 16:01 IwantHappiness

For what it's worth, in my case the iCloud stored Obsidian vault on iPad didn't work with Fit. I created a new vault locally and then it synced as expected. Maybe this information will help

infiniteAppsUG avatar Mar 16 '25 22:03 infiniteAppsUG

Stale issue message

github-actions[bot] avatar May 16 '25 02:05 github-actions[bot]

Not solved.

maxamplitude avatar May 24 '25 03:05 maxamplitude