Good to hear they behave the same @luke! And thanks for the tip about downloading the deploy, didn’t know about that feature. Turns out the files weren’t there. I removed and re-added the files and now it’s all good!
time="2021-05-07T09:04:44+02:00" level=error msg="Aborting Netlify credential helper execution" error="Get \"https://api.netlify.com/api/v1/sites/MY_SITE_ID.netlify.app\": dial tcp: lookup api.netlify.com on [fe80::4ad2:4fff:fe15:1c2b]:53: write udp [fe80::5c:bc28:eed0:55be%en0]:50199->[fe80::4ad2:4fff:fe15:1c2b]:53: write: no route to host"
It happens when I try to push lfs setup. Has anyone had this problem? It asks for credentials but it does not work either. I did ntl logout/login, unliked and linked my site, netlify helper is in $PATH, credential helper installed… No idea how to solve it
Hi, @AverageNetlifyBoi. We have sent you an email to the email address associated with your Netlify account, and we’ll communicate with you through that email to continue resolving this issue.
(Please note that for security reasons, we will not contact you at email addresses not listed in your Netlify account.)
Also, please let us know with a reply here if you don’t receive a message from us about support ticket # 56428.
I got the email, thank you! I will look into the logs this evening and will get back to you, thanks!
I just setup NLG on a new repo. The images are not showing in the Large Media tab and I’m getting 404 on the website.
This is the netlify lm:info output
√ Checking Git version [2.30.0.windows.2]
√ Checking Git LFS version [2.13.2]
√ Checking Git LFS filters
√ Checking Netlify’s Git Credentials version [0.1.10]
I verified the .lsconfig file and tried the ‘git lfs push --all’, which shows the three images being uploaded to the repo.
git lfs ls-info shows the three images I using on the site( a nuxtjs site).
I also updated the Netlify CLI a few hours ago → netlify-cli/3.33.2 win32-x64 node-v14.15.4
Any other things I could try?
Hi, @Jamesv2.0. We have sent you an email to the email address associated with your Netlify account, and we’ll communicate with you through that email to continue resolving this issue.
Also, please let us know with a reply here if you don’t receive a message from us.
I looked through the forum and issue most similar to mine was posted by @gty
I’m on Windows 10 and I tried turning off the Antivirus but it did not seem to solve the issue of the Netlify’s Git credentials version:
When I type
netlify lm:install I get:
√ Checking Git version [2.34.1.windows.1] √ Checking Git version [2.34.1.windows.1] √ Checking Git LFS version [3.0.2] √ Checking Git LFS filters \ Installing Netlify's Git Credential Helper for Windows √ Checking Git version [2.34.1.windows.1] √ Checking Git LFS version [3.0.2] √ Checking Git LFS filters √ Installing Netlify's Git Credential Helper for Windows √ Configuring Git to use Netlify's Git Credential Helper
Any help would be much appreciated!
Hi, @jaykhan-dev. Have you tried running this in
cmd.exe when that program is run as Administrator?
If not, would you please try that and let us know your results?
Hi @luke I found a temporary solution for now by hosting the media on S3. I will return to this issue sometime in the future. Thank you for your insight!
I wanted to add to this discussion since I have the same issue as @jaykhan-dev .
Running cmd.exe as an administrator does provide a temporary fix to this problem, as my test was successful.
Hi, @SirTangent. Thanks for letting us know that workaround worked for you. If you have other questions or comments, please follow-up here anytime.
I skimmed through this thread but didnt seem to see anybody with the same issue.
My images are uploading fine and I see them in under the Large Media tab. The issue i’m running into is that the pointer files arent getting created in github. I have seen a pointer file created but I cant get these pointer files to be created consistently.
I am not sure how it is supposed to work–at what point should these pointer files be created?
github shows image is lfs tracked, but the image is still there instead of the pointer text:
Hi, @Coru89. When you use Large Media for a repo/site you are moving the Git LFS service from GitHub to Netlify.
This means that any changes made to files tracked by Git LFS will not be completely tracked at GitHub unless you revert back to using GitHub for the Git LFS service.
The Git repo at GitHub is aware that those files are changing. However, the actual contents of those changes are only happening at Netlify.
There is a quick trick to switch back to GitHub and then back to Netlify for Git LFS service - all without removing the Large Media add-on.
The trick is to remove the file
.lfsconfig and then restore it again. That is the file which is redirecting the Git LFS service to Netlify. For example, this should work (all commands are being run in the base directory of the repo):
mv .lfsconfig .. git lfs push --all origin mv ../.lfsconfig .
Once all three commands above are run, GitHub should be updated and Large Media will be the Git LFS service again. The first command moves the file up to the parent directory (out of the repo directory) so now the repo will revert to using GitHub for the Git LFS. The second command is a push of the Git LFS files, which now go to GitHub not Netlify. The last command moves the
.lfsconfig file back into the repo directory moving the Git LFS service back to Large Media again. The Large Media instance at Netlify doesn’t even know that anything changed.
Note, if you made changes before pushing, they won’t be in Large Media. If that is the case, just run the second command again now that Large Media is in use again files and it will make the updates there as well.
If that doesn’t work or if there are other questions, please let us know.
Hey @luke -Thanks for the response. I was able to get LM working. I am having some performance issues though. I may have to revert to not using LM unless the issue can be resolved. I have a very high TTFB on my images. I made a thread on this: Slow image loading when using Large Media
Hi, @Coru89. Thanks for making the new topic and I’ve replied there as well.
@luke Hi, if possible I’d like some help on this same question. I’m trying to upload some jpg images but they’re not appearing on the large media tab. I’ve followed the instructions and afaik all my cli outputs are ok. I’ll list some of them below. The github repo turned the images into pointers and if I run
npm run build locally I see the folder img where the images are. However, I downloaded the deploys and this folder is not there. I already tried to force the git lfs push with the images but nothing happens. I have the last push with the tracing enable to send to you if possible. Thanks in advance!
√ Checking Git version [2.31.1.windows.1] √ Checking Git LFS version [2.13.3] √ Checking Git LFS filters √ Checking Netlify's Git Credentials version [0.1.11]
git lfs ls-files
1817fdeeae * src/assets/DSCF1447.jpg af85bedb29 * src/assets/landing-image.jpg 1faa103af8 * src/assets/myself.jpg
# The first line resets the list of helpers so we can check Netlify's first. [credential] helper = "" [credential] helper = netlify
Hi, @Kato. Normally, I’d ask you to please confirm the site but I only see one site on your team and that site has Large Media enabled so I’m fairly certain I’ve found the site in question.
Looking at that site, I don’t see any of those files in the published deploy. The only files I see are:
/favicon.ico /index.html /css/app.2e7b2c15.css /js/app.274705d5.js /js/app.274705d5.js.map /js/chunk-vendors.b305b94a.js /js/chunk-vendors.b305b94a.js.map
In order for the files to appear in the Large Media tab and to be available for the deployed site, those files must be put somewhere in or under the publish directory (which is
dist for this site).
Would you please confirm the images are being moved to that directory before the build is complete?
Thanks! That’s weird, I see the files if I run the same command locally. They are in the folder /img which doesn’t appear on this list.
Hi, @Kato. When you say this:
That’s weird, I see the files if I run the same command locally.
What command are you referring to? I don’t show any command above. The list is coming from a downloaded deploy.
Did you download a deploy and examine it? If so, which deploy was it?
The last deploy of this site which contained a directory “img” was back in 2020.
The key here is that uploading a file to Large Media is not enough to make the file available for the deploy site. For all deploys (both those with and without Large Media) the only files available for the deployed site are those files found in the publish directory or in a subdirectory under that publish directory.
In the case of your site, the image files are not being placed in the publish directory. This is why the files don’t display.
The files being placed in the publish directory is a always hard requirement for the files to be part of the deployed site. There are no exception to that requirement. Using Large Media does not change that requirement.
Your files are missing because you don’t publish them by placing them in the publish directory. Until that is done, your images won’t work. Again, this is always the rule for a files deployed at Netlify with or without Large Media being used.
If there are other questions about this, please let us know.
I moved my upload directory to LFS. It seems to work for image files with transformation but files that do not request image with ?nf_resize, do not show up. No idea what I should do?