GithubHelp home page GithubHelp logo

Comments (10)

zerolab avatar zerolab commented on May 18, 2024

Can you replicate this with bakerydemo? or a simple wagtail start instance?

from wagtail.org.

vossisboss avatar vossisboss commented on May 18, 2024

I'll give it a try when @zerolab and see what happens. I assume you would roll back the Wagtail version to the one we're currently using on production?

from wagtail.org.

zerolab avatar zerolab commented on May 18, 2024

Yes. looks like prod is on 2.16. So it may be an issue with the instance, rather than Wagtail 2.16 as we would've had bug reports by now 🤔

from wagtail.org.

vossisboss avatar vossisboss commented on May 18, 2024

@zerolab So rolling back the Bakery to 2.16 is more trouble than it's worth to test this (would have to undo things related to wagtail.admin.panels, etc.).

Did a fresh wagtail start sit and the image uploaded fine.

Screen Shot 2022-07-14 at 9 19 20 AM

So it looks like this is an issue with the instance. I suppose now is as good as time as any to see if I have the permissions to access our Heroku logs...

from wagtail.org.

vossisboss avatar vossisboss commented on May 18, 2024

@zerolab I do have access to our logs. There were no obvious errors when I tried adding my image again and when I replicated the issue by creating a new user. Granted, I'm not as familiar with the activity on our production app, so if the error is a more subtle one, I'm not likely to spot it right away.

Screen Shot 2022-07-14 at 10 14 58 AM

I looked in the inspector and it appears that the image file exists. It's just not being loaded and I'm not sure why.

Screen Shot 2022-07-14 at 10 41 13 AM

The only other places I can think to check is to confirm whether the file is actually appearing in our AWS storage bucket and/or whether the issue can be replicated on our dev instance. I don't currently have access to either of those. Should I pursue access? Or team up with someone who has it?

P.S. I also checked this issue in different browsers and it is broken in Chrome, Firefox and Safari.

from wagtail.org.

zerolab avatar zerolab commented on May 18, 2024

that looks like an S3 permissions issue to me. One to speak with sysadmin about

from wagtail.org.

vossisboss avatar vossisboss commented on May 18, 2024

Ah. I'll file a ticket in Codebase then and see if someone has any insights on that front. I'll close this out after I hear back. Thanks @zerolab !

from wagtail.org.

RealOrangeOne avatar RealOrangeOne commented on May 18, 2024

Yep definitely an issue with the hosting infrastructure, as opposed to something in the application itself.

Will keep this issue open to track, but moving discussion internal.

from wagtail.org.

RealOrangeOne avatar RealOrangeOne commented on May 18, 2024

The problem was that avatar_images/ wasn't accessible to the world, which is where Wagtail stores its avatar images:

https://github.com/wagtail/wagtail/blob/716bf92c2dc2da2aca5e8f5aa6768b5b087cd4b0/wagtail/users/models.py#L10-L17

Ideally avatars would reuse the rendition logic, which would not only resize them, but also serve them from a location which was already accessible. See also wagtail/wagtail#755

I've deployed a configuration change, and tested the avatar images now appear:

image

from wagtail.org.

vossisboss avatar vossisboss commented on May 18, 2024

Thank you for tracking this down @RealOrangeOne !

from wagtail.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.