-
Notifications
You must be signed in to change notification settings - Fork 379
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
Cache paths 404 response since upgrade to AWS SDK 3 #726
Comments
hey, same error here |
Is there anything useful in your log files? ( {{your_project_root}}/var/log/ }} by default in symfony ) |
I resolved the problem:
NOTE: I am using capistrano to deploy my app (capistrano automaticaly create symlink to shared dir). Also in the log: "previous":{"class":"Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException","message":" Source image invalid "/var/www/welp/shared/web/uploads/tmp/43b04f0afab14e6c440418bda56c28917a2552b1.png" as it is outside of the defined root path","code":0,"file":"/var/www/welp/shared/vendor/liip/imagine-bundle/Binary/Loader/FileSystemLoader.php:67","trace":["/var/www/welp/shared/vendor/liip/imagine-bundle/Imagine/Data/DataManager.php:125","/var/www/welp/shared/vendor/liip/imagine-bundle/Controller/ImagineController.php:95","{"function":"filterAction","class":"Liip\ImagineBundle\Controller\ImagineController","type":"->","args":["[object] (Symfony\Component\HttpFoundation\Request: GET /media/cache/resolve/user_small/uploads/tmp/43b04f0afab14e6c440418bda56c28917a2552b1.png So that was it, the Loader followed the symlink and throw an error because the media was outside the defined root. NOTE2: it was working well in older version of liip |
@Nightbr You don't have to remove the symbolic link, you simply need to set an appropriate
This will resolve the |
I've stumbled on the same problem. The thing is that I don't have every image under same directory, some were symlinked between different releases and some are specific to the release (static), so I really can't find solution to my problem with this config. |
@sloba88 You can always use bind mounts in place of symbolic links to mount all locations within a single root path. |
@sloba88 Any luck? |
@robfrawley I solved it by moving my static images in sub directory of dynamic. As I've using Capistrano to deploy an I have multiple releases I am not sure how well bind mount would work for me. |
I think there's a reasonable workaround now, possibly we can document this better? If you can think of anything we can do to improve this, or to document it better, either open a PR or a new issue. And thanks a lot :) |
The paths to my images are returning 404 responses since upgrading to AWS SDK 3
Packages installed
And in my config
This is an example of a path generated for an image which returns a 404 response
/media/cache/resolve/product_list/uploads/images/products/ee1d4c25caff7b7c0b14f017af92b6d63d861.jpg
The text was updated successfully, but these errors were encountered: