-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lfs server usage #23
Comments
@mschubert thanks for the detailed repro. Could you tell me if you've configured the
Without that section, the filters probably won't run, which sounds like what is happening here. |
As far as I understood, |
@mschubert good to know. Does |
I found an error in my tracking of files (no quotes). I still can't push, will look if solution for @mkulagowski solves my problem as well. (@shiftkey, note the update here) |
My gut feel at this point is that this is a |
Yes, you are right. The file not being listed makes it a |
Hey, I didn't want to open new issue with the same name, so I write here. So...I downloaded 64bit test-serv binary to my VPS, changed Then I downloaded git-lfs locally, Next I On VPS I get messages in lfs-serv:
Any ideas? |
@mkulagowski Did you add a user to the lfs server? Since it's just a little stand alone test thing it uses its own user database, separate from anything else on the system. If you start the server with the environment variables It's a little confusing, for sure, a real Git LFS backend will have better integration with the repository's own authentication. For example, when using Git LFS on GitHub, you'll just use your GitHub credentials throughout. Let me know if that doesn't work out for you! |
@rubyist Well...that kind of helped - there wasn't problem with credentials and while pushing I even caught a glimpse of loading bar :D SERVER: LOCAL OUTPUT: git lfs logs last:
This part: Any ideas? Got 202 on server for POST...but nothing for PUT. |
@mkulagowski Hmm, it looks like for the PUT it was trying to connect to |
@rubyist Thank You very much sir, I think we're at the finishing line: This time I changed it, started up lfs-test-server and pushed sth from my local machine and VOILA! It went through. I pushed a ~25Mb wmv file as well. [2] Where can I find uploaded files? I can't see anything on the specified path on vps o.O, yet when I make Output from vps:
|
I guess I could've been ignored due to my issue being almost the same as the original issue from mschubert. Yet for me |
Hi @mkulagowski - sorry, I totally missed this. For your questions:
|
@rubyist Ok, great - I've found those files 👍 |
LFS_CONTENTPATH is only telling the lfs-test-server where to store the uploaded content. You could stick it anywhere on your file system. The path part of the url in the config is designed to work with the API itself. Technically, the lfs-test-server doesn't have to require a For example, you could set that line to be: route := "/objects/{oid}" And then your git config could be:
Or: route := "/repo/objects/{oid}" And
Does that make sense? Feel free to keep asking questions if it doesn't, it's been a while since I've had to explain any of this to someone who hasn't been working on it for a while so keep prodding me if it doesn't make sense 😄 |
@rubyist Well... I'm not yet sure I understand... I understand the concept of CONTENTPATH, as it is simple ("show me folder to store files") yet I miss what is the current use of .git/config path and how it works alongside with LFS_CONTENTPATH :/ |
@mkulagowski You're right about the LFS_CONTENTPATH, it's only telling the server where to store the files on disk. It is not related to the .git/config path in any way. |
I have configured the Test Server, but uploading a 71MB file is taking to long. Any suggestions ? |
@marcpiresrj What kind of set up are you using? Is the test server running on a separate host or locally? How long is it taking? |
Hi,
I'm playing around with the lfs server a bit, and I can't seem to make it work as I would expect: my lfs files are commited to the git repository instead. This is most likely me not understanding how to use the lfs server correctly, so please tell me if I'm doing something obviously wrong.
My setup is the following:
*.lfs
git lfs track "*.lfs"
lfs-test-server
[user]
+ password using the/mgmt
interface.gitconfig
in the local repository for my lfs test server.The expected result here is that lfs tracks the file and adds it to the lfs server directory.
Instead, it is added to the git repository as a normal, git-tracked file.
The text was updated successfully, but these errors were encountered: