Cannot Update Hosts File on Manjaro Linux

Hi all. I know this question has been asked so many times. Most of the thread just left unsolved and the solved one are Windows10. So I hope mine wouldn’t left unanswered.

Screenshot_20201027_085032

Issue Summary

Local cannot update hosts file. I tried modifying sudoers file as I believe if it doesn’t prompt a password, it may work but no success.Giving user permission to /etc/hosts also doesn’t work.

Troubleshooting Questions

  • It happened whether I create a site or import it. Wordpress version keeps on loading forever and hitting ‘Fix it’ button doesn’t work.

System Details

  • Local V.5.90+4961

  • Manjaro Linux on Thinkpad X230

  • Attach the Local Log.

Blockquote {“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%userDataPath%%/lightning-services/php-7.4.1+13/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.754Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%userDataPath%%/lightning-services/php-7.4.1+13/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.783Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.784Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.787Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.788Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.810Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+5/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.811Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+5/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.835Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+3/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.836Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+3/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.865Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+10/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.867Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-7.3.5+10/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.888Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“level”:“info”,“message”:“Loading Add-on: %%appPath%%/node_modules/@getflywheel/local-addon-broken-link-checker/lib/main.js”,“timestamp”:“2020-10-29T03:57:25.890Z”}
{“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-10-29T03:57:25.891Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have "productName" specified in package.json: %%appPath%%/node_modules/@getflywheel/local-browsersync/package.json”,“level”:“info”,“timestamp”:“2020-10-29T03:57:25.892Z”}
{“thread”:“main”,“class”:“AddonLoaderService”,“message”:“Add-on does not have "productName" specified in package.json: %%appPath%%/node_modules/@getflywheel/local-browsersync-client/package.json”,“level”:“info”,“timestamp”:“2020-10-29T03:57:25.893Z”}
{“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-10-29T03:57:25.894Z”}
{“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-10-29T03:57:25.894Z”}
{“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-10-29T03:57:25.895Z”}
{“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-10-29T03:57:25.896Z”}
{“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-10-29T03:57:25.897Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkLocalExport”,“timestamp”:“2020-10-29T03:57:32.702Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“Analyzing Zip: Listing Contents for Local Export Check”,“timestamp”:“2020-10-29T03:57:32.704Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“debug”,“message”:“Analysis of zip: Local Export”,“timestamp”:“2020-10-29T03:57:32.705Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkBackupBuddy”,“timestamp”:“2020-10-29T03:57:32.706Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkGenericZip”,“timestamp”:“2020-10-29T03:57:32.707Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“Analyzing Zip: Listing Contents for Generic Zip Check”,“timestamp”:“2020-10-29T03:57:32.708Z”}
{“thread”:“renderer”,“component”:“ImportSiteAnalyzePage”,“level”:“info”,“message”:“Message from import-site-analyze-worker:”,“timestamp”:“2020-10-29T03:57:32.911Z”}
{“thread”:“main”,“name”:“DeprecationWarning”,“code”:“DEP0005”,“level”:“info”,“message”:“Warning:Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.”,“stack”:“DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n at showFlaggedDeprecation (buffer.js:174:11)\n at new Buffer (buffer.js:257:3)\n at encoder (%%appPath%%/node_modules/superagent/lib/node/index.js:499:12)\n at RequestBase._auth (%%appPath%%/node_modules/superagent/lib/request-base.js:431:44)\n at Request.auth (%%appPath%%/node_modules/superagent/lib/node/index.js:502:15)\n at Analytics.flush (%%appPath%%/node_modules/analytics-node/lib/index.js:152:6)\n at listOnTimeout (internal/timers.js:531:17)\n at processTimers (internal/timers.js:475:7)”,“timestamp”:“2020-10-29T03:57:36.016Z”}
{“thread”:“main”,“class”:“”,“message”:“Creating site folders…”,“level”:“info”,“timestamp”:“2020-10-29T03:57:48.210Z”}
{“thread”:“main”,“class”:“”,“message”:“Copying service config templates…”,“level”:“info”,“timestamp”:“2020-10-29T03:57:48.218Z”}
{“thread”:“main”,“class”:“”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2020-10-29T03:57:48.241Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“dataPath”:“%%site.runData%%/mysql/data”,“level”:“info”,“message”:“Initializing MySQL datadir…”,“timestamp”:“2020-10-29T03:57:48.325Z”}
{“thread”:“main”,“class”:“”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2020-10-29T03:57:54.654Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“%%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/sbin/php-fpm: symbol lookup error: %%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/shared-libs/librt.so.1: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE”,“timestamp”:“2020-10-29T03:57:54.800Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“%%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/sbin/php-fpm: symbol lookup error: %%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/shared-libs/librt.so.1: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE”,“timestamp”:“2020-10-29T03:57:55.320Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-10-29T03:57:54.899791Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+5/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 4427”,“timestamp”:“2020-10-29T03:57:55.525Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-10-29T03:57:54.901928Z 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-10-29T03:57:55.526Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-10-29T03:57:55.499449Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2020-10-29T03:57:55.526Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2020-10-29T03:57:55.526252Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+5/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10003 MySQL Community Server - GPL.”,“timestamp”:“2020-10-29T03:57:55.527Z”}
{“thread”:“main”,“class”:“HostsFileService”,“level”:“info”,“message”:“Updating hosts with”,“timestamp”:“2020-10-29T03:57:55.812Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“%%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/sbin/php-fpm: symbol lookup error: %%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/shared-libs/librt.so.1: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE”,“timestamp”:“2020-10-29T03:57:55.849Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“killed”:false,“code”:127,“signal”:null,“cmd”:“cd "/home/swirat"; 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 iwis.local www.iwis.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”:“2020-10-29T03:57:55.869Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“level”:“warn”,“message”:“%%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/sbin/php-fpm: symbol lookup error: %%userDataPath%%/lightning-services/php-7.4.1+13/bin/linux/shared-libs/librt.so.1: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE”,“timestamp”:“2020-10-29T03:58:01.206Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Setting up MySQL user…”,“level”:“info”,“timestamp”:“2020-10-29T03:58:03.904Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Creating MySQL database…”,“level”:“info”,“timestamp”:“2020-10-29T03:58:03.950Z”}
{“thread”:“main”,“class”:“h”,“message”:“Importing SQL with mysql source”,“level”:“info”,“timestamp”:“2020-10-29T03:58:03.975Z”}
{“thread”:“main”,“class”:“h”,“level”:“info”,“message”:“Importing /home/swirat/Local Sites/iwis/app/sql/local.sql”,“timestamp”:“2020-10-29T03:58:04.097Z”}
{“thread”:“main”,“class”:“h”,“level”:“info”,“message”:“Updated wp-config.php.”,“timestamp”:“2020-10-29T03:58:08.676Z”}
{“thread”:“main”,“class”:“h”,“level”:“warn”,“message”:“Unable to update site domainUnable to get ‘home’ option from WordPress.”,“stack”:“Error: Unable to get ‘home’ option from WordPress.\n at exports.default. (%%appPath%%/main/sites/ChangeSiteDomainService.js:1:1933)\n at Generator.next ()\n at r (%%appPath%%/main/sites/ChangeSiteDomainService.js:1:124)”,“timestamp”:“2020-10-29T03:58:08.692Z”}
{“thread”:“main”,“class”:“h”,“level”:“info”,“message”:“Removing /tmp/local-by-flywheel-aR8YlKhkAn”,“timestamp”:“2020-10-29T03:58:08.693Z”}

$ ls -la /etc/hosts
-rw-rw-r-- 1 root myusername 153 Oct 29 10:47 /etc/hosts

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