Local Community

Spawnsync getcap enoent. Linux Debian 11

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
  • 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"}

There’s the older topic that had a similar issue on an older version of Debian:

You’ll likely want to first try installing libcap2-bin

sudo apt-get install libcap2-bin

But further down in that linked topic, the user had to make a couple of other adjustments as well. Let us know what you find or if you have any questions!

Hi there.
Yes, I found it after posting, tried but same results.

Can you describe in a little more detail what was tried? When looking in the Local log, are there any different error messages?

hi there this is the log

{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2021-08-30T07:21:14.185Z"}
{"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-30T07:21:14.187Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2021-08-30T07:21:14.188Z"}
{"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-30T07:21:14.201Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2021-08-30T07:21:14.202Z"}
{"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-30T07:21:14.215Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+5/lib/main.js","timestamp":"2021-08-30T07:21:14.215Z"}
{"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-30T07:21:14.230Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+11/lib/main.js","timestamp":"2021-08-30T07:21:14.230Z"}
{"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-30T07:21:14.243Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2021-08-30T07:21:23.376Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2021-08-30T07:21:23.409Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-30T07:21:23.465Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2021-08-30T07:21:23.520Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2021-08-30T07:21:27.474Z"}
{"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.e
xecFileSync (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 sta
rt site.","timestamp":"2021-08-30T07:21:27.657Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":11240,"level":"info","message":"Killing process","timestamp":"2021-08-30T07:21:29.368Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":11246,"level":"info","message":"Killing process","timestamp":"2021-08-30T07:21:29.386Z"}
{"thread":"main","class":"Process","process":"nginx","pid":11250,"level":"info","message":"Killing process","timestamp":"2021-08-30T07:21:29.397Z"}
{"thread":"main","class":"Process","process":"mysql","pid":11254,"level":"info","message":"Killing process","timestamp":"2021-08-30T07:21:29.404Z"}
{"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.exec
FileSync (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 Ro
uterService.<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 provis
ion site.","timestamp":"2021-08-30T07:21:29.413Z"}
{"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 (<a
nonymous>)\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/lo
gform/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 writeOrBu
ffer (%%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 obje
ct with constructor 'Error'\n    --- property 'error' closes the circle","timestamp":"2021-08-30T07:21:30.063Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-30T07:21:30.105Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting %%site.runData%%","level":"info","timestamp":"2021-08-30T07:21:30.919Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-30T07:21:31.103Z"}
{"thread":"main","reason":{},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2021-08-30T07:21:31.104Z"}
{"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 a.local www.a.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-30T07:21:31.681Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2021-08-30T07:21:32.668Z"}
{"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\nTh
is incident has been reported.\n","exitCode":127,"level":"error","message":"Could not update hosts.","timestamp":"2021-08-30T07:21:33.543Z"} ´´´

Upgraded to last local version in another pc (still Debian 11) and same problems.

updated to 6.1.2 - still does not works

OK, I have run into this as well. I still can’t get my old site to work but new sites now work after following some of the instructions here (Local doesn't open on Debian - #9 by 42Glider).

Firstly I checked if libcap2-bin was installed,
sudo apt-get install libcap2-bin
Then opened a terminal and changed to the Local directory,
cd /opt/Local
and changed the permissions of chrome-sandbox with,
sudo chmod 4755 chrome-sandbox
Finally I started Local and in preferences/advanced set the router mode to localhost. Created a new site and it works.

It’s a bit of a bad work around but at least you can play even if I wouldn’t really trust it. BTW, I also tried adding kernel.unprivileged_userns_clone = 1 to /etc/sysctl.conf and then reloading it but that didn’t solve anything further for me.