[x]
):I have two instances with identical configurations that I'm reproducing this on (just different domain names). Here is the order of things:
git lfs install
in repositorygit lfs track "*.jpg"
git add .
git commit
git push
pushing works, cloning on new client system (or another location on the same client system) works. Tested this with a couple client systems and this seems to be consistent.
Do the same thing, but as an organizational repository (instead of user), even as site administrator and as owner of the organization:
/info/lfs/objects/batch
endpointAgaint tested this with a couple client systems and this seems to be consistent.
So, from what I gather:
I have tried to reproduce this on the try.gitea.io instance but I can't seem to push (repository object not found?)
@lunny this is what you and I were talking about earlier.
@storrgie I tried to reproduce your exact steps on my own server on version 1.7.5 and it does not give the same errors, everything seems to work fine...
Test repos can be found at https://git.bryanpedini.it/bryanpedini/test and https://git.bryanpedini.it/School/test.
I'll repeat, maybe the test procedure was confusing above:
I am getting this on both of my instances, however both are 1.8.1.
create repo under user account
done
create repo under organization that you are the owner of
done
push lfs objects to both repos (should work)
done ( TXT files )
clone repo from user account to another location on your client machine (should work)
working without problems
clone repo from organization to another location on your client machine (get 401 authentication errors)
unexpectedly working without problems, you can test yourself cloning with the two repos I linkes.
IDK, maybe it's 1.7.5 that does not have this issue...
It might be, I remember doing some testing of LFS in the late 1.7.x run before turning it on, now I'm trying to use it and it seems to be biting me. It could also be configuration, but I shared configurations with @lunny for him to review and we were both stumped.
Are both instances newly created ones?
Maybe try to recreate the issue with a quick test env installation from the gitea/gitea Docker Hub image or a quick VM with CentOS (lightweight enough) or Debian (also light) if you feel more comfortable with apt instead...
I'm going to wait for someone to weigh in who is maintaining their test instance as I'd rather reproduce with the instance they are managing. I've already been able to reproduce this consistently on instances I deploy.
Does the issue appears on https://try.gitea.io too?
I have tried to reproduce this on the try.gitea.io instance but I can't seem to push (repository object not found?)
I have tried to reproduce this on the try.gitea.io instance but I can't seem to push (repository object not found?)
nope...
https://try.gitea.io/johifsdgjikhfsdjihfsaehjisdf_test_org/test - seems to be working... now IDRK...
(did the exact same steps you described), (cloning works too)
Sorry, https://try.gitea.io didn't enable lfs. Could you try it on https://gitea.com ?
Sorry, https://try.gitea.io didn't enable lfs. Could you try it on https://gitea.com ?
AH...
okay... trying it now...
(perfect..... I registered an account with a fake email address and now have to wait 3 hours to registration to timeout to reuse the same username..... I'm a genius.....)
Haven't told you that's need an email confirmation. It's a real site not a try site.
Haven't told you that's need an email confirmation. It's a real site not a try site.
I figured that out by myself.... -.-
Could you delete instances for username "bryanpedini" on DB or resend a confirmation email at [email protected] please? (if you are maintainer there)?
I have deleted it.
Thanks!
Trying the bug now.
Nope, bug not present here: https://gitea.com/bryanpedini_test_org/test_repo
Can push without problems,
Can re clone without problems...
So that some PR fix that I think. Maybe @zeripath could answer and send a back port to v1.8.3 ?
So that some PR fix that I think. Maybe @zeripath could answer and send a back port to v1.8.3 ?
Yeah.. idk, on 1.9.0dev issue is not present...
Did not say there weren't issues at all, I did say this particular one is not currently present on try.gitea.io and on gitea.com :P
@Bryanpedini #7082 should fix the last major one I know about - however fixing the problems the inverse of #732 has caused may need #7199 and some admin features.
I'm afraid that if you have successfully merged from a fork with LFS changes you can currently lose LFS stored data if you then delete the fork and don't LFS push to the base repo from a separate checkout.
@zeripath I don't actually know what LFS is 馃槄
I was just the betatester man for the issue the OP has brought out...
I am unable to reproduce the same issue on gitea.com:
My test sequence was:
git lfs install
git lfs track "*.jpg"
git add .
git lfs ls-files
(confirm lfs is tracking these three images)git commit
git push
then I was able to clone these repositories to another area on my client, and from a second client.
So the version running on gitea.com may resolve this issue. I am now wondering it @Bryanpedini wants to move his version to 1.8.1 to see if he can reproduce this issue there. Also @Bryanpedini I'm not sure you're doing the same thing that I am doing (are you positive that lfs is uploading objects?), when you said your procedure was working on try.gitea.io earlier and LFS was disabled that is a pretty dire sign that you're testing is matching mine.
Also @Bryanpedini I'm not sure you're doing the same thing that I am doing.
Yes, same exact commands (except for git lfs ls-files
) which, if there are three files in the repository after pushing, I expect that to be working. Tell me if I'm wrong here.
when you said your procedure was working on try.gitea.io earlier and LFS was disabled that is a pretty dire sign that you're testing is matching mine.
I didn't actually say that LFS was disabled on try.gitea.io ... @lunny did, in fact he gave me the suggestion to try the same things out on gitea.com ... I only tried the same steps over and over and over and over on my website on my account, on my website in an organization, on try.gitea.io in an org, and on gitea.com in an org, since your first problem seemed to be only with organizations' repositories...
I am now wondering it @Bryanpedini wants to move his version to 1.8.1 to see if he can reproduce this issue there.
That's actually for an entire different reason that I want to upgrade... (see #7218)
@Bryanpedini were you doing all these operations over ssh or http? I would surmise that http is working but ssh isn't due to some pre-auth stuff with JWT not happening.
I suspect that this a duplicate of #5478
If its possible to backport fixes that would be great, I suspect it will be a little while before 1.9.x ships.
Should be fixed by #7224
I've consumed 1.8.3 and now the above "test" works on both user and organizational repositories.
Most helpful comment
I suspect that this a duplicate of #5478