tag #155 moreinfo thanks
Hi Thomas,
thanks for reporting the below issue.
On Do 28 Mär 2013 16:31:23 CET Thomas Hanschke wrote:
I have 25 thinclients (wyse with windows7 embedded) in a classroom. If more than 2 or 3 clients log on at exactly the same time, some of them stop at the black screen before the gray X2Go Logo appears. There is no error message. With a little timeshift of 2 or 3 seconds between the logons, there are no problems.
I suggest a while-loop in x2gostartagent that looped through the displays until it had a valid display and free ports.
I have attached a slightly modified x2gostartagent script and patch
file that document the changes to this mail.
Please copy the x2gostartagent script to /usr/bin/x2gostartagent on
the server and report back if the performed modification fixes your
25-user-issue.
@Devs: I suspect we have to query x2gogetport 3x times during one run
of x2gostartagent to make sure that more-than-one instances of
x2gostartagent (run by different users at the very same time, a
typical class room situation) do not interfere with each other. This
probably has to happen in x2goresume-session, as well.
I am not 100% sure if the modified x2gostartagent reduces the reported
issue to zero, but my guess is that the reported issue should go down
in occurrence tremendously.
Please test with your setup and give feedback.
Greets+thanks, Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Processing commands for control@bugs.x2go.org:
tag #155 moreinfo Bug #155 [x2goserver] 25 user logon problem Added tag(s) moreinfo. thanks Stopping processing here.
155: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=155 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems
On 2013-04-15 23:08, Mike Gabriel wrote:
@Devs: I suspect we have to query x2gogetport 3x times during one run of x2gostartagent to make sure that more-than-one instances of x2gostartagent (run by different users at the very same time, a typical class room situation) do not interfere with each other.
I don't know how you come to the 3x conclusion, but looking at the code I'd suggest that USED_NONSSH_PORTS as well as USED_PORTS either be turned into a function or get updated within the while-loop. That should reduce the amount of failures.
This probably has to happen in x2goresume-session, as well.
Considering the amount of perl and code duplication we should consider putting that into a function and sourcing it or rewriting the whole thing in perl. Unfortunately currently time is very scarce for me.
Morty
-- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen
Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : struebe@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty