Sometimes, no sync. Dropbox on same OK! #1214

Closed
pauljohn32 opened this Issue Mar 11, 2013 · 5 comments

Projects

None yet

2 participants

@pauljohn32

Sorry this is a long message. I've got debug from 2 systems, trying to understand why SparkleShare sometimes does not synchronize.

Can you write out a debugging strategy for this problem? I'll be glad to try. I am not much good at git, otherwise OK on the *nix stuff.

This weekend, I installed Dropbox, and then made a symbolic link from a Sparkle content folder into Dropbox. Dropbox apparently follows symbolic links to the real files, so I can see side-by-side how Dropbox and Sparkle respond to content changes. WIth 3 computers monitoring the same Dropbox server, all is well. Put stuff into the SparkleShare folder, Dropbox monitors the linked folder, synchronizes, all good. But SparkleShare does not synchronize. But only sometimes.

And the sparkleshare problem I'm seeing reminds me of bug reports that people were filing against Dropbox last year--laptop network configuration and clean close & re-start instructions needed. But for the current Dropbox client, I did not do any special network settings on my laptop.

Maybe I have this setup in a funny way. My always-on Debian workstation is configured as the server, with Gitlab (what a hassle!) and the git repo exists. Sparkle runs fine, usually. I can manually interact with the git repo in the SparkleShare folder.

I've got 2 workstations running Sparkle, I've done quite a bit of testing, dropping a file into one and watching it come up on the other.

From the laptop, I just used rsync to copy some folders into the SparkleShare folder on the other system. I'm on the laptop watching for Sparkleshare to notice the "new stuff" and download it. But nothing happens. On the workstation, it appears Sparkle does notice the new content and I'm pretty sure it goes to the main repository server. But I have no way to know, do I?

On the laptop, where the new files are not found, my debug_log file is:

13:54:01 | Auth | Imported key '/home/pjohns/.config/sparkleshare/sparkleshare.pjohns@ku.edu.key'
13:54:01 | Auth | The following keys may be used:
2048 41:12:b2:3f:22💿a5:20:8d:59:f9:c9:79:d7:13:2b /home/pjohns/.config/sparkleshare/sparkleshare.pjohns@ku.edu.key (RSA)
2048 b8:41:fa:7a:91:da:89:3d:7a:36:11:11:e3:2c:58:10 pjohns@pjlap-124 (RSA)
2048 25:14:b6:af:3e:d6:63:3d:81:82:58:6f:d4:a4:eb:76 pjohns@ps110124 (RSA)
2048 d9:12:2c:00:34:95:0f:73:d5:ec:d7:6b:59:2c:0d:85 pjohns@pjlap-124 (RSA)
2048 9f:2b:2e:58:68:61:fc:26:1e:f7:d2:6a:87:45:03:13 pjohns@pjlap-124 (RSA)
13:54:01 | /home/pjohns/SparkleShare/manuscripts.git | Initializing...
13:54:01 | Cmd | manuscripts.git | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
13:54:02 | Cmd | manuscripts.git | git config core.ignorecase false
13:54:02 | Cmd | manuscripts.git | git config --get filter.bin.clean
13:54:02 | ListenerFactory | Issued new listener for tcp://notifications.sparkleshare.org:443/
13:54:02 | Cmd | manuscripts.git | git config remote.origin.url "ssh://git@ps110.pols.ku.edu/root/manuscripts.git"
13:54:02 | /home/pjohns/SparkleShare/SparkleShare | Initializing...
13:54:02 | Cmd | SparkleShare | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
13:54:02 | Cmd | manuscripts.git | git status --porcelain
13:54:02 | Cmd | SparkleShare | git config core.ignorecase false
13:54:02 | ListenerFactory | Refered to existing listener for tcp://notifications.sparkleshare.org:443/
13:54:02 | Cmd | SparkleShare | git config --get filter.bin.clean
13:54:02 | Cmd | SparkleShare | git config remote.origin.url "ssh://git@github.com/pjohns32/SparkleShare"
13:54:02 | /home/pjohns/SparkleShare/work.git | Initializing...
13:54:02 | Cmd | work.git | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
13:54:02 | Cmd | SparkleShare | git status --porcelain
13:54:02 | Cmd | work.git | git config core.ignorecase false
13:54:02 | ListenerFactory | Refered to existing listener for tcp://notifications.sparkleshare.org:443/
13:54:02 | Cmd | work.git | git config --get filter.bin.clean
13:54:02 | Cmd | work.git | git config remote.origin.url "ssh://git@ps110.pols.ku.edu/root/work.git"
13:54:02 | Listener | Subscribing to channel 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
13:54:02 | Listener | Subscribing to channel 2c20e5c57b6051acca628b8676f7f088b0a8f2a7 on tcp://notifications.sparkleshare.org:443/
13:54:02 | Listener | Subscribing to channel 9db571f07a2d81cd1ce87418b34473627d004787 on tcp://notifications.sparkleshare.org:443/
13:54:02 | Listener | Listening for announcements on tcp://notifications.sparkleshare.org:443/
13:54:02 | Git | manuscripts.git | Checking for remote changes...
13:54:02 | Cmd | manuscripts.git | git rev-parse HEAD
13:54:02 | Cmd | work.git | git status --porcelain
13:54:02 | Cmd | manuscripts.git | git rev-parse --abbrev-ref HEAD
13:54:02 | Cmd | manuscripts.git | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
13:54:03 | Controller | Error fetching avatar for pjohns@ku.edu: The remote server returned an error: (404) Not Found.
13:54:07 | Git | manuscripts.git | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
13:54:07 | Git | SparkleShare | Checking for remote changes...
13:54:07 | Cmd | SparkleShare | git rev-parse HEAD
13:54:07 | Cmd | SparkleShare | git rev-parse --abbrev-ref HEAD
13:54:07 | Cmd | SparkleShare | git ls-remote --heads --exit-code "ssh://git@github.com/pjohnsy32/SparkleShare" master
13:54:08 | Git | SparkleShare | No remote changes, local+remote: 5f92acbde91dcb99d2b292ae38a8dc28dad962f4
13:54:08 | Git | work.git | Checking for remote changes...
13:54:08 | Cmd | work.git | git rev-parse HEAD
13:54:08 | Cmd | work.git | git rev-parse --abbrev-ref HEAD
13:54:08 | Cmd | work.git | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
13:54:14 | Git | work.git | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
13:59:14 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:59:14 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/

On the workstation where I added the folder, sparkleshare is running:

$ ps aux | grep sparkle
pauljohn 26870 0.0 2.8 1835040 115084 pts/8 Sl 12:08 0:07 mono /usr/lib/sparkleshare/SparkleShare.exe

in that repo, git seems to say we are fine

$ git status

On branch master

nothing to commit (working directory clean)

I run "ls" to verify that the content is in that folder, the transferred files are where I expect.

Here's debug:
12:08:26 | Auth | Imported key '/home/pjohns/.config/sparkleshare/sparkleshare.pjohns@ku.edu.key'
12:08:26 | Auth | The following keys may be used:
12:08:27 | /home/pjohns/SparkleShare/manuscripts | Initializing...
12:08:27 | Cmd | manuscripts | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
12:08:27 | Cmd | manuscripts | git config core.ignorecase false
12:08:27 | ListenerFactory | Issued new listener for tcp://notifications.sparkleshare.org:443/
12:08:27 | Cmd | manuscripts | git config --get filter.bin.clean
12:08:27 | Cmd | manuscripts | git config remote.origin.url "ssh://git@ps110.pols.ku.edu/root/manuscripts.git"
12:08:27 | /home/pjohns/SparkleShare/work | Initializing...
12:08:27 | Cmd | work | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
12:08:27 | Cmd | manuscripts | git status --porcelain
12:08:27 | Cmd | work | git config core.ignorecase false
12:08:27 | ListenerFactory | Refered to existing listener for tcp://notifications.sparkleshare.org:443/
12:08:27 | Cmd | work | git config --get filter.bin.clean
12:08:27 | Cmd | work | git config remote.origin.url "ssh://git@ps110.pols.ku.edu/root/work.git"
12:08:27 | Cmd | work | git status --porcelain
12:08:27 | Listener | Subscribing to channel 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
12:08:27 | Listener | Subscribing to channel 9db571f07a2d81cd1ce87418b34473627d004787 on tcp://notifications.sparkleshare.org:443/
12:08:27 | Listener | Listening for announcements on tcp://notifications.sparkleshare.org:443/
12:08:27 | Git | manuscripts | Checking for remote changes...
12:08:27 | Cmd | manuscripts | git rev-parse HEAD
12:08:27 | Cmd | manuscripts | git rev-parse --abbrev-ref HEAD
12:08:27 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
12:08:27 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
12:08:27 | Git | work | Checking for remote changes...
12:08:27 | Cmd | work | git rev-parse HEAD
12:08:27 | Cmd | work | git rev-parse --abbrev-ref HEAD
12:08:27 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
12:08:27 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
12:08:28 | Controller | Error fetching avatar for pjohns@ku.edu: The remote server returned an error: (404) Not Found.
12:13:27 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:13:27 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:18:27 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:18:27 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:23:27 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:23:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:23:32 | Git | manuscripts | Checking for remote changes...
12:23:32 | Cmd | manuscripts | git rev-parse HEAD
12:23:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
12:23:32 | Git | work | Checking for remote changes...
12:23:32 | Cmd | work | git rev-parse HEAD
12:23:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
12:23:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
12:23:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
12:28:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:28:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:33:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:33:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:38:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:38:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:38:32 | Git | manuscripts | Checking for remote changes...
12:38:32 | Cmd | manuscripts | git rev-parse HEAD
12:38:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
12:38:32 | Git | work | Checking for remote changes...
12:38:32 | Cmd | work | git rev-parse HEAD
12:38:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
12:38:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
12:38:34 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
12:43:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:43:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:48:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:48:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:53:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:53:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
12:53:32 | Git | manuscripts | Checking for remote changes...
12:53:32 | Cmd | manuscripts | git rev-parse HEAD
12:53:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
12:53:32 | Git | work | Checking for remote changes...
12:53:32 | Cmd | work | git rev-parse HEAD
12:53:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
12:53:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
12:53:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
12:58:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
12:58:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:03:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:03:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:08:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:08:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:08:32 | Git | manuscripts | Checking for remote changes...
13:08:32 | Cmd | manuscripts | git rev-parse HEAD
13:08:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
13:08:32 | Git | work | Checking for remote changes...
13:08:32 | Cmd | work | git rev-parse HEAD
13:08:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
13:08:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
13:08:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
13:13:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:13:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:18:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:18:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:23:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:23:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:23:32 | Git | manuscripts | Checking for remote changes...
13:23:32 | Cmd | manuscripts | git rev-parse HEAD
13:23:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
13:23:32 | Git | work | Checking for remote changes...
13:23:32 | Cmd | work | git rev-parse HEAD
13:23:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
13:23:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
13:23:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
13:28:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:28:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:33:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:33:28 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:38:28 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:38:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:38:32 | Git | manuscripts | Checking for remote changes...
13:38:32 | Cmd | manuscripts | git rev-parse HEAD
13:38:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
13:38:32 | Git | work | Checking for remote changes...
13:38:32 | Cmd | work | git rev-parse HEAD
13:38:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
13:38:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
13:38:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
13:43:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:43:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:48:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:48:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:53:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:53:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
13:53:32 | Git | manuscripts | Checking for remote changes...
13:53:32 | Cmd | manuscripts | git rev-parse HEAD
13:53:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
13:53:32 | Git | work | Checking for remote changes...
13:53:32 | Cmd | work | git rev-parse HEAD
13:53:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
13:53:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
13:53:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
13:58:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
13:58:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
14:03:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
14:03:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
14:08:29 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
14:08:29 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
14:08:32 | Git | manuscripts | Checking for remote changes...
14:08:32 | Cmd | manuscripts | git rev-parse HEAD
14:08:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
14:08:32 | Git | work | Checking for remote changes...
14:08:32 | Cmd | work | git rev-parse HEAD
14:08:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:08:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
14:08:32 | Git | work | No remote changes, local+remote: 59e0a25e1a808d667fa87ab5066dd8366b829716
14:11:11 | Listener | Got message 4f6910e070806890f8f4558a227f505d4b6c67d0 from 9db571f07a2d81cd1ce87418b34473627d004787 on tcp://notifications.sparkleshare.org:443/
14:11:11 | Cmd | work | git rev-parse HEAD
14:11:11 | work | Syncing due to announcement
14:11:11 | SyncDown | work | Initiated
14:11:11 | Cmd | work | git rev-parse HEAD
14:11:11 | Cmd | work | git fetch --progress "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:11:11 | Git | work | X11 forwarding request failed on channel 0
14:11:11 | Git | work | remote: Counting objects: 8, done.�[K
14:11:11 | Git | work | remote: Total 5 (delta 3), reused 0 (delta 0)�[K
14:11:11 | Git | work | From ssh://ps110.pols.ku.edu/root/work
14:11:11 | Git | work | * branch master -> FETCH_HEAD
14:11:11 | Cmd | work | git status --porcelain
14:11:11 | Cmd | work | git config core.ignorecase true
14:11:11 | Cmd | work | git rebase FETCH_HEAD
14:11:11 | Cmd | work | git config core.ignorecase false
14:11:11 | SyncDown | work | Done
14:11:11 | Cmd | work | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
14:11:11 | Cmd | work | git rev-parse HEAD
14:13:05 | Listener | Got message 60220c506919872f4bbccae43e4fae0b0ebe859b from 9db571f07a2d81cd1ce87418b34473627d004787 on tcp://notifications.sparkleshare.org:443/
14:13:05 | Cmd | work | git rev-parse HEAD
14:13:05 | work | Syncing due to announcement
14:13:05 | SyncDown | work | Initiated
14:13:05 | Cmd | work | git rev-parse HEAD
14:13:05 | Cmd | work | git fetch --progress "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:13:05 | Git | work | X11 forwarding request failed on channel 0
14:13:05 | Git | work | remote: Counting objects: 9, done.�[K
14:13:05 | Git | work | remote: Total 5 (delta 4), reused 0 (delta 0)�[K
14:13:05 | Git | work | From ssh://ps110.pols.ku.edu/root/work
14:13:05 | Git | work | * branch master -> FETCH_HEAD
14:13:05 | Cmd | work | git status --porcelain
14:13:05 | Cmd | work | git config core.ignorecase true
14:13:05 | Cmd | work | git rebase FETCH_HEAD
14:13:05 | Cmd | work | git config core.ignorecase false
14:13:05 | SyncDown | work | Done
14:13:05 | Cmd | work | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
14:13:05 | Cmd | work | git rev-parse HEAD
14:14:29 | ListenerTcp | System woke up from sleep
14:14:29 | Listener | Disconnected from tcp://notifications.sparkleshare.org:443/: Ping timeout: The socket is not connected
14:14:29 | manuscripts | Falling back to polling
14:14:29 | work | Falling back to polling
14:14:32 | Git | manuscripts | Checking for remote changes...
14:14:32 | Cmd | manuscripts | git rev-parse HEAD
14:14:32 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
14:14:32 | Git | work | Checking for remote changes...
14:14:32 | Cmd | work | git rev-parse HEAD
14:14:32 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:14:32 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
14:14:32 | Git | work | No remote changes, local+remote: 60220c506919872f4bbccae43e4fae0b0ebe859b
14:15:27 | Listener | Trying to reconnect to tcp://notifications.sparkleshare.org:443/
14:15:27 | Listener | Subscribing to channel 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
14:15:27 | Listener | Subscribing to channel 9db571f07a2d81cd1ce87418b34473627d004787 on tcp://notifications.sparkleshare.org:443/
14:15:27 | Listener | Listening for announcements on tcp://notifications.sparkleshare.org:443/
14:15:27 | Git | manuscripts | Checking for remote changes...
14:15:27 | Cmd | manuscripts | git rev-parse HEAD
14:15:27 | Cmd | manuscripts | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
14:15:27 | Git | manuscripts | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
14:15:27 | Git | work | Checking for remote changes...
14:15:27 | Cmd | work | git rev-parse HEAD
14:15:27 | Cmd | work | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:15:27 | Git | work | No remote changes, local+remote: 60220c506919872f4bbccae43e4fae0b0ebe859b

While I was typing this note on my laptop, somebody came in and asked me lots of questions, I check back, still no update content in SparkleShare.

I put tail -f on the debug_log.txt file, just for fun. As people are asking me questions:

14:54:12 | Git | SparkleShare | Checking for remote changes...
14:54:12 | Cmd | SparkleShare | git rev-parse HEAD
14:54:12 | Cmd | SparkleShare | git ls-remote --heads --exit-code "ssh://git@github.com/pauljohn32/SparkleShare" master
14:54:12 | Git | work.git | Checking for remote changes...
14:54:12 | Cmd | work.git | git rev-parse HEAD
14:54:12 | Cmd | work.git | git ls-remote --heads --exit-code "ssh://git@ps110.pols.ku.edu/root/work.git" master
14:54:12 | Git | manuscripts.git | No remote changes, local+remote: 85bf4cacb0a562e10520b7e0d5e4180898603b98
14:54:13 | Git | SparkleShare | No remote changes, local+remote: 5f92acbde91dcb99d2b292ae38a8dc28dad962f4
14:54:17 | Git | work.git | No remote changes, local+remote: 60220c506919872f4bbccae43e4fae0b0ebe859b
14:57:19 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
14:57:19 | ListenerTcp | Pinging tcp://notifications.sparkleshare.org:443/
14:57:19 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/
14:57:19 | ListenerTcp | Received pong from tcp://notifications.sparkleshare.org:443/

After the visitors left

I got curious. What if I edit a file in the SparkleShare directory on the laptop?

Voila! kickstart! As soon as I open a terminal and run

vi SparkleShare.txt

In the tail from debug, I see the git status --porcelain spewing out as fast as it can, and as soon as I save a change in the file, Sparkle updates it self and downloads the content it was not noticing before.

14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:20 | Cmd | manuscripts.git | git status --porcelain
14:57:27 | Cmd | manuscripts.git | git status --porcelain
14:57:27 | Cmd | manuscripts.git | git status --porcelain
14:57:29 | Cmd | manuscripts.git | git status --porcelain
14:57:29 | Cmd | manuscripts.git | git status --porcelain
14:57:29 | Local | manuscripts.git | Activity detected, waiting for it to settle...
14:57:29 | Local | manuscripts.git | Activity detected, waiting for it to settle...
14:57:31 | Local | manuscripts.git | Activity has settled
14:57:31 | Local | manuscripts.git | Activity has settled
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | SyncUp | manuscripts.git | Initiated
14:57:31 | SyncUp | manuscripts.git | Initiated
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | Cmd | manuscripts.git | git add --all
14:57:31 | Cmd | manuscripts.git | git add --all
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | Cmd | manuscripts.git | git status --porcelain
14:57:31 | Cmd | manuscripts.git | git config user.name "Paul E. Johnson"
14:57:31 | Cmd | manuscripts.git | git config user.name "Paul E. Johnson"
14:57:31 | Cmd | manuscripts.git | git config user.email "pjohns@ku.edu"
14:57:31 | Cmd | manuscripts.git | git config user.email "pjohns@ku.edu"
14:57:31 | Cmd | manuscripts.git | git commit --all --message="/ ‘SparkleShare.txt’
" --author="Paul E. Johnson pjohns@ku.edu"
14:57:31 | Cmd | manuscripts.git | git commit --all --message="/ ‘SparkleShare.txt’
" --author="Paul E. Johnson pjohns@ku.edu"
14:57:31 | Cmd | manuscripts.git | git push --progress "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
14:57:31 | Cmd | manuscripts.git | git push --progress "ssh://git@ps110.pols.ku.edu/root/manuscripts.git" master
14:57:36 | Git | manuscripts.git | X11 forwarding request failed on channel 0
14:57:36 | Git | manuscripts.git | X11 forwarding request failed on channel 0
14:57:36 | Git | manuscripts.git | Counting objects: 5, done.
14:57:36 | Git | manuscripts.git | Counting objects: 5, done.
14:57:36 | Git | manuscripts.git | Delta compression using up to 4 threads.
14:57:36 | Git | manuscripts.git | Delta compression using up to 4 threads.
14:57:36 | Git | manuscripts.git | Total 3 (delta 2), reused 0 (delta 0)
14:57:36 | Git | manuscripts.git | Total 3 (delta 2), reused 0 (delta 0)
14:57:36 | Git | manuscripts.git | To ssh://git@ps110.pols.ku.edu/root/manuscripts.git
14:57:36 | Git | manuscripts.git | To ssh://git@ps110.pols.ku.edu/root/manuscripts.git
14:57:36 | Git | manuscripts.git | 85bf4ca..6690f8e master -> master
14:57:36 | Git | manuscripts.git | 85bf4ca..6690f8e master -> master
14:57:36 | SyncUp | manuscripts.git | Done
14:57:36 | SyncUp | manuscripts.git | Done
14:57:36 | Cmd | manuscripts.git | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
14:57:36 | Cmd | manuscripts.git | git log --since=1.month --raw --find-renames --date=iso --format=medium --no-color --no-merges
14:57:37 | Cmd | manuscripts.git | git rev-parse HEAD
14:57:37 | Cmd | manuscripts.git | git rev-parse HEAD
14:57:37 | Listener | Announcing message 6690f8edb74f0e03aedf5b1c946d33d0385f8607 to 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
14:57:37 | Listener | Announcing message 6690f8edb74f0e03aedf5b1c946d33d0385f8607 to 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
14:57:37 | Cmd | manuscripts.git | git status --porcelain
14:57:37 | Cmd | manuscripts.git | git status --porcelain
14:57:37 | Listener | Got message 6690f8edb74f0e03aedf5b1c946d33d0385f8607 from 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/
14:57:37 | Listener | Got message 6690f8edb74f0e03aedf5b1c946d33d0385f8607 from 247531a95cfcd9c3595b507451c7c323252eb430 on tcp://notifications.sparkleshare.org:443/

@hbons
Owner
hbons commented Mar 11, 2013

first off, SparkleShare doesn't follow symlinks itself due to how Git works, so sadly i can't help with that issue.
next, are you running the latest version (1.0 currently) on all your machines?

the loop of git status --porcelain commands is the same as #1170, and doesn't seem to be related.

you are right that a manual change will trigger a full sync. it's possible that the messages to/from notifications.sparkleshare.org didn't get through. in that case SparkleShare will manually poll after a few minutes.

@pauljohn32

I don't have any sym link problems. I just mentioned sym links because that's how Dropbox is monitoring the SparkleShare folder, where there is "real stuff". Dropbox does keep 3 systems in sync, that's how I know it is at least conceptually possible. On the other hand, new additions on one system are not noticed by the other Sparkle systems except when I manually edit a file.

I'd like to learn what's wrong and fix it, either on my end or your end.

I'm running SparkleShare-1.0 on all systems.

I have no idea what's going on in there, I was thinking that one complication is the laptop that goes among different network environments.

I need to learn more about git, if you want to point me at some git diagnostics for these SS folders, I'll run them.

@hbons
Owner
hbons commented Mar 12, 2013

i don't really understand your setup. your explanaition is quite long and complicated. can you try to explain again what it is that's not working by using client A/B/C?

@pauljohn32

Yes. Sorry.

A: Server running gitlab. The Git repo there is called "manuscripts.git"

B: Desktop "always on" workstation. That has ~/Sparkleshare/manuscripts that syncs to the server.

C: Laptop that gets suspended and moved about among networks.

Goal is to keep B and C synced via common Sparkle connections to A.

I seldom go physically to system B, but I ssh into it all the time and when I do work in there, I leave it in ~/SparkleShare/manuscripts and I hope that when C: wakes up from suspend it will find the work did there.

Sometimes I see problem that files are added to B, and possibly they are recognized by Sparkle and uploaded to A.

But C does not notice, until I edit a file in C. That triggers the re-scan. After that, things seem fine.

I'd like to know if I've set up something incorrectly. Are there git commands I can run on C: to diagnose whether A is making the changes available to C?

In the meanwhile, I got a Dropbox account, that installs into the LInux client in ~/Dropbox (both on B and C). In there, I created symbolic links to some folders in ~/SparkleShare/manuscripts/. (Don't worry, I did not link to the ~/SparkleShare/manuscripts/.git folder, just the content folders). I find that Dropbox does syncrhonize when I drop files into the ~/SparkleShare/manuscripts folder on one system, it very quickly shows up on the Dropbox server and then the other clients notice too. That's why I'm "pretty sure" the content is truly added in ~/SparkleShare/manuscripts :)

@hbons
Owner
hbons commented Jun 17, 2013

does this still happen with 1.1?

@hbons hbons closed this Jun 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment