Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: JadeCat95 on October 06, 2011, 05:28:47 AM

Title: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 05:28:47 AM
I seriously need some help ASAP. Our forum is currently in maintenance mode for 1.1.14 > 2.0.1 upgrade and I'm having serious issues trying to install mods.

Every time I hit "Install Now", it sits for a while and then I get a 500 Internal Server error. This is what the page says:

QuoteInternal Server Error

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

Please contact the server administrator, [email protected] 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Apache mod_qos/9.69 mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mccamaroclub.com Port 80

I've tried several different mods and they all do the same thing.

When I check my Control Panel error log, I see this:

Quote[Thu Oct 06 04:20:01 2011] [error] [client 98.30.11.180] File does not exist: /home/ab5061/public_html/500.shtml, referer: http://mccamaroclub.com/forum/index.php?action=admin;area=packages;sa=install;package=SA_Chat_Beta3_Rev41.zip
[Thu Oct 06 04:18:01 2011] [error] [client 98.30.11.180] File does not exist: /home/ab5061/public_html/500.shtml, referer: http://mccamaroclub.com/forum/index.php?action=admin;area=packages;sa=install;package=SA_Chat_Beta3_Rev41.zip
[Thu Oct 06 04:16:01 2011] [error] [client 98.30.11.180] File does not exist: /home/ab5061/public_html/500.shtml, referer: http://mccamaroclub.com/forum/index.php?action=admin;area=packages;sa=install;package=Aeva-Media-2.03.zip


Can anyone please help me try to figure this out, or does anyone know what the problem is?

Our host is Hostgator. If any more info is needed, let me know what you need.

I'm desperate and pressed for time. :(
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 05:38:37 AM
check the file permissions on the packages you are trying to install, chmod them 644 and try again.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 05:54:57 AM
Quote from: Illori on October 06, 2011, 05:38:37 AM
check the file permissions on the packages you are trying to install, chmod them 644 and try again.
I did this with two separate packages and no change. :(
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 05:56:36 AM
well then best i can tell you is get a non-oversold host and see if that helps.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 06:13:23 AM
Quote from: Illori on October 06, 2011, 05:56:36 AM
well then best i can tell you is get a non-oversold host and see if that helps.
After doing some searching around these threads, that seems to be a common "fix".

No other ideas to fix this?? Anything specific to report to the host?
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 06:15:19 AM
that they are terrible, and scam users out of their money for services they cant really provide? nope nothing that i know of you can tell them to fix the problem.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 06:19:42 AM
I just thought of something....

We are running a mirror forum on the same host and the package installer there is working fine. Is there a file, or files that could be copied to the main forum that might help this issue?
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 06:21:09 AM
not that i know of
Title: Re: 500 Internal Error when try to install any mod
Post by: Jokerâ„¢ on October 06, 2011, 06:53:36 AM
This can happen due to various reasons

- Misconfiguration of the server: The server was trying to handle a request that it was not able to successfully fulfill
- Invalid file permissions on some files
- Could be an invalid .htaccess file
- Error in a cgi script that caused it to fail or output an error message before it started producing valid HTML
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 11:35:24 AM
There IS a file called "mod_security.htaccess" that I had never noticed before (although that doesn't mean it wasn't there), that said something about Apache server not working with SMF very well and to either rename the file to ".htaccess" or add two lines, "SecFilterEngine Off" and "SecFilterScanPOST Off" to the .htaccess of the forums root file.

However, when I tried that, the whole forum became unavailable coming back with the 500 error.  That "mod_security.htaccess" file is now sitting in both the Packages folder and the root forum folder.
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 11:38:12 AM
ask your host if mod_security is running on the server, if so ask if they can disable it, it often causes more issues then it fixes.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 11:56:23 AM
I have given this new info to our server, and they are going to try to debug it.

Thank you for your help and I will update the process if needed.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 01:18:59 PM
UPDATE:

Ok, right now, my server is telling me that I may be trying to use more than the allocated memory in trying to install the plugins. That the plugins may still be effectively running;

"I'd almost recommend attempting to disable all the plugins while attempting the upgrade as those plugins are going to be using memory out of your 64MB total. It's possible the problems are a result of the PHP memory running out because the memory is in use by the plugins."

I had tried to uninstall them before the upgrade, but was getting the same 500 error.

What I need to know now, is, can I manually delete the plugin file/folders from the server without messing up the main SMF files?? If so, are there any specific things I need to avoid or do?
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 01:21:35 PM
who is your host and what mods do you have installed?
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 01:26:40 PM
The host is Hostgator, and the package manager is showing that NO mods are installed. However, all the mods we had before the update are already sitting in the Browse section, and the files are sitting on the server in the Packages folder and the backups folder also has a bunch of files in it.
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 01:28:18 PM
hostgator is a known overseller, best i can suggest you at this point is to find a new host that is not an overseller. next you know they will tell you to move up to a vps or another server package which you most likely dont need.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 01:37:14 PM
I understand that, however, I still need to know if I can safely delete the plugin files from the server without messing up the SMF main files.

Are there any SMF files that might be making it appear to PHP that the plugins are running? I don't have a problem with deleting the package files from the server, I just need to know if that will cause any problems with SMF main files. Will deleting the package files do ANYTHING in realation to the PHP memory allocation?


Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 01:42:13 PM
smf does not have any "plugins" we have mods, and many mods have code in the main files, so i am unsure what you are talking about with plugin files.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 01:46:20 PM
Sorry, that's what I meant, mods.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 01:54:23 PM
Just as a 'for instance', according to the SMF Package Manager, there are no mods installed. However, from before the upgrade, Aeva has a folder called "mgal_data" in the forum root. Before the upgrade, I downloaded the "forum" folder to my computer as a backup, so I have that "mgal_data" on my computer. Can I safely delete that folder from the server without affecting the other SMF files?
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 02:25:36 PM
since that has nothing to do with the core files you can do anything you want with it but deleting it or leaving it on the server has nothing to do with using up memory.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 02:36:03 PM
Ok, well crap.


One last ditch question....

Before I upgraded, I downloaded the "forum" folder to my computer, and backed up the DB.  Can I safely upload this folder back to the server and go back to the version we were running before upgrading, without losing anything?? The forum has been in Maintenance Mode since before the upgrade, so there are no new posts or anything. I know this won't solve the package install issue, but won't going back put back the mods we already had installed?


Thank you for trying to help.


**EDIT

OR, is it possible to install a fresh install of 2.0 and then use the database, or portions of it, from the 1.1.xx ? The main things we don't want to lose are the Aeva stuff and the already posted topics/threads
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 02:38:53 PM
if you running into memory issues as it is without any mods installed, reverting back to the old install with mods installed would not help much as it would use more memory.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 03:00:37 PM
Ok, talking out of complete desperation here, but is it possible, since our test forum seems to be working right, and is a fresh install of v2.0.1, to put the table structure and posts from troublesome board and transfer the posts and everything over to it, and if successful, then delete the troublesome install? Like renaming the DB or something?

I'm really sorry to keep on with this, but, like I said, we are getting rather desperate.  :-\

We know we can run the troublesome forum without the mods, but there are a few that we kinda count on.
Title: Re: 500 Internal Error when try to install any mod
Post by: Illori on October 06, 2011, 03:29:59 PM
you can connect that forum to the database running the other and run repair_settings.php on it to fix the paths, or you could copy the files form that install to the one that has issues and see if that helps any. in the end it might just be easier to find another host and forget the problems and get to use your mods again.
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 04:19:06 PM
Thank you for that info.

The host actually just called, so I thought, in the interest of if this happens to anyone else, let you know what he said.

He wanted to reproduce my problem, which I walked him through and he was able to reproduce it. Watching the error logs on his end, he was able to determine that it is NOT a permissions issue, NOT a resources issues, NOT a memory issue. He is fairly certain that it is a matter of the server taking too long to decompress and run the scripts. He is currently running some tests and is looking for a way around the connection time out issue and is going to call me back in a bit. He thinks the mods might be trying to create/change items in the tables and is timing out as well. He is fairly certain that it can be resolved, and if not, he going to help me move it to either the test forum, or create a new one and import everything to it.


Thank you for all your help, and say what you will about "over selling" hosts, but so far, the customer service has been excellent.
Title: Re: 500 Internal Error when try to install any mod
Post by: Jokerâ„¢ on October 06, 2011, 04:34:47 PM
Quote from: JadeCat95 on October 06, 2011, 04:19:06 PM
Thank you for all your help, and say what you will about "over selling" hosts, but so far, the customer service has been excellent.
Customer service and overselling are 2 different things.

I'm glad to see the progress on your end :).
Title: Re: 500 Internal Error when try to install any mod
Post by: JadeCat95 on October 06, 2011, 07:05:52 PM
OK, working with our host tech, we got this issue fixed.

The problem was that we had a bunch of mp3's uploaded for a player to use while on the forum.

What was happening was that the mod package was trying, for some reason, to access the ID3 tags FOR EVERY MP3 (over 300 of them), and it was causing the host kill script to kick in/time out.

We moved the MP3 folder to a different location and mods are now installing just fine.