its icon indicating copy to clipboard operation
its copied to clipboard

FTPS no longer working

Open larsbrinkhoff opened this issue 2 years ago • 49 comments

Rumor has it FTPS doesn't respond any more. Some details in #2153

larsbrinkhoff avatar Feb 25 '23 15:02 larsbrinkhoff

I don't think this is an ITS issue. It works for me on KLH10 -- maybe it is specific to pdp10-k*?:

ftp 192.168.0.100
Connected to 192.168.0.100.
220- MIT-NX.US.ORACLE.COM ITS 1651,  FTP server 336 on 25 FEB 2023 0834 EST
220 Bugs/gripes to BUG-FTP @ MIT-MC
Name (192.168.0.100:eswenson): ejs
230 OK, your user name is EJS
ftp> get "waste 1" waste.1
local: waste.1 remote: waste 1
200 OK, port 41739
150 Look out!  Here comes DSK:EJS;WASTE 1
226 That's all, folks!
112 bytes received in 44.45 secs (0.0025 kB/s)
ftp> quit
221 BCNU

eswenson1 avatar Feb 25 '23 16:02 eswenson1

It works for me on previous version. And there were no changes to pdp10-ka since.

rcornwell avatar Feb 25 '23 16:02 rcornwell

Previous version of the DB/KA/KL build? Meaning an older version of the git repo? Do you have a commit hash for a version where FTP works under pdp10-ka?

eswenson1 avatar Feb 25 '23 16:02 eswenson1

Previous ITS build. I said that pdp10-ka is same version.

rcornwell avatar Feb 25 '23 17:02 rcornwell

Yes, but what build worked? Clearly the changes to fix Zork or to update networking.md have no relationship to FTP. So what commit hash worked?

eswenson1 avatar Feb 25 '23 17:02 eswenson1

See the other issue... I posted the id that worked.

rcornwell avatar Feb 25 '23 17:02 rcornwell

Thanks. See it there. https://github.com/PDP-10/its/issues/2153#issuecomment-1444930114

eswenson1 avatar Feb 25 '23 17:02 eswenson1

I did a compare between those two commit hashes and don't see any difference that should impact FTP or networking at all. There is a single change to ITS -- but to the DISK support to help with balancing distribution of files across different mounted packs.

eswenson1 avatar Feb 25 '23 18:02 eswenson1

I have to agree here. Unless for some reason the Link can't find the program it is trying to link to because it is on another pack than it expects it to be on.

rcornwell avatar Feb 25 '23 18:02 rcornwell

The changes made in DISK are to which pack a NEW file is CREATED. It doesn't change how files are accessed or how files are accessed through links.

I just pulled the head of the master branch, built a DB ITS (for KLH10), and verified that FTP worked fine:

 ftp 192.168.1.100
Connected to 192.168.1.100.
220- DB-ITS.EXAMPLE.COM ITS 1651,  FTP server 336 on 25 FEB 2023 1100 EST
220 Bugs/gripes to BUG-FTP @ MIT-MC
Name (192.168.1.100:eswenson): ejs
230 OK, your user name is EJS
ftp> dir
502 This command is not implemented, sorry.
200 OK, port 44185
150 Look out!  Here comes DSK:EJS;.FILE. (DIR)
DB   EJS
FREE BLOCKS #0=8998
  0   NGAME  273    11   12/18/2016 17:24:19
  0   QSEND  150    3   12/18/2016 17:24:19
  0   QSEND  COMPRS 2   2/24/2023 18:16:09
  0   SCRMBL 73     3   12/18/2016 17:24:19
  0   TS     UPTINI 1   2/24/2023 18:48:01
  0   UPTINI 1      1   12/18/2016 17:24:19
226 That's all, folks!
ftp> quit
221 BCNU

eswenson1 avatar Feb 25 '23 19:02 eswenson1

That does not prove anything. We are talking about KA not KS. I'm building KL now will try it.

rcornwell avatar Feb 25 '23 19:02 rcornwell

I'm building a pdp10-ka build now. Of course, I've never had all that much luck with pdp10-ka networking in the past, and am not sure that I verified that FTP worked. I'll let you know once I build and configure.

eswenson1 avatar Feb 25 '23 19:02 eswenson1

I did a KL10 build and I can telnet in and FTP in. So I think ITS is having trouble resolving the link to the FTP server.

rcornwell avatar Feb 25 '23 21:02 rcornwell

If you did a pdp10-kl build, and you can TELNET and FTP in, clearly, ITS can resolve the link to the FTP server (there).

Are you saying that this isn't working in pdp10-ka, but is working on pdp10-kl -- with the HEAD of the master branch?

eswenson1 avatar Feb 25 '23 22:02 eswenson1

I'm not having luck with my master branch HEAD build of pdp10-ka:

eswenson@eswenson-ThinkPad-W520:/mnt/its/ITS/ws/its/out/pdp10-ka$ ../../tools/sims/BIN/pdp10-ka  run

KA-10 simulator V4.0-0 Current        git commit id: $Format:
SDL Video subsystem can't initialize
Segmentation fault (core dumped)
eswenson@eswenson-ThinkPad-W520:/mnt/its/ITS/ws/its/out/pdp10-ka$

eswenson1 avatar Feb 25 '23 22:02 eswenson1

I went back to a working pdp10-kl build (from a while back when you and I were working on this, @rcornwell), and I'm able to telnet in fine, but FTP is connects, but gets nothing back from ITS.

I tried my (previously) working pdp10-ka build (same timeframe as above), which I thought was working with respect to telnet, and cannot telnet in. I can't FTP in either.

Both of these are with my NAT-based configuration that you and I came up with.

eswenson1 avatar Feb 25 '23 22:02 eswenson1

If you can't telnet you can't FTP, what I am seeing on ITS is that it seems to hang at the SYN025 name. It does not appear to go to the FTP program. On pdp10-kl build it worked correctly. Note I can telnet/FTP into previous builds with either current pdp10-ka emulator or one in tools. I can also use one in tools to connect to telnet/FTP with previous builds. Under current build FTP appears to hang at the SYN025 state and does not start FTPS.

If you are seeing the SYN025 in the process table it means that ITS has responded to the SYN packet and tried to start the program to handle it. Also there have been no changes to pdp10-ka in about 1 month.

rcornwell avatar Feb 26 '23 00:02 rcornwell

SDL Video subsystem can't initialize

This means you either have to run pdp10-ka in a window system, or you need to remove set dpy enabled in the configuration file.

Segmentation fault (core dumped)

This, however, is a plain bug. Probably mine.

larsbrinkhoff avatar Feb 27 '23 06:02 larsbrinkhoff

Thanks. This must be a “new” thing because it was happening with an old pdp10-ka config / system that used to work perfectly fine.

eswenson1 avatar Feb 27 '23 14:02 eswenson1

I was also getting "vid_thread(): Unexpected user event code: 1" when the display is runing

rcornwell avatar Feb 27 '23 15:02 rcornwell

My Raspberry Pi finally finished building the KL build (latest) and I cannot Telnet or FTP into it with the configuration that works on KA. The IMP adapter gets the IP address but there is no response from Telnet or FTP on the KL machine.

oilcan-productions avatar Feb 27 '23 17:02 oilcan-productions

If you did not edit the configuration then the HostIP on KL is 192.168.1.100.

rcornwell avatar Feb 27 '23 17:02 rcornwell

That means that the same configuration as for KA will not work. Which configuration file controls this at build time?

oilcan-productions avatar Feb 27 '23 18:02 oilcan-productions

I believe that the IP and GW Makefile variables are passed to the expect script and then used when setting up the IP address for ITS.

eswenson1 avatar Feb 27 '23 18:02 eswenson1

I believe that the IP and GW Makefile variables are passed to the expect script and then used when setting up the IP address for ITS.

Would that not be the same for KA based builds as well then? But in that case the host is 10.0.3.6 despite the fact that the IP is set to 192.168.1.100 in its/conf/network

oilcan-productions avatar Feb 27 '23 18:02 oilcan-productions

I believe only KLH10 has support for the configuration file variables. I do not believe Lars ever added in support for other systems. Also the same configuration file will not work for KA10/KL10/KS10, there are differences.

rcornwell avatar Feb 27 '23 18:02 rcornwell

Ah, ok. We should fix that! @larsbrinkhoff

eswenson1 avatar Feb 27 '23 18:02 eswenson1

We should also probably merge the config.202 file down to one and just select which host we are building for with arguments.

rcornwell avatar Feb 27 '23 18:02 rcornwell

Yes, I agree. I have no idea why we have multiple configs -- it makes things tough when you are trying to synchronize configs from pdp10-k* and KLH10 systems.

eswenson1 avatar Feb 27 '23 18:02 eswenson1

I am looking a the various config.202 files. If they all support the same type if IMP interface from SIMH, with the exception of KLH, would it at least make sense to re-use the same host IP and gateway everywhere else? right now there are different IP address definitions for every emulator type?

oilcan-productions avatar Feb 27 '23 18:02 oilcan-productions