CD Hangs the SFTP Client

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

CD Hangs the SFTP Client

Post by hroman »

We are having an issue where a CD is issued for a dataset level and the client hangs. At this level, the first thing that shows up is a GDG base. Here is what happens:

$ sftp fsftpyxz@161.215.54.19
Connecting to 161.215.54.19...
sftp> cd //ZEEXOTF.TFEX.ZETF500.ARCOUT #-dp- prompt returns immediately
sftp> cd //ZEEXOTF #-dp- prompt returns immediately
sftp> cd //ZEEXOTF.TFEX #-dp- prompt returns immediately
sftp> cd //ZEEXOTF.TFEX.ZETF500 #-dp- stalls, prompt doesn't return
Killed by signal 15. #-dp- had to kill process from client machine
Connection closed

Here is an ISPF 3.4 display of this level:

ZEEXOTF.TFEX.ZETF500.ARCOUT ??????
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0004V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0005V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0006V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0007V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0008V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0009V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0010V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0011V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0012V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0013V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0014V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0015V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0016V00 MIGRAT1
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0017V00 PRDL98+
ZEEXOTF.TFEX.ZETF500.ARCOUT.G0018V00 PRDL68+

We are running Co:Z cozsftp version: 1.3.2 (5.0p1) 2009-07-14.

Any ideas?

Jerry Roman
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Jerry,

You are running a somewhat old release, but I'm not sure what the problem might be.

If you look at the OMVS job for this userid and program "sftp-server", can you tell if it is hung or looping?

It could be that it is hung somewhere in catalog search (IGGCSI00), based on what you are doing, but I'm not sure why that would be. I assume that ZEEXOTF.TFEX.ZETF500.ARCOUT is a GDG base entry. which shouldn't be a problem.

Can you capture a trace? You can turn it on from the remote client like this:

Code: Select all

$ sftp fsftpyxz@161.215.54.19 
sftp> ls /+loglevel=F.CatalogSearch=F
sftp> cd //ZEEXOTF.TFEX.ZETF500 #-dp- stalls, prompt doesn't return 
Kill it from the client when it hangs and then get the /tmp/sftp-server.xx.yy.log file for this session (which might be a different name depending on your configuration). Please email this to info@dovetail.com and we'll take a look.
hroman
Posts: 27
Joined: Thu Aug 13, 2009 10:09 am

Post by hroman »

The process was looping. I ran the trace and emailed you the log file.

Thanks,

Jerry Roman
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Thanks for sending a trace. We found the problem, and it involves a bug in our CatalogSearch code. We will include a fix in the next release.

Thanks for reporting this.
ebbie
Posts: 18
Joined: Tue Feb 16, 2010 8:52 am

Re: CD Hangs the SFTP Client

Post by ebbie »

I have a user having the same issue. I am running coz 1.7.5. If i remove a gdg or 2 then he works fine. Could this be the same issue.
ebbie
Posts: 18
Joined: Tue Feb 16, 2010 8:52 am

Re: CD Hangs the SFTP Client

Post by ebbie »

I have done further tests and below is what i found.
The GDG base consists of 15 files. When this maximum is reached, the user hangs on the CD command. The workaround i put in place is that i created a dummy file and placed it above the GDG base files, now the user works fine.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: CD Hangs the SFTP Client

Post by dovetail »

This is likely the same bug as reported earlier in this thread, which was fixed in release 1.7.7.

See the release notes for more info: http://dovetail.com/docs/cozinstall/changes.html
Post Reply