WSID Problems

Information and discussion about setup, brconfig.sys, installers and other configuration related topics.

Moderators: Susan Smith, admin, Gabriel

Post Reply
mluchterhand
Posts: 52
Joined: Mon Jun 08, 2009 7:28 pm
Location: Des Moines, IA
Contact:

WSID Problems

Post by mluchterhand »

Hi Everyone,

I am having a problem with WSIDs being assigned on a client server setup. When I try to login with two different login names on the same client machine it is assigning the same WSID regardless of the login name. I cannot get logged in with the second username while the first is still active. Here is what I've tried:

Trial 1
/usr/br/brserver431fb run mainmenu -10+ $*

Login with matt from client get WSID 10
Login with john from same client (matt still active) get WSID 10 and the error: The requested Workstation ID (10) is already in use by matt.

Trial 2
/usr/br/brserver431fb run mainmenu $*

with the following lines to brconfig.sys
@matt WSID 12+1
@john WSID 14+1

Login with matt from client and get WSID 12
Login with john from same client get WSID 12 and get the error: The requested Workstation ID (12) is already in use by matt.

My brlistener.conf is configured as follows:
[
LABEL=BR431fb
MULTISESSION
EXECUTABLE=/usr/br/br431fb_executable.sh
STARTDIR=/usr/br/
STDERR=/usr/br/br431fb_stderr.log
CONFIG=/usr/br/br431fb_config.sys
]

I have also tried removing the MULTISESSION from the listener configuration but get the same results. Not sure what else to try and as the wiki currently seems to be down.

I am able to login with multiple login names on the same client with our existing 4.1 setup but not in 4.3 so not sure if something changed that I'm not aware of. It is a Linux server and a Windows 7 client. Thanks in advance for the feedback.
Thanks - Matt Luchterhand
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: WSID Problems

Post by Gabriel »

If it worked in 4.1 and doesn't in 4.3, then its gotta be one of three things:

1) they tightened the syntax of many commands, so there might have been an "ignored error" before that is now all the sudden messing something up. If thats the case, we just have to learn how the syntax changed to get you going.

2) there might have been a bug introduced with the keepalive automatic reconnect they added to 4.3. in this case, we need to get Gordon to fix it.

3) it might have been a previously unsupported "feature" that they didn't know people were using and now its no longer allowed. In your actual production environment, do you ever have multiple users log in from different user names on the same computer? Or does everyone have their own computer?


If the reason it no longer works is number (1) above, then it would help us to see the results of running the command "STATUS CONFIG". The WSID configuration information is at the end. This will help us to see in one place a list of all the commands that may be active, that modify your WSID, no matter what part of your brconfig.sys (or its includes) they're from.

You can type "STATUS CONFIG" from the command window and send us a screenshot, or else type "STATUS CONFIG >status.txt" and it will output the status to a text file called status.txt. Then attach that text file and post it here.


I wish I had a better answer for you. I wish I could say "I ran into that problem, there's a really obvious fix for it" but I haven't, and I don't know any obvious fixes. I'm going to try to get Gordon to chime in on this one.

Gabriel
mluchterhand
Posts: 52
Joined: Mon Jun 08, 2009 7:28 pm
Location: Des Moines, IA
Contact:

Re: WSID Problems

Post by mluchterhand »

Hi Gabriel,

Thanks for the feedback. We do sometimes have multiple users log in from different user names but not frequently so if this is the way 4.3 is we can probably make it work. I was just hoping for an easy fix as it will inconvenience some users (particularly me) as I often use multiple login names from my machine for testing purposes.

I have attached the status config output for both trials mentioned in the original post. I have also attached my 431fb error log which seems to pertain to this issue.

For those that don't want to download the attachments, this seems to be the relevant output

Trial 1 Status Output
WSID requested 10 by command line with increment 1.
WSID assigned 10
WSID=SESSION is OFF
WSID=UNIQUE is OFF

Trial 2 Status Output
WSID requested 12 by brconfig.sys with increment 1.
WSID assigned 12
WSID=SESSION is OFF
WSID=UNIQUE is OFF

Error Output
(6) Fri Feb 13 09:32:17 2015
matt Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Fri Feb 13 09:32:23 2015
john Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Fri Feb 13 09:32:28 2015
john Wsid: -10 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Wed Feb 18 09:50:24 2015
matt Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Wed Feb 18 09:51:16 2015
john Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Wed Feb 18 09:51:17 2015
john Wsid: -10 Line:
Calling exit.
(6) Wed Feb 18 09:52:19 2015
matt Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Wed Feb 18 09:53:11 2015
john Wsid: 000 Line:
Setting logging to log file /usr/br/login.log log level 10.
(6) Wed Feb 18 09:53:12 2015
john Wsid: -10 Line:
Calling exit.

Login Error Output from Trial 2
(0) Wed Feb 18 09:53:11 2015
john Wsid: -10 Line:
Fatal error called with message: The requested Workstation ID (12) is already in use by matt.

I also tried adding WSID=SESSION to my brconfig.sys and that did not help the problem either.

Thanks again for the help.
Attachments
statustrial1.txt
(6.39 KiB) Downloaded 658 times
statustrial2.txt
(6.39 KiB) Downloaded 660 times
br431fb_stderr.txt
(1.15 KiB) Downloaded 697 times
Thanks - Matt Luchterhand
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Re: WSID Problems

Post by GomezL »

I do know that if you have an existing session running on your machine, then it will use the same WSID for additional sessions.

Switching users might complicate the issue.

I finally gave up on using WSID to track users, and set it to WSID = 600+

This made things a lot easier for me.
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: WSID Problems

Post by Gabriel »

Yeah, for tracking users I use Login_Name$. For tracking PCs I use Env$("ComputerName") (or under client server, I use the fileio function: fnClientEnv$("ComputerName").) For making a temp file I use Session$ (not WSID$).

But Matt is just trying to get BR to run.. He's not even using WSID for any purpose (yet in his example).
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: WSID Problems

Post by Gabriel »

Actually, I just tried it, using BR 4.3+zh.

I do not have the problem. I was able to login just fine with two different usernames on one PC.

I get WSID 1 for the first, and WSID 2 for the second.

My system has NO wsid specifications, other then wsid=unique.

If your software doesn't care about what WSID number each person is, try it like that (like Luis suggested) and see if it works. Here's my brconfig.sys for the system I just tested in, where it worked:

Code: Select all

drive c:,.,\,\
wbserver c:\
WORKSTACK 983039
RPNSTACK 262143
FLOWSTACK 262143
FORSTACK 131071
maxrecall 50
printscreen newpage
break 8 1600
option 14
option 26
option 43
option 35
option 56
statusline off
Baseyear 2000
include printer.sys
wsid=unique
application_name SageAX Accounting
execute "run start"
rem include thmeblue.sys
date never
search_char off
mluchterhand
Posts: 52
Joined: Mon Jun 08, 2009 7:28 pm
Location: Des Moines, IA
Contact:

Re: WSID Problems

Post by mluchterhand »

Gabriel and Luis,

Thanks a ton! Adding the WSID=UNIQUE to my brconfig.sys did the trick. Doesn't appear this was required in my 4.1 config. Much appreciated!
Thanks - Matt Luchterhand
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: WSID Problems

Post by bluesfannoz »

Coming late to the game.

If your are using user matching I highly recommend placing double quotes around the usernames.

Example

@John Smith WSID 01 ! Will not match

@"John Smith" WSID 01 ! Will match

I have had some systems that would not match even when there was not space in the username

@johnsmith WSID 01 !Works sometimes

@"johnsmith" WSID 01 !Always works

Tip: You can also use EXECUTE with User matching. We have our program start differently based upon username

Example

@"johnsmith" Execute run program1
@"marysmith" Execute run program2

I also addded an Execute Sys to the bottom of my Brconfig.sys so if the user is not defined then it just kicks them out of BR.

HTH!

Steve
Steve Koger
Computer Specialist
SEKESC-MACS Division
Post Reply