Author Topic: FTP client can't connect to a z/OS system  (Read 1779 times)

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
FTP client can't connect to a z/OS system
« on: July 20, 2016, 05:49:17 am »
FTP client cannot to connect to a z/OS system. It times out. This works fine using V20.

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 725
  • Hero Points: 47
Re: FTP client can't connect to a z/OS system
« Reply #1 on: July 20, 2016, 01:38:56 pm »
If you really mean it cannot connect (as opposed to being able to list files), and assuming this is Windows, then check that your personal firewall is not blocking vsproxy.exe.

++rodney

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #2 on: July 20, 2016, 02:36:40 pm »
I am using Windows 10. I don't get prompted to accept the proxy like I have previously. It works in 2015. Are you suggesting I need to somehow edit firewall settings to use this beta when I never have before?

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 725
  • Hero Points: 47
Re: FTP client can't connect to a z/OS system
« Reply #3 on: July 20, 2016, 02:45:38 pm »
Yes that is exactly what I am saying. You should have been prompted at some point (I was, and I'm on Windows 10 too). Go to your Windows Firewall, Advanced Settings, Inbound Rules. Delete all the 'vsproxy' entries. Now try connecting via ftp and you should be prompted.

++rodney

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #4 on: July 21, 2016, 02:41:44 am »
OK, I did that and no difference.

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 725
  • Hero Points: 47
Re: FTP client can't connect to a z/OS system
« Reply #5 on: July 21, 2016, 02:38:52 pm »
Then I'm not sure what is going on.

Can you verify that you have recently connected successfully with 2015(v20) (yes, I know you said you did, but I want to be sure)?

Can you connect to any other websites (e.g. qtmirror.ics.com)?

Is it timing out on the connection or when listing files? If when listing files, then you may need to set up a "passive" transfers. This is done with a firewall config (weird, I know). Follow the directions here:
https://community.slickedit.com/index.php/topic,11221.msg47306.html#msg47306

++rodney

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #6 on: July 22, 2016, 02:10:48 am »
I tried with 2015 which as I expected me prompted me for vsproxy (as I had wiped them out) and works fine.

It's timing out when connecting.

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 725
  • Hero Points: 47
Re: FTP client can't connect to a z/OS system
« Reply #7 on: July 22, 2016, 03:12:45 am »
Try turning on some debug options from File>FTP>Default Options, Debug tab : "Log SlickEdit proxy events", "Verbose ssh", "Save log to ftplog???.log", "Time stamp on log entries", "Save vsproxy debug to vsproxy.log". Attempt the connection, get the problem, abort (big red button) the connection. Give us the following files:
'ftplog000.log' from your config-directory
'vsproxy.log' from your %TEMP% directory

++rodney

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #8 on: July 22, 2016, 03:34:43 am »
I set the options as directed but only got a vsproxy.log in %TEMP%, no ftplog*.log files anywhere to be seen??

Code: [Select]
*** DEBUGGING STARTS on 7/22/2016 at 11:26:49
*** vsproxy Version 21.0.0.2 Copyright 1988-2016 SlickEdit Inc.
*** vsproxy Revision 9
11:26:49:703(7495) End processing main arguments
11:26:49:705(7497) QueryPerformanceFrequency(): frequency = 2533204 cycles/sec
11:26:49:712(7504) Start Init
11:26:49:715(7507) End Init
11:26:49:718(7509) connect timeout = 30000 sec
11:26:49:720(7512) transfer timeout = 30000 sec
11:26:49:723(7515) IP version supported = ALL
11:26:49:731(7522) minimum buffer size = 1024 bytes
11:26:49:733(7525) starting buffer size = 8192 bytes
11:26:49:736(7527) max buffer size = 8192 bytes
11:26:49:739(7531) max transfer interval = 900 msec
11:26:49:743(7535) Local host = ::1  Local port = 58683(58683)
11:26:49:746(7538) Start SocketOpen
11:26:49:784(7576) ***OPENRELAY:
11:26:49:787(7579) ***OPENRELAY:  calling vsockSocketOpen - host=::1, port=58685, listendata=0
11:26:49:839(7631) ***OPEN:
11:26:49:842(7634) ***OPEN:  calling vsockSocketOpen - host=FTS1, port=1, listendata=0
11:27:19:848(7640) ***OPEN:  vsockSocketOpen - status=-103370
11:27:19:862(7654) MAIN_DONE: status=-103370

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #9 on: July 22, 2016, 03:40:34 am »
The port in the vsproxy.log looks wrong. Using 2015 I get the correct port number, 1121.

Code: [Select]
11:39:19:654(7446) ***OPEN:  calling vsockSocketOpen - host=FTS1, port=1121, listen data=0

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #10 on: July 22, 2016, 05:42:13 am »
OK, this is the problem. The port number is being truncated to a one byte value. I had a port of 1121 specified which has been truncated to 1. If I change it to 1121 or 21 it just reverts back to 1. Settings where I had port=21 have been truncated to 2.

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #11 on: July 22, 2016, 06:29:01 am »
If I go in with a new config it works ok, so this problem appears to be related to upgrading my existing configuration.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4478
  • Hero Points: 342
Re: FTP client can't connect to a z/OS system
« Reply #12 on: July 22, 2016, 02:16:53 pm »
This looks like a trivial to fix bug. Sorry.

The issue appears to be due to the "xfertype" setting appearing after the "port" setting.

A case in a switch statement was missing a "break" so the "xfertype" setting blasts the port setting. Things work only if the "port" setting is second.

Load the attached "ftp.e" with the fix (Macro>Load Module...).

This fix will be included in the next beta.

DaveyC

  • Senior Community Member
  • Posts: 146
  • Hero Points: 9
Re: FTP client can't connect to a z/OS system
« Reply #13 on: July 25, 2016, 02:13:35 am »
That seems to have done the trick! It would be good if you could also make this change in this new release to show hidden files when listing a z/OS Unix directory.

This patch shows hidden files/directories when listing a z/OS Unix file system. It would be great if it could make it into the product.
Code: [Select]
      // LIST gets really confused with more than one
      // option switch (it interprets the second option
      // as a filespec??), so we have to glom all options
      // together. Example: '-AL' instead of '-A -L'
      _str options = '-';
      if( fcp.system == FTPSYST_UNIX ) {
         options = options:+'A';
      }
      else if(fcp.system==FTPSYST_MVS && substr(fcp.remoteCwd,1,1)=='/') {
         options = options:+'al';
      }
      if( fcp.resolveLinks ) {
         options = options:+'L';
      }