May 27, 20188 yr Hi all, I followed this guide to install dnsmasq on my box up until about step 7 when I realised that actually I wasn't too fussed about doing it anyway. I've since spent the best part of two days trying to uninstall the damned thing! It's not particularly in the way but I feel that my failed attempts have highlighted a flaw in my underlying knowledge of unRAID, so I'm reaching out for help. So far I have done the following: 'removepkg dnsmasq' This resulted in: 'Removing package /var/log/packages/dnsmasq-2.79-x86_64-1... Removing files: cat: '/var/log/scripts/*': No such file or directory' So I tried 'removepkg /boot/config/dnsmasq/dnsmasq-2.57-i486-1.txz' which removed a bunch of stuff as I'd expect with no errors. After this there were still a bunch of files & directories left over, for example: /etc/dnsmasq.d /etc/dnsmasq.conf /etc/rc.d/rc.dnsmasq /usr/sbin/dnsmasq /var/lib/libvirt/dnsmasq/ So I deleted these, along with 'installpkg /boot/config/custom/dnsmasq-2.57-i486-1.txz cp /boot/config/custom/dnsmasq.conf /etc chmod +x /etc/rc.d/rc.dnsmasq /etc/rc.d/rc.dnsmasq start' from my go file, and deleted the dnsmasq directory I'd made inside '/boot/config/' which contained the downloaded package. As far as I can tell, there should now be nothing on my system that resembles any remnants of dnsmasq… … However as soon as I reboot, all the files listed above have come back (except anything under '/boot/config/dnsmasq/' and the changes to my go file), and then whenever I start the array, the dnsmasq process starts back up. I've been trying to research and dig further but I have truly exhausted myself now, so I'm hoping someone can point me in the right direction! Many many thanks in advance Edited May 27, 20188 yr by rwb97 Hit submit too soon :facepalm:
May 27, 20188 yr I can't really help with the clean up but I can tell you that what you installed was a 32-bit package, which isn't supported by 64-bit unRAID 6. That guide is four years old and unRAID has come a long way in that time.
May 27, 20188 yr 6 hours ago, rwb97 said: dnsmasq-2.57-i486-1.txz Search your USB stick for that file or any other file name that you downloaded, and delete it. Failing that, do a google search for files that should be on an unraid usb and find the wiki that describes in detail what is there by default.
May 28, 20188 yr Community Expert 18 hours ago, jonathanm said: Failing that, do a google search for files that should be on an unraid usb and find the wiki that describes in detail what is there by default. Here is the link to a WIKI to findthose: https://lime-technology.com/wiki/Files_on_v6_boot_drive
June 10, 20188 yr Author Thanks everyone for your suggestions so far... I've diffed my flash disk with a bone stock one and removed everything I could possibly think is dnsmasq related. Unfortunately I'm pretty certain that it's not something on the flash disk that unraid boots from. Even with a new USB stick and a fresh install, as soon as I start the array with my disks, I see dnsmasq stuff in the logs and the files come back. Here's those logs: Jun 10 06:21:04 Tower kernel: virbr0: port 1(virbr0-nic) entered listening stateJun 10 06:21:04 Tower dnsmasq[4792]: started, version 2.79 cachesize 150Jun 10 06:21:04 Tower dnsmasq[4792]: compile time options: IPv6 GNU-getopt no-DBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotifyJun 10 06:21:04 Tower dnsmasq-dhcp[4792]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1hJun 10 06:21:04 Tower dnsmasq-dhcp[4792]: DHCP, sockets bound exclusively to interface virbr0Jun 10 06:21:04 Tower dnsmasq[4792]: reading /etc/resolv.confJun 10 06:21:04 Tower dnsmasq[4792]: using nameserver 194.168.4.100#53Jun 10 06:21:04 Tower dnsmasq[4792]: using nameserver 194.168.8.100#53Jun 10 06:21:04 Tower dnsmasq[4792]: read /etc/hosts - 2 addressesJun 10 06:21:04 Tower dnsmasq[4792]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addressesJun 10 06:21:04 Tower dnsmasq-dhcp[4792]: read /var/lib/libvirt/dnsmasq/default.hostsfileJun 10 06:21:04 Tower kernel: virbr0: port 1(virbr0-nic) entered disabled state If I remove the disks from the array and give it a blank one just so I can start it, the above doesn't happen. Edited June 10, 20188 yr by rwb97
June 10, 20188 yr Community Expert On 5/27/2018 at 11:37 AM, rwb97 said: After this there were still a bunch of files & directories left over, for example: /etc/dnsmasq.d /etc/dnsmasq.conf /etc/rc.d/rc.dnsmasq /usr/sbin/dnsmasq /var/lib/libvirt/dnsmasq/ OK. First thing. The list of files and/or directories that you list above are actually on a RAM disk. (Very time you boot unRAID , its sets up this RAM disk and INSTALLS the complete Linux OS from scratch and then installs the files that unRAID requires to run. So deleting those files is futile. They will just be reinstalled every time you reboot. Second thing: Make a backup copy of your Flash Drive NOW!!!! Now, I had a quick look at the link you provided in your first post and found this quote: Quote The default Main Menu is located in /mnt/cache/tftp/pxelinux.cfg and it's called default. This means that the install process that you followed installed folder(s) on your cache drive (that is what the /mnt/cache is pointing to). I did NOT study that install procedure in detail but you are going to figure how to uninstall that package from those instructions. If all else fails, delete that directory--- tftp ---- from your cache drive. (Hopefully, it is only using one directory to store everything in!) At the very last resort, you may have to reformat your Flash Drive and reinstall unRAID. Use this section of the version 6 Upgrade WIKI to determine which files to copy over from your backup: http://lime-technology.com/wiki/index.php/Upgrading_to_UnRAID_v6#Performing_the_upgrade Hope this helps EDIT: After you have make a backup of your Flash Drive, delete the go file from the config folder/directory on the Flash Drive. Copy the default go file from a a current version of unRAID distribution in its place. Edited June 10, 20188 yr by Frank1940
June 12, 20188 yr Author Thanks for your time and effort helping me @Frank1940 - Much appreciated! I'm starting to think I've been a bit of a numpty... Is some manner of dnsmasq already packaged with unraid? Precleared drives, reformatted flash, and the dnsmasq events in my log still happen.
June 12, 20188 yr 1 hour ago, rwb97 said: Is some manner of dnsmasq already packaged with unraid From the 6.5.1 release notes On 4/23/2018 at 5:46 PM, limetech said: dnsmasq: version 2.79
Archived
This topic is now archived and is closed to further replies.