Page 1 of 2

Problem after updating Module - 500 Internal Server Error

Posted: Fri Dec 12, 2014 10:40 am
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.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Fri Dec 12, 2014 10:47 am
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

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Fri Dec 12, 2014 10:56 am
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.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Fri Dec 12, 2014 11:25 am
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...

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Fri Dec 12, 2014 12:12 pm
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.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 5:06 pm
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.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:14 pm
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

----------------------------------------------

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:18 pm
by Jo Morg
@Njit: there is still system data missing. Please paste the full list.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:21 pm
by Njit
Modified my post. Excuses!

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:36 pm
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?

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:41 pm
by Njit
I tried to install the module directly from the Module Manager.
I'm not sure if i can increment the memory limit.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:48 pm
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.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 6:55 pm
by Njit
I have FTP access. Will try that later.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Sat Dec 13, 2014 7:01 pm
by Jo Morg
Njit wrote:I have FTP access. Will try that later.
FTP is not reliable either... so lookout for transference errors.

Re: Problem after updating Module - 500 Internal Server Erro

Posted: Thu Apr 09, 2015 5:22 am
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.