Tuesday Sep 02, 2008

Web 7 Admin GUI not showing the proper running status of instance ?

Sometimes, if you set a too restrictive umask (e.g. 007) in the .profile file of the running uid of the web 7 instance server process, you may see the status of the instance server as NOT RUNNING in Admin GUI (even it is actually running). This is because the pid file in the <temp-path> directory is not readable by the admin server process running uid.


e.g. if .profile of uid=web has a umask = 007, then if cu login as web, then switch user to root, then startserv to start up a web 7 instance. If cu runs Admin server process as uid=web too, then the Admin GUI will show instance NOT RUNNING.


If you check cu temp-path at


apple:/export/home/iws7.0u3/https-www/config> grep temp-path server.xml
  <temp-path>/tmp/https-www-8d5fe446</temp-path>


then check the pid file in above dir,


apple:/export/home/iws7.0u3/https-www/config> ls -l /tmp/https-www-8d5fe446
total 16
-rw-rw----   1 root     other          5 Aug 26 19:00 pid
srwxrwx---   1 root     other          0 Aug 26 19:00 webservd-wdog.socket
srwxrwx---   1 root     other          0 Aug 26 19:00 webservd.socket


(note the file permission, which is NOT world-readable, so if Admin process uid is not in this


group, it will not be able to read it properly).


When Admin process runs as uid=web, then it will not read above pid file successfully.
The Admin GUI will display it as NOT RUNNING even when it is actually running.


To fix it, use a less restrictive umask , e.g. umask 022, then the pid file will have :


apple:/export/home/iws7.0u3/https-www/config> ls -l /tmp/https-www-8d5fe446
total 16
-rw-r--r--   1 root     other          5 Aug 27 11:17 pid


(note - now is world-readable)


Then the Admin server process can read it properly and show it as RUNNING in Admin GUI.


The other possible fix is to use a uid in the same group (e.g. group=other in above) to run Admin process.




About

Wing-Yip Walter Lee

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today