nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

Running on Cygwin fails with: "fatal: gc is already running on machine 'xyz' pid 9204 (use --force if not)" #180

Open kevinarpe opened 10 years ago

kevinarpe commented 10 years ago

I updated Cygwin to the latest binaries. I installed svn2git using RubyGems: v2.3.2

Here is my command: svn2git https://apac-svn.xyz.com/prod/xyz --verbose --metadata

It ran for about one hour...then failed at the very end. Maybe this is a Cygwin-specific issue?

Here is the last part of my log:

liumaaRunning command: git log -1 --pretty=format:'%ae' "svn/tags/REL_QE0.0.0.RC1"
liumaa@287089ef-6891-4ea7-9438-46fac5d5f674Running command: git config --local user.name "liumaa"
Running command: git config --local user.email "liumaa@287089ef-6891-4ea7-9438-46fac5d5f674"
Running command: git tag -a -m "first try on testing SRL web for QE" "REL_QE0.0.0.RC1" "svn/tags/REL_QE0.0.0.RC1"
Running command: git branch -d -r "svn/tags/REL_QE0.0.0.RC1"
Deleted remote branch svn/tags/REL_QE0.0.0.RC1 (was 0cbcb45).
Running command: git config --local --unset user.name
Running command: git config --local --unset user.email
Running command: git checkout -f master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Running command: git gc
fatal: gc is already running on machine 'W01B5POS' pid 9204 (use --force if not)
command failed:
git gc

I am experienced with Linux, Cygwin, svn, and git, but not Ruby. I'll do my best to help.

ffes commented 10 years ago

I see similar things on Cygwin as well. But when I look at the code, I think (I am not a Ruby developer) that git gc is the last command run, so the conversion is just fine. And the two repos I converted recently everything was converted just fine.

ffes commented 10 years ago

I just saw this after the last svn fetch:

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.

And since the git gc at the end fails, I guess it is related. Cygwin is not known for being fast

DVGeoffrey commented 8 years ago

Running into the same issue on OSX El Capitan. svn2git goes through a bunch of revisions but fails on the gc step. (Ran with -v):

r45646 = f31295d6ac4bd512e8c764b7bfe99adac005dbbf (refs/remotes/svn/trunk)
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Checked out HEAD:
  http://svn.internal/svn/dv/root/main/Java r45646
creating empty directory: a/src/test/java/behaviors
creating empty directory: a/src/test/java/time
creating empty directory: b/TLD/src/test/java
creating empty directory: c/src/main/java/web/config
creating empty directory: c/src/test/java/perfCounters
Running command: git branch -l --no-color
* master
Running command: git branch -r --no-color
  svn/trunk
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
Already on 'master'
Running command: git gc
fatal: gc is already running on machine 'Geoffreys-MacBook-Pro.local' pid 93403 (use --force if not)
command failed:
git gc

Running "git gc" afterwards is ok:

local:Java_svn2git geoff$ git gc
Counting objects: 10279, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3841/3841), done.
Writing objects: 100% (10279/10279), done.
Total 10279 (delta 5370), reused 10279 (delta 5370)
denixx commented 8 years ago

https://github.com/nirvdrum/svn2git/pull/213