Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-20-2008, 12:45 PM
Steve M. Fabac, Jr.
 
Posts: n/a
Default 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 <ENTER> 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 <ENTER> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-20-2008, 12:45 PM
jboland@sco.com
 
Posts: n/a
Default Re: Why does patchck on SCO 5.0.5 fail?

On 19 Mar, 05:16, "Steve M. Fabac, Jr." <smfa...@att.net> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-20-2008, 12:45 PM
Brian K. White
 
Posts: n/a
Default 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." <smfabac@att.net>
Newsgroups: comp.unix.sco.misc
To: <distro@jpr.com>
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 <ENTER> 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 <ENTER> 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 <VOL.000.009
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-20-2008, 12:45 PM
Brian K. White
 
Posts: n/a
Default 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 <VOL.000.009
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-20-2008, 12:45 PM
Steve M. Fabac, Jr.
 
Posts: n/a
Default 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 <VOL.000.009
> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145