<div dir="ltr">Hi,<div><br></div><div>Thanks for the replies. I updated the line with:<br><br>plugins_by_name = dict((<a href="http://p.name">p.name</a>, p) for p in self._site[FACILITY]['enabled'])<br><br>and it works (the installation is completed succesfully).<br>
<br>But now when I try to connect to:<br><br><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"> </span><a href="https://myidp.example.com/idp" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://myidp.example.com/idp</a> </div>
<div><br></div><div>or I try to configure ipsilon-client (ipsilon-client-install ...) I got HTTP 500 Internal Error (with ipsilon background). I put "debug = True" in /etc/ipsilon/idp/ipsilon.conf and I got this (in /var/log/httpd/error_log):</div>
<div><br></div><div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Available providers: ['saml2']</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp storage path: /var/lib/ipsilon/idp/saml2</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp metadata file: metadata.xml</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp storage path: /var/lib/ipsilon/idp/saml2</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp key file: /var/lib/ipsilon/idp/saml2/idp.key</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp storage path: /var/lib/ipsilon/idp/saml2</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp certificate file: /var/lib/ipsilon/idp/saml2/idp.pem</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  IdP Provider registered: saml2</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] enabled: 1</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  IdP Provider enabled: saml2</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Admin login plugin: krb</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Admin login plugin: pam</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [pam] username text: Username</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [pam] password text: Password</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [pam] service name: remote</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [pam] help text: Insert your Username and Password and then submit.</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Admin login plugin: testauth</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [testauth] username text: Username</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [testauth] password text: Password</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [testauth] help text: Insert your Username and Password and then submit.</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Admin provider plugin: saml2</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] default allowed nameids: ['persistent', 'transient', 'email', 'kerberos', 'x509']</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp metadata file: metadata.xml</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] default email domain: <a href="http://example.com">example.com</a></div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp certificate file: /var/lib/ipsilon/idp/saml2/idp.pem</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] allow self registration: True</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp key file: /var/lib/ipsilon/idp/saml2/idp.key</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] idp storage path: /var/lib/ipsilon/idp/saml2</div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  [saml2] default nameid: persistent</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  Traceback (most recent call last):</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 104, in run</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     hook()</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 63, in __call__</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     return self.callback(**self.kwargs)</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/ipsilon/util/page.py", line 37, in protect</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     UserSession().remote_login()</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/ipsilon/util/user.py", line 103, in __init__</div><div>
[Wed Aug 06 16:22:09 2014] [error]     self.user = self.get_data('user', 'name')</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/ipsilon/util/user.py", line 147, in get_data</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     if facility not in cherrypy.session:</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/__init__.py", line 258, in __contains__</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     return key in child</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/lib/sessions.py", line 335, in __contains__</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     self.load()</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/lib/sessions.py", line 268, in load</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     data = self._load()</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/lib/sessions.py", line 497, in _load</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     assert self.locked, ("The session load without being locked.  "</div><div>[Wed Aug 06 16:22:09 2014] [error] AssertionError: The session load without being locked.  Check your tools' priority levels.</div>
<div>[Wed Aug 06 16:22:09 2014] [error] </div><div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09] HTTP </div><div>[Wed Aug 06 16:22:09 2014] [error] Request Headers:</div><div>[Wed Aug 06 16:22:09 2014] [error]   COOKIE: __utma=203412483.1716219377.1393273532.1393273532.1398882487.2; __utmz=203412483.1398882487.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.1716219377.1393273532; session_id=0942ebacef3fbcf8f9b21605013b5dfa1454bc93</div>
<div>[Wed Aug 06 16:22:09 2014] [error]   ACCEPT-LANGUAGE: it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4,fr;q=0.2</div><div>[Wed Aug 06 16:22:09 2014] [error]   USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36</div>
<div>[Wed Aug 06 16:22:09 2014] [error]   CONNECTION: keep-alive</div><div>[Wed Aug 06 16:22:09 2014] [error]   Remote-Addr: 128.141.28.32</div><div>[Wed Aug 06 16:22:09 2014] [error]   HOST: <a href="http://ltartari3.cern.ch">ltartari3.cern.ch</a></div>
<div>[Wed Aug 06 16:22:09 2014] [error]   CACHE-CONTROL: max-age=0</div><div>[Wed Aug 06 16:22:09 2014] [error]   ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</div><div>[Wed Aug 06 16:22:09 2014] [error]   ACCEPT-ENCODING: gzip,deflate,sdch</div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09] HTTP Traceback (most recent call last):</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 667, in respond</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     self.hooks.run('before_handler')</div><div>[Wed Aug 06 16:22:09 2014] [error]   File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 114, in run</div>
<div>[Wed Aug 06 16:22:09 2014] [error]     raise exc</div><div>[Wed Aug 06 16:22:09 2014] [error] AssertionError: The session load without being locked.  Check your tools' priority levels.</div><div>[Wed Aug 06 16:22:09 2014] [error] </div>
<div>[Wed Aug 06 16:22:09 2014] [error] [06/Aug/2014:16:22:09]  ['500 Internal Server Error', 'The server encountered an unexpected condition which prevented it from fulfilling the request.', 'Traceback (most recent call last):\\n  File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 667, in respond\\n    self.hooks.run(\\'before_handler\\')\\n  File "/usr/lib/python2.6/site-packages/CherryPy-3.5.0-py2.6.egg/cherrypy/_cprequest.py", line 114, in run\\n    raise exc\\nAssertionError: The session load without being locked.  Check your tools\\' priority levels.\\n', '3.5.0']</div>
</div><div><br></div><div>and obviously "GET /idp/ HTTP/1.1" 500 1054 in /var/log/httpd/access_log</div><div><br></div><div>Cherrypy bug?<br><br>Thanks.</div><div><br></div><div>Luca Tartarini</div><div><br><br>
 </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-05 20:33 GMT+02:00 Petr Viktorin <span dir="ltr"><<a href="mailto:pviktori@redhat.com" target="_blank">pviktori@redhat.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 08/05/2014 07:48 PM, Simo Sorce wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 2014-08-05 at 17:47 +0200, Luca Tartarini wrote:<br>
</blockquote></div>
[...]<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
with HTTP 500 Internal Server Error ("GET /idp HTTP/1.1" 500 619)<br>
<br>
The line is this one (in<br>
/usr/lib/python2.6/site-<u></u>packages/ipsilon/admin/login.<u></u>py):<br>
<br>
plugins_by_name = {<a href="http://p.name" target="_blank">p.name</a>: p for p in self._site[FACILITY]['enabled'<u></u>]}<br>
</blockquote>
<br>
Uhmm python 2.6, I think it does not support dict comprehension.<br>
You can replace this line with:<br>
dict([<a href="http://p.name" target="_blank">p.name</a>, p for p in self._site[FACILITY]['enabled'<u></u>]])<br>
</blockquote>
<br>
<br></div>
dict((<a href="http://p.name" target="_blank">p.name</a>, p) for p in self._site[FACILITY]['enabled'<u></u>])<br>
<br>
<br>
(You need the parens around (<a href="http://p.name" target="_blank">p.name</a>, p))<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Petrł<br>
<br>
</font></span></blockquote></div><br></div>