http 503 service unavailable on SharePoint

In CategoryWindows, Windows Server Technology

Error: http 503 service unavailable

Whenever I see this error message on share point site, first I look at status of Application pool . If it is disabled/stopped then I look at windows event-viewer log .

There were couple of warning messages followed by an error message in event viewer .

Warning Message 1: Event ID 5059 : Event Source : WAS

“The identity of application pool SharePoint – mysharepoint.loacl443 is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.”

Warning Message 2: Even ID 5057 : Event Source: WAS
“Application pool SharePoint – mysharepoint.loacl443 has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.”

Error Message :
“Application pool SharePoint – mysharepoint.loacl443 has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.”

sharepoint event viewer errors

sharepoint event viewer errors

As a solution ,

I have changed application identity account password and set the same password for that service account from share point management shell .

Set-SPManagedAccount -identity MYDOMAIN\serviceaccount_user -NewPassword (Converto-Securestring “P@ssword” -AsPlainText -Force) -SetNewPassword

sharepoint web application pool settings

sharepoint web application pool settings

Then restarted WAS service from command prompt window ( run as Administrator )
net stop was /y
net start was

net start w3svc

ngrep on Cent OS 7

In CategoryGeneral

Tried to install ngrep on Cent OS 7 with yum install ngrep on Cent OS 7 and it returned “No package ngrep available.
Error: Nothing to do
” then tried to install ngrep rpm directly rpm -ivh which is meant for el6 and it returned error like
error: Failed dependencies: is needed by ngrep-1.45-1.el6.rf.x86_64

Then installed latest epel package

rpm -ivh

and then yum install ngrep was happy with that

ngrep.x86_64 0:1.45-17.git20131221.16ba99a.el7


Install Windows Java based desktop application on Mac

In CategoryMacintosh

If you are using Mac and have some windows desktop application which is java run time environment dependent ,you have few choices for running it on a Macintosh .

1 .dual boot with windows by using bootcamp.
You will see good performance with this solution as the entire system resources are spared for windows operating system. Downsides of this , You must have a licensed copy of windows OS and you must restart your computer in order to switch between Mac and windows desktops.

2. Using VMware , Parallels desktop.

With this solution you don’t need to restart your computer to enter windows operating system. Major disadvantage of this is system resources are shared between Mac and Windows as you will be running both operating systems simultaneously.

3. Install Wine on Mac.
Unlike VMware/parallels desktop, Wine will create a compatible layer of windows environment by converting windows API calls into Linux/free BSD POSIX calls .So running wine on Mac will save some system resources as wine itself is not a emulator. Downside of wine is , Not all applications are compatible with wine .

If you are having some JRE dependent windows application to run it using wine ,First install java for windows from here . Newer versions of JRE may not run well on Wine so choose some older version of JAVA from “Previous Releases – Java Archive” page . For example choose jre-6u25-windows-x64.exe .

Now you can install the downloaded file in several ways by right clicking on it and open with wine or open wine menu –>control panel —> Add and remove programs —>Install and navigate to downloaded file .
Now install the java based windows application and choose the installed application to run .


I had an application called VOS 3000 client which runs on windows only . I just installed it through wine and started using it on my MacBook Pro.

Working with HUAWEI GSM modem on linux

In CategoryGeneral

When I connected the Huawei modem I could see only  3 additional sg0 ,sg1, sdb  entries in   /dev  and there are no USBtty0 ,USBtty1,USBtty2 which supposed to be cerated by Huawei modem .

By default linux will detect HUAWEI modem as usb storage /cd drive . we must switch it to USB serial inorder to use it as modem .

you can do this with usb_modswitch .  If you dont find usb_modswitch in /lib/udev you can install it from here.

/lib/udev/usb_modeswitch –vendor 0x12d1 –product 0x1446 –type option-zerocd

You can create config file in /etc/udev/rule.d/15huawei-1773.rules

SUBSYSTEM==”usb”, SYSFS{idProduct}==”1446″, SYSFS{idVendor}==”12d1″, RUN+=”/lib/udev/usb_modeswitch –vendor 0x12d1 –product 0x1446 –type option-zerocd”

Restart the system and check   lsusb -vvvv | less and note down product id and vendor id information .

You can add this information in /etc/modprobe.d/modprobe.conf.

My /etc/modprobe.d/modprobe.conf  has single line like below

options usbserial vendor=0x12d1 product=0x140c

Now load the usb serial with command  modprobe usbserial


Installing usb_modeswitch to connect usb gsm modems on CentOs

In CategoryGeneral

I have a  huweai e1732 modem which i want to use as simple smsgateway for my personal use and outgoing voice trunk for asterisk .

As soon as I connect it to usb ,linux detects it as external storage and never shows as ttyUSB in /dev list .

To make it work as serial modem i had to install usb_modeswitch

[root@sriba usb_modeswitch.d]# yum install usb_modeswitch
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base:
* epel:
* extras:
* updates:
Setting up Install Process
No package usb_modeswitch available.

This package is in rpm forge

import the dpg key

rpm --import

verify the package download
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm

Instaleld the package
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm