500 Internal Server Error

Yiit

Member
I get this error very very often, and when I checked the error log it showed me this:

"mod_fcgid: read data timeout in 31 seconds"

Any solutions?

Thank you. :)
 
Apparently fixing this could just be a case of increasing its timeout time from 31 seconds to something much higher.

Source: http://rickchristie.com/blog/2011/note/apache-mod_fcgid-read-data-timeout-error/

With this in mind, I set out to edit the default VirtualHost conf file. In Ubuntu Server, it’s usually is /etc/apache2/sites-enabled/000-default. Add this line inside the <VirtualHost> context:

Code:
<IfModule mod_fcgid.c>
  IPCCommTimeout  7200
</IfModule>

Restart apache2 with this command: sudo /etc/init.d/apache2 restart
 
The error is a symptom, not the problem itself. Same as with medical symptoms you need to address the cause and not numb the symptom.

In this case you need to figure out what script is running so long, PHP really shouldn't even run for more than a couple of seconds (in fact, even a script that takes a second to run is considered "slow").

See if the error log gives you any indication as to what url is being accessed when the error occurs.
 
I get this thing on the XenForo Error Logo,

ErrorException: Undefined variable: errno - library/Zend/Http/Client/Adapter/Socket.php:236

Stack Trace

#0 /home/turkcraft.net/httpdocs/library/Zend/Http/Client/Adapter/Socket.php(236): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/turkcraft...', 236, Array)
#1 /home/turkcraft.net/httpdocs/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('www.gravatar.co...', 80, false)
#2 /home/turkcraft.net/httpdocs/library/XenForo/Model/Avatar.php(457): Zend_Http_Client->request('HEAD')
#3 /home/turkcraft.net/httpdocs/library/XenForo/ControllerPublic/Register.php(176): XenForo_Model_Avatar::gravatarExists('zorro048@gmail....')
#4 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Register->actionRegister()
#5 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/turkcraft.net/httpdocs/index.php(13): XenForo_FrontController->run()
#7 {main}


Anywhere else should I check?
 
Lot's of users get this, when I check the error log I see lot's of names. Maybe I should close up the whole Gravatar thing if that's gonna solve the problem for sure?

Edit: I closed the Gravatar but the Error is still going on.
 
Yeah disabling Gravatar doesn't remove the existing avatars...

But disabling it isn't a solution, it should work... but I wouldn't know how to fix it :(
 
Looks like it's timing out on communicating with Gravatar.com.

You should probably report this as a bug here on XenForo, because the software should set a timeout for the request that doesn't exceed the global timeout, so errors like this can be handled gracefully.

The url in the log you posted is cut off, could you post the full url (strip sensitive information)?
 
I can't see the whole thing too, also I started to get this error too.

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry 'StatusUpdates' for key 'module_name' - library/Zend/Db/Statement/Mysqli.php:214

#0 /home/turkcraft.net/httpdocs/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/turkcraft.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/turkcraft.net/httpdocs/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `EW...', Array)
#3 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1591): Zend_Db_Adapter_Abstract->insert('EWRporta_cache', Array)
#4 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1580): XenForo_DataWriter->_insert()
#5 /home/turkcraft.net/httpdocs/library/XenForo/DataWriter.php(1381): XenForo_DataWriter->_save()
#6 /home/turkcraft.net/httpdocs/library/EWRporta/Model/Cache.php(38): XenForo_DataWriter->save()
#7 /home/turkcraft.net/httpdocs/library/EWRporta/Model/Modules.php(230): EWRporta_Model_Cache->buildModuleCache(Array, 'a:2:{s:6:"optio...')
#8 /home/turkcraft.net/httpdocs/library/EWRporta/ViewPublic/Portal.php(46): EWRporta_Model_Modules->getModuleParams(Array, 1)
#9 /home/turkcraft.net/httpdocs/library/XenForo/ViewRenderer/Abstract.php(215): EWRporta_ViewPublic_Portal->renderHtml()
#10 /home/turkcraft.net/httpdocs/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
#11 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
#12 /home/turkcraft.net/httpdocs/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#13 /home/turkcraft.net/httpdocs/index.php(13): XenForo_FrontController->run()
#14 {main}
 
That does not seem to be related.

Can you post the "Request State" portion of the log entry (the one about gravatar).

Note that this error might also be unrelated to the problem you are having, but seeing as the Zend library is bugging out we can't tell for certain.
 
Top Bottom