/bin/ksh -x /etc/init.d/iw.server start
+ iwopenapiboot start+ 1>> /Interwoven/TeamSite/local/logs/iwserver.log 2>& 1+ RESULT=21+ [ 21 -ne 0 ]+ echo ERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwserver.lo
# /bin/ksh -x /etc/init.d/iw.server start+ PATH=/usr/sbin:/sbin:/usr/bin+ + basename /etc/init.d/iw.serverMYNAME=iw.server+ SCCSID=@(#)iw.server.sh 105.1 97/05/23+ VERSION=6.5.0 Build 41235 SYM Interwoven 20040928+ USAGE=Usage: iw.server [-h|-v] { start | stop | stop_all } Start up or shutdown iwserver with logging. -h this message -v version string+ + iwgethomeIW_HOME=/Interwoven/TeamSite+ RESULT=0+ [ 0 -ne 0 ]+ export IW_HOME+ PATH=/usr/bin:/Interwoven/TeamSite/private/bin:/Interwoven/TeamSite/bin:/usr/sbin:/sbin:/usr/bin+ export PATH+ IWARGSET=0+ ARG=+ [ 1 -ne 0 ]+ [ %start = %-v ]+ [ %start = %-h ]+ [ 0 -eq 0 ]+ IWARGSET=1+ ARG=start+ shift+ [ 0 -ne 0 ]+ iwgetlog -h+ 1> /dev/null 2>& 1+ RESULT=0+ [ 0 -ne 0 ]+ + iwgetlogIWLOGFILE=/Interwoven/TeamSite/local/logs/iwserver.log+ + dirname /Interwoven/TeamSite/local/logs/iwserver.logIWLOGDIR=/Interwoven/TeamSite/local/logs+ [ ! -d /Interwoven/TeamSite/local/logs ]+ iwetcboot -h+ 1> /dev/null 2>& 1+ RESULT=0+ [ 0 -ne 0 ]+ echo Interwoven TeamSite starting ...Interwoven TeamSite starting ...+ date+ echo iw.server: ---------- STARTING: Sun Aug 26 23:06:22 EDT 2007+ 1>> /Interwoven/TeamSite/local/logs/iwserver.log 2>& 1+ iwetcboot start+ 1>> /Interwoven/TeamSite/local/logs/iwserver.log 2>& 1+ RESULT=0+ [ 0 -ne 0 ]+ iwevent start+ 1>> /Interwoven/TeamSite/local/logs/iwserver.log 2>& 1+ RESULT=0+ [ 0 -ne 0 ]+ iwopenapiboot start+ 1>> /Interwoven/TeamSite/local/logs/iwserver.log 2>& 1+ RESULT=21+ [ 21 -ne 0 ]+ echo ERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwserver.logERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwserver.log+ exit 21
# /bin/ksh -x ./iwopenapiboot start+ PATH=/usr/sbin:/usr/bin:/usr/sbin:/sbin:/usr/bin+ + basename ./iwopenapibootMYNAME=iwopenapiboot+ VERSION=6.5.0 Build 41235 SYM Interwoven 20040928+ USAGE=Usage: iwopenapiboot [-h|-v] { start | stop | restart } Start up or shut down Interwoven OpenAPI with logging. -h this message -v version string+ + iwgethomeIW_HOME=/Interwoven/TeamSite+ RESULT=0+ [ 0 -ne 0 ]+ PATH=/usr/bin:/Interwoven/TeamSite/bin:/usr/sbin:/usr/bin:/usr/sbin:/sbin:/usr/bin+ export PATH+ JAVA_HOME=/Interwoven/TeamSite/tools/java+ OPENAPI_DIR=/Interwoven/TeamSite/iwopenapi+ CLASSPATH=+ export IW_HOME JAVA_HOME CLASSPATH+ IWARGSET=0+ ARG=+ [ 1 -ne 0 ]+ [ %start = %-v ]+ [ %start = %-h ]+ [ 0 -eq 0 ]+ IWARGSET=1+ ARG=start+ shift+ [ 0 -ne 0 ]+ iwgetlog -h+ 1> /dev/null 2>& 1+ RESULT=0+ export RESULT+ [ 0 -ne 0 ]+ + iwgetlocation iwlogsIWLOGFILE=/Interwoven/TeamSite/local/logs/iwui/openapi.log+ + dirname /Interwoven/TeamSite/local/logs/iwui/openapi.logIWLOGDIR=/Interwoven/TeamSite/local/logs/iwui+ [ ! -d /Interwoven/TeamSite/local/logs/iwui ]+ [ ! -x /Interwoven/TeamSite/local/logs/iwui/openapi.log ]+ touch /Interwoven/TeamSite/local/logs/iwui/openapi.log+ date+ echo iwopenapiboot: ---------- STARTING: Sun Aug 26 23:17:25 EDT 2007+ 1>> /Interwoven/TeamSite/local/logs/iwui/openapi.log 2>& 1+ iwui_user=iwui+ + id iwui+ sed -n -e s/^uid=\([0-9]*\).*/\1/piwui_uid=102+ 1>> /Interwoven/TeamSite/local/logs/iwui/openapi.log 2>& 1+ [ x102 = x ]+ chown iwui:nobody /Interwoven/TeamSite/local/logs/iwui/openapi.log+ chmod 664 /Interwoven/TeamSite/local/logs/iwui/openapi.log+ status 1+ RESULT=21+ export RESULT+ [ 21 -eq 0 ]+ echo Interwoven OpenAPI starting ...Interwoven OpenAPI starting ...+ /bin/su iwui -c nohup /Interwoven/TeamSite/iwopenapi/iwopenapi 1>>/Interwoven/TeamSite/local/logs/iwui/openapi.log 2>&1 &+ RESULT=0+ export RESULT+ [ 0 -ne 0 ]+ status 30+ RESULT=21+ export RESULT+ [ 21 -ne 0 ]+ echo ERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwui/openapi.logERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwui/openapi.log+ exit 21#
...+ chown iwui:nobody /Interwoven/TeamSite/local/logs/iwui/openapi.log+ chmod 664 /Interwoven/TeamSite/local/logs/iwui/openapi.log+ status 1+ RESULT=21+ export RESULT+ [ 21 -eq 0 ]+ echo Interwoven OpenAPI starting ...Interwoven OpenAPI starting ...+ /bin/su iwui -c nohup /Interwoven/TeamSite/iwopenapi/iwopenapi 1>>/Interwoven/TeamSite/local/logs/iwui/openapi.log 2>&1 &+ RESULT=0+ export RESULT+ [ 0 -ne 0 ]+ status 30+ RESULT=21+ export RESULT+ [ 21 -ne 0 ]+ echo ERROR: Failed to start. Check /Interwoven/TeamSite/local/logs/iwui/openapi.log...
Things to check:existence of user "iwui" in /etc/passwd (I believe that was already verified in the script)existence of "nobody" in /etc/group
existence of "chown" and "chmod" on PATH (they should be there)
# which chown/usr/bin/chown# which chmod/usr/bin/chmod
# /bin/ksh -x chown iwui:nobody /Interwoven/TeamSite/local/logs/iwui/openapi.log/bin/ksh: chown: cannot execute
existence of iwhome/iwopenapi/iwopenapi (doesn't seem to exist in my 6.7.1 Windows environment - not sure about a 6.5 Solaris environment)
# /bin/ksh -x iwopenapi+ PATH=/usr/sbin:/sbin:/usr/bin+ + iwgethomeIW_HOME=/Interwoven/TeamSite+ + basename iwopenapiMYNAME=iwopenapi+ OPENAPI_DIR=/Interwoven/TeamSite/iwopenapi+ JAVA_HOME=/Interwoven/TeamSite/tools/java+ LAX_FILE=/Interwoven/TeamSite/iwopenapi/IWServiceServer.lax+ LD_LIBRARY_PATH=/Interwoven/TeamSite/lib:+ SHLIB_PATH=/Interwoven/TeamSite/lib:+ export LD_LIBRARY_PATH SHLIB_PATH+ [ = -v ]+ + laxprop_to_javaopt -D !/^lax\.*/JAVA_PROPERTIES=-Djava.library.path=/iwopenapi-Djava.rmi.server.codebase=file:////iwopenapi/openapi_client.jar-Djava.security.policy=/iwopenapi/openapi.policy+ + laxprop_to_javaopt -Xss /^lax.nl.java.option.java.stack.size.max=/JAVA_NATIVE_STACK_OPT=-Xss4000000+ CLASSPATH=/Interwoven/TeamSite/iwopenapi/openapi_server.jar:/Interwoven/TeamSite/iwopenapi/openapi_client.jar:/Interwoven/TeamSite/iwopenapi/collections.jar:/Interwoven/TeamSite/iwopenapi/xercesImpl.jar:/Interwoven/TeamSite/iwopenapi/xalan.jar+ MAIN_CLASS=com.interwoven.api.OpenAPIServer+ + laxprop_to_javaopt /^lax.command.line.args=/OPENAPI_CMD_ARGS=-p /iwopenapi/openapi.cfg+ DEBUG_PROG=/Interwoven/TeamSite/private/bin/iwnamedexec iwopenapi+ export DEBUG_PROG+ cd /+ [ -n ]+ exec /Interwoven/TeamSite/tools/java/bin/java -server -Xss4000000 -Djava.library.path=/iwopenapi -Djava.rmi.server.codebase=file:////iwopenapi/openapi_client.jar -Djava.security.policy=/iwopenapi/openapi.policy -classpath /Interwoven/TeamSite/iwopenapi/openapi_server.jar:/Interwoven/TeamSite/iwopenapi/openapi_client.jar:/Interwoven/TeamSite/iwopenapi/collections.jar:/Interwoven/TeamSite/iwopenapi/xercesImpl.jar:/Interwoven/TeamSite/iwopenapi/xalan.jar com.interwoven.api.OpenAPIServer -p /iwopenapi/openapi.cfgUsage: OpenAPIServer [-h] [-p port] openapi_cfg_path Starts an RMI registry and Interwoven OpenAPI server -h This help message -p The TCP port for the server's RMI registry (default 1099)#
+ /bin/su iwui -c nohup /Interwoven/TeamSite/iwopenapi/iwopenapi 1>>/Interwoven/TeamSite/local/logs/iwui/openapi.log 2>&1 &
ownership / group-ownership / access bits on iwhome/local/logs/iwui/openapi.logthings like that ...You could also try running each of the commands shown in that output directly via root / sudo in your shell - as they might display a bit more information than what is being captured in the script output.
# ls -ltotal 16-rw-rw-r-- 1 iwui nobody 3534 Aug 27 08:33 openapi.log-rw-r--r-- 1 iwui other 3118 Aug 26 23:06 servletd.log
+ /bin/su iwui -c nohup /Interwoven/TeamSite/iwopenapi/iwopenapi 1>>/Interwoven/TeamSite/local/logs/iwui/openapi.log 2>&1 &+ RESULT=0
One thing I have seen with 6.1, + /bin/su iwui -c nohup /Interwoven/TeamSite/iwopenapi/iwopenapi 1>>/Interwoven/TeamSite/local/logs/iwui/openapi.log 2>&1 &+ RESULT=0 What shell has been assigned to iwui ? I have seen issue when an su to iwui happens and the commands were set for /bin/sh and it was assigned bash, I got similar errors
In etc/passwd iwui had /bin/sh assigned. I tried changing it with passwd -e command to /bin/zh and /bin/ksh, and I got the same result
nohup /Interwoven/TeamSite/tools/java/bin/java -server -Xss4000000 -Djava.library.path=/Interwoven/TeamSite/iwopenapi -Djava.rmi.server.codebase=file:////Interwoven/TeamSite/iwopenapi/openapi_client.jar -Djava.security.policy=/Interwoven/TeamSite/iwopenapi/openapi.policy -classpath /Interwoven/TeamSite/iwopenapi/openapi_server.jar:/Interwoven/TeamSite/iwopenapi/openapi_client.jar:/Interwoven/TeamSite/iwopenapi/collections.jar:/Interwoven/TeamSite/iwopenapi/xercesImpl.jar:/Interwoven/TeamSite/iwopenapi/xalan.jar com.interwoven.api.OpenAPIServer -p 1099 /Interwoven/TeamSite/iwopenapi/openapi.cfg &