Appservers startup another machine

Posted by Elsworth Burmeister on 13-Sep-2017 01:53

Hi guys

Im trying to start appservers from another machine. this is the scenario:

machine 1: db server (linx) 11.3

Machine 2: appserver (windows) 11.7

Machine 1 has a script to start the progress db. in this script i added the following line to start the appserver on the windows machine.

asbman -name asTest -host machine 2 -user administrator < /usr/local/bin/passwd.txt -start

This works and the appserver starts up perfectly however there is an error that gets thrown in the process.

what gets displayed to screen from machine 1:

07:54:55 BROKER The startup of this database requires 25Mb of shared memory. Maximum segment size is 128Mb.
07:54:56 BROKER 0: Multi-user session begin. (333)
07:54:56 BROKER 0: Before Image Log Initialisation at block 137 offset 4694. (15321)
07:54:56 BROKER 0: Login by root on /dev/pts/16. (452)
07:54:56 BROKER 0: Started for midasme using tcp IPV4 address 0.0.0.0, pid 23948. (5644)
OpenEdge Release 11.3 as of Wed Jul 17 16:45:17 EDT 2013

Error getting current host name: (8282)

Connecting to Progress AdminServer using rmi://stig:20931/Chimera (8280)
Searching for asTest (8288)
Connecting to asTest (8276)
Starting asTest. Check status. (8296)

Highlighted is the error that is thrown at the time of trying to start the appserver. Host files are configured correctly as well as from machine 1 it does find machine 2 and start the appserver. Im just trying to resolve the error thrown as the process works correctly.

any ideas?

 

All Replies

Posted by Arun Kumar Mohapatra on 13-Sep-2017 05:20

Hi,

I think it seems to be the problem with /etc/hosts file setting as a result of that it is unable to get localhost ip address and localhost name and resulting "error getting current hostname" error.

if possible you could run below java tester program to confirm this.

import java.net.InetAddress;

import java.net.UnknownHostException;

public class InetAddressTest {

public static void main(String[] args) {

String localHostName = "no name";

String localHostAddress = "no address";

try {

localHostName = InetAddress.getLocalHost().getHostName();

System.out.println("localHostName: " + localHostName);

} catch (UnknownHostException e) {

e.printStackTrace();

System.out.println("No name: " + e.getMessage());

}

try {

localHostAddress = InetAddress.getLocalHost().getHostAddress();

System.out.println("localHostAddress: " + localHostAddress);

} catch (UnknownHostException e) {

e.printStackTrace();

System.out.println("No address: " + e.getMessage());

}

}

}

Thanks,

Arun

This thread is closed