Joey Hess [Tue, 13 Dec 2016 15:56:23 +0000 (11:56 -0400)]
Pass annex.web-options to wget and curl after other options, so that eg --no-show-progress can be set by the user to disable the default --show-progress.
Joey Hess [Tue, 13 Dec 2016 15:13:58 +0000 (11:13 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Dec 2016 15:07:49 +0000 (11:07 -0400)]
metadata --batch: Fix bug when conflicting metadata changes were made in the same batch run.
1 microsecond delay is ugly.. but, maintaining an queue of a list of timestamps
and taking a new one from the queue each time around, or maintaining a timestamp
counter, would probably be slower.
Joey Hess [Tue, 13 Dec 2016 14:57:11 +0000 (10:57 -0400)]
analysis
Joey Hess [Tue, 13 Dec 2016 14:49:39 +0000 (10:49 -0400)]
analysis
Joey Hess [Tue, 13 Dec 2016 14:40:50 +0000 (10:40 -0400)]
analysis
https://singpolyma.net/ [Tue, 13 Dec 2016 02:38:44 +0000 (02:38 +0000)]
annexuser [Tue, 13 Dec 2016 02:00:08 +0000 (02:00 +0000)]
Added a comment
Joey Hess [Mon, 12 Dec 2016 21:21:32 +0000 (17:21 -0400)]
todo
Joey Hess [Mon, 12 Dec 2016 17:31:58 +0000 (13:31 -0400)]
comment
Joey Hess [Mon, 12 Dec 2016 17:28:50 +0000 (13:28 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 12 Dec 2016 17:27:39 +0000 (13:27 -0400)]
finish fixing android build after tor merge
Joey Hess [Mon, 12 Dec 2016 01:30:07 +0000 (21:30 -0400)]
Debian: Build webapp on armel.
Joey Hess [Sun, 11 Dec 2016 19:37:52 +0000 (15:37 -0400)]
linux standalone builds should have "unable to decommit memory" bug fixed
grawity@2ea26be48562f66fcb9b66307da72b1e2e37453f [Sun, 11 Dec 2016 17:46:03 +0000 (17:46 +0000)]
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 13:26:29 +0000 (13:26 +0000)]
Added a comment: Nope a Fluke
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 00:59:50 +0000 (00:59 +0000)]
Added a comment: Verification
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sun, 11 Dec 2016 00:26:42 +0000 (00:26 +0000)]
Added a comment
Joey Hess [Sat, 10 Dec 2016 16:29:29 +0000 (12:29 -0400)]
fix some more
Joey Hess [Sat, 10 Dec 2016 16:23:34 +0000 (12:23 -0400)]
add news item for git-annex 6.
20161210
Joey Hess [Sat, 10 Dec 2016 16:23:18 +0000 (12:23 -0400)]
releasing package git-annex version 6.
20161210
Joey Hess [Sat, 10 Dec 2016 16:13:41 +0000 (12:13 -0400)]
better fix
Joey Hess [Sat, 10 Dec 2016 15:55:56 +0000 (11:55 -0400)]
improve hask to work with TH for Free monads
Joey Hess [Sat, 10 Dec 2016 15:45:46 +0000 (11:45 -0400)]
warning about old kernels
Joey Hess [Sat, 10 Dec 2016 15:41:38 +0000 (11:41 -0400)]
fix build warning
Joey Hess [Sat, 10 Dec 2016 15:32:05 +0000 (11:32 -0400)]
fix build with old stm
Old stm lacks isFullTMQueue.
To avoid needing to update stm on the Android autobuilder, I switched to
a TBMQueue. It never needs to be closed, but the overhead is minimal.
Joey Hess [Sat, 10 Dec 2016 15:31:55 +0000 (11:31 -0400)]
followup
Joey Hess [Sat, 10 Dec 2016 15:12:18 +0000 (11:12 -0400)]
fix build with old ghc
Joey Hess [Sat, 10 Dec 2016 15:04:11 +0000 (11:04 -0400)]
fix typo
Joey Hess [Sat, 10 Dec 2016 14:46:51 +0000 (10:46 -0400)]
fixed
Alper Nebi Yasak [Sat, 10 Dec 2016 12:24:27 +0000 (15:24 +0300)]
Remove http-conduit (<2.2.0) constraint
Since https://github.com/aristidb/aws/issues/206 is resolved, this
constraint is no longer necessary. However, http-conduit (>=2.2.0)
requires http-client (>=0.5.0) which introduces some breaking changes.
This commit also implements those changes depending on the version.
Fixes: https://git-annex.branchable.com/bugs/Build_with_aws_head_fails/
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
alpernebbi [Sat, 10 Dec 2016 13:08:58 +0000 (13:08 +0000)]
Added a comment: Patch to fix aws head build issue
0xloem@0bd8a79a57e4f0dcade8fc81d162c37eae4d6730 [Sat, 10 Dec 2016 12:31:32 +0000 (12:31 +0000)]
Added a comment: Corrupt Links Produced, Significant Data Loss
alpernebbi [Sat, 10 Dec 2016 07:36:04 +0000 (07:36 +0000)]
Added a comment
Joey Hess [Fri, 9 Dec 2016 21:11:16 +0000 (17:11 -0400)]
hang up connection after relaying
Seems that git upload-pack outputs a "ONCDN " that is not read by the
remote git receive-pack. This fixes:
[2016-12-09 17:08:32.
77159731] P2P > ERROR protocol parse error: "ONCDN "
Joey Hess [Fri, 9 Dec 2016 21:07:32 +0000 (17:07 -0400)]
update
Joey Hess [Fri, 9 Dec 2016 21:02:21 +0000 (17:02 -0400)]
fix uuid comparison
Joey Hess [Fri, 9 Dec 2016 20:55:48 +0000 (16:55 -0400)]
avoid exposing auth tokens in debug
Joey Hess [Fri, 9 Dec 2016 20:46:37 +0000 (16:46 -0400)]
devblog
Joey Hess [Fri, 9 Dec 2016 20:45:36 +0000 (16:45 -0400)]
debug dump P2P messages
Joey Hess [Fri, 9 Dec 2016 20:27:20 +0000 (16:27 -0400)]
make tor hidden service work when directory watching is not available
Avoid crashing when built w/o inotify..
Joey Hess [Fri, 9 Dec 2016 20:22:00 +0000 (16:22 -0400)]
cleanup
Joey Hess [Fri, 9 Dec 2016 20:03:25 +0000 (16:03 -0400)]
bump maxConnections to 100
10 seemed too low because more than 10 friends could be linked to a repo
over tor, and if all were running the remotedaemon, which makes a
persistent connection for change notification, then the 11th friend
would not be able to access that repo.
100 might be too low, but it's a much larger group of people. And at
that size group, it probably makes sense to structure the network so
that 100 peers are not all trying to access one central node.
Joey Hess [Fri, 9 Dec 2016 20:02:43 +0000 (16:02 -0400)]
remotedaemon: git change detection over tor hidden service
Joey Hess [Fri, 9 Dec 2016 19:08:54 +0000 (15:08 -0400)]
only start ref change watcher thread once per P2P connection
This is more efficient. Note that the peer will get CHANGED messages for
all refs changed since the connection opened, even if those changes
happened before it sent NOTIFYCHANGE.
Joey Hess [Fri, 9 Dec 2016 18:52:38 +0000 (14:52 -0400)]
refactor ref change watching
Added to change notification to P2P protocol.
Switched to a TBChan so that a single long-running thread can be
started, and serve perhaps intermittent requests for change
notifications, without buffering all changes in memory.
The P2P runner currently starts up a new thread each times it waits
for a change, but that should allow later reusing a thread. Although
each connection from a peer will still need a new watcher thread to run.
The dependency on stm-chans is more or less free; some stuff in yesod
uses it, so it was already indirectly pulled in when building with the
webapp.
This commit was sponsored by Francois Marier on Patreon.
Joey Hess [Fri, 9 Dec 2016 17:38:50 +0000 (13:38 -0400)]
update
Joey Hess [Fri, 9 Dec 2016 17:34:00 +0000 (13:34 -0400)]
git-annex-shell, remotedaemon, git remote: Fix some memory DOS attacks.
The attacker could just send a very lot of data, with no \n and it would
all be buffered in memory until the kernel killed git-annex or perhaps OOM
killed some other more valuable process.
This is a low impact security hole, only affecting communication between
local git-annex and git-annex-shell on the remote system. (With either
able to be the attacker). Only those with the right ssh key can do it. And,
there are probably lots of ways to construct git repositories that make git
use a lot of memory in various ways, which would have similar impact as
this attack.
The fix in P2P/IO.hs would have been higher impact, if it had made it to a
released version, since it would have allowed DOSing the tor hidden
service without needing to authenticate.
(The LockContent and NotifyChanges instances may not be really
exploitable; since the line is read and ignored, it probably gets read
lazily and does not end up staying buffered in memory.)
Joey Hess [Fri, 9 Dec 2016 17:00:19 +0000 (13:00 -0400)]
debug on error serving peer
Joey Hess [Fri, 9 Dec 2016 16:56:38 +0000 (12:56 -0400)]
fix
Joey Hess [Fri, 9 Dec 2016 16:54:18 +0000 (12:54 -0400)]
make clear that log is only updated after successful removal
This does not change behavior, because an exception is thrown on
unsuccessful removal. But is clearer.
Joey Hess [Fri, 9 Dec 2016 16:54:12 +0000 (12:54 -0400)]
typo
Joey Hess [Fri, 9 Dec 2016 16:47:57 +0000 (12:47 -0400)]
content removal is supposed to succed if the content was already not present
Joey Hess [Fri, 9 Dec 2016 16:35:45 +0000 (12:35 -0400)]
improve warning on connection loss
Joey Hess [Fri, 9 Dec 2016 00:55:46 +0000 (20:55 -0400)]
todo
Joey Hess [Fri, 9 Dec 2016 00:15:12 +0000 (20:15 -0400)]
more todo
Joey Hess [Thu, 8 Dec 2016 23:56:02 +0000 (19:56 -0400)]
update progress logs in remotedaemon send/receive
Joey Hess [Thu, 8 Dec 2016 22:42:59 +0000 (18:42 -0400)]
avoid remotedaemon outputting misc Messages when running
It's a daemon or is communictaing with the assistant over stdio, so
should not display checksum messages etc while serving the P2P protocol
etc.
Joey Hess [Thu, 8 Dec 2016 22:26:03 +0000 (18:26 -0400)]
fix memory leak
I'm unsure why this fixed it, but it did. Seems to suggest that the
memory leak is not due to a bug in my code, but that ghc didn't manage
to take full advantage of laziness, or was failing to gc something it
could have.
Joey Hess [Thu, 8 Dec 2016 22:25:51 +0000 (18:25 -0400)]
correction
Joey Hess [Thu, 8 Dec 2016 21:50:59 +0000 (17:50 -0400)]
analysis
Joey Hess [Thu, 8 Dec 2016 21:34:26 +0000 (17:34 -0400)]
profiling
Joey Hess [Thu, 8 Dec 2016 21:17:01 +0000 (17:17 -0400)]
consistent caps
Joey Hess [Thu, 8 Dec 2016 21:12:02 +0000 (17:12 -0400)]
comment
Joey Hess [Thu, 8 Dec 2016 21:10:48 +0000 (17:10 -0400)]
didn't mean to commit this change yet
Joey Hess [Thu, 8 Dec 2016 21:10:24 +0000 (17:10 -0400)]
comment
Joey Hess [Thu, 8 Dec 2016 20:55:40 +0000 (16:55 -0400)]
update instructions to work better
Joey Hess [Thu, 8 Dec 2016 20:35:33 +0000 (16:35 -0400)]
we have a memory leak
Joey Hess [Thu, 8 Dec 2016 20:31:08 +0000 (16:31 -0400)]
move byteable to main dep list
Only the webapp had pulled it in, but the authtoken code uses it now.
Joey Hess [Thu, 8 Dec 2016 20:28:07 +0000 (16:28 -0400)]
force sofar calculation
This could avoid a memory leak. It would only happen when
the meter didn't look at sofar.
Joey Hess [Thu, 8 Dec 2016 20:02:26 +0000 (16:02 -0400)]
better format error
Joey Hess [Thu, 8 Dec 2016 20:00:29 +0000 (16:00 -0400)]
update
Joey Hess [Thu, 8 Dec 2016 19:56:36 +0000 (15:56 -0400)]
move to debug
Joey Hess [Thu, 8 Dec 2016 19:47:49 +0000 (15:47 -0400)]
convert P2P runners from Maybe to Either String
So we get some useful error messages when things fail.
This commit was sponsored by Peter Hogg on Patreon.
Joey Hess [Thu, 8 Dec 2016 19:15:29 +0000 (15:15 -0400)]
fix laziness problem in git relaying
The switch to hGetMetered subtly changed the laziness of how DATA was
read, and broke git protocol relaying. Fix by sending received data to
the git process's stdin immediately, which ensures that the lazy
bytestring is all read from the peer before going on to process the next
message from the peer.
Joey Hess [Thu, 8 Dec 2016 18:14:08 +0000 (14:14 -0400)]
include error message when unable to connect to peer
Joey Hess [Thu, 8 Dec 2016 17:58:11 +0000 (13:58 -0400)]
update
Joey Hess [Thu, 8 Dec 2016 17:58:03 +0000 (13:58 -0400)]
fix build with old ghc
Joey Hess [Wed, 7 Dec 2016 20:11:30 +0000 (16:11 -0400)]
fix links
Joey Hess [Wed, 7 Dec 2016 20:09:30 +0000 (16:09 -0400)]
link to git-annex-metadata-gui
Joey Hess [Wed, 7 Dec 2016 20:06:56 +0000 (16:06 -0400)]
add git-annex-adaptor
Joey Hess [Wed, 7 Dec 2016 20:00:12 +0000 (16:00 -0400)]
git-annex-metadata-gui yay!
Joey Hess [Wed, 7 Dec 2016 19:50:54 +0000 (15:50 -0400)]
devblog
Joey Hess [Wed, 7 Dec 2016 19:49:15 +0000 (15:49 -0400)]
todo
Joey Hess [Wed, 7 Dec 2016 19:44:18 +0000 (15:44 -0400)]
add page for tor special remote
Joey Hess [Wed, 7 Dec 2016 19:38:37 +0000 (15:38 -0400)]
update
Joey Hess [Wed, 7 Dec 2016 19:36:39 +0000 (15:36 -0400)]
fix math error that caused resumes to always fail
Joey Hess [Wed, 7 Dec 2016 19:24:28 +0000 (15:24 -0400)]
ReadWriteMode not AppendMode
AppendMode does not allow seeking..
Joey Hess [Wed, 7 Dec 2016 19:21:38 +0000 (15:21 -0400)]
add section on tor speed
Joey Hess [Wed, 7 Dec 2016 19:06:07 +0000 (15:06 -0400)]
open file for append, not write, so resuming works
WriteMode zeros any existing content, so the seek filled with zeros, and
verification failed after download.
Joey Hess [Wed, 7 Dec 2016 18:52:10 +0000 (14:52 -0400)]
offset meters when resuming
Joey Hess [Wed, 7 Dec 2016 18:46:27 +0000 (14:46 -0400)]
todo
Joey Hess [Wed, 7 Dec 2016 18:32:25 +0000 (14:32 -0400)]
Merge branch 'master' into tor
Joey Hess [Wed, 7 Dec 2016 18:25:01 +0000 (14:25 -0400)]
more p2p progress meters
Display progress meter on send and receive from remote.
Added a new hGetMetered that can read an exact number of bytes (or
less), updating a meter as it goes.
This commit was sponsored by Andreas on Patreon.
Joey Hess [Wed, 7 Dec 2016 17:58:10 +0000 (13:58 -0400)]
add section on security
Joey Hess [Wed, 7 Dec 2016 17:37:35 +0000 (13:37 -0400)]
update progress meter when sending to p2p remote
This commit was sponsored by Thom May on Patreon.
Joey Hess [Wed, 7 Dec 2016 16:48:24 +0000 (12:48 -0400)]
update
Joey Hess [Wed, 7 Dec 2016 16:39:28 +0000 (12:39 -0400)]
validate peer uuid each time we talk to it
In case the repo on the peer changes uuid (eg by a new repo being moved
into place).
Also, added some warning messages when unable to communicate with a
peer.
This commit was sponsored by Anthony DeRobertis on Patreon.
Joey Hess [Wed, 7 Dec 2016 16:38:21 +0000 (12:38 -0400)]
remote uuid discovery in p2p --link
This also tests that we can connect to the peer.
This commit was sponsored by Jeff Goeke-Smith on Patreon.
Joey Hess [Wed, 7 Dec 2016 16:11:38 +0000 (12:11 -0400)]
add todo list for remaining tor stuff