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

Unable to find an existing image #1681

Open
tacman opened this issue Jul 11, 2023 · 0 comments
Open

Unable to find an existing image #1681

tacman opened this issue Jul 11, 2023 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Jul 11, 2023

Question

I'm getting the following error:

League\Flysystem\UnableToRetrieveMetadata
Unable to retrieve the mime_type for file at location: /var/www/app/../data/raw/digmus/images/929208.jpg. No such file exists.

But in fact it does exist:

ls /var/www/app/../data/raw/digmus/images/929208.jpg -lh
-rwxrwxrwx    1 root     root        8.4M Jul  9 20:30 /var/www/app/../data/raw/digmus/images/929208.jpg

My first guess was permissions, so I ran chmod -R 777 on the images directory, and you can see above that the permissions are wide open.

The configuration is pretty basic:

        images_filesystem:
            adapter: 'local'
            options:
                directory: '%kernel.project_dir%/../data/raw' 

the data directory is a mounted volume, and this error only occurs in production, not on my local machine. Any suggestions on how to resolve this?

When I go into the container itself, the command works file:

d458d6c94885:/var/www/app# bin/console liip:imagine:cache:resolve digmus/images/929208.jpg --filter=original -vvv

                                                                                                                        
 [liip/imagine-bundle] liip:imagine:cache:resolve                                                                       
                                                                                                                        

 - digmus/images/929208.jpg[original] (resolved) http://localhost/media/cache/original/digmus/images/929208.jpg

 -                                                                                                                      
 - [OKAY] Completed 1 resolution (1 image, 1 filter)                                                                    
 -                                                                                                                      

d458d6c94885:/var/www/app# bin/console liip:imagine:cache:remove digmus/images/929208.jpg --filter=original -vvv

                                                                                                                        
 [liip/imagine-bundle] liip:imagine:cache:remove                                                                        
                                                                                                                        

 - digmus/images/929208.jpg[original] (removed)

 -                                                                                                                      
 - [OKAY] Completed 1 removal (1 image, 1 filter)                                                                       
 -                                                                                                                      
Q A
Flysystem Version 3.1
Adapter Name local
Adapter version x.y.z
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