Issue Summary
Error when finishing assistant for creating WP
something related to grants modifying /etc/hosts
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
everyone I tried -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
no I’m unable to create
Replication
Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
System Details
-
Which version of Local is being used?
last local-1.6.1-linux.deb -
What Operating System (OS) and OS version is being used?
- Debian 11
Linux debian 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
- Debian 11
-
Attach the Local Log. See this Community Forum post for instructions on how to do so:
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:24:10.590Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:24:10.592Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:24:10.619Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:24:10.620Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:24:10.645Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:24:10.647Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:24:10.672Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:24:10.673Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:24:10.702Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:25:13.232Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:25:13.234Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:25:13.234Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:25:13.247Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:25:13.248Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:25:13.260Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:25:13.260Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:25:13.274Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:25:13.274Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:25:13.287Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-19T06:26:40.994Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-19T06:26:40.997Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:26:41.033Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-19T06:26:41.086Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:26:45.271Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-08-19T06:26:45.457Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":7686,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:27:19.627Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":7687,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:27:19.643Z"}
{"thread":"main","class":"Process","process":"nginx","pid":7694,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:27:19.661Z"}
{"thread":"main","class":"Process","process":"mysql","pid":7695,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:27:19.670Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to provision site.","timestamp":"2021-08-19T06:27:19.677Z"}
{"thread":"main","level":"error","stack":"TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle\n at JSON.stringify (<anonymous>)\n at Printf.template (%%appPath%%/main/_helpers/localLogger.js:1:2390)\n at Printf.transform (%%appPath%%/node_modules/logform/printf.js:11:26)\n at Format.transform (%%appPath%%/node_modules/logform/combine.js:20:24)\n at Console._write (%%appPath%%/node_modules/winston-transport/index.js:90:33)\n at doWrite (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Console.Writable.write (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at DerivedLogger.ondata (%%appPath%%/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)\n at DerivedLogger.emit (events.js:327:22)","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle","timestamp":"2021-08-19T06:27:22.817Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:27:22.908Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-19T06:27:22.914Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:27:23.199Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:27:23.201Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:27:24.011Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:27:24.043Z"}
{"thread":"main","class":"HostsFileService","stdout":"Updating hosts file at /etc/hosts\nUpdated hosts file at /etc/hosts\n","stderr":"","level":"info","message":"Updated hosts.","timestamp":"2021-08-19T06:27:37.998Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-19T06:27:55.377Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-19T06:27:55.378Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:27:55.398Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-19T06:27:55.446Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:27:59.709Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-08-19T06:27:59.836Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":7874,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:28:02.269Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":7881,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:28:02.288Z"}
{"thread":"main","class":"Process","process":"nginx","pid":7885,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:28:02.305Z"}
{"thread":"main","class":"Process","process":"mysql","pid":7886,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:28:02.316Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to provision site.","timestamp":"2021-08-19T06:28:02.323Z"}
{"thread":"main","level":"error","stack":"TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle\n at JSON.stringify (<anonymous>)\n at Printf.template (%%appPath%%/main/_helpers/localLogger.js:1:2390)\n at Printf.transform (%%appPath%%/node_modules/logform/printf.js:11:26)\n at Format.transform (%%appPath%%/node_modules/logform/combine.js:20:24)\n at Console._write (%%appPath%%/node_modules/winston-transport/index.js:90:33)\n at doWrite (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Console.Writable.write (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at DerivedLogger.ondata (%%appPath%%/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)\n at DerivedLogger.emit (events.js:327:22)","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle","timestamp":"2021-08-19T06:28:03.038Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:28:03.108Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-19T06:28:04.111Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:28:04.323Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:28:04.323Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:28:05.141Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:28:05.167Z"}
{"thread":"main","class":"HostsFileService","stdout":"Updating hosts file at /etc/hosts\nUpdated hosts file at /etc/hosts\n","stderr":"","level":"info","message":"Updated hosts.","timestamp":"2021-08-19T06:28:19.094Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:28:28.731Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:28:28.733Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:28:28.733Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:28:28.747Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:28:28.748Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:28:28.760Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:28:28.760Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:28:28.771Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:28:28.772Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:28:28.787Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-19T06:29:08.438Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-19T06:29:08.441Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:29:08.464Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-19T06:29:08.515Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:29:12.522Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-08-19T06:29:12.655Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":8191,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:14.714Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":8196,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:14.733Z"}
{"thread":"main","class":"Process","process":"nginx","pid":8200,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:14.748Z"}
{"thread":"main","class":"Process","process":"mysql","pid":8201,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:14.757Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to provision site.","timestamp":"2021-08-19T06:29:14.766Z"}
{"thread":"main","level":"error","stack":"TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle\n at JSON.stringify (<anonymous>)\n at Printf.template (%%appPath%%/main/_helpers/localLogger.js:1:2390)\n at Printf.transform (%%appPath%%/node_modules/logform/printf.js:11:26)\n at Format.transform (%%appPath%%/node_modules/logform/combine.js:20:24)\n at Console._write (%%appPath%%/node_modules/winston-transport/index.js:90:33)\n at doWrite (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Console.Writable.write (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at DerivedLogger.ondata (%%appPath%%/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)\n at DerivedLogger.emit (events.js:327:22)","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle","timestamp":"2021-08-19T06:29:15.369Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:29:15.441Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-19T06:29:15.973Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:29:16.189Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:29:16.192Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:29:17.013Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:29:17.046Z"}
{"thread":"main","class":"HostsFileService","stdout":"Updating hosts file at /etc/hosts\nUpdated hosts file at /etc/hosts\n","stderr":"","level":"info","message":"Updated hosts.","timestamp":"2021-08-19T06:29:27.011Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-19T06:29:38.761Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-19T06:29:38.770Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:29:38.810Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-19T06:29:38.857Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:29:43.108Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-08-19T06:29:43.248Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":8337,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:45.479Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":8343,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:45.491Z"}
{"thread":"main","class":"Process","process":"nginx","pid":8347,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:45.500Z"}
{"thread":"main","class":"Process","process":"mysql","pid":8349,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:29:45.507Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to provision site.","timestamp":"2021-08-19T06:29:45.512Z"}
{"thread":"main","level":"error","stack":"TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle\n at JSON.stringify (<anonymous>)\n at Printf.template (%%appPath%%/main/_helpers/localLogger.js:1:2390)\n at Printf.transform (%%appPath%%/node_modules/logform/printf.js:11:26)\n at Format.transform (%%appPath%%/node_modules/logform/combine.js:20:24)\n at Console._write (%%appPath%%/node_modules/winston-transport/index.js:90:33)\n at doWrite (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Console.Writable.write (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at DerivedLogger.ondata (%%appPath%%/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)\n at DerivedLogger.emit (events.js:327:22)","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle","timestamp":"2021-08-19T06:29:47.313Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-19T06:29:47.330Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:29:47.539Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:29:47.540Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:29:48.378Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:29:51.863Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:32:26.040Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-19T06:32:26.044Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:32:26.046Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-19T06:32:26.068Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:32:26.069Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-19T06:32:26.086Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:32:26.086Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-19T06:32:26.100Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:32:26.100Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-19T06:32:26.118Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-19T06:32:38.436Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-19T06:32:38.437Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:32:38.451Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-19T06:32:38.509Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-19T06:32:42.504Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-08-19T06:32:42.642Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":10546,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:32:45.219Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":10552,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:32:45.239Z"}
{"thread":"main","class":"Process","process":"nginx","pid":10556,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:32:45.253Z"}
{"thread":"main","class":"Process","process":"mysql","pid":10557,"level":"info","message":"Killing process","timestamp":"2021-08-19T06:32:45.262Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawnSync getcap ENOENT\n at Object.spawnSync (internal/child_process.js:1067:20)\n at spawnSync (child_process.js:611:24)\n at Object.execFileSync (child_process.js:638:15)\n at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)\n at RouterService.doesNginxNeedBindCap (%%appPath%%/main/router/RouterService.js:1:6759)\n at RouterService.<anonymous> (%%appPath%%/main/router/RouterService.js:1:2827)\n at Generator.next (<anonymous>)\n at n (%%appPath%%/main/router/RouterService.js:1:132)","level":"error","message":"Unable to provision site.","timestamp":"2021-08-19T06:32:45.270Z"}
{"thread":"main","level":"error","stack":"TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle\n at JSON.stringify (<anonymous>)\n at Printf.template (%%appPath%%/main/_helpers/localLogger.js:1:2390)\n at Printf.transform (%%appPath%%/node_modules/logform/printf.js:11:26)\n at Format.transform (%%appPath%%/node_modules/logform/combine.js:20:24)\n at Console._write (%%appPath%%/node_modules/winston-transport/index.js:90:33)\n at doWrite (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:428:64)\n at writeOrBuffer (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:417:5)\n at Console.Writable.write (%%appPath%%/node_modules/readable-stream/lib/_stream_writable.js:334:11)\n at DerivedLogger.ondata (%%appPath%%/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)\n at DerivedLogger.emit (events.js:327:22)","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Error'\n --- property 'error' closes the circle","timestamp":"2021-08-19T06:32:45.793Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:32:45.867Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-19T06:32:46.451Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:32:46.670Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-19T06:32:46.671Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js sdf.local www.sdf.local\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:32:47.190Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-19T06:32:48.145Z"}
{"thread":"main","class":"HostsFileService","error":{"killed":false,"code":127,"signal":null,"cmd":"cd \"/home/tomeu\"; export ELECTRON_RUN_AS_NODE=\"1\"; \"/usr/bin/pkexec\" --disable-internal-agent /bin/bash -c \"echo SUDOPROMPT; export ELECTRON_RUN_AS_NODE=\\\"1\\\";/opt/Local/local %%appPath%%/main/dns/workers/updateHostsFileWorker.js\""},"stdout":"","stderr":"Error executing command as another user: Not authorized\n\nThis incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-19T06:32:49.506Z"}