We rebooted our Lawson test server, and now lase does not want to start. It's a fresh reboot, so I'm not sure why we are receiving an "Address already in use" message. And we have verified that Tivoli is running.
9.0.1.12 Env running on HP Integrity 11iv3
Any ideas?
Below is the error that we are receiving in the lase_server_0_0.log file:
17-11-09 09:26:36:964 1 default.SEVERE server.SecurityServer.initializeServer(de
fault): Error initializing server. Security server exiting ... com.lawson.lawsec.authen.SecuredConnectionException:Got exception while connecti ng to server lawtest.growmark.com on port 9511. Message java.net.BindException: Address already in use (errno:226) Stack Trace : java.net.BindException: Address already in use (errno:226)
It looks like the port is already active. Could 2 instances be started? You could check netstat or equivalent on the server to see what ports are active.
Please try this.
cd $LAWDIR/system
less lsservice.properties
get the server.default.port
netstat -an | grep server.default port
the netstat command should show you what is grabbing the port (hopefully)
When I've seen this in the past it was usually ladebug grabbing the port. That doesn't make sense after a reboot though.
netstat -a | grep 9511
netstat -a | grep 9510 tcp 0 0 *.9510 *.* LISTEN
And this is the only thing running when we do a ps -ef | grep law
root 12620 1 0 09:14:07 ? 0:06 /opt/java6/bin/IA64W/java -Dcom. lawson.lawdir=/law90/lawson -Dcom.lawson.ladbdir=/law90/DB -Dcom.lawson.gendir=/ law90/gen -clas
Try running a stoplaw, then make sure all pids are gone.
then check for hung ipcs
echo $LAWIPC
ipcs |grep 0x7[0,c,d,e]## (where ## is the last 2 characters for the value of LAWIPC)
If you find any, use the ipcrm command to remove them... or I would think another reboot would clear them.
Example:
$ echo $LAWIPC
0x5d
$ ipcs |grep 0x7[0,c,d,e]5d
m 30408726 0x7e5d0000 --rw------- root lawson
s 68157616 0x7e5d0000 --ra------- root lawson
$ sudo ipcrm -m 30408726
$ sudo ipcrm -s 68157616
Here is the full process I used to follow for this. Sorry it took me awhile to find it.
step 1. go to $LAWDIR/system
step 2. more lsservice.properties
get the server.default.port=40014
you just need the 40014 part
step 3. netstat -an | grep 40014
it will show that the port is listening (hopefully)
step 4.
sudo lsof | grep 40004
$ sudo lsof | grep 40014
lsof: WARNING: compiled for AIX version 6.1.3.0; this is 6.1.0.0.
su_ladebu 1249728 lawson 5u IPv4 0xf100070013b463b0 0t0 TCP *:40014 (LISTEN)
note the pid for su_ladebug
step 5.
ps -ef | grep 1249728
lawson 1249728 1 0 00:55:38 - 0:00 /law/lawt/gen/bin/ladebug -B
step 6.
kill ladebug
sudo kill -9 1249728
step 7 .
start lawson
What did the lsof command come back with?
example:
lawtest: sudo lsof | grep 41000 [sudo] password for u6883: lacobrts 16705 lawson 10u IPv4 163436949 0t0 TCP lawt10.intra.grenergy.com:42226->lawt10.intra.grenergy.com:41000 (ESTABLISHED) java 24186 root 87u IPv4 3970287 0t0 TCP *:41000 (LISTEN) java 24186 root 117u IPv4 163436952 0t0 TCP lawt10.intra.grenergy.com:41000->lawt10.intra.grenergy.com:42226 (ESTABLISHED)