# Unable to rename site – error DK0058

**URL:** <https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106>\
**Category:** Application Support\
**Created:** [March 1, 2024, 7:16pm UTC](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106 "2024-03-01T19:16:46Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [March 29, 2024, 1:05pm UTC](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106/27 "2024-03-29T13:05:56Z")

</div>

Hello @halshak

Please run `ulimit -n unlimited` and then run the cp command again:

cp -a /www/kinsta/public/mylivesite/. /www/kinsta/public/mystagingsite

Let me know what the output is.

Kind regards

---

<div class="post-metadata">

**Author:** ![halshak](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/halshak/32/2751_2.png) [@halshak](https://community.kinsta.com/u/halshak)\
**Post date:** [April 1, 2024, 5:07am UTC](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106/28 "2024-04-01T05:07:41Z")

</div>

Looks like I’m not allowed to do that.

`/bin/sh: 1: ulimit: error setting limit (Operation not permitted)`

---

<div class="post-metadata">

**Author:** ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)\
**Post date:** [April 1, 2024, 7:15am UTC](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106/29 "2024-04-01T07:15:51Z")

</div>

Hello again @halshak 👋

I could replicate the same on my end (inside the `devkinsta_fpm` docker’s container) even when using `root` user:

```auto
root@f8942fc6e365:/www/kinsta/public# ulimit -n
1048576
root@f8942fc6e365:/www/kinsta/public# ulimit -n unlimited
bash: ulimit: open files: cannot modify limit: Operation not permitted

```

though as I could see, both **Hard Limit** and **Soft limit** have been set to “unlimited” already for _ulimit_ :

```auto
root@f8942fc6e365:/www/kinsta/public# ulimit -H
unlimited
root@f8942fc6e365:/www/kinsta/public# ulimit -S
unlimited

```

I also tried to run the same `cp -a` command line on my own test sites inside that same docker container (as root), and I could copy 1 of my local sites’ folder to a new folder just fine (see the screenshot below):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/faf8640dc9b579199fcffc363dbdbb12d0aa9666.png)

I’m still wondering though why you got that error “_Too many open files in system_” when you ran that `cp -a` command line 🤔

Now, just wanted to know the result too, what if you try to perform copy and paste but from your Mac (GUI) file manager?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/45193d687d0eeab45c52bd5b1921c3fd70d30c65.png)  
there, go inside the “_mylivesite_” folder, then select all files/folders within that folder (press Control A perhaps?) and then right click your mouse and choose “ **Copy** ”

after that, go inside the “_mystagingsite_” folder that you just created (but try to delete any existing files/folders inside this folder first), then try to “ **Paste** ” those files/folders you just copied from the _mylivesite_ folder - and see if the process could be completed properly?

Please inform us again with the results - if copy-paste the files/folders via GUI would make any difference or if there will be any errors?

Best regards,  
Agus Utomo

---

<div class="post-metadata">

**Author:** ![halshak](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/halshak/32/2751_2.png) [@halshak](https://community.kinsta.com/u/halshak)\
**Post date:** [April 3, 2024, 1:20pm UTC](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106/30 "2024-04-03T13:20:27Z")

</div>

A manual copy within the macOS Finder GUI works without an issue.

![CleanShot 2024-04-02 at 17.46.38](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/fcce999fd36ef8485c8818644dc66dab72a44df6.png)

I also get the `Too many open files in system` error if I try to perform a `cp -a` command in the macOS Terminal.

As a test, I removed the “uploads” folder from my site and renaming or cloning works without a problem.

So it’s all a case of my site being too big due to the many files in my upload folder and Docker struggling with it.

[Previous page](https://community.kinsta.com/t/unable-to-rename-site-error-dk0058/3106.md?page=1)
