chmod(): Operation not permitted vendor/league/flysystem

Tags: #<Tag:0x00007f10c8bbd480>


When i do:

I get

chmod(): Operation not permitted

GET /dev/build?flush=all

Line 358 in /home/mywebsite/public_html/vendor/league/flysystem/src/Adapter/Local.php

these are the additions to my composer file

“silverstripe/widgets”: “@stable”,
“silverstripe/userforms”: “@stable”,
“silverstripe/gridfieldqueuedexport”: “@stable”,
“sunnysideup/typography”: “@stable”,
“silverstripe/siteconfig”: “@stable”,
“silverstripe/versioned”: “@stable”,
“silverstripers/seo”: “@stable”,
“silverstripe/errorpage”: “@stable”,
“undefinedoffset/sortablegridfield”: “@stable”,
“silverstripe/lumberjack”: “@stable”,
“silverstripe/googlesitemaps”: “@stable”,
“colymba/gridfield-bulk-editing-tools”: “master”

anyone have any ideas what i should try?


That’s usually down to file ownership or permissions on the site. The build process does a few things in the file system, so you need to make sure that the webserver owns the files, especially in the public directory (things like .htaccess for example).

It can often happen if you are running commands via the command line as a different user to the webserver process.



I thought it may be to do with silverstripe-cache deleted everything in there
i thought the permisisons were right because doesn’t it check that when you do /install.php

anyway I traced it to the assets folder and and folder called protected … by printing the path and die()

I removed the .htaccess file and deleted the folder called protected and then did composer update …etc and the .htaccess file and protected folder was recreated.

webserver process ? I’m only ever going to be able to ssh login as my website user .

anyway it seems to have sorted itself out.