Commit graph

12786 commits

Author SHA1 Message Date
https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog
febb7a8299 2013-07-31 22:39:55 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln4uCaqZRd5_nRQ-iLcJyGctIdw8ebUiM
d40343f7a5 2013-07-31 22:19:22 +00:00
Joey Hess
12e269482f Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 16:48:41 -04:00
Joey Hess
88b1a3e54e close 2013-07-31 16:48:35 -04:00
Joey Hess
3a1e458e0a blog for the day 2013-07-31 16:47:30 -04:00
http://joeyh.name/
166128760d Added a comment 2013-07-31 20:42:10 +00:00
Joey Hess
899c3083e8 Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 16:37:53 -04:00
Joey Hess
d1ed337035 webapp: Improve handling of remotes whose setup has stalled.
This includes recovery from the ssh-agent problem that led to many reporting
http://git-annex.branchable.com/bugs/Internal_Server_Error:_Unknown_UUID/
(Including fixing up .ssh/config to set IdentitiesOnly.)

Remotes that have no known uuid are now displayed in the webapp as
"unfinished". There's a link to check their status, and if the remote
has been set annex-ignore, a retry button can be used to unset that and
try again to set up the remote.

As this bug has shown, the process of adding a ssh remote has some failure
modes that are not really ideal. It would certianly be better if, when
setting up a ssh remote it would detect if it's failed to get the UUID,
and handle that in the remote setup process, rather than waiting until
later and handling it this way.

However, that's hard to do, particularly for local pairing, since the
PairListener runs as a background thread. The best it could do is pop up an
alert if there's a problem. This solution is not much different.

Also, this solution handles cases where the user has gotten their repo into
a mess manually and let's the assistant help with cleaning it up.

This commit was sponsored by Chia Shee Liang. Thanks!
2013-07-31 16:36:29 -04:00
http://joeyh.name/
890bf1a750 Added a comment 2013-07-31 20:03:13 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
9545d3420c Added a comment: Horns? 2013-07-31 19:53:51 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
209a0ca0fa removed 2013-07-31 19:53:15 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
3cce0d51e6 Added a comment: Horns? 2013-07-31 19:52:42 +00:00
Joey Hess
ab62ae357a hide NoUUID remotes from repolist
A ssh remote will breifly have NoUUID when it's just being set up and
git-annex-shell has not yet been queried for the UUID. So it doesn't make
sense to display any kind of error message in this case. The UI doesn't
work when there's NoUUID, and it can even crash the ajax long polling code.
So hiding NoUUID repositories is the right thing to do.

I've tested and the automatic refresh of the repolist causes the remote
to show up as soon as a UUID is recorded, when doing local pairing, and
when adding a ssh remote.
2013-07-31 14:31:05 -04:00
http://joeyh.name/
fea51d053c Added a comment 2013-07-31 17:42:22 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg
17bc95cb2f Added a comment 2013-07-31 17:34:50 +00:00
Joey Hess
af61bf2688 Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 13:31:14 -04:00
Joey Hess
cbfdf3ab21 set IdentitiesOnly
When setting up a dedicated ssh key to access the annex on a host,
set IdentitiesOnly to prevent the ssh-agent from forcing use of a different
ssh key.

That behavior could result in unncessary password prompts. I remember
getting a message or two from people who got deluged with password
prompts and I couldn't at the time see why.

Also, it would prevent git-annex-shell from being run on the remote host,
when git-annex was installed there by unpacking the standalone tarball,
since the authorized_keys line for the dedicated ssh key, which sets
up calling git-annex-shell when it's not in path, wouldn't be used.

This fixes
http://git-annex.branchable.com/bugs/Internal_Server_Error:_Unknown_UUID
but I've not closed that bug yet since I should still:

1. Investigate why the ssh remote got set up despite being so broken.
2. Make the webapp not handle the NoUUID state in such an ugly way.
3. Possibly add code to fix up systems that encountered the problem.
   Although since it requires changes to .ssh/config this may be one for
   the release notes.

Thanks to TJ for pointing me in the right direction to understand what
was happening here.
2013-07-31 13:30:49 -04:00
http://joeyh.name/
5824b13546 Added a comment: workaround 2013-07-31 17:19:01 +00:00
http://joeyh.name/
2ae68bc9e2 Added a comment: finally! 2013-07-31 16:47:39 +00:00
Joey Hess
78abed22ae Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 12:32:32 -04:00
Joey Hess
5af1190ef1 make edits that a commenter apparently didn't realize they could make. this is a wiki.. 2013-07-31 12:31:30 -04:00
http://joeyh.name/
f9c8ee9bc8 Added a comment 2013-07-31 16:25:55 +00:00
http://joeyh.name/
5323d49494 Added a comment 2013-07-31 16:25:35 +00:00
Joey Hess
0f445cf093 typo 2013-07-31 12:22:50 -04:00
http://joeyh.name/
767b16224c Added a comment: use the force 2013-07-31 16:20:40 +00:00
Joey Hess
a849c6eca1 Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 12:19:55 -04:00
Joey Hess
42ca8aaa61 importfeed --force: re-download urls that have been seen before 2013-07-31 12:19:00 -04:00
https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog
488f1fc50a Added a comment 2013-07-31 15:15:47 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnRai_qFYPVvEgC6i1nlM1bh-C__jbhqS0
94c23aaf25 Added a comment 2013-07-31 14:17:19 +00:00
Remy
6d372d5e31 Added a comment 2013-07-31 13:55:07 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg
1f152414ef Added a comment: checkpresent success and failure 2013-07-31 13:06:21 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmicVKRM8vJX4wPuAwlLEoS2cjmFXQkjkE
a2d6953d90 2013-07-31 12:46:42 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmicVKRM8vJX4wPuAwlLEoS2cjmFXQkjkE
da509d339e Added a comment: Please be more specific about what information goes into the key 2013-07-31 11:55:09 +00:00
ckeen
7abdbfb56c Added a comment: Force a reload of a feed? 2013-07-31 10:35:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlpSOjMH7Iaz56v6Pr9KCFSpbvMXvg-y9o
3b652ea047 Added a comment 2013-07-31 10:29:51 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkfHTPsiAcHEEN7Xl7WxiZmYq-vX7azxFY
60a85347c2 2013-07-31 10:09:49 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkfHTPsiAcHEEN7Xl7WxiZmYq-vX7azxFY
2f4872e496 Added a comment: seems to work 2013-07-31 09:37:37 +00:00
https://www.google.com/accounts/o8/id?id=AItOawknruiCHUcOh2mmpkh7OFJ4iNfAOOamRVs
8d977ed697 Added a comment 2013-07-31 05:34:33 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog
efdf1c53b8 2013-07-31 04:39:21 +00:00
Joey Hess
9476355bc3 find: Avoid polluting stdout with progress messages. Closes: #718186 2013-07-30 20:24:27 -04:00
Joey Hess
433682cb1d Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-30 19:19:30 -04:00
Joey Hess
ddd46db09a Fix a few bugs involving filenames that are at or near the filesystem's maximum filename length limit.
Started with a problem when running addurl on a really long url,
because the whole url is munged into the filename. Ended up doing
a fairly extensive review for places where filenames could get too large,
although it's hard to say I'm not missed any..

Backend.Url had a 128 character limit, which is fine when the limit is 255,
but not if it's a lot shorter on some systems. So check the pathconf()
limit. Note that this could result in fromUrl creating different keys
for the same url, if run on systems with different limits. I don't see
this is likely to cause any problems. That can already happen when using
addurl --fast, or if the content of an url changes.

Both Command.AddUrl and Backend.Url assumed that urls don't contain a
lot of multi-byte unicode, and would fail to truncate an url that did
properly.

A few places use a filename as the template to make a temp file.
While that's nice in that the temp file name can be easily related back to
the original filename, it could lead to `git annex add` failing to add a
filename that was at or close to the maximum length.

Note that in Command.Add.lockdown, the template is still derived from the
filename, just with enough space left to turn it into a temp file.
This is an important optimisation, because the assistant may lock down
a bunch of files all at once, and using the same template for all of them
would cause openTempFile to iterate through the same set of names,
looking for an unused temp file. I'm not very happy with the relatedTemplate
hack, but it avoids that slowdown.

Backend.WORM does not limit the filename stored in the key.
I have not tried to change that; so git annex add will fail on really long
filenames when using the WORM backend. It seems better to preserve the
invariant that a WORM key always contains the complete filename, since
the filename is the only unique material in the key, other than mtime and
size. Since nobody has complained about add failing (I think I saw it
once?) on WORM, probably it's ok, or nobody but me uses it.

There may be compatability problems if using git annex addurl --fast
or the WORM backend on a system with the 255 limit and then trying to use
that repo in a system with a smaller limit. I have not tried to deal with
those.

This commit was sponsored by Alexander Brem. Thanks!
2013-07-30 19:18:29 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnaH44G3QbxBAYyDwy0PbvL0ls60XoaR3Y
5ac4bae331 Added a comment: /storage/sdcard1/.git/annex/daemon.log 2013-07-30 23:11:29 +00:00
http://joeyh.name/
d994f6270c Added a comment 2013-07-30 21:29:50 +00:00
http://joeyh.name/
3bc7051210 Added a comment 2013-07-30 21:25:32 +00:00
http://www.joachim-breitner.de/
0a2bcdc167 Added a comment: Great stuff! 2013-07-30 21:21:58 +00:00
http://www.joachim-breitner.de/
1df9731405 fixed typo 2013-07-30 21:17:11 +00:00
Joey Hess
6cf2d1edbf Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-30 17:14:19 -04:00
http://joeyh.name/
af7caeb27d Added a comment 2013-07-30 21:12:54 +00:00
Joey Hess
19adb2a7cf blog for the day 2013-07-30 17:06:18 -04:00