Sunday, April 26, 2020

Tech Notes:- Filebeat fails with the message Exiting: Registry file path must be a file. /var/lib/filebeat/registry is a directory

Filebeat fails with the message 

"Exiting: Registry file path must be a file. /var/lib/filebeat/registry is a directory.

This usually happens when you have installed a higher version of filebeat, removed it, and then installed a lower version. In my case, I installed version 7.x and then I found that it is not compatible with Elasticsearch 6.x.So I removed it and then installed filebeat 6.8.x.It worked initially and then after a restart, this error started appearing. The solution is simple. Just remove the directory /var/lib/filebeat/registry and then start filebeat

Friday, April 12, 2019

Tech Notes:-How to copy files from Windows Subsystem For Linux to Windows

If you work on Windows Subsystem for Linux  either Ubuntu or OpenSuse, I am sure you have faced with situations where you had to copy files from Ubuntu or OpenSuse to Windows.

If you are not aware how to do it. Here are the easy steps

  • Right-click the start and then run , paste the below path and press enter     
    •     %userprofile%\AppData\Local\Packages
  • Now in the windows explorere search packages option type ubuntu. This should show the Ubuntu folder with the name something like 
    • CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc
  • Open this folder and browse to LocalState --> rootfs
  • Now this is the root file system of your Ubuntu.Mostly your files will be saved under /home/UserName/
  • Now you should be able to copy the files using windows explorer itself
Related Posts Plugin for WordPress, Blogger...