Linux - Cannot Creat Site (Hosts File?)

Greetings,

Long time wordpress user, long time linux user, first time flywheel user. Cannot create a site. Installing the deb file goes without a hitch.

Have tried to find answers RE hosts file, but nothing works. Yes, I did try to find an answer.

Particulars:

Brand new install.

local-5.6.6-linux.deb

$ cat /etc/issue
Ubuntu 18.04.4 LTS \n \l

$ uname -a
Linux dev9 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ ls -l /etc/hosts
-rwxrwxrwx 1 root root 666 Jul 23 10:10 /etc/hosts

Can’t create a site. Fails with “Uh-oh!” can’t write to hosts.

Can’t see how to attach log file, but it is available.

Thank you,
Angus

{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%userDataPath%%/lightning-services/apache-2.4.43+6/lib/main.js”,“timestamp”:“2020-07-25T14:00:02.863Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%userDataPath%%/lightning-services/apache-2.4.43+6/lib/main.js”,“timestamp”:“2020-07-25T14:00:02.939Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%userDataPath%%/lightning-services/php-7.4.1+10/lib/main.js”,“timestamp”:“2020-07-25T14:00:02.941Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%userDataPath%%/lightning-services/php-7.4.1+10/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.009Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.011Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.016Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.018Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.092Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.094Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.168Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.170Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+3/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.238Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+9/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.240Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+9/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.314Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%appPath%%/node_modules/@getflywheel/local-addon-broken-link-checker/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.318Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%appPath%%/node_modules/@getflywheel/local-addon-broken-link-checker/lib/main.js”,“timestamp”:“2020-07-25T14:00:03.321Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have “productName” specified in package.json: %%appPath%%/node_modules/@getflywheel/local-components/package.json”,“level”:“info”,“timestamp”:“2020-07-25T14:00:03.324Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have “productName” specified in package.json: %%appPath%%/node_modules/@getflywheel/localcert/package.json”,“level”:“info”,“timestamp”:“2020-07-25T14:00:03.325Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have “productName” specified in package.json: %%appPath%%/node_modules/@getflywheel/localtunnel/package.json”,“level”:“info”,“timestamp”:“2020-07-25T14:00:03.327Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have “productName” specified in package.json: %%appPath%%/node_modules/@getflywheel/memoize-one-ts/package.json”,“level”:“info”,“timestamp”:“2020-07-25T14:00:03.329Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have “main” or “renderer” specified in package.json: %%appPath%%/node_modules/@getflywheel/replacestream/package.json”,“level”:“info”,“timestamp”:“2020-07-25T14:00:03.331Z”}
{“thread”:“main”,“class”:"",“message”:“Creating site folders…”,“level”:“info”,“timestamp”:“2020-07-25T14:00:48.279Z”}
{“thread”:“main”,“class”:"",“message”:“Copying service config templates…”,“level”:“info”,“timestamp”:“2020-07-25T14:00:48.291Z”}
{“thread”:“main”,“class”:"",“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2020-07-25T14:00:48.466Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“dataPath”:"%%site.runData%%/mysql/data",“level”:“info”,“message”:“Initializing MySQL datadir…”,“timestamp”:“2020-07-25T14:00:49.064Z”}
{“thread”:“main”,“class”:"",“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2020-07-25T14:01:49.713Z”}
{“thread”:“main”,“class”:“HostsFileService”,“level”:“info”,“message”:“Updating hosts with”,“timestamp”:“2020-07-25T14:01:51.082Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“killed”:false,“code”:127,“signal”:null,“cmd”:“cd “/home/joe”; 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 wfp.local www.wfp.local””},“stdout”:"",“stderr”:“Error executing command as another user: No authentication agent found.\n”,“exitCode”:127,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2020-07-25T14:01:51.277Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-07-25T14:01:50.439084Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+3/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 8853”,“timestamp”:“2020-07-25T14:03:24.189Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-07-25T14:01:50.448846Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2020-07-25T14:03:24.191Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-07-25T14:01:53.672413Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2020-07-25T14:03:24.192Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-07-25T14:01:53.780168Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+3/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10006 MySQL Community Server - GPL.”,“timestamp”:“2020-07-25T14:03:24.193Z”}
{“thread”:“main”,“class”:"",“stack”:{},“level”:“error”,“message”:“Unable to start site.”,“timestamp”:“2020-07-25T14:03:24.722Z”}
{“thread”:“main”,“class”:“o”,“message”:“Stopping ngrok for wfp.local”,“level”:“info”,“timestamp”:“2020-07-25T14:03:46.563Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mailhog”,“pid”:8843,“level”:“info”,“message”:“Killing process”,“timestamp”:“2020-07-25T14:03:46.567Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“pid”:8847,“level”:“info”,“message”:“Killing process”,“timestamp”:“2020-07-25T14:03:46.571Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“pid”:8850,“level”:“info”,“message”:“Killing process”,“timestamp”:“2020-07-25T14:03:46.573Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“pid”:8853,“level”:“info”,“message”:“Killing process”,“timestamp”:“2020-07-25T14:03:46.578Z”}
{“thread”:“main”,“class”:"",“stack”:{},“level”:“error”,“message”:“Unable to provision site.”,“timestamp”:“2020-07-25T14:03:46.580Z”}
{“thread”:“main”,“reason”:{},“p”:{},“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2020-07-25T14:03:58.957Z”}
{“thread”:“main”,“reason”:{“error”:{“killed”:false,“code”:127,“signal”:null,“cmd”:“cd “/home/joe”; “/usr/bin/pkexec” --disable-internal-agent /bin/bash -c “echo SUDOPROMPT; setcap cap_net_bind_service=+ep %%resourcesPath%%/lightning-services/nginx-1.16.0+3/bin/linux/sbin/nginx””},“stdout”:"",“stderr”:“Error executing command as another user: No authentication agent found.\n”,“exitCode”:127},“p”:{},“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2020-07-25T14:03:58.975Z”}
{“thread”:“main”,“class”:"",“message”:“Deleting %%site.runData%%”,“level”:“info”,“timestamp”:“2020-07-25T14:03:59.042Z”}
{“thread”:“main”,“class”:“HostsFileService”,“level”:“info”,“message”:“Updating hosts with”,“timestamp”:“2020-07-25T14:04:00.201Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“killed”:false,“code”:127,“signal”:null,“cmd”:“cd “/home/joe”; 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: No authentication agent found.\n”,“exitCode”:127,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2020-07-25T14:04:00.391Z”}

Listed in order of appearance.





Like so many other threads/topics I’ve found here, this one is unanswered and will eventually die alone. I’ve moved back to LAMP. It just works. In truth, I never ‘left’ LAMP. Local By Flywheel is something I’ve seen referred to by several folks. I’m interested in things, so thought I’d give it a try.

2 Likes

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