# Uploading to Staging - Something bad happened

**URL:** https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681
**Category:** Application Support
**Created:** [November 6, 2023, 1:11am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681 "2023-11-06T01:11:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Chin\_Soon\_Yeo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/chin_soon_yeo/32/2616_2.png) [@Chin\_Soon\_Yeo](https://community.kinsta.com/u/Chin_Soon_Yeo)
#### Post date: [November 6, 2023, 1:11am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/1 "2023-11-06T01:11:58Z")

</div>

![Screen Shot 2023-11-06 at 12.07.22 pm](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/3/3a5a2e55c27ee1f2537a78683ac7a94e68ac6912.png)

I am trying to pull from staging site into DevKinsta. Got stuck at the above when download reach 99%

---

<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: [November 6, 2023, 4:44am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/3 "2023-11-06T04:44:08Z")

</div>

Hello @Chin_Soon_Yeo 👋 and welcome to Kinsta Community!

To clarify, you got that “Something bad happened” when you tried to “Add site → Import from Kinsta” of your Staging site into your DevKinsta, right? (a bit confused as the title mentions “_Uploading_ to Staging” instead).

Could you please send us [the most recent “`main.log`” file](https://kinsta.com/knowledgebase/devkinsta/error-codes/#viewing-the-application-log-file) that would log that site import process (but failed)? we will then check and review your `main.log` file and see if we can find anything from it.

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![Chin\_Soon\_Yeo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/chin_soon_yeo/32/2616_2.png) [@Chin\_Soon\_Yeo](https://community.kinsta.com/u/Chin_Soon_Yeo)
#### Post date: [November 6, 2023, 5:11am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/4 "2023-11-06T05:11:45Z")

</div>

Thanks.  
main.log (592.9 KB)

---

<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: [November 6, 2023, 7:37am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/6 "2023-11-06T07:37:53Z")

</div>

Thank you for the `main.log` file you shared!

As I could see from that file, I’ve noticed the following `rsync` error (while processing your site’s transfer process), like:

```auto
[2023-11-06 12:25:48.753] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-11-06 12:25:48.835] [warn] [terminalExec] Error: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1861) [generator=3.2.7]

[2023-11-06 12:25:48.989] [info] [terminalExec] Child process exited with code 23
[2023-11-06 12:25:48.989] [error] [downloadSite] Error while downloading files Error: Encountered an error in child process 8636: 23. rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1861) [generator=3.2.7]

[2023-11-06 12:25:48.991] [error] [ipcMainStep] Error in operation SITE_CREATION, step rsync: Error: Encountered an error in child process 8636: 23. rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1861) [generator=3.2.7]

```

Is it always failed at the same percentage each time you’re trying to pull the Staging site into DevKinsta?

I also noticed that you have this sub-folder inside your `~/public` folder:

```auto
q1gn4sygf4-staging.onrocket.site/

```

(that seems to be another WP files?)  
I would suggest to remove that sub-folder and its contents if you’re not using it on our server (and only keep files/folders that are really needed by your WordPress site hosted on our server).  
Once you’ve removed that sub-folder and its contents, please try to pull the Staging site to your local computer with DevKinsta and see if it’s working?

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![Chin\_Soon\_Yeo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/chin_soon_yeo/32/2616_2.png) [@Chin\_Soon\_Yeo](https://community.kinsta.com/u/Chin_Soon_Yeo)
#### Post date: [November 6, 2023, 9:32pm UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/7 "2023-11-06T21:32:26Z")

</div>

Hi Agus

Thank you. I will do as you suggested and try again. Removed folder. Still get stuck at 99 to 100% mark.

main.log (859.9 KB)

After each failed attempt, the website and control panel becomes very slow.

---

<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: [November 7, 2023, 2:15am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/8 "2023-11-07T02:15:47Z")

</div>

Thank you for your reply @Chin_Soon_Yeo

I could see that sub-folder `q1gn4sygf4-staging.onrocket.site/` is no longer there on your Staging’s public folder.

I double checked further and just noticed these in your `main.log` file :

```auto
[2023-11-07 09:34:31.986] [warn] [terminalExec] Error: symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/d5f114d8e3c62f0810864354ff81f62f"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/ddd45c73825c4fae2bda3eda829176f6"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/161df2a04c3d2ee5292c4829583cb959"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/e06f90e20493fcdf4428111b4bd54dd0"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/a2ea15116725f93f1ad50491e3661c30"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/327b162a972ddf08c14d8e6b8db4e7d2"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/1a5ca6ad98de660088f772f9a5b895ec"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/657336e695e0f8e99fc66fad8954d661"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/5f7ebe93844853cf2ffce4cb8f803891"
symlink has no referent: "/www/awonhubcom_389/public/wp-content/uploads/bb-platform-previews/b9014e776e469ca6dae702955bf32e95/9b28dd1363d37e9864bd6c4c9c50b8e8"

```

and when I checked into your Staging account, indeed I noticed the same broken Symlink for those sub-folders:

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

So I think these broken Sylink (pointing to invalid/incorrect / non-exist files) were causing the import process to fail in DevKinsta.

I would suggest to check and remove those broken symlink files as shown in the above screenshot and give it another try. Hopefully that’s all and no more errors 😃 🤞 otherwise, you may want to send us your main.log again so we can check .

PS: and about this:

> After each failed attempt, the website and control panel becomes very slow.

I don’t think it would affect your Staging site’s performance and/or the MyKinsta control panel to become very slow as DevKinsta shouldn’t affect them at all (it’s completely a separate program that runs on your local computer). If you’re experiencing slow access to your Staging site and/or with the MyKinsta control panel, please [contact/reach out to our support team](https://kinsta.com/docs/contact-kinsta-support/#open-a-support-chat), so they can help to check and assist you further.

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![Chin\_Soon\_Yeo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/chin_soon_yeo/32/2616_2.png) [@Chin\_Soon\_Yeo](https://community.kinsta.com/u/Chin_Soon_Yeo)
#### Post date: [November 7, 2023, 2:45am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/10 "2023-11-07T02:45:58Z")

</div>

Thank you. It worked after removing those links. Is DevKinsta smart enough to avoid overwriting transactional order and user data created by Woocommerce, Paid Membership Pro and Buddyboss when pushing data to staging? And then from staging to live site?

---

<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: [November 7, 2023, 3:20am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/11 "2023-11-07T03:20:47Z")

</div>

You’re most welcome! 😃 I’m glad we found the culprit and you’ve sorted it out!

DevKinsta will push your local site’s file(s) and/or Database to your Staging account on our server.  
At the moment, you can only select/deselect file(s) or folder(s) to be pushed from your local site to your Staging site, but there’s no option to select/deselect specific database’s table(s) to be pushed.

You will be able to only select/deselect the whole DB to be pushed or not, so if the “Database” is selected, then the whole DB’s tables (used by Woocommerce, Paid membership pro and whatnot) on your staging will be overwritten.

> **[Push Changes to Staging](https://kinsta.com/knowledgebase/devkinsta/push-local-site-to-kinsta-staging/#pushing-your-changes-to-staging-will)**
>
> Pushing a site back to your Kinsta environment works with a single click. Follow these steps to get started with DevKinsta.

Similar thing when you push your Staging site to Live, you will only be able to either to push either your Files(folders) and/or Database as shown here:

> **[Push Staging Site To Live](https://kinsta.com/docs/push-staging-live/#how-to-push-staging-to-live-with-selective-push)**
>
> At Kinsta each of your sites can have a staging environment, allowing you to test plugin or code modifications without affecting the live site. Find out more!

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![Chin\_Soon\_Yeo](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/chin_soon_yeo/32/2616_2.png) [@Chin\_Soon\_Yeo](https://community.kinsta.com/u/Chin_Soon_Yeo)
#### Post date: [November 7, 2023, 3:24am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/12 "2023-11-07T03:24:19Z")

</div>

Thank you. I will stick to the safest route. Have a nice day. 🙂

---

<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: [November 7, 2023, 3:28am UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/13 "2023-11-07T03:28:33Z")

</div>

You’re welcome! Alright then! 👍  
You too, have a wonderful day! 😃

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [November 9, 2023, 3:29pm UTC](https://community.kinsta.com/t/uploading-to-staging-something-bad-happened/2681/14 "2023-11-09T15:29:16Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
