Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2002
    Posts
    8

    Unanswered: Question about ports and starting servers

    Hi,

    I have a problem whereby I can start the main ASE server (ver 12.0, on Solaris), or I can start the backup server , but not both at the same time. Here's a breakdown of what happens:

    1) startserver -f ./RUN_servername
    # all is OK at this point and I can access the db

    2) backupserver
    # I get the following :
    =====================================
    Logging Backup Server messages in file 'srv.log'
    Open Server Error: 16240.10.0: Net-Library routine net_listen() failed in srv__start_net
    Network error: status = 23 - Net-Lib protocol driver call to register a listener failed
    .
    Open Server Server Fatal Error: 16029.20.0: Failed to start any network listeners
    .
    No server log file open; Using stderr for log.
    Oct 22 17:16:19 2002: Backup Server: 1.29.2.1: Unable to start the Backup Server. See Backup Server error log for additional information.
    =====================================

    My backup server is called SYB_BACKUP and it appears in the 'sysservers' table in the master DB. The output to 'srv.log' is very similar to this output.

    I looked at the ports allocated to the dataserver and backup server (in the 'interfaces' file):

    =============================
    SYBASE
    master tli tcp /dev/tcp \x000213883e73e1050000000000000000
    query tli tcp /dev/tcp \x000213883e73e1050000000000000000

    SYB_BACKUP
    master tli tcp /dev/tcp \x000213893e73e1050000000000000000
    query tli tcp /dev/tcp \x000213893e73e1050000000000000000
    =============================

    My understanding is that the 5th to 8th digits in the sequence of numbers - after x0002 - is the port number, and so I set them differently, in order to avoid port clashes. However I still cannot get the backup server to start.

    Any ideas?

    Thanks,

    Jonathan Daniels

  2. #2
    Join Date
    Oct 2002
    Posts
    8

    Solved!

    I was not specifying the SYB_BACKUP server name in the RUN_ file (ie at the -S parameter) . I was in fact specifying the data server name there , hence the port clash

  3. #3
    Join Date
    Feb 2002
    Location
    Willy is on vacation
    Posts
    1,208
    Hiya

    Change the interfaces file as below;

    [SYBASE]
    master=TCP,62.115.225.5, 5000
    query=TCP,62.115.225.5, 5000

    Change the backup server name from
    [SYB_BACKUP]
    master=TCP,62.115.225.5, 5001
    query=TCP,62.115.225.5, 5001

    should reduce all the complications.

    Cheers
    Willy

  4. #4
    Join Date
    Feb 2009
    Posts
    19

    starting sybase server error

    Configuring the shared memory per stripe to 1048576 bytes.
    May 14 08:55:32 2009: Open Server Error: 16240.10.0: Net-Library routine net_listen() failed in srv__start_net
    Network error: status = 23 - Net-Lib protocol driver call to register a listener failed
    .
    May 14 08:55:32 2009: Open Server Server Fatal Error: 16029.20.0: Failed to start any network listeners
    .


    The above error occured when i started the machine for the first time .

  5. #5
    Join Date
    Mar 2007
    Posts
    86
    try this kshell script .. - it converts the hex string in the interfaces file to an IP address .. I use it on SUN machines for years ..

    #!/bin/ksh

    # Converts hex string in the interfaces file to IP address

    # check for the correct argument
    if [ $# -lt 1 ]
    then
    echo ""
    echo "Usage: `basename $0` hex_string (from interfaces file)"
    echo ""
    echo "e.g. ip_addr \x00021b39454545450000000000000000"
    echo ""
    exit 0
    fi


    IP_STR=$1
    PID=$$

    STR=`echo ${IP_STR} | tr '[a-z]' '[A-Z]'` # bc takes only UC
    print "ibase=16" >| /tmp/ip_add.${PID} # Let bc know that i/p string is in hex

    echo ${STR} | cut -c6-9 >> /tmp/ip_add.${PID}
    echo ${STR} | cut -c10-11 >> /tmp/ip_add.${PID}
    echo ${STR} | cut -c12-13 >> /tmp/ip_add.${PID}
    echo ${STR} | cut -c14-15 >> /tmp/ip_add.${PID}
    echo ${STR} | cut -c16-17 >> /tmp/ip_add.${PID}

    # tr doesn't work in this context .. not sure why .. need hex for '\n'
    #bc < /tmp/ip_add.${PID} | tr '\n' ' ' | read PORT IP1 IP2 IP3 IP4
    #print "\nPort Number is: ${PORT}\nIP Address is: ${IP1}.${IP2}.${IP3}.${IP4}\n"

    bc < /tmp/ip_add.${PID} > /tmp/xlate.$$
    valp=''
    valip=''
    for val in `cat /tmp/xlate.$$ | awk '{print $1}'`
    do
    if [ '' = "$valp" ]
    then
    valp=$val
    else
    valip=$valip$val"."
    fi
    done
    echo "Port Number:"$valp
    echo "IP Address :"$valip|sed 's/\.$//'

    #clean-up

    \rm -f /tmp/ip_add.${PID}
    \rm -f /tmp/xlate.$$

    exit 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •