-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
problem with permissions(can't upload product images) #79
Comments
I'm having exactly the same issue. Fresh VM install with CE 2.4.2. |
I'll take a look in few minutes. |
Ok, so this is related to this line: vendor/magento/framework/Filesystem/Driver/File.php::524 : Magento try to apply permission right after image creation. On NFS mount, all permissions are forced to "u=rwx:g=rwx:o=rwx" with bindfs. |
I made some change, can you confirm that everything is working on develop branch ? If it's fine I'll merge into master. |
tested develop branch with options: get error: (failed)net::ERR_CONNECTION_REFUSED |
I took my existing VM, shut it down, used your modified Vagrantfile and run 'vagrant up' again and it's working perfectly. I kept in my config the NFS mount. |
You can retry with a simple |
@zepgram tested develop branch and its works fine now |
We have same problem with magento 2.4.3 inside pagebuilder: main.CRITICAL: The permissions can't be changed for the "/home/vagrant/magento/pub/media/wysiwyg/oks-hero.jpg" path. Warning!chmod(): Operation not permitted. [] [] I used this code with and without Vagrantfile and both not working, also permission command does not fix it. config.bindfs.default_options = { |
we use nfs -> in the pagebuilder use the image upload (from own computer) |
We fixed it by disable in vagrantfile |
I'll take a look to find a solution, bindfs is supposed to be required to avoid issues with permissions while using NFS mount. I did this commit a long time ago : 3b9e9e5 But this was creating an issue with RSYNC mount. |
I'm trying to upload images of product but I get an error(tested in m2.4.2): 'A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.'
system.log: main.CRITICAL: The permissions can't be changed for the "/home/vagrant/magento/pub/media/tmp/catalog/product/u/n/u.jpg" path. Warning!chmod(): Operation not permitted. [] []
The text was updated successfully, but these errors were encountered: