Advertisement:

Author Topic: Error 500: Internal Server Error - On NEW threads  (Read 5072 times)

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Error 500: Internal Server Error - On NEW threads
« on: March 10, 2015, 07:11:54 PM »
Had a bit of a disaster a few days ago, but thanks to this forum, virtually everything is back up and running.

However, although there is no issue posting to existing threads, when anyone attempts to start a new one, there is a long period while nothing seems to happen, then the screen reports:

Error 500: Internal Server Error



Then once you go back into the forum, the post has been made okay, and there's no issue with further posts in the new thread.

I'm getting a daily error_log compiled at the moment. What do I look for? I tried searching it for "Error 500: Internal Server Error", but can't find anything like it.

Thx in advance.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,500
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error 500: Internal Server Error - On NEW threads
« Reply #1 on: March 10, 2015, 08:47:35 PM »
I suggest you check with your host. They should be able to tell you what is triggering the server error.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,944
  • Gender: Male
  • Liroy van Hoewijk
    • coreisp on GitHub
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
Re: Error 500: Internal Server Error - On NEW threads
« Reply #2 on: March 10, 2015, 08:55:14 PM »
Is the waiting time really significant? As in 30+ secs or so?
If that's the case, you're likely getting the 500 error because the php handler gives up as it reaches it's execution time limit; and then Apache can't do much else other than throwing a 500 as it doesn't know what to do with the prematurely ended execution.
Can have a variety of causes (usually code, but also I/O problems...), host may be able to see why indeed; but it might help to specifically look for issues like that and see if it can be debugged from there if it's the case.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Error 500: Internal Server Error - On NEW threads
« Reply #3 on: March 11, 2015, 05:05:27 AM »
Yes, waiting time could be around the 30+ seconds.

I can now get the error_log, but just looking for "Error 500", etc, turns up nothing.

What am I looking for?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Error 500: Internal Server Error - On NEW threads
« Reply #4 on: March 11, 2015, 06:32:04 AM »
If it was code, you should see something like this:
Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in ..................But you would not see an error 500 in this case because PHP "kills" the script in a controlled fashion.

I would suggest you to duplicate your database, then load a fresh set of files to a temporary folder.
Copy Settings.php and Settings_bak.php to that temporary location and run repair_settings in it.
You will have a duplicate setup of your forum, where you can check if the issue still happens even with clean files. That should allow you to check if it's something related to your forum code of not...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Error 500: Internal Server Error - On NEW threads
« Reply #5 on: March 13, 2015, 05:35:53 AM »
I'm reluctant to copy and reinstall at the moment, but I did extract this from the error_log:


[Wed Mar 11 02:30:40 2015] [error] [client xx.xxx.xxx.xxx] FastCGI: comm with (dynamic) server "/hsphere/shared/php54/bin/php" aborted: (first read) idle timeout (60 sec), referer: http://MyForum.xxx/forum/index.php?action=post2;start=0;board=14
[Wed Mar 11 02:30:40 2015] [error] [client xx.xxx.xxx.xxx] FastCGI: incomplete headers (0 bytes) received from server "/hsphere/shared/php54/bin/php", referer: http://MyForum.xxx/forum/index.php?action=post2;start=0;board=14
[Wed Mar 11 02:30:41 2015] [error] [client xx.xxx.xxx.xxx] File does not exist: /hsphere/local/home/valis/MyForum.xxx/forum/default_html
[Wed Mar 11 02:40:44 2015] [error] [client xx.xxx.xxx.xxx] FastCGI: comm with (dynamic) server "/hsphere/shared/php54/bin/php" aborted: (first read) idle timeout (60 sec), referer: http://MyForum.xxx/forum/index.php?action=post;board=1.0
[Wed Mar 11 02:40:44 2015] [error] [client xx.xxx.xxx.xxx] FastCGI: incomplete headers (0 bytes) received from server "/hsphere/shared/php54/bin/php", referer: http://MyForum.xxx/forum/index.php?action=post;board=1.0


Is this anything to do with the issue?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Error 500: Internal Server Error - On NEW threads
« Reply #6 on: March 16, 2015, 08:43:19 AM »
It seems related because it has action=post/post2, although the timeout should be 60 seconds, not 30.
Do you have any MODs that affect posting? Or a list of MODs?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Error 500: Internal Server Error - On NEW threads
« Reply #7 on: March 16, 2015, 08:53:41 AM »
MODs?

Here:



Thx

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Error 500: Internal Server Error - On NEW threads
« Reply #8 on: March 16, 2015, 08:56:05 AM »
Sorry to post again ... it appears to be Akismet.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Error 500: Internal Server Error - On NEW threads
« Reply #9 on: March 16, 2015, 08:57:15 AM »
It is possible, yes. If there is a script in place that tries to connect to an outside service and doesn't time out before PHP does, you can have such issues...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,500
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error 500: Internal Server Error - On NEW threads
« Reply #10 on: March 16, 2015, 09:00:05 AM »
Akisemet is mostly useless anyway. ..

Btw, one pet peeve of mine. . Why do people post a screen shot when asked for a mod list? Please use TEXT when posting information. Screen shots should onlh be used to illustrate an error or request, not to convey textusl details.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline valis1952

  • Semi-Newbie
  • *
  • Posts: 31
Re: Error 500: Internal Server Error - On NEW threads
« Reply #11 on: March 16, 2015, 09:06:11 AM »
Sorry to feed your peeve.

But, thanks for everyone's help.