Technical Notebook |
If you are having problems on a recent cPanel installation on CentOS linux where /scripts/fixrndc starts and never completes this may fix your issue. I have noted that this is currently an issue on (at least) cPanel/WHM Release 11.32.3 but may also affect other versions.
After chatting with Michael from cPanel Support he has stated: “The basic issue is that on Centos 6 the /etc/init.d/named script needs to use the “portrelease” command before it can bind port 953. Such a line isn’t present in the default /etc/init.d/named script provided by the cPanel installer. Reinstalling bind installs a working /etc/init.d/named.”
This can manifest in the following ways (I have found so far):
These are the cases I have seen thus far. If you run /scripts/rndc manually you will likely get the following output:
warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
Restarting named
warn [fixrndc] /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
The simple fix for this is to reinstall BIND using yum. All you need to do is execute:
yum reinstall bind
And the problem will be fixed. Michael has informed me that this will be fixed in a future update to cPanel. Kudos to him and the cPanel support team for getting me back up and running in RECORD fast time.
Stuart
In the realm of computers it is definitely not uncommon to get the occasional, or sometimes annoyingly regular error. However, one thing that many people do not know is some simple steps that can be taken to make a support team’s life easier in diagnosing the issue.
First and foremost it is important for both you, and who will be supporting you to realise that it is possible that your level of knowledge surrounding the error will be lower than that of the support team. While this is not always the case, (I will happily admit I have had clients teach me a trick or two before) it is the general rule of thumb.
A good support person will gauge the level of knowledge of the person who is seeking assistance and balance their explanations to a level that can be understood. However if you find someone is talking to you on too low, or too high a technical level, never be afraid to let them know and try to get them to talk to you on your level of knowledge. By doing so you can work more effectively together and also learn things which may help you in future.
The checklist is something that those of us in support use day to day. Even as a systems administrator, I collect this sort of information to pass on to vendors for support and so on. However whatever your level of knowledge of computers, or level of support you are liaising with, this list can be of great use.
So next time you have an error on your computer note down the following information, it will make support’s life easier, result in a much faster resolution for you and assist support in documenting the issue for future reference.
Most of all, don’t be afraid of telling support exactly what happened, we all start out somewhere and often support will come across an issue that simply needs user training, by us being able to pass knowledge on to you it is likely that you can do the same for someone else to make all our lives easier.
However if it is something that you have done wrong, often it will save support a lot of time and effort knowing exactly what has occurred, I am always of the mindset that if you do something wrong, then tell me so that I can fix it faster I will be a lot less unimpressed than if I have to find it out the hard way.
By noting down these details, whoever will be helping you out with your issue will be able to far more easily diagnose what occurred help you out. If you are having an issue with a problem you purchased on the internet, don’t be afraid to contact their support too. By providing the information above you have a great start to finding out exactly what problem may have occurred and should be able to work towards a resolution.
So whether you are a beginner in the tech world or a seasoned veteran like myself what are your thoughts. Have I missed anything out here?
Stuart
I have been an avid user of CrashPlan for quite some time, therefore I have dabbled in how to tweak it under the hood (especially in the case of Linux systems). Recently I had the need to move the tmp folder for Crashplan off my primary HDD and onto my secondary HDD. For the purpose of this article I will not go into why you might want to do this, that is up to you. However one issue I found was that there was no documentation anywhere describing how you would achieve this on Mac OSX Lion (and this should in theory work for any other recent version of OSX).
So, if you would like to have a custom temp directory for Crashplan on OSX perform the following steps:
Please note, if/when an update is pushed out by CrashPlan this may get overwritten so you may need to apply the fix at such a time.
Hope this helps someone else out at some point.
Stuart
So as I was lucky enough to have a few days off over the break I felt it was time to haul my butt into gear and get some development work done. I have managed to get a good few productive days work in and have the following outputs to share with the world.
Firstly for you bloggers, if you have heard of bit.ly and other such URL shortening services, you might be curious to check out YOURLS, which is essentially a self hosted URL shortener. I will leave it to your own decision as to why that might tickle your fancy but I have written a plugin for YOURLS which provides a social toolbar on shortened URLS.
You can check out the YOURLS Social Bar page on my Technical Wiki for all the details, if you have any feature requests please let me know so that I can start working towards the next major release.
The second item I have been working on is how to get the Atlassian Crowd Authentication connector for Apache compiled on a CentOS System running cPanel. To be honest unless you use the Atlassian suite of products AND run a cPanel server this second one probably won’t interest any of you that much but hey, it is definitely an achievement that I am proud of. You can check the how-to out on my wiki –> Compile Atlassian’s Crowd authenticator on CentOS server with cPanel.
So that has been my few days relaxation and enjoyment
. Geeks and Open Source software FOR THE WIN
.
Stuart
After having a good handful of projects that I have put up on vWorker (formerly RentACoder.com) I thought it was time to put together some information on lessons that I have learned, some gotchas that could be useful for others to know and things that you should look out for.
The document was written with my experiences from vWorker in mind however the same processes and ideas could be applied to any such project site including sites such as Freelancer.com.
I look forward to feedback, if you have any other experiences, hints or tips please let me know and I will incorporate them into the document.
Guide to putting projects onto vWorker/RentACoder/Freelancer.com
Stuart
Update:
Turns out that there *is* an uninstaller. No idea if it works or not but to access it, right click the installer package and select “Show Contents” then under the packages directory there is an uninstaller. This was apparent in the install program however when you selected to uninstall you could not select next. Thanks to @gwaterhouse for that one. so if you are still having issues the below will also work for you.
—————
If you took the silly plunge and installed the Apple OSX Broadband Tuner on your OSX Machine only to find that there in fact was no “optional uninstall” available for it fear not, read on to find out how to remove the changes.
Firstly, the requisite disclaimer. DO THIS AT YOUR OWN RISK using the sudo command can be dangerous in nooby hands.
Simple Steps:
Lesson learned… don’t trust that an uninstall will work, I have to say Apple if you have something on your site that makes such intricate changes to the system PLEASE provide an uninstaller if you are going to put it up there.
——–
Update: A mate said that there is in fact an uninstaller in there. No idea how but this is the version I got and there ain’t be no uninstaller in there: