Problem after updating Module - 500 Internal Server Error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Problem after updating Module - 500 Internal Server Error

Post by Njit »

Hi,

i updated some modules in the Module manager. Unfortunately some module broke my system. I'm not able to open the website or the admin module. I'm not sure which module i updated (there where 2 that needed maintenance, i believe it was http://dev.cmsmadesimple.org/projects/jquerytools).

I made no backup before updating (i know, should have). Is there a way to see what is causing the problem? And maybe delete/uninstall the defect extension.
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, service@xxxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3491
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Problem after updating Module - 500 Internal Server Erro

Post by velden »

There should be more information in the web server error log.

You can rename a modules directory (e.g. prefix it with underscore, /module/_jQueryTools) to disable it. Of course you might get errors on frontpage when those modules are actually used on pages.

You can find which module is causing troubles and think of a solution. Note that some modules need PHP 5.4

http://forum.cmsmadesimple.org/viewtopi ... =7&t=71719
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

I had a look at the logs but that did not tell me much (never knew i had these logs, good to know). But seems like the module manager is crashing. Will try to rename the dir. I should be able to figure out what got updated last by looking at the file date.

Code: Select all

12.12.2014 11:25:03 website [client xxx.91.64.0] FastCGI: "/home/strato/http/fastcgi/rid/55/75/51955575/htdocs/cmsms/index.php" aborted: incomplete headers (0 bytes) received from server after 8 sec
12.12.2014 11:27:17 website [client xxx.91.64.0] FastCGI: "/home/strato/http/fastcgi/rid/55/75/51955575/htdocs/cmsms/index.php" aborted: incomplete headers (0 bytes) received from server after 9 sec
12.12.2014 11:28:21 website [client xxx.91.64.0] FastCGI: "/home/strato/http/fastcgi/rid/55/75/51955575/htdocs/cmsms/xxxx/index.php" aborted: incomplete headers (0 bytes) received from server after 20 sec, referer: http://website/cmsms/xxxx/moduleinterface.php?mact=ModuleManager,m1_,display_install_results,0&_sx_=9e45640bee27bd40
PHP version is currently set for 5.6. Setting it to 5.5 did not help.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1936
Joined: Mon Jan 29, 2007 4:47 pm

Re: Problem after updating Module - 500 Internal Server Erro

Post by Jo Morg »

This can be caused by php memory limit. Try to update your php.ini to increase memory_limit.
In any case post your system info, otherwise we are just guessing...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

I indeed see a memory error in the logs now. But i never had memory errors before updating this module:
12.12.2014 11:59:02 website [client xxx.91.64.0] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65484 bytes) in /mnt/webl/b0/75/51955575/htdocs/cmsms/lib/classes/class.moduleoperations.inc.php on line 987
I will look into this later after i've tried to rename the module. I currently have no FTP access to the server.
tristan
Dev Team Member
Dev Team Member
Posts: 374
Joined: Tue May 02, 2006 10:58 am
Location: The Netherlands

Re: Problem after updating Module - 500 Internal Server Erro

Post by tristan »

Same errors over here after trying to upgrade JQueryTools to 1.3.4 I manually had to remove it from the module dir and re-install a fresh version.
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

It was indeed the jquery tools 1.3.4 upgrade that caused the problems.
After renaming the directory my site worked again. I tried to install a fresh copy but that did not work.

----------------------------------------------
Cms Version: 1.11.10
Installed Modules:
CMSMailer: 5.2.2
FileManager: 1.4.4
MenuManager: 1.8.6
ModuleManager: 1.5.5
News: 2.14.2
Search: 1.7.11
ThemeManager: 1.1.8
Gallery: 2.0.1
TinyMCE: 2.9.12
ToolBox: 1.3.8
Gbook: 2.0
FormBuilder: 0.8
Captcha: 0.5.0
JQueryTools: 1.3.4
CGExtensions: 1.44.3
CGContentUtils: 1.4.3
CGSimpleSmarty: 1.7.4
AceEditor: 1.0
Showtime: 3.4
Archiver: 0.2.6

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.5.18
md5_function: Aan (Waar)
gd_version: 2
tempnam_function: Aan (Waar)
magic_quotes_runtime: Uit (Onwaar)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: Ongelimiteerd
output_buffering: Aan
safe_mode: Uit (Onwaar)
file_uploads: Aan (Waar)
post_max_size: 48M
upload_max_filesize: 32M
session_save_path: /var/tmp (1733)
session_use_cookies: Aan (Waar)
xml_function: Aan (Waar)
xmlreader_class: Aan (Waar)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.37
Server Db Grants: Kan geen geldige "GRAND ALL" permissie vinden. Dit kan problemen opleveren bij het installeren of verwijderen van modules. Of zelfs bij het toevoegen of verwijderen van items, zoals pagina's.
Server Time Diff: Geen tijdverschil aangetroffen

----------------------------------------------
Last edited by Njit on Sat Dec 13, 2014 6:20 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1936
Joined: Mon Jan 29, 2007 4:47 pm

Re: Problem after updating Module - 500 Internal Server Erro

Post by Jo Morg »

@Njit: there is still system data missing. Please paste the full list.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

Modified my post. Excuses!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1936
Joined: Mon Jan 29, 2007 4:47 pm

Re: Problem after updating Module - 500 Internal Server Erro

Post by Jo Morg »

From a quick search related with FastCGI and 'incomplete headers' it seems a common problem with some server configurations. The following is quite clear though:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65484 bytes)
Your memory limit (memory_limit: 128M) is not enough for CMSMS to process whatever it needs to process. Why, depends on several factors, but did you try to raise the memory_limit to 256M? It is possible that it is a peak just to install the module.
There is also the possibility that one or more of the module's files is corrupted. How did you upload the module?
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

I tried to install the module directly from the Module Manager.
I'm not sure if i can increment the memory limit.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1936
Joined: Mon Jan 29, 2007 4:47 pm

Re: Problem after updating Module - 500 Internal Server Erro

Post by Jo Morg »

I would suggest the following:
If you have access to CPanel File Manager (or something similar), download the archive from the forge and upload it directly to the server, and extract it there. There is a possibility that the files got corrupted during the upload with module manager. There can also be something wrong with the xml file used by module manager to do the upgrade.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by Njit »

I have FTP access. Will try that later.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1936
Joined: Mon Jan 29, 2007 4:47 pm

Re: Problem after updating Module - 500 Internal Server Erro

Post by Jo Morg »

Njit wrote:I have FTP access. Will try that later.
FTP is not reliable either... so lookout for transference errors.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Problem after updating Module - 500 Internal Server Erro

Post by hexdj »

Did you figure out what the problem was? I've been having this issue with newer versions of jQueryTools. Every time I try to install the latest version I get this error.

Do you have SSL enabled for your Admin section?
I do and I suspect this could be the culprit, but I am not sure yet. I am trying to get my server back online and I will do more testing.
Post Reply

Return to “CMSMS Core”