bozaro / git-lfs-migrate

Simple project for convert old repository for using git-lfs feature
MIT License
223 stars 29 forks source link

Migration process gets stuck for a long time #49

Open kwisatz opened 6 years ago

kwisatz commented 6 years ago

I successfully converted a single repository, but since then, any other repository I try to convert exhibits the same behavior. It proceeds to the following step, then just hangs there for a very long time, even on small repositories with very few commits:

[main] INFO git.lfs.migrate.Main - LFS server: OK
[main] INFO git.lfs.migrate.Main - Converting object without dependencies in 2 threads...
[pool-2-thread-2] INFO git.lfs.migrate.Main -   processed: 1/9
[pool-2-thread-1] INFO git.lfs.migrate.Main -   processed: 436/618
[pool-2-thread-2] INFO git.lfs.migrate.Main -   processed: 541/618
[main] INFO git.lfs.migrate.Main -   processed: 618/618
[main] INFO git.lfs.migrate.Main - Converting object with dependencies in single thread...
[main] INFO git.lfs.migrate.Main -   processed: 1/121
[main] INFO git.lfs.migrate.Main -   processed: 121/121

straceing it doesn't reveal very much:

) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
futex(0x7f13b0aa29d0, FUTEX_WAIT, 1957, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} ---
futex(0x7f13b0aa29d0, FUTEX_WAIT, 1957, NULL [main] INFO git.lfs.migrate.Main - Recreating refs...
[main] INFO git.lfs.migrate.Main -   convert ref: c62a3b3fd0c6424f18ee364e114b3e0fcf21c6d6 -> 4e96476725c1a43f7e25a8382544ed4a42dc11ba (HEAD)
[main] INFO git.lfs.migrate.Main -   convert ref: c62a3b3fd0c6424f18ee364e114b3e0fcf21c6d6 -> 4e96476725c1a43f7e25a8382544ed4a42dc11ba (refs/heads/master)
[main] INFO git.lfs.migrate.Main - Convert time: 204587
) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

That might have something to do with java binaries? It doesn't use up any CPU, it's not waiting on IO, it just sleeps.

kwisatz commented 6 years ago

This might actually be related to #35, but I haven't seen any network activity either.