Skip to content
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

Large Media git LFS errors (when site has a global Netlify password) #2148

Open
sanscheese opened this issue Mar 7, 2019 · 4 comments
Open
Labels
area: large media (lfs) status: unconfirmed type: bug code to address defects in shipped code

Comments

@sanscheese
Copy link

sanscheese commented Mar 7, 2019

Describe the bug
After setting up Large Media for repo, I am unable to work (push, pull, clone etc) with the remote repo if LFS items are added in the media folder.

Error in terminal from git pull after uploading an image via remote NetlifyCMS admin:

Downloading static/images/cms/kendal-james-1413779-unsplash.jpg (3.3 MB)
Error downloading object: static/images/cms/kendal-james-1413779-unsplash.jpg (35441d0): Smudge error: Error downloading static/images/cms/kendal-james-1413779-unsplash.jpg (35441d0b9617530a17efd169d2e32fcdc4d0de248aeff608b1f04911c6fcd185): batch response: Expected json type, got: "text/html"
 
Errors logged to /Users/ME/Sites/my-site/.git/lfs/logs/20190307T172529.144713.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: static/images/cms/kendal-james-1413779-unsplash.jpg: smudge filter lfs failed
First, rewinding head to replay your work on top of it...
Downloading static/images/cms/kendal-james-1413779-unsplash.jpg (3.3 MB)
Error downloading object: static/images/cms/kendal-james-1413779-unsplash.jpg (35441d0): Smudge error: Error downloading static/images/cms/kendal-james-1413779-unsplash.jpg (35441d0b9617530a17efd169d2e32fcdc4d0de248aeff608b1f04911c6fcd185): batch response: Expected json type, got: "text/html"
 
Errors logged to /Users/ME/Sites/my-site/.git/lfs/logs/20190307T172530.067361.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed

To Reproduce

  • Set up Netlify Large Media for project (commit .netlify/state.json and .gitattributes)
  • Log in to the NetlifyCMS and upload image to Media section

Applicable Versions:

  • Netlify CMS version: 2.5.1
  • Git provider: GitHub
  • OS: Mac
  • Browser version chrome 72

CMS configuration

backend:
  name: git-gateway
  accept_roles: #optional - accepts all users if left out
    - admin
    - editor

media_folder: "static/images/cms"
public_folder: "/images/cms"

collections:
...

Additional Info:

  • updated image shows in Netlify Large Media control panel

screenshot 2019-03-07 at 17 43 14

  • File in GitHub

screenshot 2019-03-07 at 17 42 17

@sanscheese sanscheese changed the title Large Media Error Large Media Git LFS errors Mar 7, 2019
@sanscheese sanscheese changed the title Large Media Git LFS errors Large Media git LFS errors Mar 7, 2019
@sanscheese sanscheese changed the title Large Media git LFS errors Large Media git LFS errors (when site has a global Netlify password) Mar 7, 2019
@sanscheese
Copy link
Author

I have narrowed down this issue is occurring due to the Netlify site having a global password. Is this a known limitation? The hope has been to be able to have a password protected staging version.

@frankspin89
Copy link

i encountered the same problem

@abstracthat
Copy link

Also ran into this. Removing the password fixes it but that seems like a problem for a project in pre-production still.

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: large media (lfs) status: unconfirmed type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

4 participants