MacOS: Git object files are not synced until the client is restarted

Hi,
i have there a strange problem:
It also exists in the V7 client and the current V8 Beta on MacOS 10.15.07 (Intel). It also exists on a different Mac Machine (same Version).
I’m not sure how long the problem exists because as long as i’m working on the same machine, the problem has not affected me.
Currently i have to use both machines.

From what i have seen, it only effects git objects files - other files (like json, php, c or the git “FETCH_HEAD” files) are not affected and are syncing great.

I can reproduce the problem like this:

  1. The library is fully synced

  2. I add a commit to a git repository inside this library
    → The client detects this changes and syncs immediately:

  • project-folder/.git/COMMIT_EDITMSG
  • project-folder/.git/FETCH_HEAD
  • project-folder/.git/index
  • project-folder/.git/logs/HEAD
  • project-folder/.git/logs/refs/heads/master
  • project-folder/.git/logs/refs/remotes/origin/master
  • project-folder/.git/refs/heads/master]
  • project-folder/.git/refs/remotes/origin/master]
  1. I’m waiting / do other file changes (except committing changes) → but the client will not sync the git object files in this project folder (it also affects other folders)
    → On an other machine and the Seafile backend the files are missing.
    → Client shows me the green icon for every synced.

  2. I’m restarting the client
    → The client will do a “Indexing” on this library. After a few seconds i see a new version including the missing git object files in the Seafile Backend and on the other machine.

The protocol (before the client restart) seems ok, except the warning at line 2:
(The project folder is in “Library1”)

[05/05/21 14:42:21] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘synchronized’ to ‘committing’.
[05/05/21 14:42:22] repo-mgr.c(2142): Failed to stat project-folder/.git/index.lock: No such file or directory.
[05/05/21 14:42:22] repo-mgr.c(3856): All events are processed for repo fd6fa7a8-ce36-4598-adf5-60a1433cb5d1.
[05/05/21 14:42:23] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘committing’ to ‘uploading’.
[05/05/21 14:42:23] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[05/05/21 14:42:23] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[05/05/21 14:42:23] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[05/05/21 14:42:23] sync-mgr.c(582): Repo ‘Library2’ sync state transition from ‘synchronized’ to ‘committing’.
[05/05/21 14:42:24] repo-mgr.c(3856): All events are processed for repo 3fcbb07d-53ae-41e9-801b-1189e464e603.
[05/05/21 14:42:24] sync-mgr.c(582): Repo ‘Library2’ sync state transition from ‘committing’ to ‘uploading’.
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘3fcbb07d’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[05/05/21 14:42:24] sync-mgr.c(582): Repo ‘Library2’ sync state transition from ‘uploading’ to ‘initializing’.
[05/05/21 14:42:24] sync-mgr.c(881): Removing blocks for repo Library2(3fcbb07d).
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[05/05/21 14:42:24] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[05/05/21 14:42:24] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘uploading’ to ‘initializing’.
[05/05/21 14:42:24] sync-mgr.c(881): Removing blocks for repo Library1(fd6fa7a8).
[05/05/21 14:42:50] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘synchronized’ to ‘committing’.
[05/05/21 14:42:50] repo-mgr.c(3856): All events are processed for repo fd6fa7a8-ce36-4598-adf5-60a1433cb5d1.
[05/05/21 14:42:51] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘committing’ to ‘uploading’.
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[05/05/21 14:42:51] http-tx-mgr.c(1157): Transfer repo ‘fd6fa7a8’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[05/05/21 14:42:51] sync-mgr.c(582): Repo ‘Library1’ sync state transition from ‘uploading’ to ‘initializing’.
[05/05/21 14:42:51] sync-mgr.c(881): Removing blocks for repo Library1(fd6fa7a8).

At the beginning the settings option to sync the temporary MS office and LibreOffice files was not enabled.
Now it is enabled but i does not solve this issue.

Thanks for any help.

1 Like

Same issue here, something happened synching git repositories used to work seamlessly and now it’s broken