<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=31&amp;t=1399" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-09-26T20:09:07+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=31&amp;t=1399</id>
<entry>
<author><name><![CDATA[jerichod505]]></name></author>
<updated>2014-09-26T20:09:07+01:00</updated>
<published>2014-09-26T20:09:07+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5596#p5596</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5596#p5596"/>
<title type="html"><![CDATA[Re: [Q?] sporadic '500 Internal Server Error' failures - Yub]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5596#p5596"><![CDATA[
thanks for the information.  i will update my systems and test it, and then post back here afterwards.<br /><br />r.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2923">jerichod505</a> — Fri Sep 26, 2014 8:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2014-09-23T15:21:44+01:00</updated>
<published>2014-09-23T15:21:44+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5568#p5568</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5568#p5568"/>
<title type="html"><![CDATA[Re: [Q?] sporadic '500 Internal Server Error' failures - Yub]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5568#p5568"><![CDATA[
Sorry I missed posting about the fix here! Thanks for the update letting us know it now works for you.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Tue Sep 23, 2014 3:21 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[lshiry]]></name></author>
<updated>2014-09-23T14:59:08+01:00</updated>
<published>2014-09-23T14:59:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5566#p5566</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5566#p5566"/>
<title type="html"><![CDATA[Re: [Q?] sporadic '500 Internal Server Error' failures - Yub]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5566#p5566"><![CDATA[
This was apparently fixed in a recent update from yubico.  Works great now, no more 500 errors.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2898">lshiry</a> — Tue Sep 23, 2014 2:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[lshiry]]></name></author>
<updated>2014-06-18T14:32:26+01:00</updated>
<published>2014-06-18T14:32:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5345#p5345</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5345#p5345"/>
<title type="html"><![CDATA[Re: [Q?] sporadic '500 Internal Server Error' failures - Yub]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5345#p5345"><![CDATA[
I'm also seeing this.  It seems random and most of the time it goes away on its own, just trying authentication again succeeds.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2898">lshiry</a> — Wed Jun 18, 2014 2:32 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jerichod505]]></name></author>
<updated>2014-06-10T00:08:09+01:00</updated>
<published>2014-06-10T00:08:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5308#p5308</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5308#p5308"/>
<title type="html"><![CDATA[[Q?] sporadic '500 Internal Server Error' failures - YubiX]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1399&amp;p=5308#p5308"><![CDATA[
I am having occasional (hard to reproduce) errors with the YubiX software stack, where the radtest reply message is &quot;&quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//IETF//DTD HTML 2.0//EN\&quot;&gt;\n&lt;html&gt;&lt;head&gt;\n&lt;title&gt;500 Internal Server Error&lt;/title&gt;\n&lt;/head&gt;&lt;body&gt;\n&lt;h1&gt;Internal Server Error&lt;/h1&gt;\n&lt;p&gt;The server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request&quot;&quot;<br /><br />I searched the forum and found a similar error but not for the reasons I think are happening.  In my case simply restarting the freeRADIUS server fixes the issue.<br /><br />After lots of debugging, it appears that the problem is related to the /usr/share/pyshared/yubiauth/client/rest.py attempting to access the database.  the only real clue is the following errors in the Apache log:<br /><br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1] mod_wsgi (pid=5449): Exception occurred processing WSGI script '/usr/share/pyshared/yubiauth/client/rest.py'.<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1] Traceback (most recent call last):<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/webob/dec.py&quot;, line 147, in __call__<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     resp = self.call_func(req, *args, **self.kwargs)<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/webob/dec.py&quot;, line 210, in call_func<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     return self.func(req, *args, **kwargs)<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/share/pyshared/yubiauth/client/rest.py&quot;, line 66, in ClientMiddleware<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     response = request.get_response(app)<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/yubiauth/util/controller.py&quot;, line 52, in __exit__<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self.commit()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/yubiauth/util/controller.py&quot;, line 63, in commit<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self.session.commit()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py&quot;, line 645, in commit<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self.transaction.commit()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py&quot;, line 317, in commit<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     t[1].commit()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py&quot;, line 1977, in commit<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self._do_commit()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py&quot;, line 2007, in _do_commit<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self.connection._commit_impl()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py&quot;, line 1233, in _commit_impl<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     self.engine.dialect.do_commit(self.connection)<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py&quot;, line 1012, in connection<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     return self._revalidate_connection()<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]   File &quot;/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py&quot;, line 1018, in _revalidate_connection<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1]     &quot;Can't reconnect until invalid &quot;<br />[Thu Jun 05 13:56:08 2014] [error] [client 127.0.0.1] InvalidRequestError: Can't reconnect until invalid transaction is rolled back<br /><br />i am not quite sure if this is part of the symptoms or the cause, and with all the calls in and out of perl/freeradius/python i am not sure where this error is turning into the 'internal server error' message.  one thing for sure is that debugging this tangled stuff is beyond me.  <br /><br />Anybody else seen these issues?<br /><br />thanks.<br />jd505<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2923">jerichod505</a> — Tue Jun 10, 2014 12:08 am</p><hr />
]]></content>
</entry>
</feed>