mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

Stable 7.142.80, Windows: server does not accept incoming conenctions (Attempting to duplicate socket from pid 8660 socket 380)

Open alkhwarizmi opened this issue 7 months ago • 6 comments

Affiliation Eurac Research / Institute for Renewble Energy

Version(s) Affected Server and client version: Stable 7.142.8

Platform(s) Windows 10 Enterprise

Installation Method(s) Installer downloaded from mdsplus.org repository

Describe the bug After upgrade from Stable 7.50 to Stable 7.142.80 the server does not accept incoming conenctions any more.

To Reproduce Steps to reproduce the behavior:

  1. Locally on the server trying to connect to 127.0.0.1 with the jTraverser Also
  2. Trying to connect to the server via jTraverser from another machine

Additional context

  1. Installation of 7.142.80 was not seamless because the 7.50 uninstaller did not remove files from the system folders C:\Windows\System32 and C:\Windows\SysWOW64. We removed manually the files to allow the installer to proceed. Later we uninstalled 7.142.80 and re-installed it again without errors.
  2. As noticed we need both 64 and 32 bit version of the libraries because we integrate MDS+ in LabView and we are stuck with a certain hardware version requiring 32-bit.
  3. We installed the server as a service with the provided very handy script and verified the service is working.
  4. We are using a customized version of mdsip.hosts which has not been changed by the installer and was not giving problems in the past years.
  5. The following files are created/updated upon connection attampts a. MDSIP_8000.log (a new identical line is added every time we try to connect) CreateProcess returned 1 with cmd=mdsip.exe --port=8000 --hostfile="C:\mdsip.hosts" --compression=0 --sockethandle=8660:380 b. MDSIP_8000_xxxx.log (a new files appears with this content every time we try to connect) Error duplicating socket from parent: No error Attempting to duplicate socket from pid 8660 socket 380
  6. Inbound rules for TCP and UDP port 8000 were already there and have not been changed
  7. Access to the trees locally via jTraverser and Python Tree class seems to be working using python 311
  8. Had to modify string_ to bytes_ and unicode_ to str_ in version.py to make MDSplus package loadable

The matter is extremely critical because this is our production server.

Cheers,

alkhwarizmi avatar Jul 03 '24 08:07 alkhwarizmi