# Failed to upload local sites on push to staging DK0065

**URL:** <https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617>\
**Category:** Application Support\
**Created:** [July 14, 2022, 11:35pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617 "2022-07-14T23:35:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikyboy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mikyboy/32/1603_2.png) [@Mikyboy](https://community.kinsta.com/u/Mikyboy)\
**Post date:** [July 14, 2022, 11:35pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/1 "2022-07-14T23:35:17Z")

</div>

Tried multiple times and still get an error whe uploading local sites. Any help around? We need to urgently push our page.

Thanks for your support!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [July 15, 2022, 4:25pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/2 "2022-07-15T16:25:51Z")

</div>

Hi @Mikyboy, welcome to DevKinsta!?  
DK0065 can be caused by many things so I’ll need to see your main.log for the precise log information. Can you please private message that to me?  
You can see instructions for how to find the file here: [DevKinsta Error Codes - Kinsta®](https://kinsta.com/knowledgebase/devkinsta/error-codes/#info)

---

<div class="post-metadata">

**Author:** ![Mikyboy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mikyboy/32/1603_2.png) [@Mikyboy](https://community.kinsta.com/u/Mikyboy)\
**Post date:** [July 15, 2022, 8:32pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/3 "2022-07-15T20:32:28Z")

</div>

Sure thing, thanks for your help!

---

<div class="post-metadata">

**Author:** ![Mikyboy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mikyboy/32/1603_2.png) [@Mikyboy](https://community.kinsta.com/u/Mikyboy)\
**Post date:** [July 15, 2022, 8:35pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/4 "2022-07-15T20:35:37Z")

</div>

I have already tried this solution to a similar ticket - without success though:

> [@Urgent: DevKinsta DK0065 while pushing site](https://community.kinsta.com/t/urgent-devkinsta-dk0065-while-pushing-site/1591/24):
>
> Hi @kumarmuthaiah, please follow the following steps to fix this: Open Docker Desktop and go to “Images” Remove/Delete “kinsta/devkinsta\_rsync-ssh” The next time you run a sync for a website it should download a new version of “devkinsta\_rsync-ssh” which should fix fix. Please let me know if it doesn’t.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [July 15, 2022, 10:28pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/5 "2022-07-15T22:28:09Z")

</div>

Thanks @Mikyboy. In your case I’m seeing `Error: rsync error: error in rsync protocol data stream (code 12) at token.c(476) [sender=3.2.3]`

How far is this getting with the upload?  
Another test you can do is try pushing this to a different staging site(if you have more than one in MK)

So far it’s looking like a networking issue but I’m still investigating.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [July 15, 2022, 11:20pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/6 "2022-07-15T23:20:26Z")

</div>

So I’m able to establish connections between my PC and your staging without issue so the problems seems to be purely during the transfer. This is my recommendation due to how rsync works:

1. Remove any unnecessary large files from your local file directory before the Push. This includes and old zip files that you may have of past backups.

2. Do the same on staging or delete everything in the ~/public directory on staging to keep rsync from comparing local to remote every time it transfers data. That can help speed up the process/make it more consistent.

If you completely delete everything in Staging, remember to reinstall the [Kinsta MU Plugin](https://kinsta.com/help/kinsta-mu-plugin/) after the transfer is complete.

If this doesn’t work, please send me the new main.log file.

Thank you!

---

<div class="post-metadata">

**Author:** ![Mikyboy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mikyboy/32/1603_2.png) [@Mikyboy](https://community.kinsta.com/u/Mikyboy)\
**Post date:** [July 16, 2022, 8:01am UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/7 "2022-07-16T08:01:26Z")

</div>

Kevin you r the man! Cant believe how simple the solution now was. Your are right, there was a large old restore file. Just killed it and upload went fine!

Thanks for the great support!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [July 18, 2022, 4:05pm UTC](https://community.kinsta.com/t/failed-to-upload-local-sites-on-push-to-staging-dk0065/1617/8 "2022-07-18T16:05:24Z")

</div>

Awesome, I’m so glad that fixed it!
