git ssb


9+

cel / git-ssb



git-fetch throws socket closed

%ZK8LSxtNB63OwOR4/73anKV44ObqqE9aWjiRgqVLi8s=.sha256
Closedkyrias-defunct opened this issue on 5/3/2016, 3:55:46 AM

Getting the following when trying to do a git-fetch after adding my fork as a remote:

/home/kyrias/node_modules/pull-git-remote-helper/index.js:518
            throw e
            ^

Error: This socket is closed
    at Socket._writeGeneric (net.js:665:19)
    at Socket._write (net.js:717:8)
    at doWrite (_stream_writable.js:306:12)
    at writeOrBuffer (_stream_writable.js:292:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:643:40)
    at /home/kyrias/node_modules/stream-to-pull-stream/index.js:63:16
    at /home/kyrias/node_modules/pull-git-remote-helper/index.js:513:13
    at /home/kyrias/node_modules/pull-cat/index.js:35:13
    at /home/kyrias/node_modules/pull-cat/index.js:35:13
%bwd3lrOSu1WuUsi9FwwH+EJ3T4ln67F+YDmTOAL830Y=.sha256 cel · 5/3/2016, 1:05:25 PM

Try git fetch -vv?

%hBxL+VD+2wQY7YCHNtunifYhC3eHjMlug339wlUxyUY=.sha256 kyrias-defunct · 5/4/2016, 5:07:21 AM
command: connect git-upload-pack
From ssb://%Rd8TTBhsE7yGU9p8qagQHG01GHmVAGzXvc7EzmNymlM=.sha256
 = [up to date]      master     -> ssb-kyrias/master
 = [up to date]      test       -> ssb-kyrias/test
line 
/home/kyrias/node_modules/pull-git-remote-helper/index.js:518
            throw e
            ^

Error: This socket is closed
    at Socket._writeGeneric (net.js:665:19)
    at Socket._write (net.js:717:8)
    at doWrite (_stream_writable.js:306:12)
    at writeOrBuffer (_stream_writable.js:292:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:643:40)
    at /home/kyrias/node_modules/stream-to-pull-stream/index.js:63:16
    at /home/kyrias/node_modules/pull-git-remote-helper/index.js:513:13
    at /home/kyrias/node_modules/pull-cat/index.js:35:13
    at /home/kyrias/node_modules/pull-cat/index.js:35:13
%+hZOhk5ggBoxv+uTDQkEIHlEJ3q4ypxdSPNZmOX8TgE=.sha256 cel · 5/4/2016, 12:00:18 PM

I wasn't able to reproduce this, but I think it's a protocol problem handling an empty fetch, which shouldn't affect other things. Or have you seen this error in other cases too? Also, what's your git version?

cryptix mentioned this issue in closing as duplicate of %ZK8LSxtNB63OwOR4/73anKV44ObqqE9aWjiRgqVLi8s=.sha256.
%qthVDhsG8K9D+Gxu7Tfv80zaqWZRRVQ6cKsHaH13EjI=.sha256 cryptix · 5/6/2016, 2:21:38 PM

had another case of this:

cryptx220~/go/src/github.com/cryptix/secretstream(master↑15|✔) % git subtree add --prefix=boxstream ssb://%JknvKmrAxOYGwhSTS1Zcv/hpmqCKo2MyvPkI29KTxf0=.sha256 master   
git fetch ssb://%JknvKmrAxOYGwhSTS1Zcv/hpmqCKo2MyvPkI29KTxf0=.sha256 master                                                                                           
fatal: protocol error: bad line length character: PACK
2% ===-------------------------------------------------------------------------------------------------------------------------------------------------------------------
/home/cryptix/node_modules/pull-git-remote-helper/index.js:518
            throw e
            ^

Error: This socket is closed
    at Socket._writeGeneric (net.js:672:19)
    at Socket._write (net.js:724:8)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:650:40)
    at /home/cryptix/node_modules/stream-to-pull-stream/index.js:63:16
    at /home/cryptix/node_modules/pull-git-remote-helper/index.js:513:13
    at /home/cryptix/node_modules/pull-cat/index.js:35:13
    at /home/cryptix/node_modules/pull-cat/index.js:35:13
cryptx220~/go/src/github.com/cryptix/secretstream(master↑15|✔) % git fetch ssb://%JknvKmrAxOYGwhSTS1Zcv/hpmqCKo2MyvPkI29KTxf0=.sha256 master  -vv
command: connect git-upload-pack
want 5e80bc0a1e35c5d46ac8f64101b7f550216fa884 (refs/heads/master)
have 7db8a656c14cef41d170e0bc86f71de312fd1d3d
have 8cbb38d2a27e177cee169f78b3e4f9e23222dc95
have d38a704563e7374688b07afad115478099b050f7
have 04d19203cd7f27f5904df90491964dfc1abddd3a
have 882a1356e79ac9a07d85673fcd2dff9b57109351
have 9f92180e16397874a0eccb0aff06a5d87ed0c8f6
have a995768b963d2482b2024bb5411d9b9f1f4aaa0d
have ba2f57505ed3931fac3b151f1900b71a65b0e8e3
have 284452354b44d2c6d39a21252f445ae2d2305208
have 64d605972951f9bd7cc998bbec15c2716d9685ee
have 0c75216de990e7564dcf8cbf4bb2fe6fc3ecd240
have d24423b8081fad4e50dbc5e5db1299a30e0cfe8e
have 278e6e9ecff8f36e4893742b1a90c6726e90e594
have 78927a0f7497bf71666c71e263da8b7efa0249f6
have f8205bdaf4158090be12ec865c806a6e975b31ea
have f85579bb6411ad93811057ae37225a84df6bae57
have 1facc02f0ed0dfdab1b47affa41d262290a67a66
done
line want 5e80bc0a1e35c5d46ac8f64101b7f550216fa884
line 
line have 7db8a656c14cef41d170e0bc86f71de312fd1d3d
line have 8cbb38d2a27e177cee169f78b3e4f9e23222dc95
line have d38a704563e7374688b07afad115478099b050f7
line have 04d19203cd7f27f5904df90491964dfc1abddd3a
line have 882a1356e79ac9a07d85673fcd2dff9b57109351
line have 9f92180e16397874a0eccb0aff06a5d87ed0c8f6
line have a995768b963d2482b2024bb5411d9b9f1f4aaa0d
line have ba2f57505ed3931fac3b151f1900b71a65b0e8e3
line have 284452354b44d2c6d39a21252f445ae2d2305208
line have 64d605972951f9bd7cc998bbec15c2716d9685ee
line have 0c75216de990e7564dcf8cbf4bb2fe6fc3ecd240
line have d24423b8081fad4e50dbc5e5db1299a30e0cfe8e
line have 278e6e9ecff8f36e4893742b1a90c6726e90e594
line have 78927a0f7497bf71666c71e263da8b7efa0249f6
line have f8205bdaf4158090be12ec865c806a6e975b31ea
line have f85579bb6411ad93811057ae37225a84df6bae57
line 
fatal: protocol error: bad line length character: PACK
/home/cryptix/node_modules/pull-git-remote-helper/index.js:518                                                                                                           
            throw e
            ^

Error: This socket is closed
    at Socket._writeGeneric (net.js:672:19)
    at Socket._write (net.js:724:8)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:650:40)
    at /home/cryptix/node_modules/stream-to-pull-stream/index.js:63:16
    at /home/cryptix/node_modules/pull-git-remote-helper/index.js:513:13
    at /home/cryptix/node_modules/pull-cat/index.js:35:13
    at /home/cryptix/node_modules/pull-cat/index.js:35:13
cryptx220~/go/src/github.com/cryptix/secretstream(master↑15|✔) %

interestingly, i ran a git subtree before this one, and it worked. (git version 2.8.2)

cryptix mentioned this issue in > 23:26 < cryptix> uuh.. i borked something, i think 23:27 < cryptix> can somebody check if they can see this ( %qthVDhsG8K9D+Gxu7Tfv80zaqWZ
%3q1WpTgJ62spg2OYgALuy/v9EGjhsy4w6u45yULZhCY=.sha256 kyrias-defunct · 5/6/2016, 2:51:02 PM

So far I've only hit it when doing git-fetch. And I have the same git version.

cryptix mentioned this issue in @paul really? you see my reply on the patchwork thread of that issue? ``` 23:43 < demize> cryptix: I can see it, why? 23:44 < demize> Oh wa
%45I0n87WETp3EitsCrPCiB/uFKXveWDlmEIUvThsi88=.sha256 cel · 5/7/2016, 4:27:18 AM

How to reproduce from scratch?

%hyAuT+ar1BThTYBU1IGWZBYEUONCYZ1garKlk4M2MYA=.sha256 cel · 7/9/2016, 11:40:20 PM

I was able to reproduce this when fetching from a git-ssb remote while up-to-date, with node v6 (not in v5 or v4). I will try to do some more debugging now.

%c1U5OwqSEPRb/KIuhKBQ0edj6n4niIekla40RKvvjsU=.sha256 cel · 7/9/2016, 11:40:20 PM

I was able to reproduce this when fetching from a git-ssb remote while up-to-date, with node v6 (not in v5 or v4). I will try to do some more debugging now.

cel closed this issue · 7/13/2016, 6:46:35 AM
Close stream cleanly on fetch while up-to-date
cel mentioned this issue in # git-ssb release notes ## git-ssb 1.3.0 - Add `forks` command for listing repo forks - Add `name` command for naming a repo (or any ssb me
%26N4rnfuyNEKeuSc+Sf+QTypIcJwS0NzVaNN830VUys=.sha256 Dominic · 7/23/2016, 9:42:00 PM

I've also seen this a few times

%YLRp/go4RgH0i184sQYvR7mLjjGuNt3EZBCxlEImFtc=.sha256 Dominic · 7/23/2016, 9:42:01 PM

I've also seen this a few times


Built with git-ssb-web