<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi,</tt><tt><br>
</tt><tt><br>
</tt><tt>I've been experimenting with scaling Kallithea horizontally
as described at
<a class="moz-txt-link-freetext"
href="http://kallithea.readthedocs.org/en/latest/usage/performance.html#performance">http://kallithea.readthedocs.org/en/latest/usage/performance.html#performance</a></tt><tt><br>
Everything is fine, however I cannot login into my 'Kallithea
Cluster'...<br>
</tt><tt><br>
</tt><tt>I set up two Kallithea instances with shared repos/ and
data/ dirs and unique instance_ids. I'm using HAProxy as a reverse
proxy, the relevant listen stanza is given by</tt><tt><br>
</tt><tt><br>
</tt><tt> listen kallithea</tt><tt><br>
</tt><tt> bind 0.0.0.0:80</tt><tt><br>
</tt><tt> mode http</tt><tt><br>
</tt><tt> balance roundrobin</tt><tt><br>
</tt><tt> option tcplog</tt><tt><br>
</tt><tt> server node1.gns-systems.vm 192.168.33.10:5000 check</tt><tt><br>
</tt><tt> server node2.gns-systems.vm 192.168.33.11:5000 check</tt><tt><br>
</tt><tt><br>
</tt><tt>Accessing the / URL works perfectly in my browser. However,
logging in does not work. Here are the relevant logs from the
Kallithea Instances:</tt><tt><br>
</tt><tt><br>
</tt><tt>node1:</tt><tt><br>
</tt><tt>------</tt><tt><br>
</tt><tt> Jan 12 22:31:49 node1.gns-systems.vm paster[30006]:
2016-01-12 22:31:49.795 INFO [kallithea.lib.base] IP: 192.168.33.6
User: </tt><tt><authuser('id:1[default] auth:true')=""> accessed
/<br>
Jan 12 22:31:49 node1.gns-systems.vm paster[30006]: 2016-01-12
22:31:49.889 INFO [kallithea.lib.auth] user <authuser('id:1[default]
auth:true')=""> authenticated with regular auth @
HomeController:index<br>
Jan 12 22:31:50 node1.gns-systems.vm paster[30006]: 2016-01-12
22:31:50.425 INFO [kallithea.RequestWrapper] IP: 192.168.33.6
Request to / time: 0.675s <br>
<br>
node2:<br>
------<br>
</authuser('id:1[default]></authuser('id:1[default]></tt><tt>
Jan 12 22:31:47 node2.gns-systems.vm paster[23887]: 2016-01-12
22:31:47.816 INFO [kallithea.lib.base] IP: 192.168.33.6 User: </tt><tt><authuser('id:1[default]
auth:true')=""> accessed /_admin/login<br>
Jan 12 22:31:47 node2.gns-systems.vm paster[23887]: 2016-01-12
22:31:47.959 INFO [kallithea.lib.auth_modules] Authenticating
user using kallithea.lib.auth_modules.auth_internal plugin<br>
Jan 12 22:31:48 node2.gns-systems.vm paster[23887]: 2016-01-12
22:31:48.423 INFO [kallithea.lib.auth_modules.auth_internal]
user admin authenticated correctly Jan 12 22:31:48
node2.gns-systems.vm paster[23887]: 2016-01-12 22:31:48.697 INFO
[kallithea.lib.base] user admin is now authenticated and stored
in session, session attrs {'is_authenticated': True,
'is_external_auth': False, 'user_id': 2L}<br>
Jan 12 22:31:48 node2.gns-systems.vm paster[23887]: 2016-01-12
22:31:48.781 INFO [kallithea.RequestWrapper] IP: 192.168.33.6
Request to /_admin/login time: 1.112s<br>
<br>
It seems that the admin User has been successfully authenticated
(at node2), but then after being redirected (?) to the root URL
we are authenticated as an anonymous user again. Whats the
problem?<br>
<br>
Cheers,<br>
Robert Rauch<br>
</authuser('id:1[default]></tt> <br>
<pre class="moz-signature" cols="72">--
Mit freundlichen Grüßen
Robert Rauch
Systemanalytiker
GNS Systems GmbH E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:robert.rauch@gns-systems.de">robert.rauch@gns-systems.de</a>
Theodor-Heuss-Straße 5 Phone: +49 (0)531 12387-711
38122 Braunschweig Fax: +49 (0)531 12387-11
<a class="moz-txt-link-freetext" href="http://www.gns-systems.de">http://www.gns-systems.de</a>
Sitz und Amtsgericht
Braunschweig HRB 4890
Geschäftsführer: Christopher Woll </pre>
</body>
</html>