2012年3月6日星期二

Acclerys MS:Gateway start failed - process 31385 is not running

昨天孙老师给我发了一封邮件,让我给一个学生打开MS(Material Studio 5.0)。
今天首先在服务器上看了下web页面,发现没打开,于是就上服务器,直接启动。
以前写了一个脚本,一下在启动license和gateway。
可是这次license启动了,但是到gateway那里卡住了,进行不下去了。
于是我强行中断,手动运行gwrestart,发现如下信息:
Gateway start failed - process 31385 is not running。
不管怎么启动都不行,后来发现有一个日志文件:
/public/software/matsoft/Accelrys/MaterialsStudio50/etc/Gateway/root_default/httpd/logs/httpd_error_log.txt
查看了一下发现如下错误:
[Tue Mar 06 15:31:10 2012] [error] httpd: could not log pid to file /public/software/matsoft/Accelrys/MaterialsStudio50/etc/Gateway/configurations/default/httpd.pid
这下大致明白了是为什么,于是查看这个httpd.pid文件,发现文件权限是root的。
估计是哪次使用root来启动了,后来非正常退出了,导致进程标识文件还在。当使用普通用户再次启动的时候需要覆盖掉这个文件,发现删不掉,因此进程就启动不了了。
使用root账户删掉这个文件之后,gateway被成功运行。