Merge branch 'master' into windows
This commit is contained in:
commit
aba49995b6
26 changed files with 299 additions and 21 deletions
17
doc/bugs/Adding_box.com_remote_on_Android_fails_for_me.mdwn
Normal file
17
doc/bugs/Adding_box.com_remote_on_Android_fails_for_me.mdwn
Normal file
|
@ -0,0 +1,17 @@
|
|||
### Please describe the problem.
|
||||
|
||||
After submitting the form in the webapp for adding a box.com remote, I get:
|
||||
|
||||
Internal Server Error - WEBDAV failed to write file: "Unauthorized": user error
|
||||
|
||||
### What steps will reproduce the problem?
|
||||
|
||||
Fill in the box.com add remote form. Username=username, password=password, "share..."=checked, directory=annex, Encryption="Encrypt all data" and hit the "Add repository" button.
|
||||
|
||||
### What version of git-annex are you using? On what operating system?
|
||||
|
||||
git-annex version 4.20130513-g5185533 on Android 4.2.2
|
||||
|
||||
### Please provide any additional information below.
|
||||
|
||||
Didn't find a .git/annex/debug.log
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmmLfBDEDFfEOba8Ra46nsnTmoNHFsLObo"
|
||||
nickname="Brian"
|
||||
subject="It worked my second try"
|
||||
date="2013-05-14T00:39:08Z"
|
||||
content="""
|
||||
I enabled debug logging and tried again and this time the remote was successfully added! Maybe the first time I mistyped my password?
|
||||
|
||||
Either way, it is working now and I created a file in my annex directory and the assistant successfully synced it to my box.com repo.
|
||||
"""]]
|
|
@ -0,0 +1,33 @@
|
|||
### Please describe the problem.
|
||||
|
||||
When I launch git annex Android application, it fails to open the web browser. Workaround is to copy the url and manually paste it into web browser url line.
|
||||
|
||||
### What steps will reproduce the problem?
|
||||
|
||||
See above
|
||||
|
||||
### What version of git-annex are you using? On what operating system?
|
||||
|
||||
git-annex version 4.20130513-g5185533 on Android 4.2.2
|
||||
|
||||
### Please provide any additional information below.
|
||||
|
||||
[[!format sh """
|
||||
u0_a126@android:/sdcard/git-annex.home $ git annex webapp
|
||||
Launching web browser on http://127.0.0.1:47557/?auth=[...snip...]
|
||||
Starting: Intent { act=android.intent.action.VIEW dat=http://127.0.0.1:47557/?auth=[...snip...] }
|
||||
java.lang.SecurityException: Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
|
||||
at android.os.Parcel.readException(Parcel.java:1425)
|
||||
at android.os.Parcel.readException(Parcel.java:1379)
|
||||
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:1921)
|
||||
at com.android.commands.am.Am.runStart(Am.java:494)
|
||||
at com.android.commands.am.Am.run(Am.java:109)
|
||||
at com.android.commands.am.Am.main(Am.java:82)
|
||||
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
|
||||
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
|
||||
at dalvik.system.NativeStart.main(Native Method)
|
||||
failed to start web browser
|
||||
u0_a126@android:/sdcard/git-annex.home $
|
||||
|
||||
# End of transcript or log.
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmmLfBDEDFfEOba8Ra46nsnTmoNHFsLObo"
|
||||
nickname="Brian"
|
||||
subject="Duplicate bug report"
|
||||
date="2013-05-15T02:35:34Z"
|
||||
content="""
|
||||
This report is a duplicate of [[Android app permission denial on startup]]
|
||||
"""]]
|
|
@ -0,0 +1,14 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmmLfBDEDFfEOba8Ra46nsnTmoNHFsLObo"
|
||||
nickname="Brian"
|
||||
subject="I also see the connection timed out"
|
||||
date="2013-05-15T00:19:34Z"
|
||||
content="""
|
||||
Same Android device and same behavior as the above comment. While the connection attempt was being made, I switched to the terminal window and saw a connection to 173.194.46.86:5222 in the SYN_SENT state (and that connection wasn't there prior to the jabber configuration attempt).
|
||||
|
||||
Even from my desktop, manual connection attempts to 173.194.46.86:5222 timed out.
|
||||
|
||||
Then I ran the same jabber configuration from my desktop and it worked fin. Using netstat, I could see it connected to 74.125.133.125:5222.
|
||||
|
||||
So is the Android version using the wrong address?
|
||||
"""]]
|
|
@ -7,3 +7,5 @@ working. But nothing that moves content quite works yet..
|
|||
I've run into a stumbling block with `rsync`. It thinks that
|
||||
`C:\repo` is a path on a ssh server named "C". Seems I will need to translate
|
||||
native windows paths to unix-style paths when running rsync.
|
||||
|
||||
[[!meta date="13 May 2013"]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkHscTHMCNvjJ6nLI1VpsBrJFI5FTwhUT4"
|
||||
nickname="David"
|
||||
subject="Just use Unix Paths like git does?"
|
||||
date="2013-05-15T20:43:34Z"
|
||||
content="""
|
||||
Can't you just use unix-style paths for your internal data structures, and wrap/patch the filesystem I/O code to convert between the two?
|
||||
"""]]
|
|
@ -0,0 +1,21 @@
|
|||
The Windows port can now do everything in the [[walkthrough]]. It can use
|
||||
both local and remote git repositories. Some special remotes work
|
||||
(directory at least; probably rsync; likely any other special remote that
|
||||
can have its dependencies built). Missing features include most special
|
||||
remotes, gpg encryption, and of course, the assistant.
|
||||
|
||||
Also built a NullSoft installer for git-annex today. This was made very
|
||||
easy when I found the Haskell ncis library, which provides a DSL embedding
|
||||
the language used to write NullSoft installers into Haskell. So I didn't
|
||||
need to learn a new language, yay! And could pull in all my helpful
|
||||
Haskell utility libraries in the program that builds the installer.
|
||||
|
||||
The only tricky part was: How to get git-annex onto PATH? The standard way
|
||||
to do this seems to be to use a multiple-hundred line include file. Of
|
||||
course, that file does not have any declared license.. Instead of that,
|
||||
I used a hack. The git installer for Windows adds itself to PATH, and is
|
||||
a pre-requisite for git-annex. So the git-annex installer just installs
|
||||
it into the same directory as git.
|
||||
|
||||
So.. I'll be including this first stage Windows port, with installer in
|
||||
the next release. Anyone want to run a Windows autobuilder?
|
|
@ -0,0 +1,9 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawlJ2utMQgMEYAOs3Dfc6eZRyUzt4acNXUU"
|
||||
nickname="David"
|
||||
subject="git on windows"
|
||||
date="2013-05-15T04:26:48Z"
|
||||
content="""
|
||||
Adding git to the PATH variable is an optional step in the msysgit installer, fyi.
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus"
|
||||
nickname="Jimmy"
|
||||
subject="comment 2"
|
||||
date="2013-05-15T22:30:05Z"
|
||||
content="""
|
||||
I was thinking maybe migrating away from gitbuilder to using something like buildbot as it seems to be a better fit for this project than gitbuilder.
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
nickname="joey"
|
||||
subject="comment 3"
|
||||
date="2013-05-15T22:56:27Z"
|
||||
content="""
|
||||
@Jimmy, would be fine with me if it works better
|
||||
"""]]
|
|
@ -4,4 +4,4 @@ Same as the desktop webapp, users will be able to enter a directory they
|
|||
want the first time they run it, but to save typing on android, anything
|
||||
that gets enough votes will be included in a list of choices as well.
|
||||
|
||||
[[!poll open=yes expandable=yes 43 "/sdcard/annex" 3 "Whole /sdcard" 4 "DCIM directory (photos and videos only)" 1 "Same as for regular git-annex. ~/annex/"]]
|
||||
[[!poll open=yes expandable=yes 44 "/sdcard/annex" 3 "Whole /sdcard" 4 "DCIM directory (photos and videos only)" 1 "Same as for regular git-annex. ~/annex/"]]
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://me.yahoo.com/a/bBy7WkgQicYHIiiyj.Vm0TcMbxi2quzbPFef#6f9f7"
|
||||
nickname="Frederik Vanrenterghem"
|
||||
subject="comment 12"
|
||||
date="2013-05-14T04:07:37Z"
|
||||
content="""
|
||||
Thanks Joey, this worked. The symlinks are in the directory and I can get the actual file contents (except for one attempt that failed - I'll need to check why that didn't seem to have propagated to the bare repository.)
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="GLITTAH"
|
||||
ip="154.51.136.37"
|
||||
subject="comment 2"
|
||||
date="2013-05-14T15:54:08Z"
|
||||
content="""
|
||||
An even better solution. Thanks for your time and effort joey!
|
||||
"""]]
|
|
@ -1,10 +1,26 @@
|
|||
git-annex has recently been ported to Windows.
|
||||
git-annex has recently been ported to Windows!
|
||||
|
||||
This port is in an alpha state; many things will not work. See
|
||||
[[todo/windows_support]] for current status. Note especially that
|
||||
git-annex always uses [[direct_mode]] on Windows.
|
||||
* First, [install git](http://git-scm.com/downloads)
|
||||
* Then, [install git-annex](http://downloads.kitenet.net/git-annex/windows/current/)
|
||||
|
||||
This port is in an early state. While it works well enough to use
|
||||
git-annex, many things will not work. See [[todo/windows_support]] for
|
||||
current status. Note especially that git-annex always uses [[direct_mode]]
|
||||
on Windows.
|
||||
|
||||
## building it yourself
|
||||
|
||||
To build git-annex from source on Windows, you need to install
|
||||
the Haskell Platform and Cygwin. When installing Cygwin, select
|
||||
to install gcc, make, rsync, and ssh. Then, within Cygwin, git-annex
|
||||
can be compiled following the instructions for [[using cabal|cabal]].
|
||||
the Haskell Platform and Cygwin. Use Cygwin to install gcc, rsync, git,
|
||||
ssh, and gpg.
|
||||
|
||||
Then, within Cygwin, git-annex can be compiled following the instructions
|
||||
for [[using cabal|cabal]].
|
||||
|
||||
Once git-annex is built, the NullSoft installer can be built, as follows:
|
||||
|
||||
<pre>
|
||||
cabal install ncis
|
||||
ghc --make Build/NullSoftInstaller.hs
|
||||
Build/NullSoftInstaller.exe
|
||||
</pre>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawkGCmVc5qIJaQQgG82Hc5zzBdAVdhe2JEM"
|
||||
nickname="Bruno"
|
||||
subject="comment 1"
|
||||
date="2013-05-15T18:29:19Z"
|
||||
content="""
|
||||
Did you have any problem installing unix-2.6.0.1?
|
||||
|
||||
I got :
|
||||
|
||||
cabal.exe: Missing dependencies on foreign libraries:
|
||||
* Missing (or bad) header file: HsUnix.h
|
||||
* Missing C libraries: rt, dl
|
||||
"""]]
|
|
@ -0,0 +1,24 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawnAvbXOnK57sqgvZvxkbG74NUKBDwKDcuk"
|
||||
nickname="Tim"
|
||||
subject="bup location data not synced through annex assistant"
|
||||
date="2013-05-15T15:08:54Z"
|
||||
content="""
|
||||
I set up 2 servers running git annex assistant, both with a ~/annex dir and an additional ~/annex-bup bup repo. There is no additional cloud repository.
|
||||
For test, I added my /etc dir which uploaded correctly from server1, but which never arrived on server2
|
||||
|
||||
bup@bup1:~/annex/etc$ git annex whereis updatedb.conf
|
||||
whereis updatedb.conf (3 copies)
|
||||
687d3a7f-4798-4dbe-8774-1785b8ab6b7d -- here (bup@bup1:~/annex)
|
||||
adfc1307-771f-40e9-b794-bae2e1f21b8b -- bup2-annex-bup
|
||||
e4e0ac0b-992a-4312-a4ac-fc8d3d9f7c0f -- bup1-annex-bup
|
||||
ok
|
||||
|
||||
bup@bup2:~/annex/etc$ git annex whereis updatedb.conf
|
||||
whereis updatedb.conf (1 copy)
|
||||
687d3a7f-4798-4dbe-8774-1785b8ab6b7d -- bup1 (bup@bup1:~/annex)
|
||||
ok
|
||||
|
||||
As you can see, server 2 just doesn't know the data is already on it's own disk in it's local bup repo.
|
||||
Is there a reason this data does not get synced? Should I set up a transfer repo?
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawnAvbXOnK57sqgvZvxkbG74NUKBDwKDcuk"
|
||||
nickname="Tim"
|
||||
subject="my bad"
|
||||
date="2013-05-15T15:39:31Z"
|
||||
content="""
|
||||
Sorry, looks like I did initremote twice on the same folder, instead of enableremote the second time...
|
||||
"""]]
|
|
@ -3,11 +3,10 @@ now! --[[Joey]]
|
|||
|
||||
## status
|
||||
|
||||
* Does not support encryption with gpg.
|
||||
* Does not work with Cygwin's build of git (that git does not consistently
|
||||
support use of DOS style paths, which git-annex uses on Windows).
|
||||
Must use the upstream build of git for Windows.
|
||||
* OTOH, you do need to install Cygwin's build of rsync (unless you can
|
||||
find another one), and Cygwin's build of ssh.
|
||||
* test suite doesn't work
|
||||
* Bad file locking, it's probably not safe to run more than one git-annex
|
||||
process at the same time on Windows.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue