Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding empty folder causes endless loop #967

Closed
beng81 opened this issue Sep 10, 2012 · 8 comments
Closed

Adding empty folder causes endless loop #967

beng81 opened this issue Sep 10, 2012 · 8 comments
Labels

Comments

@beng81
Copy link

beng81 commented Sep 10, 2012

I added my project on my own server. The initial sync is done and then I created a new folder with sparkleshare 0.9.2 on Vista 32bit. Sparkleshare starts to show the sync-animation and never gets finished. If I click on Exit sparkleshare crashes. In the debug_log.txt the following is logged:

17:07:42 | Cmd | Schools | git status --porcelain
17:07:42 | Local | Schools | Activity detected, waiting for it to settle...
17:07:43 | Local | Schools | Activity has settled
17:07:43 | Cmd | Schools | git status --porcelain
17:07:43 | SyncUp | Schools | Initiated
17:07:43 | Cmd | Schools | git status --porcelain
17:07:43 | Cmd | Schools | git add --all
17:07:44 | Git | Schools | Changes staged
17:07:44 | Cmd | Schools | git status --porcelain
17:07:44 | Cmd | Schools | git config user.name "Example"
17:07:44 | Cmd | Schools | git config user.email "info@example.com"
17:07:44 | Cmd | Schools | git commit --all --message="" --author="Example info@example.com"
17:07:44 | Cmd | Schools | git push --progress "ssh://git@fileserver/srv/git/Schools.git" master
17:07:44 | Git | Schools | Everything up-to-date
17:07:44 | SyncUp | Schools | Done
17:07:44 | Cmd | Schools | git log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:07:45 | Cmd | Schools | git rev-parse HEAD
17:07:45 | Listener | Announcing message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 to 1b62db3658ed527430350f9c7c48e55d51febaad on tcp://fileserver:1986/
17:07:45 | Cmd | Schools | git status --porcelain
17:07:45 | SyncUp | Schools | Initiated
17:07:45 | Cmd | Schools | git status --porcelain
17:07:45 | Cmd | Schools | git add --all
17:07:46 | Git | Schools | Changes staged
17:07:46 | Cmd | Schools | git status --porcelain
17:07:46 | Cmd | Schools | git commit --all --message="" --author="Example info@example.com"
17:07:46 | Cmd | Schools | git push --progress "ssh://git@fileserver/srv/git/Schools.git" master
17:07:46 | Git | Schools | Everything up-to-date
17:07:46 | SyncUp | Schools | Done
17:07:46 | Cmd | Schools | git log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:07:46 | Listener | Got message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 from 1b62db3658ed527430350f9c7c48e55d51febaad on tcp://fileserver:1986/
17:07:46 | Listener | Ignoring previously processed message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 from 1b62db3658ed527430350f9c7c48e55d51febaad on tcp://fileserver:1986/
17:07:47 | Cmd | Schools | git rev-parse HEAD
17:07:47 | Listener | Already processed message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 to 1b62db3658ed527430350f9c7c48e55d51febaad from tcp://fileserver:1986/
17:07:47 | Cmd | Schools | git status --porcelain
17:07:47 | SyncUp | Schools | Initiated
17:07:47 | Cmd | Schools | git status --porcelain
17:07:47 | Cmd | Schools | git add --all
17:07:47 | Git | Schools | Changes staged
17:07:47 | Cmd | Schools | git status --porcelain
17:07:47 | Cmd | Schools | git commit --all --message="" --author="Example info@example.com"
17:07:48 | Cmd | Schools | git push --progress "ssh://git@fileserver/srv/git/Schools.git" master
17:07:48 | Git | Schools | Everything up-to-date
17:07:48 | SyncUp | Schools | Done
17:07:48 | Cmd | Schools | git log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:07:49 | Cmd | Schools | git rev-parse HEAD
17:07:49 | Listener | Already processed message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 to 1b62db3658ed527430350f9c7c48e55d51febaad from tcp://fileserver:1986/
17:07:49 | Cmd | Schools | git status --porcelain
17:07:49 | SyncUp | Schools | Initiated
17:07:49 | Cmd | Schools | git status --porcelain
17:07:49 | Cmd | Schools | git add --all
17:07:49 | Git | Schools | Changes staged
17:07:49 | Cmd | Schools | git status --porcelain
17:07:49 | Cmd | Schools | git commit --all --message="" --author="Example info@example.com"
17:07:49 | Cmd | Schools | git push --progress "ssh://git@fileserver/srv/git/Schools.git" master
17:07:50 | Git | Schools | Everything up-to-date
17:07:50 | SyncUp | Schools | Done
17:07:50 | Cmd | Schools | git log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:07:51 | Cmd | Schools | git rev-parse HEAD
17:07:51 | Listener | Already processed message 57bd3670b6277e470bc73b8d4ffde935c1f92b55 to 1b62db3658ed527430350f9c7c48e55d51febaad from tcp://fileserver:1986/
17:07:51 | Cmd | Schools | git status --porcelain
17:07:51 | SyncUp | Schools | Initiated
17:07:51 | Cmd | Schools | git status --porcelain
17:07:51 | Cmd | Schools | git add --all

...and it continues like that

@sherifeid
Copy link

I'm having the same type of problem, the wheel is spinning for over 18 hrs now showing 0% progress
I created a new project, added some files to the new project - went thru ok, then added small size directories and everything is fine
I tried adding a large directory with ~886MB worth of data, 2000 files and 9 levels of directories, and it's taking forever
I'm tried the same thing from a mac os x 10.8 and windows 7 using sparkleshare 0.9.2, the same exact problem

is there a way to turn on a debug verbose mode of operation

thanks

@hbons
Copy link
Owner

hbons commented Sep 11, 2012

@Sheriftaher you can find a log in ~/.config/sparkleshare

@sherifeid
Copy link

thanks, also found out the path on windows
~/AppData/Roaming/sparkleshare

@sherifeid
Copy link

I looked at the log, when I move the large directory this is what I get in the log file

16:12:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
16:12:22 | Local | Documents | Activity detected, waiting for it to settle...
16:12:25 | Local | Documents | Activity has settled
16:12:25 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
16:12:25 | SyncUp | Documents | Initiated
16:12:25 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
16:12:25 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
16:12:29 | Git | Documents | Changes staged
16:12:29 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain

and that's it, nothing happens for a long time, it seems that git is working on the change but returning anything to sparkle, does anyone know if there's a log for git ?

@sherifeid
Copy link

looking at activity monitor and git processes state showing "sleeping", the wheel is still spinning

@sherifeid
Copy link

observed something interesting, when I moved over the large directory and nothing happened I killed the program and removed the directory from the project. Interesting part is when I create an empty directory with the same name as the one that caused problems sparkle & git get into an endless loop of activity detection that doesn't stop (log below). I then removed the directory and named it differently, so data got copied in there properly

17:20:05 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:07 | Listener | Trying to reconnect to tcp://server:80/
17:20:07 | Listener | Subscribing to channel d3d9cfcc806dd39f8db1df79187177d971f4cfc7 on tcp://server:80/
17:20:07 | Listener | Listening for announcements on tcp://server:80/
17:20:07 | Listener | Got message DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> from < on tcp://server:80/
17:20:07 | Listener | Ignoring previously processed message DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> from < on tcp://server:80/
17:20:10 | SyncUp | Documents | Done
17:20:10 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:20:13 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" rev-parse HEAD
17:20:13 | Listener | Already processed message 1ebce700a71cfa5e702061f5eed45097d5d70d4c to d3d9cfcc806dd39f8db1df79187177d971f4cfc7 from tcp://server:80/
17:20:14 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:14 | SyncUp | Documents | Initiated
17:20:14 | Local | Documents | Activity has settled
17:20:15 | SyncUp | Documents | Done
17:20:15 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" log -150 --raw --find-renames --date=iso --format=medium --no-color --no-merges
17:20:15 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:15 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:15 | Git | Documents | Changes staged
17:20:15 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:16 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:16 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:16 | Git | Documents | Everything up-to-date
17:20:16 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:16 | SyncUp | Documents | Initiated
17:20:16 | Local | Documents | Activity has settled
17:20:17 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:17 | Local | Documents | Activity detected, waiting for it to settle...
17:20:17 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:18 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:18 | Local | Documents | Activity has settled
17:20:18 | Git | Documents | Changes staged
17:20:18 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:18 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:18 | SyncUp | Documents | Initiated
17:20:18 | Local | Documents | Activity has settled
17:20:18 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:18 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:18 | Git | Documents | Everything up-to-date
17:20:18 | Local | Documents | Activity has settled
17:20:19 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:19 | SyncUp | Documents | Initiated
17:20:19 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:19 | SyncUp | Documents | Initiated
17:20:19 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:19 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:20 | Git | Documents | Changes staged
17:20:20 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:20 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:20 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:20 | Git | Documents | Everything up-to-date
17:20:20 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:20 | SyncUp | Documents | Initiated
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:21 | Git | Documents | Changes staged
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:21 | Git | Documents | Changes staged
17:20:21 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:22 | Git | Documents | Everything up-to-date
17:20:22 | Git | Documents | Everything up-to-date
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" add --all
17:20:22 | Git | Documents | Changes staged
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" commit --all --message="" --author="Sherif"
17:20:22 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" push --progress "ssh://storage@server/disk1/storage/Documents" master
17:20:23 | Git | Documents | Everything up-to-date
17:20:32 | Cmd | Documents | git --exec-path="/Applications/Utilities/SparkleShare.app/Contents/Resources/git/libexec/git-core" status --porcelain
17:20:32 | Local | Documents | Activity detected, waiting for it to settle...
17:20:49 | SyncUp | Documents | Done

@sherifeid
Copy link

thanks, do you know the path in a windows machine ?

On Tue, Sep 11, 2012 at 1:46 PM, Hylke Bons notifications@github.comwrote:

@Sheriftaher https://github.com/sheriftaher you can find a log in
~/.config/sparkleshare


Reply to this email directly or view it on GitHubhttps://github.com//issues/967#issuecomment-8472115.

@beng81
Copy link
Author

beng81 commented Sep 12, 2012

I relized I have problems as well, that the syncing of changes to other clients takes really long. I found that commit 504119a fixes this error and I think this could perhaps solve this problem I have with new folders as well.
I will try to compile a new version later this week and test it again.

(I already tried to uninstalled 0.9.2 and installed 0.8.4 again and I had no problems with adding new folders)

@hbons hbons closed this as completed in 34df199 Sep 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants