forum/Windows - You don't have accessgit-annexhttp://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/git-annexikiwiki2015-07-24T18:10:20Zcomment 1http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_1_5c1da63922cc71483c9519e8670d532b/joey2015-07-20T18:01:12Z2015-07-20T17:51:33Z
<p>The "GitLab: You don't have access" seems to be gitlab refusing to run
git-annex-shell when asked to. Only the gitlab people could help you with
that. (Gitlab does seem to work with git-annex today when I try it,
I had some similar problems with their implementation refusing to
start git-annex-shell earlier.)</p>
<p>OTOH, the "git-annex.exe: unknown command git@gitlab.server.com"
looks like you ran into this bug:
<a href="http://git-annex.branchable.com/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/">http://git-annex.branchable.com/bugs/git-annex_sync_under_windows_fails_by_using_itself_as_the_ssh_command/</a>
Since I have still not managed to reproduce or get to the bottom of that
bug report, any information about it would be useful.</p>
comment 2http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_2_aa6ea60465df9fab7990bd6f510b74c5/fusionx862015-07-20T18:59:29Z2015-07-20T18:59:29Z
GitLab is working fine with annex. I'm able to annex sync and sync --content on Linux and OSX without any problems. It's just Windows client I'm struggling with. I'll look at the bug you linked and post back with anything interesting.
comment 3http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_3_593a8a54fa80258d5048f5c061992664/joey2015-07-20T19:05:05Z2015-07-20T19:03:58Z
<p>Pretty sure that the only difference gitlab can see between your Windows
and Linux boxes there is the ssh key that they're using. So, maybe you need
to add the Windows box's ssh key to the gitlab repo, or there's a problem
in that area.</p>
comment 4http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_4_aa28602eb0b7fa7103eaf90dc1d5cf8f/fusionx862015-07-20T20:14:07Z2015-07-20T20:14:07Z
<h2>The bug you linked does look like the same thing I'm seeing. I decided to install cygwin on the same server to see if it made a difference. It started adding files this time and I thought I had a solution, but then it threw the same error about access.</h2>
<p>$ git annex sync --verbose</p>
<p> Detected a filesystem without fifo support.</p>
<p> Disabling ssh connection caching.</p>
<p> Detected a crippled filesystem.
(merging origin/git-annex into git-annex...)
(recording state in git...)</p>
<p> Enabling direct mode.
commit (recording state in git...)
add Bin/FastMM_FullDebugMode.dll ok
add Bin/Res/bar_blank.gif ok
add Bin/Res/bar_blank_gray.gif ok
add Bin/Res/bar_gray.gif ok
add Bin/Res/bar_left.gif ok
add Bin/Res/bar_middle.gif ok
add Bin/Res/bar_right.gif ok
add Bin/Res/btn_back_0.gif ok
add Bin/Res/btn_back_1.gif ok
add Bin/Res/btn_back_2.gif ok
add Bin/Res/btn_back_3.gif ok
...
(recording state in git...)
ok
pull origin git-annex.exe: unknown command git@gitlab.company.com</p>
<p>Usage: git-annex command [option ...]
...
fatal: Could not read from remote repository.</p>
<p>Please make sure you have the correct access rights
and the repository exists.</p>
<p> Pushing to origin failed.</p>
<p> (non-fast-forward problems can be solved by setting receive.denyNonFastforwards to false in the remote's git config)
failed
(recording state in git...)</p>
<h2>git-annex.exe: sync: 2 failed</h2>
<p>So it seemed to get a little further, but still fails. The key $HOME/.ssh/id_rsa has full access to the repo and I'm able to push/pull with git just fine. Not sure what else to try for annex sync.</p>
comment 5http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_5_f9041e48b911dbdd37ad3c1bbc801709/fusionx862015-07-20T20:41:00Z2015-07-20T20:41:00Z
<p>Also, I created git-annex-shell.exe as a copy of git-annex.exe which you recommended here: https://git-annex.branchable.com/bugs/no_git-annex_shell_on_Windows/.</p>
<p>I also made sure UAC and Windows Firewall were disabled and they already were.</p>
<p>What environment variables should exist to support annex? I see references to GIT_ANNEX_SSHOPTION and GIT_SSH, but those aren't currently configured on my Windows server. The git, git-annex and git-annex-shell files are in the global path and accessible from anywhere.</p>
comment 6http://git-annex.branchable.com/forum/Windows_-_You_don__39__t_have_access/comment_6_7656eb72bb9e39db59092557c57a2489/fusionx862015-07-24T18:10:20Z2015-07-24T18:10:20Z
Any other ideas on this problem? I was planning to use annex for large/binary files, but we have a lot of developers that would need to run it on Windows as well and I'm not sure how to roll it out when I can't get it working myself on a Windows build server. I think I saw somewhere that you have tested it on WinXP. Any chance you could download an evaluation copy of a later version (Win7/8.1/2008R2/2012R2) and try again? Annex is a great tool and would like to incorporate it into our SCM and deployment workflow if possible. Thanks.