-
Notifications
You must be signed in to change notification settings - Fork 15
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
Local env does not result in S3 images being uploaded #97
Comments
Hi,
Have you confirmed this by checking the contents of your bucket in the AWS S3 console? I see that you have not configured Also, doesn't any transformed files make its way to S3, or only the optimized ones? Are you 100% sure that us-east-2 is the correct region? If I recall correctly, this is not something one would configure for the Craft volume, it's inferred automatically there. And there's often some confusion regarding this, since the bucket isn't shown in the console, and there's a region in the url for the console that isn't the same as the bucket one. Check out this comment and the following couple of comments, which resolved an identical error report. |
Hi @aelvan
Pulling up the bucket in S3 console and navigating to the "transforms" folder shows "You don't have any objects in this folder."
At the moment we're only utilizing optimized images (no transforms), but there are no files being uploaded to S3
Yep! Had to triple check after stumbling across those posts earlier! Our region is Also, I can confirm that uploading via the volume is working perfectly and that the images are being optimized and stored locally within a folder called Really appreciate your help help and time on this. Imager has been a great tool for us |
Have you checked that the transforms doesn't end up in some other location on the bucket? Like, in What local environment are you on? And this is happening for newly created transforms, ie they don't already exist in the Did you previously have S3 working in Imager 2.0 before upgrading? |
I checked the bucket and can confirm no images get uploaded to my configured path or any other path within the bucket.
I'm running the project using Laravel Valet. All other aspects of the project seem to be working well, DB, PHP, etc.. including the optimization via TinyPNG. Let me know if there are more specifics I can provide here.
That's correct. I've been running
We didn't! In fact, I was convinced that's why S3 wasn't working, so we upgraded to see if it was something else. I know this is probably a weird thing to debug, but thank you very much for your help here! Let me know if there's any other info I can provide, or ways in which i can test things out. Thanks again |
Hmm, if it didn't work for Imager 2.0 either, it sounds like it's something with the credentials. Have you tried, just for kicks, to create a new set of credentials and a new bucket, and test with that? It's weird that you don't get any errors though. Are you running TinyPNG runtime or as a queue? If it is as a queue, have you checked the queue.log files for errors? Shouldn't really matter because the file is uploaded both before and after optimizing, but.. Have you tried disabling TinyPNG completely? You have upgraded to the Pro edition (external storages is a pro feature, but you should get a warning about that too in the debug toolbar)? |
@justenh Did you figure this out? |
@aelvan Not yet. Sorry! I had to switch to another project this week, but plan to give this another go next week. Thanks for checking in! |
@aelvan have also a question related to this. Is it not possible to have the images and transforms just on the AWS and not also local? Cause so I need the double size of space (AWS and @webroot/assets/transforms). |
@davidhellmann No, the local files act as a cache and needs to be on the local file system. If Imager had to check S3 to see if a transform has been created or not, it would kill performance because of the latency. I've been contemplating adding a separate caching layer, as outlined here, both to deal with the inconvenience of disk usage, and the fact that in serverless setups there might not be a local disk available. Since making that comment, I've decided that 4.0 will mostly be a pure Craft 4.0 conversion to minimize the effort/risk of upgrading, but it's still on the list for future releases. |
HM ok. We try to switch with a project from ImageOptimize to ImagerX cause IO adds a lot of Database overhead especially on a multisite environment. Thanks! |
Yeah, I guess you have to choose between DB overhead and disk overhead then. ;) |
Hi,
I'm having trouble with our
storages
config.I've seen in the FAQs that Imager will always store local copies of the files, but I am not seeing our files ever make their way to S3. I am able to confirm that our optimized files (using TinyPNG API) are being stored locally, but they are not being uploaded to s3.
Also, I can confirm that the S3 credentials are accurate, because they are tied to a volume that successfully uploads to the S3 bucket.
Additionally, I don't see anything in the Debug Bar when I search the logs for "Imager" or "Error".
Our config file looks like this... (Note, we upgraded from Imager 2, to Imager-X Pro)
and our package versions are below.
Thank you for any help you can provide
The text was updated successfully, but these errors were encountered: