Technical article 125866

SCOoffice Server does not start up when the ports being used had previously been relocated

OpenServer 5.0.7

Written · Last revised

Problem

With the SCOoffice Server you are able to modify the ports SCOoffice is using for http, ftp, etc. For example, you wish to re-enable the http server of OpenServer listening on port 80 or you re-enable the default ftp server of OpenServer listening on port 21. Doing so means that these services are reserving the ports normally used by SCOoffice Server. The SCOoffice Server startup script "/etc/init.d/insightserver" runs netstat and scans for these reserved ports. Because these ports are now in use by the original OpenServer services, SCOoffice Server will not start.

Cause

The SCOoffice Server script /etc/init.d/insightserver runs netstat and scans for reserved ports. This file must be modified to account for remapped port used for SCOoffice Server.

Solution

Edit the SCOoffice Server script /etc/init.d/insightserver so that you won't get a conflict with the current ports.

For example, if you have re-enabled ftp on port 21 and the SCOoffice ftp server was relocated to port 801, then edit the two lines which 'egrep' for port 25 and replace 25 with 801.

BEFORE
======
start)
        OFFENDING="`${NETSTAT} -an | egrep '^tcp.*LISTEN'
| egrep '[:.](25|80|11
0|143|389|443|636|2000|2003|10024|10025) '`"
        if [ ! -z "$OFFENDING" ]; then
                echo "Error: Can't start until the
following ports are available
:"
                echo
                ${NETSTAT} -an | egrep '^tcp.*LISTEN' |
egrep '[:.](25|80|110|14
3|389|443|636|2000|2003|10024|10025) '
AFTER
=====
start)
        OFFENDING="`${NETSTAT} -an | egrep '^tcp.*LISTEN'
| egrep '[:.](801|80|11
0|143|389|443|636|2000|2003|10024|10025) '`"
        if [ ! -z "$OFFENDING" ]; then
                echo "Error: Can't start until the
following ports are available
:"
                echo
                ${NETSTAT} -an | egrep '^tcp.*LISTEN' |
egrep '[:.](801|80|110|14
3|389|443|636|2000|2003|10024|10025) '

From the Xinuos technical article database, record 125866. Reproduced with permission. The original is at www.sco.com/ta/125866, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.