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

Thumbnails are showing broken in media viewer #1050

Closed
AchalaBelokar opened this issue Sep 29, 2023 · 2 comments
Closed

Thumbnails are showing broken in media viewer #1050

AchalaBelokar opened this issue Sep 29, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@AchalaBelokar
Copy link

AchalaBelokar commented Sep 29, 2023

Describe the bug
Thumbnails are showing broken in media viewer
Login to AchalaB@rwbnitiuat
click on media viewer
you can see the broken tumbnel

To Reproduce
Steps to reproduce the behavior:

  1. Login to AchalaB@rwbnitiuat
    2.click on media viewer
    3.you can see the broken thumbnail
  2. On clicking the broken thumbnail image gets loaded

Expected behavior
Thumbnail should show up

Cloudwatch logs:
Something went wrong installing the \"sharp\" module\n\nCannot find module

But the lambda zip in avni-lambdas s3 bucket has sharp node module.

Analysis details
In rwbnitiuat folder inside prod-user-media, on Sep 29, 4 media are available, but inside prod-user-media/rwbnitiuat/thumbnails - there are no images generate on Sep 29 though lambda trigger of S3CreateEvent is available on prod-user-media.

Image

@AchalaBelokar AchalaBelokar added bug Something isn't working 5.0.0 labels Sep 29, 2023
@mahalakshme mahalakshme removed the 5.0.0 label Sep 29, 2023
@1t5j0y 1t5j0y self-assigned this Sep 29, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 29, 2023

Instant thumbnail lambda has been broken since Aug 21 (4.0 release) when the lambdas were last deployed. Looks like incorrect node version was used when it was built during 4.0 release. Builds fine on macs with correct node version.

Redeployed the lambdas to staging, prerelease and prod just now and it is working fine now.

We will need to come up with some solution to create thumbnails for the images uploaded between Aug 21 and today. A list of these file names has been generated.

@mahalakshme
Copy link
Contributor

@1t5j0y have created a card for the above: avniproject/avni-media#161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants