Closed jeremyzilar closed 1 month ago
Thanks for reporting @jeremyzilar, I'll try setting this up and see if I have the same issues.
To use Large Media with the CMS you do need to configure it with git-gateway
and Identity since the CMS uses the Identity access token to access the Large Media service.
The Identity widget is needed to facilitate authentication with Identity. Is this the place in the docs we should mention it?
Not sure it is related, but found this https://github.com/netlify/netlify-cms/issues/2148
Linking https://community.netlify.com/t/common-issue-troubleshooting-your-netlify-large-media-configuration/188 for more information
Thanks @erezrokah, I am going through the git-gateway setup now, and will take notes on the steps to set it up. I will also start a new issue around any bits of confusion with Git-Gateway and Identity (since that is a separate topic) https://github.com/netlify/netlify-cms/issues/3718
From this troubleshooting guide, I ran netlify lm:info
and got
jeremy@Field-Work brooklynrail-platform % netlify lm:info
✔ Checking Git version [2.22.0]
✔ Checking Git LFS version [2.10.0]
✔ Checking Git LFS filters
✔ Checking Netlify's Git Credentials version [0.1.9]
npm install netlify-cli -g
npm i netlify-cli
netlify init
to ensure that my local repo is connected netlify plugins:install netlify-lm-plugin
(did this previously, but why not try again)netlify lm:install
(also did this previously)It works 🎉— I am now able to push and pull using GitHub Desktop and the command line!
Now onto getting the Git Gateway setup and working...
Without a doubt, there are still issues with using GIT after installing LFS and getting this setup :/ Especially when trying to collaborate with others and merge in changes. I will try to document the steps and the specific issues.
@erezrokah this is the specific issue I am getting:
batch response: Post https://db6c835f-87e3-47c4-8f4d-53b4af3c6be8.netlify.app/.netlify/large-media/objects/batch: dial tcp: lookup db6c835f-87e3-47c4-8f4d-53b4af3c6be8.netlify.app: no such host
error: failed to push some refs to 'https://github.com/brooklynrail/brooklynrail-platform.git'
This thread on GIT-LFS issues seems relevant https://github.com/git-lfs/git-lfs/issues/2887 Still looking...
Hi, @jeremyzilar, as mentioned in the Git LFS issue thread (git-lfs/git-lfs#2887
), this looks like a DNS resolution issue.
The domain name in this case works for me when I test:
$ nslookup db6c835f-87e3-47c4-8f4d-53b4af3c6be8.netlify.app
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: db6c835f-87e3-47c4-8f4d-53b4af3c6be8.netlify.app
Address: 138.68.244.143
Would you be willing to test the same command on the affected system if the issue is still occurring? That command being:
nslookup db6c835f-87e3-47c4-8f4d-53b4af3c6be8.netlify.app
The the DNS lookup fails locally, that is the root cause of the error above. If you do get local DNS errors we'll be happy to troubleshoot to find out why and resolve it.
Closing as not planned because Netlify Large Media is sadly deprecated
We are trying to migrate the Brooklyn Rail to Netlify + NetlifyCMS and one of the early snags we are running into is with setting up Netlify Large Media + Git-LFS to manage the media in the repo.
The issue is that after installing all of the required elements, we are no longer able to commit back to GitHub 😬
Specifically,
https://github.com/brooklynrail/brooklynrail-platform.git
. But we are able to push and pull when the remote is set togit@github.com:brooklynrail/brooklynrail-platform.git
, though it asks for our SSH key password twice before pulling/pushing.https://github.com/brooklynrail/brooklynrail-platform.git
orgit@github.com:brooklynrail/brooklynrail-platform.git
.(note, this seems to only affect this repo, and this branch)
If you are interested in looking at :eyes: our NetlifyCMS config, it can be found at
/themes/brooklynrail/static/workflow
What have we tried?
I ran
git config --list --show-origin
to help with any debugging. Here is what I got:Also