Comments (8)
Hey, thanks for writing in, and sorry to hear you're having trouble.
In general, Git LFS doesn't deal well with local backslash paths when pushing. You're seeing this issue because we try to parse the URL given to acquire credentials, and the unescaped backslashes make it look like you have a corrupt URL.
You'll probably have more success if you use a file:// URL, perhaps formatted like so: file://c%3a/users/administrator/desktop/GITOUT/GITREPO/
. A file URL would be a form that both Git and Git LFS could understand and would allow acquiring the credentials needed to push. You may have to fiddle around with various forms to get one that works correctly, but a file URL is definitely the way to go.
from lfs-test-server.
A bit more info.
As recommended in issue no. 81 I also set GIT_TRACE GIT_TRANSER_TRACE and GIT_CURL_VERBOSE then pushed with git push origin master.
Everything looks okay until:
17:43:56.738978 trace git-lfs: tq: sending batch of size 1
17:43:56.738978 trace git-lfs: api: batch 1 files
17:43:56.738978 trace git-lfs: api error: creds: parse //c:\users\administrator\desktop\GITOUT\GITREPO: invalid character “\” in host name
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done
batch response: creds: parse //c:\users\administrator\desktop\GITOUT\GITREPO: invalid character “\” in host name
error: failed to push some refs to ‘c:\users\administrator\desktop\GITOUT\GITREPO’.
from lfs-test-server.
@bk2204 Thanks for quick turnaround. I'll give our suggestion a shot.
from lfs-test-server.
@bk2204 OK I git clone ///c/users/administrator/desktop/GITOUT/GITREPO into GITCLONE and this created the link that you are talking about. I no longer get the message saying there is in an invalid character when pushing. However, when I try to git push origin master the system gets stuck and only says:
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done
It does not prompt for credentials.
When I look at the server it return status 401, which makes sense because I think what this is telling me is that the test server never receives authenticated username and password.
With GIT_TRACE GIT_TRANSFER and GIT_CURL_VERBOSE set. I get a continuous run of status 401. I can see that git lfs is trying to upload to the server, but fails.
So closer now, but I'm not getting instruction to type username or password.
from lfs-test-server.
Can you post the output of the operation with those three environment variables set?
from lfs-test-server.
@bk2204, I've gotten it to work on the Windows 8 computer at home. For the Windows 7 computer at work I had to include the computer admin name and password. It did push though. I never did get a pop-up for username and password. I'll be posting the output produced when just testuser and testpass were listed under the /mgmt./users .css soon as I get it cleared by IT. Thanks for your help.
from lfs-test-server.
Here is the output for the Windows 7 computer at work when I git push origin master. The first time the test server returns a status 401 I shut it down. If I don't do that git tries to push the blob to localhost:8080 repeatedly.
C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo>set GIT_TRACE=1
C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo>set GIT_TRANSFER=1
C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo>set GIT_CURL_VERBOSE=1
C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo>git push origin master
13:21:46.253005 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
13:21:46.253005 git.c:419 trace: built-in: git push origin master
13:21:46.268605 run-command.c:643 trace: run_command: unset GIT_PREFIX; 'git-receive-pack '''/c/users/administrator/desktop/gitout/gitrepo''''
13:21:46.393405 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:46.393405 git.c:419 trace: built-in: git receive-pack C:/users/administrator/desktop/gitout/gitrepo
13:21:46.393405 run-command.c:643 trace: run_command: .git/hooks/pre-push origin file:///c/users/administrator/desktop/gitout/gitrepo
13:21:46.565005 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:46.565005 git.c:676 trace: exec: git-lfs pre-push origin file:///c/users/administrator/desktop/gitout/gitrepo
13:21:46.565005 run-command.c:643 trace: run_command: git-lfs pre-push origin file:///c/users/administrator/desktop/gitout/gitrepo
13:21:46.736605 trace git-lfs: exec: git 'version'
13:21:46.866609 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' 'HEAD' '--symbolic-full-na
me' 'HEAD'
13:21:47.062413 trace git-lfs: exec: git 'config' '-l'
13:21:47.124615 trace git-lfs: exec: git 'config' '-l' '-f' 'C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo.lfsconfig'
13:21:47.186817 trace git-lfs: pre-push: refs/heads/master e9ab0b4e5c67763f27292debe050c0294367d006 refs/heads/master 267c4c9abbf9d84f78cf3e4d0ad0ffc6f7c623f7
13:21:47.431619 trace git-lfs: tq: running as batched queue, batch size of 100
13:21:47.431619 trace git-lfs: run_command: git rev-list --stdin --objects --not --remotes=origin --
13:21:47.552622 trace git-lfs: tq: sending batch of size 1
13:21:47.553622 trace git-lfs: api: batch 1 files
13:21:47.555622 trace git-lfs: creds: git credential fill ("http", "localhost:8080", "")
13:21:47.604823 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:47.605823 git.c:419 trace: built-in: git credential fill
13:21:47.605823 run-command.c:643 trace: run_command: 'git credential-manager get'
13:21:47.746223 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:47.746223 git.c:676 trace: exec: git-credential-manager get
13:21:47.746223 run-command.c:643 trace: run_command: git-credential-manager get
13:21:48.136224 trace git-lfs: Filled credentials for http://localhost:8080/
13:21:48.136224 trace git-lfs: HTTP: POST http://localhost:8080/objects/batch
POST /objects/batch HTTP/1.1
Host: localhost:8080
Accept: application/vnd.git-lfs+json; charset=utf-8
Authorization: Basic * * * * *
Content-Length: 159
Content-Type: application/vnd.git-lfs+json; charset=utf-8
User-Agent: git-lfs/2.7.1 (GitHub; windows amd64; go 1.11.5; git 6b7fb6e3)
{"operation":"upload","objects":[{"oid":"ec4bfdfea443c79957855dac8979004369b776bce38297333dc4fa30b1b0758d","size":1088990}],"ref":{"name":"refs/heads/master"}}13:21:48.178826 trace git-lfs:
HTTP: 401
< HTTP/1.1 401 Unauthorized
< Content-Length: 26
< Content-Type: text/plain; charset=utf-8
< Date: Thu, 14 Mar 2019 20:21:48 GMT
< Www-Authenticate: Basic realm=git-lfs-server
<
13:21:48.242627 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:48.242627 git.c:419 trace: built-in: git credential reject
13:21:48.242627 run-command.c:643 trace: run_command: 'git credential-manager erase'
13:21:48.398627 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:48.398627 git.c:676 trace: exec: git-credential-manager erase
13:21:48.398627 run-command.c:643 trace: run_command: git-credential-manager erase
13:21:48.758428 trace git-lfs: api: http response indicates "basic" authentication. Resubmitting...
13:21:48.758428 trace git-lfs: creds: git credential fill ("http", "localhost:8080", "")
13:21:48.808629 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:48.808629 git.c:419 trace: built-in: git credential fill
13:21:48.808629 run-command.c:643 trace: run_command: 'git credential-manager get'
13:21:48.949029 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
13:21:48.949029 git.c:676 trace: exec: git-credential-manager get
13:21:48.949029 run-command.c:643 trace: run_command: git-credential-manager get
13:21:49.323430 trace git-lfs: Filled credentials for http://localhost:8080/
13:21:49.323430 trace git-lfs: HTTP: POST http://localhost:8080/objects/batch
POST /objects/batch HTTP/1.1
Host: localhost:8080
Accept: application/vnd.git-lfs+json; charset=utf-8
Authorization: Basic * * * * *
Content-Length: 159
Content-Type: application/vnd.git-lfs+json; charset=utf-8
User-Agent: git-lfs/2.7.1 (GitHub; windows amd64; go 1.11.5; git 6b7fb6e3)
13:21:58.515247 trace git-lfs: api error: Post http://localhost:8080/objects/batch: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refuse
d it.
batch response: Post http://localhost:8080/objects/batch: dial tcp 127.0.0.1:8080: connectex: No connection could be made because the target machine actively refused it.
error: failed to push some refs to 'file:///c/users/administrator/desktop/gitout/gitrepo'
C:\Users\Administrator\Desktop\GITOUT\GITCLONE\gitrepo>
from lfs-test-server.
It looks like the credential manager you're using is providing a username and password each time even though it's been told that the ones it provided aren't valid. Since it looks like you're using the Microsoft Git Credential Manager for Windows, this might be microsoft/Git-Credential-Manager-for-Windows#703.
You could try reaching out in that issue to see if they can help, or if you can access the credential manager storage, you could try to delete the entry directly. I'm not sure how to do that, since I'm not using Windows or that credential manager. Alternately, you could try using a different credential manager, such as wincred
.
from lfs-test-server.
Related Issues (20)
- getting segmentation violation linux HOT 3
- Store locks on same server for different repos HOT 1
- tusd binary versus importing ? HOT 1
- hi gaizz need help using git lfs trying to upload games to my git pages website HOT 1
- No connection could be made because the target machine actively refused it HOT 1
- How to you set it up HOT 3
- LFS:Put connexion refused HOT 1
- Panic when running latest Mac.AMD64.gz on macOS 10.13.4 (17E202) HOT 10
- First push fails but second succeeds with large files and lfs-test-server HOT 21
- Git lfs ignores lfs url and doesn't push or upload to lfs server HOT 2
- No binaries for v0.4.0 HOT 1
- Return 413 on excessively large batch
- lfs-test-server tricks client into violation of LFS spec HOT 6
- Kept getting 401 error on Windows without environment variables HOT 5
- Large file uploads causing 500 error? HOT 3
- > Doisjs
- File lock failed: Repository or object not found HOT 1
- go install does not work HOT 4
- verbose logging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lfs-test-server.