-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Spatie\MediaLibrary\Jobs\PerformConversions failed in making conversion #947
Comments
Could you add a |
Thank you for enlighten me. The temporary directory in storage folder has been creating with the root user group which was restricting the package from creating the conversions folder for a specific media. and i have solved the situation by adding chown function while making directory in path method of this fantastic package: if anyone is facing the same situation like me, here is what is did:
where 1000 is the uid of the user in my docker instance. it could be nice addition to the |
Thank you very much for posting your solution 👍 |
In which file we need to make this changes? I have raised issue #952. |
i had to modify in If the queue operation doesn't work, then use nonQueued() on conversion |
php artisan media:regenerate sudo chmod 777 -R storage/ sudo chmod 777 -R public/media/ It works :) But when I upload a new photo : php artisan media:regenerate Because new variation has "-rwxrwxrwx" permission. Default variation permission must be "777" |
I followed the steps written here http://laravel-recipes.com/recipes/25/creating-an-apache-virtualhost to run laravel app using virtual host. I changed user in envvars file with my system user. So It is working properly! |
Given link was removed. can you please give me the solution? |
If you are in a Linux environment, you can follow the instruction from here: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 or if you are on windows and are using xampp, the process would be similar to this: https://www.cloudways.com/blog/configure-virtual-host-on-windows-10-for-wordpress/ |
My actual problem is queued() conversion not working due to permission issue. So, currently i'm using nonQueued(). I tried @ronydebnath solution. but doesn't work. |
Queue and virtualhost are two different things. For queued() function to work, you need Redis or beanstalk properly installed on your system and configured with your project. The scenario will differ based on project architecture. |
i'm using database queue with superuser for mail dispatching queue working fine. but, job failed and following error occurred League\Flysystem\Exception: Impossible to create the root directory. my function is:
any solution? |
after DAYS trying to make it finally your server must have this installed on Linux Ubuntu nginx sudo apt-get install php7.4-gd test workig the GD with = php -i | grep -i gd then restart the nginx Something Called GD is in charge of handle the IMage content on the server |
In my case, it was because the queue was running with a different user as the web server, I changed the horizon supervisor config to run the queue as the same user as the web server :
Hope this helps. |
I'm also getting this error when the queue worker runs the Job to Perform thumbnail conversion.
Laravel Framework : 8.80.0 Has anyone solved this issue? |
Have you checked if the user running the queue, in my case Horizon, has permission to write to the thumbnails folder? |
For any one facing an issue with permissions, you could use the following filesystems.php configuration:
|
I'm using laradock in my production server and Gd and imagick is installed.
I have checked them both with
php -i | grep -i gd
which returnsand
php -i | grep -i imagick
returnschanging in medialibrary.php
returns the similar type of error
i tried to used nonQueued() function in model but this time mkdir(): Permission denied error occurred
my model looks like this:
The text was updated successfully, but these errors were encountered: