<div dir="ltr">Thanks Stuart for the explanation. <div><br></div><div>In the log entry, the student was switched from the load balancer to fsua1 and later to fsua2. Both times there is no login message. For this particular student, the activities log indicates that the previous successful login was 6 days ago on fsua1. Shouldn't fsua2 login the student when his session is transferred to it? The emails that I get from students is that they see a blank page. Is there anyway to prevent the display of a blank page and show the roles page?</div><div><br></div><div>Thanks,</div><div>-hk</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 22, 2015 at 6:51 PM, Stuart Raeburn <span dir="ltr"><<a href="mailto:raeburn@msu.edu" target="_blank">raeburn@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
> Question is why there is no role for the student? Is it a timeout issue?<br>
<br>
</span>That can happen in the following scenario:<br>
<br>
1. I open a new tab in my web browser and log-in to LON-CAPA via a<br>
load balancer server.<br>
<br>
2. I select a role from the roles screen displayed after being<br>
switched to the session-hosting server.<br>
<br>
3. I close that browser tab, but don't quit my browser, and don't<br>
explicitly log-out of LON-CAPA using the "Logout" link at top right.<br>
<br>
4. Some time later I open another tab in the same browser and log-in<br>
via the load balancer. If my session is switched to the same server as<br>
used in the earlier session then all I would see in my activity.log<br>
file would be the one line:<br>
<br>
time <load-balancer lonhostID> Switch Server to <host> with role  <ip addr><br>
<br>
i.e., no "Log-in" entry and no "Role" entry.<br>
<br>
The activity.log entries you reported originate from<br>
/home/httpd/lib/perl/Apache/<a href="http://switchserver.pm" target="_blank">switchserver.pm</a> on the loadbalancer server<br>
(fsua0).<br>
<br>
If you look in the Apache web server access log file on the intended<br>
session-hosting server (fsua1) you should find a number of entries of<br>
the form:<br>
<br>
<ip add> /adm/login?domain=<domain>&username=<username>& ...<br>
<br>
where <ip add> is the user's IP address, <domain> is the user's<br>
domain, <username> is the user's username, and ... is the rest of the<br>
query string.<br>
<br>
Typically, no role is specified when a user logs-in to a load<br>
balancer.  Instead the session-hosting server will send the roles<br>
screen to the user's browser (after migration) for the user to select<br>
a role.<br>
<br>
In that instance the expected sequence of entries logged in the user's<br>
activity.log file is:<br>
<br>
(a) time <load-balancer lonhostID> Switch Server to <host> with role<br>
<ip addr><br>
(b) time <session lonhostID>       Login <ip addr><br>
(c) time <session lonhostID>       Role <role selected><br>
<br>
where (a) is a log entry submitted by the load-balancer; (b) and (c)<br>
are entries submitted by the session hosting server -- (b) when<br>
session migration is successful; (c) when the user selects a role.<br>
<br>
<br>
Stuart Raeburn<br>
LON-CAPA Academic Consortium<br>
<div><div class="h5"><br>
<br>
Quoting "H. K. Ng" <<a href="mailto:hkng@fsu.edu">hkng@fsu.edu</a>>:<br>
<br>
> Hi,<br>
><br>
> Occasionally, I have students who log in to the lonbalancer and get<br>
> switched to one of the access servers but no role shows up. The activity<br>
> log shows something like<br>
><br>
> 1421954366:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954585:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954681:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954821:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954852:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954881:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421954991:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421955126:fsua0:Switch Server to fsua2 with role  <ip add><br>
> 1421955167:fsua0:Switch Server to fsua2 with role  <ip add><br>
> 1421955293:fsua0:Switch Server to fsua1 with role  <ip add><br>
><br>
> Seems that if it is successful, it shows a login to the access server and<br>
> then  the role shows up, e.g.,<br>
><br>
> 1421955305:fsua1:Login <ip add><br>
> 1421955310:fsua0:Switch Server to fsua1 with role  <ip add><br>
> 1421955311:fsua1:Login <ip add><br>
> 1421955324:fsua1:Role st./fsu/<course id>/1<br>
><br>
> Question is why there is no role for the student? Is it a timeout issue?<br>
><br>
> Thanks,<br>
> -hk<br>
<br>
</div></div>_______________________________________________<br>
LON-CAPA-admin mailing list<br>
<a href="mailto:LON-CAPA-admin@mail.lon-capa.org">LON-CAPA-admin@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin</a><br>
</blockquote></div><br></div>