Why does patchck on SCO 5.0.5 fail? - SCO

This is a discussion on Why does patchck on SCO 5.0.5 fail? - SCO ; I downloaded and installed the latest patchck.tar.Z on a client's 5.0.5 system. It lists the installed patches and lists ones "available" for download but then download fails. Any way to fix this? INSTALLED currently on realunix.unix.com -------------------------------------------------------------------- oss471e oss471e - ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Why does patchck on SCO 5.0.5 fail?

  1. Why does patchck on SCO 5.0.5 fail?

    I downloaded and installed the latest patchck.tar.Z on
    a client's 5.0.5 system. It lists the installed patches
    and lists ones "available" for download but then download
    fails.

    Any way to fix this?

    INSTALLED currently on realunix.unix.com
    --------------------------------------------------------------------
    oss471e oss471e - OpenServer Supplement oss471e
    oss497c Core OS supplement for 5.0.5
    oss600a Year 2000 Supplement for 5.0.5
    rs505a Release Supplement for OSR5.0.5
    --------------------------------------------------------------------

    MISSING patches are available for DOWNLOAD:
    --------------------------------------------------------------------
    1 --- OSS640A Bind supplement for 5.0.5
    2 --- OSS642A Cron supplement for 5.0.5
    3 --- OSS646C Processor supplement for 5.0.5
    A --- ALL DOWNLOAD ALL of the patches above
    Q --- Quit Skip DOWNLOAD Phase
    --------------------------------------------------------------------
    List patches to DOWNLOAD [1,2,3], [A], or [Q]
    [Default=ALL]: A

    ------------------------- DOWNLOAD PHASE ---------------------------
    Downloading OSS640A... Please wait...
    /etc/patchck: 132.147.63.68: not found
    Downloading OSS642A... Please wait...
    /etc/patchck: 132.147.63.68: not found
    Downloading OSS646C... Please wait...
    /etc/patchck: 132.147.63.68: not found
    DOWNLOAD Phase complete.. Press to continue



    ------------------------- INSTALL PHASE ---------------------------
    READY to INSTALL these patches from /var/spool/patchck/downloads:
    1 --- OSS640A Bind supplement for 5.0.5
    2 --- OSS642A Cron supplement for 5.0.5
    3 --- OSS646C Processor supplement for 5.0.5
    A --- ALL INSTALL ALL of the patches above
    Q --- Quit Skip INSTALL Phase
    --------------------------------------------------------------------
    List patches to INSTALL [1,2,3], [A], or [Q]
    [Default=ALL]: 2
    Installing OSS642A... Please wait...
    OSS642A installation in progress...
    ERROR: patch file /var/spool/patchck/downloads/OSS642A/oss642a missing
    INSTALL Phase complete.. Press to continue

    The network and Internet connection is working:

    # ping www.yahoo.com
    PING www.yahoo-ht3.akadns.net (209.191.93.52): 56 data bytes
    64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=0 ttl=53 time=8
    0 ms
    64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=1 ttl=53 time=4
    0 ms
    64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=2 ttl=53 time=2
    10 ms
    64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=3 ttl=53 time=1
    20 ms

    --- www.yahoo-ht3.akadns.net ping statistics ---
    4 packets transmitted, 4 packets received, 0% packet loss
    round-trip min/avg/max = 40/112/210 ms
    #

    --
    Steve Fabac
    S.M. Fabac & Associates
    816/765-1670

  2. Re: Why does patchck on SCO 5.0.5 fail?

    On 19 Mar, 05:16, "Steve M. Fabac, Jr." wrote:
    > I downloaded and installed the latest patchck.tar.Z on
    > a client's 5.0.5 system. It lists the installed patches
    > and lists ones "available" for download but then download
    > fails.
    >
    > Any way to fix this?


    Steve,

    The web page for patchck at:

    http://www.sco.com/support/patchck.html

    suggests in "Troubleshooting"

    Use `patchck logs` to see the most recent logs. You can also use
    `touch /tmp/patchck.debug` and it will write debug data there.

    Have you tried this to see if this provides any clues?

    John

  3. Re: Why does patchck on SCO 5.0.5 fail?

    Is the sco box behind a nat router?
    Does that script try to use ftp?
    If so does it use PORT or PASSIVE? (If is uses the plain sco ftp client, and doesn't issue a PASS or PASV command, then it's using PORT.)

    Ping does not show whether active (PORT) ftp works.




    ----- Original Message -----
    From: "Steve M. Fabac, Jr."
    Newsgroups: comp.unix.sco.misc
    To:
    Sent: Wednesday, March 19, 2008 12:16 AM
    Subject: Why does patchck on SCO 5.0.5 fail?


    >I downloaded and installed the latest patchck.tar.Z on
    > a client's 5.0.5 system. It lists the installed patches
    > and lists ones "available" for download but then download
    > fails.
    >
    > Any way to fix this?
    >
    > INSTALLED currently on realunix.unix.com
    > --------------------------------------------------------------------
    > oss471e oss471e - OpenServer Supplement oss471e
    > oss497c Core OS supplement for 5.0.5
    > oss600a Year 2000 Supplement for 5.0.5
    > rs505a Release Supplement for OSR5.0.5
    > --------------------------------------------------------------------
    >
    > MISSING patches are available for DOWNLOAD:
    > --------------------------------------------------------------------
    > 1 --- OSS640A Bind supplement for 5.0.5
    > 2 --- OSS642A Cron supplement for 5.0.5
    > 3 --- OSS646C Processor supplement for 5.0.5
    > A --- ALL DOWNLOAD ALL of the patches above
    > Q --- Quit Skip DOWNLOAD Phase
    > --------------------------------------------------------------------
    > List patches to DOWNLOAD [1,2,3], [A], or [Q]
    > [Default=ALL]: A
    >
    > ------------------------- DOWNLOAD PHASE ---------------------------
    > Downloading OSS640A... Please wait...
    > /etc/patchck: 132.147.63.68: not found
    > Downloading OSS642A... Please wait...
    > /etc/patchck: 132.147.63.68: not found
    > Downloading OSS646C... Please wait...
    > /etc/patchck: 132.147.63.68: not found
    > DOWNLOAD Phase complete.. Press to continue
    >
    >
    >
    > ------------------------- INSTALL PHASE ---------------------------
    > READY to INSTALL these patches from /var/spool/patchck/downloads:
    > 1 --- OSS640A Bind supplement for 5.0.5
    > 2 --- OSS642A Cron supplement for 5.0.5
    > 3 --- OSS646C Processor supplement for 5.0.5
    > A --- ALL INSTALL ALL of the patches above
    > Q --- Quit Skip INSTALL Phase
    > --------------------------------------------------------------------
    > List patches to INSTALL [1,2,3], [A], or [Q]
    > [Default=ALL]: 2
    > Installing OSS642A... Please wait...
    > OSS642A installation in progress...
    > ERROR: patch file /var/spool/patchck/downloads/OSS642A/oss642a missing
    > INSTALL Phase complete.. Press to continue
    >
    > The network and Internet connection is working:
    >
    > # ping www.yahoo.com
    > PING www.yahoo-ht3.akadns.net (209.191.93.52): 56 data bytes
    > 64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=0 ttl=53 time=8
    > 0 ms
    > 64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=1 ttl=53 time=4
    > 0 ms
    > 64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=2 ttl=53 time=2
    > 10 ms
    > 64 bytes from f1.www.vip.mud.yahoo.com (209.191.93.52): icmp_seq=3 ttl=53 time=1
    > 20 ms
    >
    > --- www.yahoo-ht3.akadns.net ping statistics ---
    > 4 packets transmitted, 4 packets received, 0% packet loss
    > round-trip min/avg/max = 40/112/210 ms
    > #


    Worked for me for a 507 patch.
    Normally it tries to use either curl or "ftp -p" to do ftp in passive mode.
    But 5.0.5's ftp client does not have the -p option so I'm not sure what it does on 5.0.5
    Possibly it issues the PASV command within the ftp session, or possibly it just gives up and hopes that PORT mode will work, which it often won't when the sco box is behind a nat router.

    Ping does not tell whether ftp (PASSIVE or PORT) will work, though passive usually works anywhere ping/http/telnet/etc do, as long as the ftp server you are connecting to supports passive, which most big public sites do, but other boxes of your own like another sco box might not.

    I'm trying on a 5.0.5 box now...
    wow, borked...
    I get the same error as you at first, then looking further,

    The problem is here, /etc/patchck, which is really /usr/lib/patchck,
    wants to ftp in PASSIVE mode (vs PORT), because, often PORT doesn't work through nat routers, which your sco box is probably behind.

    It reads a config file /usr/lib/patchck.d/patchck.conf
    And gets an ftp command from a variable FTPCMD="ftp -p"
    Or optionally, if you uncomment USE_CURL, it will use curl.

    But, 5.0.5's ftp client does not have the -p option, so it has this block of code to detect 5.0.5 and use a different ftp command $FTPCMD505

    case $SysType in
    SCO_SV) PATH=/bin:/etc:/usr/bin:/tcb/bin;export PATH
    case $SysRel in
    6*) SysType=Legend
    PATH=/bin:/etc:/usr/bin:/tcb/bin:/sbin:/usr/sbin;export PATH
    ;;
    5.0.5) FTPCMD=$FTPCMD505;;
    esac
    ;;

    But, FTPCMD505 is not defined anywhere
    cd /usr/lib/patchck.d
    find ./ |xargs grep 505
    ....nope.


    If your nat router can handle PORT ftp connections, then just put FTPCMD505="ftp" in the config file and try it.

    It may not work because your nat router may not be able to handle PORT mode ftp connections.
    ftp.sco.com currently says that it only supports PASSIVE mode, but just putting FTPCMD505=ftp in the config file actually worked for me.

    If you really needed passive mode I don't know what command you could use unless you first install at _least_ oss646c manually, without the help of patchck.

    That option USE_CURL? It doesn't work so don't get excited about that. I actually have curl on this box and I tried it and all it did was:
    curl: (19) VOL.*: No such file or directory
    So the script offers to use curl, but tries to use globbing which curl can't do.
    Wget can glob like that, but the script isn't written for wget.

    So, I think your only option then would be to install oss646c manually, then copy an ftp binary from a 5.0.6 or later box and set FTPCMD505="/path/to/new/ftp -p"

    Or, ahh haha! check it out... actually, if you want to be utterly paranoid legal, instead of copying anything from any other box, you can get the ftp binary from rs506a which is downloadable.

    This assumes you have already installed, or will install oss646c the normal way.
    These are all bone stock 505 commands, but the ftp binary this downloads will need oss646c.
    Beware 3 lines that begin with cpio, zcat, and echo, are long and will probably wrap in the email.

    mkdir -p /tmp/ftp
    cd /tmp/ftp
    ftp -in ftp.sco.com <<%%FTP
    user ftp me@here.com
    quote pasv
    hash
    bin
    cd /pub/openserver5/rs506a
    get rs506a.tar
    quit
    %%FTP
    tar xqvf rs506a.tar ./VOL.000.009
    rm rs506a.tar
    cpio -iAdqv opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z mkdir -p /usr/local/bin
    zcat opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z >/usr/local/bin/ftp506
    chmod 755 /usr/local/bin/ftp506
    echo 'FTPCMD505="/usr/local/bin/ftp506 -p"' >>/usr/lib/patchck.d/patchck.conf
    cd
    rm -rf /tmp/ftp

    patchck now uses ftp client from 5.0.6, with the -p option.


    Thats a working answer, I just did that all exactly, with cut & paste, and then ran patchck and used it to install oss640a

    But just for giggles I tried ncftp, which also needs oss646c, but is a bit simpler to install than extracting ftp out of rs506a...
    install as per http://www.aljex.com/bkw/sco/#ncftp


    # ncftp
    ncftp> set confirm-close no
    ncftp> set passive on
    ncftp> quit

    # echo 'FTPCMD505="/usr/local/bin/ncftp"' >> /usr/lib/patchck.d/patchck.conf

    .... didn't work but almost did, that might possibly be made to work with some more tweaking.

    It's also probably possible to make a wrapper script that runs the regular ftp, but inserts the "quote pasv" command, and specify that script in FTPCMD505. That would be a pretty funky script, but it would just be a script instead of having to download rs506a.

    --
    Brian K. White brian@aljex.com http://www.myspace.com/KEYofR
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!


  4. Re: Why does patchck on SCO 5.0.5 fail?


    Bahh, re-post
    I left junk at the top by accident and it looked like there wasn't anything else.
    The real message was at the bottom.

    ---snip pertinent parts---

    First just try this:
    echo 'FTPCMD505="ftp"' >> /usr/lib/patchck.d/patchck.conf

    If that doesn't work (depends on how good your router is), then do this:

    This assumes you have already installed, or will install oss646c the normal way (without the help of patchck)
    Beware 3 lines that begin with cpio, zcat, and echo, are long and will probably wrap in the email.

    mkdir -p /tmp/ftp
    cd /tmp/ftp
    ftp -in ftp.sco.com <<%%FTP
    user ftp me@here.com
    quote pasv
    hash
    bin
    cd /pub/openserver5/rs506a
    get rs506a.tar
    quit
    %%FTP
    tar xqvf rs506a.tar ./VOL.000.009
    rm rs506a.tar
    cpio -iAdqv opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z mkdir -p /usr/local/bin
    zcat opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z >/usr/local/bin/ftp506
    chmod 755 /usr/local/bin/ftp506
    cd /usr/lib/patchck.d
    cp patchck.conf tt
    grep -v "FTPCMD505" tt >patchck.conf
    echo 'FTPCMD505="/usr/local/bin/ftp506 -p"' >>patchck.conf
    rm -rf tt /tmp/ftp
    cd

    patchck now uses ftp client from 5.0.6, with the -p option.

    --
    Brian K. White brian@aljex.com http://www.myspace.com/KEYofR
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!


  5. Re: Why does patchck on SCO 5.0.5 fail?

    Brian K. White wrote:
    > Bahh, re-post
    > I left junk at the top by accident and it looked like there wasn't anything else.
    > The real message was at the bottom.
    >
    > ---snip pertinent parts---
    >
    > First just try this:
    > echo 'FTPCMD505="ftp"' >> /usr/lib/patchck.d/patchck.conf


    Brian,

    That's it! With the above addition to patchck.conf, it downloaded
    the patches without further error.

    >
    > If that doesn't work (depends on how good your router is), then do this:
    >
    > This assumes you have already installed, or will install oss646c the normal way (without the help of patchck)
    > Beware 3 lines that begin with cpio, zcat, and echo, are long and will probably wrap in the email.
    >
    > mkdir -p /tmp/ftp
    > cd /tmp/ftp
    > ftp -in ftp.sco.com <<%%FTP
    > user ftp me@here.com
    > quote pasv
    > hash
    > bin
    > cd /pub/openserver5/rs506a
    > get rs506a.tar
    > quit
    > %%FTP
    > tar xqvf rs506a.tar ./VOL.000.009
    > rm rs506a.tar
    > cpio -iAdqv opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z > mkdir -p /usr/local/bin
    > zcat opt/K/SCO/tcp/rs506a.tcp211.1.0a/usr/bin/ftp.Z >/usr/local/bin/ftp506
    > chmod 755 /usr/local/bin/ftp506
    > cd /usr/lib/patchck.d
    > cp patchck.conf tt
    > grep -v "FTPCMD505" tt >patchck.conf
    > echo 'FTPCMD505="/usr/local/bin/ftp506 -p"' >>patchck.conf
    > rm -rf tt /tmp/ftp
    > cd
    >
    > patchck now uses ftp client from 5.0.6, with the -p option.
    >


    --
    Steve Fabac
    S.M. Fabac & Associates
    816/765-1670

+ Reply to Thread