PHP 500 Error On One-click Update I am trying to use the one-click update feature and continually am getting a 500 error when attempting retrieve available updates on staging server. All my permissions work correctly as my craft install works all over except when updating.

the URL that gives this error is:

http://staging.link.com/index.php?p=admin/actions/update/getAvailableUpdates

Stacktrace:

&lt;h1&gt;PHP Error [500]&lt;/h1&gt;
&lt;p&gt;chmod(): Operation not permitted (/var/www/staging/craft/app/helpers/IOHelper.php:1023)&lt;/p&gt;
&lt;pre&gt;#0 /var/www/staging/craft/app/etc/errors/ErrorHandler.php(184): Craft\ErrorHandler-&gt;handleError()
#1 /var/www/staging/craft/app/framework/base/CErrorHandler.php(133): Craft\ErrorHandler-&gt;handleError()
#2 /var/www/staging/craft/app/framework/base/CApplication.php(824): Craft\ErrorHandler-&gt;handle()
#3 /var/www/staging/craft/app/etc/web/WebApp.php(681): Craft\WebApp-&gt;handleError()
#4 unknown(0): Craft\WebApp-&gt;handleError()
#5 /var/www/staging/craft/app/helpers/IOHelper.php(1023): chmod()
#6 /var/www/staging/craft/app/etc/cache/FileCache.php(138): changePermissions()
#7 /var/www/staging/craft/app/framework/caching/CCache.php(185): Craft\FileCache-&gt;setValue()
#8 /var/www/staging/craft/app/etc/cache/FileCache.php(64): Craft\FileCache-&gt;set()
#9 /var/www/staging/craft/app/services/CacheService.php(130): Craft\FileCache-&gt;set()
#10 /var/www/staging/craft/app/etc/et/Et.php(247): Craft\CacheService-&gt;set()
#11 /var/www/staging/craft/app/services/EtService.php(54): Craft\Et-&gt;phoneHome()
#12 /var/www/staging/craft/app/services/UpdatesService.php(277): Craft\EtService-&gt;checkForUpdates()
#13 /var/www/staging/craft/app/services/UpdatesService.php(170): Craft\UpdatesService-&gt;check()
#14 /var/www/staging/craft/app/controllers/UpdateController.php(57): Craft\UpdatesService-&gt;getUpdates()
#15 /var/www/staging/craft/app/framework/web/actions/CInlineAction.php(49): Craft\UpdateController-&gt;actionGetAvailableUpdates()
#16 /var/www/staging/craft/app/framework/web/CController.php(308): CInlineAction-&gt;runWithParams()
#17 /var/www/staging/craft/app/framework/web/CController.php(286): Craft\UpdateController-&gt;runAction()
#18 /var/www/staging/craft/app/framework/web/CController.php(265): Craft\UpdateController-&gt;runActionWithFilters()
#19 /var/www/staging/craft/app/framework/web/CWebApplication.php(282): Craft\UpdateController-&gt;run()
#20 /var/www/staging/craft/app/etc/web/WebApp.php(811): Craft\WebApp-&gt;runController()
#21 /var/www/staging/craft/app/etc/web/WebApp.php(281): Craft\WebApp-&gt;_processActionRequest()
#22 /var/www/staging/craft/app/framework/base/CApplication.php(184): Craft\WebApp-&gt;processRequest()
#23 /var/www/staging/craft/app/index.php(62): Craft\WebApp-&gt;run()
#24 /var/www/staging/html/index.php(19): require_once()
&lt;/pre&gt;
That PHP error is happening as Craft is trying to adjust permissions in some folder, either in craft/app or craft/storage.

You’ll need to ensure that both of those folders (and all subfolders) are writable by PHP.