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

Issues uploading images using Heroku deployment #1098

Open
vnguyen13 opened this issue Feb 23, 2024 · 0 comments
Open

Issues uploading images using Heroku deployment #1098

vnguyen13 opened this issue Feb 23, 2024 · 0 comments

Comments

@vnguyen13
Copy link

vnguyen13 commented Feb 23, 2024

Hello,

We are using the Heroku one-click deployment. There was one hiccup where I had to remove REDISCLOUD and instead use MEMETRIA for redis. The reasoning was because REDISCLOUD currently is using Redis 6.x, and it looks like it needs to be running 7.x which isn't currently supported.

Once we figured that out, we're seeing that there are issues with uploading images to products.

I've attached the logs from the Heroku app:
cmra-spree-store-logs-1708708255018.txt

It seems to try to upload, but there's a background job that's running into an error:

2024-02-23T17:10:14.258331+00:00 app[worker.1]: E, [2024-02-23T17:10:14.258090 #2] ERROR -- : [ActiveJob] [ActiveStorage::AnalyzeJob] [9c106b2d-9387-44c0-89de-5ef223fd6fb1] Error performing ActiveStorage::AnalyzeJob (Job ID: 9c106b2d-9387-44c0-89de-5ef223fd6fb1) from Sidekiq(default) in 350.4ms: ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError):

Any help would be appreciated. Thanks!

EDIT: Adding some more info. If I remove Bucketeer from the resources (so that it uses local storage), it errors out as well, but the error messages don't seem to be very helpful either:

Feb 26 11:53:33 cmra-spree-store app/worker.1 pid=2 tid=5le2 class=ActiveStorage::AnalyzeJob jid=8a1200efc177dc7fd9141e6e INFO: start
Feb 26 11:53:33 cmra-spree-store app/worker.1 I, [2024-02-26T19:53:33.648802 #2] INFO -- : [ActiveJob] [ActiveStorage::AnalyzeJob] [655536e4-ff58-4f03-af6b-cd8a9db4998d] Performing ActiveStorage::AnalyzeJob (Job ID: 655536e4-ff58-4f03-af6b-cd8a9db4998d) from Sidekiq(default) enqueued at 2024-02-26T19:53:33.579222078Z with arguments: #<GlobalID:0x00007fcbc22a69e0 @uri=#<URI::GID gid://spree-starter/ActiveStorage::Blob/9>>
Feb 26 11:53:34 cmra-spree-store app/web.1 I, [2024-02-26T19:53:33.736735 #14] INFO -- : [95d4faae-6217-4188-ade8-bf9fb45d3744] Rendered layout vendor/bundle/ruby/3.2.0/gems/spree_backend-4.7.0/app/views/spree/layouts/admin.html.erb (Duration: 66.5ms | Allocations: 27227)
Feb 26 11:53:34 cmra-spree-store app/web.1 I, [2024-02-26T19:53:33.737130 #14] INFO -- : [95d4faae-6217-4188-ade8-bf9fb45d3744] Completed 500 Internal Server Error in 95ms (ActiveRecord: 27.3ms | Allocations: 32983)
Feb 26 11:53:34 cmra-spree-store app/web.1 I, [2024-02-26T19:53:33.739583 #14] INFO -- : source=rack-timeout id=95d4faae-6217-4188-ade8-bf9fb45d3744 wait=2ms timeout=15000ms service=100ms state=completed
Feb 26 11:53:36 cmra-spree-store app/worker.1 E, [2024-02-26T19:53:36.207111 #2] ERROR -- : [ActiveJob] [ActiveStorage::AnalyzeJob] [655536e4-ff58-4f03-af6b-cd8a9db4998d] Error performing ActiveStorage::AnalyzeJob (Job ID: 655536e4-ff58-4f03-af6b-cd8a9db4998d) from Sidekiq(default) in 2611.06ms: ActiveStorage::FileNotFoundError (ActiveStorage::FileNotFoundError):

I should also note that I've tried running this locally, and i'm able to upload. I've switched the development environment to do amaon s3 uploads, and that also works fine locally. It's just on Heroku that it seems to be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant