<p>At what point of the update process are you getting that error?</p>

<p>During an auto-update, Craft creates a <code>.bak</code> of every file that it's about to update before doing the file swap.  The last step of the update process (the "Cleaning up..." stage), goes through and deletes all of the <code>.bak</code> files that were created.</p>

<p>I'd also make sure that the <code>craft/app</code> folder is recursively writable by PHP as that's required for auto-updating to work correctly.</p>

CC BY-SA 3.0
2017-12-06T18:01:22.040Z
2017-12-06T18:01:22.040Z
Brad Bell
<p>I am getting the following error on my local machine when updating Craft 2.6.</p>

<blockquote>
  <p>/craft/app/helpers/ElementHelper.php.bak: failed to open stream: Permission denied</p>
</blockquote>

<p>I don't even see that file in the directory.</p>

<p>Any ideas?</p>

<updates>
Internal Server Error Regarding ElementHelper.php.bak
# Internal Server Error Regarding ElementHelper.php.bak

(Asked by: username_0 on 2017-12-06)

I am getting the following error on my local machine when updating Craft 2.6.

> /craft/app/helpers/ElementHelper.php.bak: failed to open stream: Permission denied

I don't even see that file in the directory.

Any ideas?

**Tags:** updates


---

## 1 answers

### Answer by username_1 on 2017-12-06. Score: 1

At what point of the update process are you getting that error?

During an auto-update, Craft creates a `.bak` of every file that it's about to update before doing the file swap. The last step of the update process (the "Cleaning up..." stage), goes through and deletes all of the `.bak` files that were created.

I'd also make sure that the `craft/app` folder is recursively writable by PHP as that's required for auto-updating to work correctly.


---

