Have you ever come across an error says when the user actually doesn’t exist on the system? I have !!! This article talks about what to do in this situation. Assume you are trying add an user called ‘Mark’ and you get following error. useradd: user ‘mark’ already exists The error is very straightforward. It […]
How to check why a Linux process is hanging
In this article, let me explain how you can check why a Linux process is hanging. In most of the occasions, We, the system admins 🙂 usually restart an application if it is hanging. We are forced to do this when we are firefighting and this could backfire on us later. So finding the root […]
Fix for ‘Invalid byte sequence for encoding UTF8’ error while restoring PostgreSQL database
In this article, we will see how you can fix error ‘invalid byte sequence for encoding UTF8’ while restoring a PostgreSQL database. At work, I got a task to move DBs which has ASCII encoding to UTF8 encoding. Let me first confess that the ASCII DBs was not created by intention, someone accidentally created it!!! […]
Fix for ‘ImportError: No module named pkg_resources’ error
You will see this error when you try to install a PIPÂ package. This error message means Python setuptools is missing or broken. $sudo pip2.7 Traceback (most recent call last): File “/usr/bin/pip2.7”, line 6, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources #Fix1: Just re-install the Python setuptools to fix the […]
Fix for ‘jenkins dead but pid file exists’ error
Here is the Fix for error jenkins dead but pid file exists. You see this error when you check Jenkins service status. One important thing to note that you won’t find this error while starting the Jenkins service. [root@localhost vagrant]# /etc/init.d/jenkins start Starting Jenkins [ OK ] [root@localhost vagrant]# /etc/init.d/jenkins status jenkins dead but […]