# Cloning has never worked for me

**URL:** <https://community.localwp.com/t/cloning-has-never-worked-for-me/12584>\
**Category:** Support\
**Created:** [June 4, 2019, 3:06pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584 "2019-06-04T15:06:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GusGF](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gusgf/32/5869_2.png) [@GusGF](https://community.localwp.com/u/GusGF)\
**Post date:** [June 4, 2019, 3:06pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/1 "2019-06-04T15:06:12Z")

</div>

Windows 10  
Local by Flywheel v3.2.1

I can manually clone i.e. by using the export tool but if I try to use the specific clone option it just seems to hang and I have to restart Local. Having done a quick search I’m not alone so was wondering what could be going wrong. I should add the clone function has never worked for me on previous versions!

---

<div class="post-metadata">

**Author:** ![keegan](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/keegan/32/10354_2.png) [@keegan](https://community.localwp.com/u/keegan)\
**Post date:** [June 5, 2019, 8:27pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/2 "2019-06-05T20:27:29Z")

</div>

Hi @GusGF -

So sorry you have been having this issue! Could you please send over the log files so we can take a deeper look into what might be causing this issue?

Here are the instructions on how to get log files if you need it: [How do I retrieve Local's log file?](https://localbyflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720)

Keegan

---

<div class="post-metadata">

**Author:** ![dzunker](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzunker/32/7698_2.png) [@dzunker](https://community.localwp.com/u/dzunker)\
**Post date:** [June 8, 2019, 6:11pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/3 "2019-06-08T18:11:01Z")

</div>

I am having the same issue. Clone does not work, then I have to reboot to get everything working again. I am on a Windows 10 pro machine.

---

<div class="post-metadata">

**Author:** ![GusGF](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gusgf/32/5869_2.png) [@GusGF](https://community.localwp.com/u/GusGF)\
**Post date:** [June 8, 2019, 10:51pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/4 "2019-06-08T22:51:40Z")

</div>

Please find attached the said log file.

Many thanks

[local-by-flywheel.log](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/3/3b8b85fbe06a8c46a0ed72a3e7b17d5f5e58109f.log) (267.8 KB)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [June 10, 2019, 7:34pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/5 "2019-06-10T19:34:07Z")

</div>

Welcome to the community @dzunker –

> [@dzunker](#):
>
> Clone does not work, then I have to reboot to get everything working again.

Can you describe in a little more detail how you are trying to clone a site? For example:

- Is the site turned on when trying to clone?
- Are there any errors that show?
- Can you please provide your `local-by-flywheel.log` file? See  
“[How do I retrieve Local's log file? - FAQ - Local Community](https://local.getflywheel.com/community/t/how-do-i-retrieve-locals-log-file/3720)” for instructions on how to do so.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [June 10, 2019, 7:39pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/6 "2019-06-10T19:39:16Z")

</div>

Hey @GusGF –

Thank you for that Local log! I do see a couple of errors that seem to indicate that Local is having trouble communicating with mysql. The specific lines looks like this:

```auto
Apr 29, 2019, 9:04 PM GMT+1 - warn: [main/SiteModel] wpInstalled not returning "installed" 
{ message: '',
  stack:
   'Error\n at C:\\Users\\Gus\\AppData\\Local\\Programs\\local-by-flywheel\\resources\\app.asar\\main\\actions-sites\\wait-for-mysql.js:1:2853\n at Generator.next (<anonymous>)\n at _0x5bab70 (C:\\Users\\Gus\\AppData\\Local\\Programs\\local-by-flywheel\\resources\\app.asar\\main\\actions-sites\\wait-for-mysql.js:1:1645)\n at C:\\Users\\Gus\\AppData\\Local\\Programs\\local-by-flywheel\\resources\\app.asar\\main\\actions-sites\\wait-for-mysql.js:1:1904\n at process._tickCallback (internal/process/next_tick.js:68:7)' }

```

Since this appears to be related to the database, a couple of follow up questions:

- Is the site turned on when trying to clone the site?
- Are there any MySQL errors contained within the `logs/mysql/error.log` file for the original site? You can zip up the `logs` folder and attach it here if you’d like me to take a look as well.

---

<div class="post-metadata">

**Author:** ![GusGF](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gusgf/32/5869_2.png) [@GusGF](https://community.localwp.com/u/GusGF)\
**Post date:** [June 12, 2019, 2:35pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/7 "2019-06-12T14:35:55Z")

</div>

Okay thanks now it’s worked and the key seems to be that the site you want to clone should be on. Since clone was available as an option for sites that were both on or off I thought it didn’t matter. Perhaps this needs to be made clear as I have searched and didn’t see anything stating sites should be on. And maybe for sites that are off the cloning feature should be unavailable. Typically when cloning a partition on an OS the partition is unmounted so I applied the same logic.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [July 2, 2019, 10:36pm UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/8 "2019-07-02T22:36:13Z")

</div>

Thanks for that feedback @GusGF! I’m adding these notes to some work we have in the backlog for working on cloning sites!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [July 3, 2019, 10:36am UTC](https://community.localwp.com/t/cloning-has-never-worked-for-me/12584/9 "2019-07-03T10:36:16Z")

</div>

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