[Glass] Trouble connecting a Windows client to GS 3.5.x

Ralph Mauersberger ralph.mauersberger at gmx.net
Mon Mar 23 14:22:57 PDT 2020


Dale,

I think all your assuptions are true.

This is from the server:

[fox at srv6223 ~]$ stones -r
Running Stones:
         Status       Version    Owner    Pid   Port   Started
Type       Name
         -------     --------- --------- ----- ----- ------------
------      ----
         exists       3.4.4     fox          20332 36333 Mär 23 21:44
Stone       teststone344
         exists       3.5.1     fox          20430 44055 Mär 23 21:45
Stone       teststone351
Running Netldis:
         Status       Version    Owner    Pid   Port   Started
Type       Name
         -------     --------- --------- ----- ----- ------------
------      ----
         exists       3.4.4     fox          20267 50379 Mär 23 21:44
Netldi      teststone344_ldi
         exists       3.5.1     fox          20293 50380 Mär 23 21:44
Netldi      teststone351_ldi
[fox at srv6223 ~]$


[fox at srv6223 sessions]$ cat teststone344
TDSessionDescription {
         #name : 'teststone344',
         #stoneHost : 'srv6223',
         #stoneName : 'teststone344',
         #gemHost : 'localhost',
         #netLDI : 'teststone344_ldi',
         #netLDIPort : '50379',
         #gemTask : 'gemnetobject',
         #userId : 'DataCurator',
         #password : 'swordfish',
         #osUserId : nil,
         #osPassword : nil,
         #dataDirectory : nil,
         #backupDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone344/backups/',
         #snapshotDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone344/snapshots/',
         #gemstoneVersion : '3.4.4',
         #gciLibraryName : nil,
         #adornmentColor : nil,
         #serverGitRoot : nil,
         #serverTodeRoot : '/opt/gemstone/GsDevKit_home',
         #authorId : nil
}
[fox at srv6223 sessions]$ cat teststone351
TDSessionDescription {
         #name : 'teststone351',
         #stoneHost : 'srv6223',
         #stoneName : 'teststone351',
         #gemHost : 'localhost',
         #netLDI : 'teststone351_ldi',
         #netLDIPort : '50380',
         #gemTask : 'gemnetobject',
         #userId : 'DataCurator',
         #password : 'swordfish',
         #osUserId : nil,
         #osPassword : nil,
         #dataDirectory : nil,
         #backupDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone351/backups/',
         #snapshotDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone351/snapshots/',
         #gemstoneVersion : '3.5.1',
         #gciLibraryName : nil,
         #adornmentColor : nil,
         #serverGitRoot : nil,
         #serverTodeRoot : '/opt/gemstone/GsDevKit_home',
         #authorId : nil
}
[fox at srv6223 sessions]$

[fox at srv6223 sessions]$ cat /etc/services
...
gs64ldi         50377/tcp        # Gemstone netldi
teststone344_ldi 50379/tcp
teststone351_ldi 50380/tcp

And this from the client:

ramauers at Yoga370 MINGW64 ~/GsDevKit_home/sys/local/sessions (gsdevkit)
$ cat teststone344
TDSessionDescription {
         #name : 'teststone344',
         #stoneHost : 'srv6223',
         #stoneName : 'teststone344',
         #gemHost : 'localhost',
         #netLDI : 'teststone344_ldi',
         #netLDIPort : '50379',
         #gemTask : 'gemnetobject',
         #userId : 'DataCurator',
         #password : 'swordfish',
         #osUserId : nil,
         #osPassword : nil,
         #dataDirectory : nil,
         #backupDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone344/backups/',
         #snapshotDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone344/snapshots/',
         #gemstoneVersion : '3.4.4',
         #gciLibraryName : nil,
         #adornmentColor : nil,
         #serverGitRoot : nil,
         #serverTodeRoot : '/opt/gemstone/GsDevKit_home',
         #authorId : nil
}
ramauers at Yoga370 MINGW64 ~/GsDevKit_home/sys/local/sessions (gsdevkit)
$ cat teststone351
TDSessionDescription {
         #name : 'teststone351',
         #stoneHost : 'srv6223',
         #stoneName : 'teststone351',
         #gemHost : 'localhost',
         #netLDI : 'teststone351_ldi',
         #netLDIPort : '50380',
         #gemTask : 'gemnetobject',
         #userId : 'DataCurator',
         #password : 'swordfish',
         #osUserId : nil,
         #osPassword : nil,
         #dataDirectory : nil,
         #backupDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone351/backups/',
         #snapshotDirectory :
'/opt/gemstone/GsDevKit_home/server/stones/teststone351/snapshots/',
         #gemstoneVersion : '3.5.1',
         #gciLibraryName : nil,
         #adornmentColor : nil,
         #serverGitRoot : nil,
         #serverTodeRoot : '/opt/gemstone/GsDevKit_home',
         #authorId : nil
}
ramauers at Yoga370 MINGW64 ~/GsDevKit_home/sys/local/sessions (gsdevkit)
$


If I substitute...
         #gemHost : 'localhost',
with...
         #gemHost : 'myFullQualifiedDomainName',
...the connect will work.


SSH is done with Putty and the following tunnels:


Best regards,

Ralph


Am 23.03.2020 um 20:31 schrieb Dale Henrichs via Glass:
> Ralph,
>
> First, I assume that you are using the instructions found here[1] to
> set up your ssh tunnel?
>
> Second, I assume that you are using two tunnels, one for each netldi?
>
> Third, I assume that you have checked that the port in the session
> file ($GS_HOME/sys/local/sessions/<stone-name>) matches the port that
> the 3.5 netldi is actually listening on. You should edit both the
> client and server session files and use the same port number in both
> and the port needs to match the ssh tunnel port ... if you haven't
> edited the server session file, then on restart the netldi will use a
> different port ... It looks like the server-side detail is missing
> from the instructions ...
>
> If so, then we need to make sure that the ssh tunnels are set up
> correctly.
>
> I'd like to see a `stones -r` report on your server machine so that I
> can see which ports are being used on the server for both 3.4 and 3.5.
>
> And then I'd like to see the ssh commands that you are using to set up
> the ssh tunneling.
>
> Dale
>
> [1]
> https://github.com/GsDevKit/GsDevKit_home/blob/ebc8e7b1c1f2a5b4e9cf11f924164152a342367f/docs/installation/installDevKitClient.md#setup-ssh-port-forwarding
>
> On 3/23/20 11:57 AM, Ralph Mauersberger via Glass wrote:
>> Hello Bruno,
>> thank you for your reply and sorry for my delay!
>> No, I'm not working over a mobile network, I'm connected via Wifi and a
>> standard internet router setup on a fixed line.
>>
>> I found the time and spent another few hours on that issue.
>> Now my findings are as follows:
>> * I still can connect with tODE/Jade to the GS 3.4.x stones through the
>> SSH tunnel. (Gem host is localhost in this case)
>> * I still can NOT connect with tODE/Jade to the GS 3.5.x stones through
>> the SSH tunnel. (Gem host is localhost in this case)
>> * If I try to connect to the 3.5.x stones through the SSH tunnel using a
>> session configuration for 3.4.x, this doesn't work, but netldi logs:
>> "accept failed,  invalid response (old version client?) Invalid client
>> connectKind". This proves, that the 3.5.x netldi is listening and the
>> SSH tunnel is working.
>> * If I open the firewall on my server and expose the netldi port of the
>> 3.5.x stone to the internet (which probably is not the best idea) I can
>> connect to the 3.5.x stones! (Gem host is set to the public IP of the
>> server)
>> * When I try to connect to 3.5.x though the SSH tunnel using localhost
>> as Gem host, there is absolutely no network traffic on the netldi port.
>> (Monitored with Wireshark)
>>
>> So it is kind of weird, but for me it looks as if the 3.5.x  gci libs
>> don't support localhost as a valid destination address...
>>
>> Best regards,
>> Ralph
>>
>> Am 20.03.2020 um 00:15 schrieb BrunoBB via Glass:
>>> Hi,
>>>
>>> With GS 3.5.1, Jade and Windows 8 i can connect without problems.
>>>
>>> Do you have a wireless internet modem ?
>>>
>>> I have one Huawei modem and when i connect it to the computer --> i
>>> can NOT
>>> log to GS from my windows client. I have to switch to Wifi to login.
>>>
>>> May be not your case but ....
>>>
>>> regards,
>>> bruno
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/GLASS-f1460844.html
>>> _______________________________________________
>>> Glass mailing list
>>> Glass at lists.gemtalksystems.com
>>> https://lists.gemtalksystems.com/mailman/listinfo/glass
>>>
>> _______________________________________________
>> Glass mailing list
>> Glass at lists.gemtalksystems.com
>> https://lists.gemtalksystems.com/mailman/listinfo/glass
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> https://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20200323/9742901f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pjjdidkolmplmmhf.png
Type: image/png
Size: 21853 bytes
Desc: not available
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20200323/9742901f/attachment-0001.png>


More information about the Glass mailing list