I was able to incrementally push 80% of lfs tracked files up to my large media object while getting this error message. Now it stopped working and every time I run git push I get:
I deleted my site and recreated it again. The same thing happens again. Although I got a little more detailed message for one of my early failed git push commands:
Uploading LFS objects: 37% (1094/2968), 220 MB | 767 KB/s, done.
Repository or object not found: https://[SITE_ID].netlify.com/.netlify/large-media/verify
Check that it exists and that you have proper access to it
Repository or object not found: https://[SITE_ID].netlify.com/.netlify/large-media/verify
Check that it exists and that you have proper access to it
Post https://[SITE_ID].netlify.com/.netlify/large-media/verify: stream error: stream ID 17; NO_ERROR
Repository or object not found: https://[SITE_ID].netlify.com/.netlify/large-media/verify
Check that it exists and that you have proper access to it
Post https://[SITE_ID].netlify.com/.netlify/large-media/verify: http2: server sent GOAWAY and closed the connection; LastStreamID=17, ErrCode=ENHANCE_YOUR_CALM, debug=""
Repository or object not found: https://[SITE_ID].netlify.com/.netlify/large-media/verify
Check that it exists and that you have proper access to it
batch response: Expected json type, got: "text/plain; charset=utf-8"
batch response: Expected json type, got: "text/plain; charset=utf-8"
...
batch response: Expected json type, got: "text/plain; charset=utf-8"
error: failed to push some refs to 'git@github.com:[ORG]/[REPO].git'
@saw-mon_and_natalie, would you please send us that site id? We’ll be able to research the rate limit with that information.
It is safe to post the site ids publicly.
If you prefer to send that privately, please feel free to private message (PM) any of us on the Netlify support team with that as well (me for example). PMs are enabled for your community login. I double checked to be sure.
Thank you for that information, @saw-mon_and_natalie. I’ve shared the site ids with our Netlify Large Media developers and I’ll follow-up here when we know more.
Hi @luke, thought I’d chime in as I’m facing the same issue I think. Even when trying to push a commit with just a single media asset.
The Netlify site ID is: bf362332-1bee-4e44-81e4-b6ebfb018ae6.netlify.app in case it helps.
Again though, please DM that to me instead of posting that publicly - just in case. First please check the linked solution above though, as I strongly suspect that is the issue.
Our developers did oddities in the request pathing through our infrastructure at the time. However, my understanding is that you resolved this the rate limiting with smaller batches of commits.
Are there still unanswered questions or unresolved issues regarding Large Media for you, @saw-mon_and_natalie? I know there were several topics about different aspects of Large Media.
@luke, The errors that I got didn’t specifically include a rate limit error. Only the servers didn’t return the right response format.
Also, when I tried git push with smaller batches I would still sometimes get the same errors. But after trying once or twice more it would pass. I guess the probability of the server handling the large media with an error was less with a smaller batch.
I haven’t tried the #netlify-large-media-nlm feature since then. I was able to upload all my large media assets around the time I was seeking help here.
Thanks for the follow-up, @saw-mon_and_natalie. If there are future questions about Large Media or anything else Netlify related, I assure you that I’ll be faster to respond to those questions going forward.
@ketch, I’m also happy to assist if you are still having issues.
Hi, @ketch, I got your DM but I’m not able to provide assistance via DM. (We can take the conversation private if we need to share sensitive information but there is nothing sensitive/private in what follows.)
Are you seeing version 0.1.9 of the credential manager when you run netlify lm:info as shown below?
✔ Checking Netlify's Git Credentials version [0.1.9]
Thanks @Luke!
That was the problem, I had version 0.1.8 it seems despite re-installing the netlify-cli (I think).
I definitely know that I hadn’t run netlify plugins:install netlify-lm-plugin in a long while though, so could be that plugin was outdated?
Either way, it seems to be working much better now.
I do still get an error towards the end of a git push:
Authentication required: Authorization error: https://70a76375-6c9c-4aa6-b0cf-e19b4d3d0d16.netlify.app/.netlify/large-media/verify
Check that you have proper access to the repository
error: failed to push some refs to 'git@github.com:REPO'
But re-running git push shows that no files need to be uploaded to the LFS, and the command succeeds. Looking through the repo also suggests that the command worked as intended, with the media assets being pointers instead.
If there are still “Authentication required” messages, I would recommend checking the following next.
Does the line . ~/.netlify/helper/path.bash.inc appear in .bash_profile (or equivalent file like . zshenv )? If not, try adding it there and opening a new terminal window.
Have you logged out and back into Netlify CLI since updating? If not, try this:
netlify logout
netlify login
If git push still shows “Authentication required” after the two steps above, please let us know.