Local hangs when trying to copy / clone a site

Bug Summary

After updating to 6.6.1+6281 - I cannot clone a site. It just gets stuck on copying or provisioning.

Steps to reproduce

Choose a site to clone - give it a shot.

Environment Info

OSX - M1 - MacBook Air

  • What Operating System are you using?
  • What versions of site software (Nginx, Apache, PHP, MySQL) is used?
  • What version of Local is installed?

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“[06-Mar-2023 18:01:24] ERROR: FPM initialization failed”,“timestamp”:“2023-03-07T02:01:24.734Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“level”:“warn”,“message”:“nginx: [alert] could not open error log file: open() "%%site.runData%%/nginx/logs/error.log" failed (2: No such file or directory)”,“timestamp”:“2023-03-07T02:01:24.969Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“level”:“warn”,“message”:“2023/03/06 18:01:24 [emerg] 49291#0: open() "%%site.runData%%/conf/nginx/nginx.conf" failed (2: No such file or directory)”,“timestamp”:“2023-03-07T02:01:24.971Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“mysqld: [ERROR] Failed to open required defaults file: %%site.runData%%/conf/mysql/my.cnf”,“timestamp”:“2023-03-07T02:01:25.300Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“mysqld: [ERROR] Fatal error in defaults handling. Program aborted!”,“timestamp”:“2023-03-07T02:01:25.301Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“[06-Mar-2023 18:01:25] ERROR: the global prefix ‘%%site.runData%%/conf/php’ does not exist or is not a directory”,“timestamp”:“2023-03-07T02:01:25.303Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“[06-Mar-2023 18:01:25] ERROR: FPM initialization failed”,“timestamp”:“2023-03-07T02:01:25.303Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“stack”:“Error: Command failed: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqladmin ping\n\u0007mysqladmin: connect to server at ‘localhost’ failed\nerror: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’\nCheck that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists!\n\n at ChildProcess.exithandler (node:child_process:407:12)\n at ChildProcess.emit (node:events:527:28)\n at ChildProcess.emit (node:domain:475:12)\n at maybeClose (node:internal/child_process:1092:16)\n at Socket. (node:internal/child_process:451:11)\n at Socket.emit (node:events:527:28)\n at Socket.emit (node:domain:475:12)\n at Pipe. (node:net:709:12)”,“level”:“error”,“message”:“Database did NOT respond to ping after 15 tries.”,“timestamp”:“2023-03-07T02:01:32.428Z”}
{“thread”:“main”,“class”:“SiteProcessManagerService”,“stack”:“Error: mysqldump exited with non-zero exit code.\n at SiteDatabaseService. (%%appPath%%/main/sites/database/SiteDatabaseService.js:1:2583)\n at Generator.next ()\n at s (%%appPath%%/main/sites/database/SiteDatabaseService.js:1:742)\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)”,“level”:“error”,“message”:“Unable to dump database.”,“timestamp”:“2023-03-07T02:01:43.589Z”}
{“thread”:“main”,“errno”:-2,“code”:“ENOENT”,“syscall”:“lstat”,“path”:“/Users/niko/Projects/Sites/workingactor”,“level”:“error”,“stack”:“Error: ENOENT: no such file or directory, lstat ‘/Users/niko/Projects/Sites/workingactor’”,“message”:“ENOENT: no such file or directory, lstat ‘/Users/niko/Projects/Sites/workingactor’”,“timestamp”:“2023-03-07T02:02:09.735Z”}

Include any screenshots or video recordings of the issue to help others reproduce.

Hi @byniko

Could you provide a full log for us to check out? There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the Download Local Logs button from the Support tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.

Thanks. I just tried to clone and now it’s working. I did restart my computer and failed multiple times before I submitted this ticket. We can close this. Sorry. Thanks.

1 Like

No problem @byniko! Glad to hear things are working again. If you need anything else you know where to find us :slight_smile: