Sporadic(?) internal server errors
Sporadic(?) internal server errors
Just moved two s9y 1.7.8 blog to a new server/hoster for a client. While one works smoothly, the other frequently throws “An internal server error occured.”, then sometimes “The service is not available.” – and then it just works.
I know internal server errors can be tricky to track, so we've already requested an error.log for said webspace (doesn't come with an error.log by default). But since they're running on (literally) the same web host, they have the exact same .htaccess (the standard one generated by s9y), they use the same theme etc., I'm thinking it might be one of the (event) plugins used.
Is that even something worth investigating or do you guys have other ideas/hints where to start debugging this?
YL
I know internal server errors can be tricky to track, so we've already requested an error.log for said webspace (doesn't come with an error.log by default). But since they're running on (literally) the same web host, they have the exact same .htaccess (the standard one generated by s9y), they use the same theme etc., I'm thinking it might be one of the (event) plugins used.
Is that even something worth investigating or do you guys have other ideas/hints where to start debugging this?
YL
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Sporadic(?) internal server errors
Hi!
Yeah, hard to tell. It could be a RAM/Ressourcelimit issue... definitely check the actual error log, only that can help.
Regards,
Garvin
Yeah, hard to tell. It could be a RAM/Ressourcelimit issue... definitely check the actual error log, only that can help.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Sporadic(?) internal server errors
Ho-hum. This is funny.garvinhicking wrote:Yeah, hard to tell. It could be a RAM/Ressourcelimit issue...[/quote|
Which would point to plugins, right? Because both blogs are on the exact same server.
garvinhicking wrote:definitely check the actual error log, only that can help.
Code: Select all
[Wed Apr 09 12:39:10 2014] [error] [client ::xxxx:xx.x.xxx.xxx] File does not exist: /var/www/virtual/USER/html/favicon.ico
![Shocked :shock:](./images/smilies/icon_eek.gif)
Could that actually be it? (I have now uploaded an empty favicon.ico to at least get rid of that error message.)
YL
Re: Sporadic(?) internal server errors
Probably not. Just now, the blog in question was having the same “Internal server error” issues, but – this is where it gets really funny – the hoster's error.log doesn't show anything.yellowled wrote:Could that actually be it?
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
Edit: Seems like the log files in the userspace are not updated in real time, so I might still get a proper error message for that occurrence.
YL
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Sporadic(?) internal server errors
I've run into frustrating issues like that... I have found increasing allotted RAM and/or disc space can help. The other day I ran into something where the solution was to rebuild my database tables, though I think I had some sort of error that guided me to that solution.
=Don=
Re: Sporadic(?) internal server errors
I appreciate the input.Don Chambers wrote:I've run into frustrating issues like that... I have found increasing allotted RAM and/or disc space can help. The other day I ran into something where the solution was to rebuild my database tables, though I think I had some sort of error that guided me to that solution.
![Smile :)](./images/smilies/icon_smile.gif)
Again, this is two blogs with the exact same s9y version running on the exact same server of the same hosting company. There should be no difference in available ressources, yet one is running smoothly and the other one throws internal server errors. That's got to have something to do with their individual configuration and/or plugins used, right?
BTW, no entries in the errror.log for the problematic blog for 4 hours now. I think it's safe to assume that the server doesn't throw an error to the log here. Is there a possibility that this “Internal server error” is not actually a server error but an error message thrown by s9y with the same text or something?
YL
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Sporadic(?) internal server errors
Did you run a phoinfo() to see if both are configured the same? Maybe there is a minor difference. And perhaps it is a physical disk and/or memory problem that is affecting one and not the other.
I doubt s9y would be emitting an error message with the same text as a server error.
If you are paying a hosting company for hosting - they should be helping you troubleshoot!![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
I doubt s9y would be emitting an error message with the same text as a server error.
If you are paying a hosting company for hosting - they should be helping you troubleshoot!
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
=Don=
Re: Sporadic(?) internal server errors
Into the blue some wild guesses: A missing favicon would never stop a system. For me that more sounds as if the bad one uses (identic) ressources (maybe cashed plugin hashes) of the good one and gets pushed in some sort of waiting queue, since the first has priority. Maybe there is a Server-Cache running on that server, which does not properly encapsulates the two different blogs in some areas. Perhaps they even run a SQL Balancer or something.
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Sporadic(?) internal server errors
Hosting is Uberspace. I know for sure that it is possible to run 2 s9y blogs on the same Uberspace without any issues. I'm also pretty sure they don't run any weird server caches.Timbalu wrote:For me that more sounds as if the bad one uses (identic) ressources (maybe cashed plugin hashes) of the good one and gets pushed in some sort of waiting queue, since the first has priority. Maybe there is a Server-Cache running on that server, which does not properly encapsulates the two different blogs in some areas. Perhaps they even run a SQL Balancer or something.
YL
Re: Sporadic(?) internal server errors
Hi,
am not 100% sure, but it seems like I have solved the issue. The problematic part seemed to be a piece of script I added to the sidebar via the HTML Nugget plugin. The script comes from Google to embed the Google +1 button you can click to like the site:
I removed that part and now I do not observe any site loading problems anymore, neither at Uberspace, nor at 1&1 (where the same problem existed).
I have to observe this a bit more, but looks good so far!
EDIT:
Problem still exists on 1&1, but not on Uberspace.
Cheers,
Lars
am not 100% sure, but it seems like I have solved the issue. The problematic part seemed to be a piece of script I added to the sidebar via the HTML Nugget plugin. The script comes from Google to embed the Google +1 button you can click to like the site:
Code: Select all
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-annotation="inline" data-width="300" data-href="http://www.blablabla.com/"></div>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
I have to observe this a bit more, but looks good so far!
EDIT:
Problem still exists on 1&1, but not on Uberspace.
Cheers,
Lars
Last edited by lfrantzen on Thu Apr 10, 2014 11:28 am, edited 1 time in total.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Sporadic(?) internal server errors
Hi!
About the log: error.log must not neccessarily contain the fatal PHP errors. Those errors can possibly, if executed as CGI, end up on the central SysLog of the server, on a console screen or even in the global Apache error log. Depending on configuration, the error.log you quote only contains Apache-centric errors, and no PHP problems.
You might want to try to fiddle with php.ini settings, if available, and enable the options
error_log = /path/to/a/writable/php-error.log
log_errors= On
HTH,
Garvin
About the log: error.log must not neccessarily contain the fatal PHP errors. Those errors can possibly, if executed as CGI, end up on the central SysLog of the server, on a console screen or even in the global Apache error log. Depending on configuration, the error.log you quote only contains Apache-centric errors, and no PHP problems.
You might want to try to fiddle with php.ini settings, if available, and enable the options
error_log = /path/to/a/writable/php-error.log
log_errors= On
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Sporadic(?) internal server errors
That is highly unlikely. The script itself should not make any server calls, so it can't cause this.lfrantzen wrote:The problematic part seemed to be a piece of script I added to the sidebar via the HTML Nugget plugin. The script comes from Google to embed the Google +1 button you can click to like the site
This would mean that the error would be generated when s9y parses that code to generate the html-nugget.
Screams of memory exhaustion, if the error is really gone now. Probably would then be caused again (if its not caused by smarty parsing the script-tags, or one of the markup-plugins) by inserting ~the same amount of characters into the nugget.
PS: In fact, I have in the back of my mind the info that function() won't work for smarty in s9y (is that part of the nugget parsed by smarty?). This could cause an error, which could increase memory consumption. Still unlikely though.
Re: Sporadic(?) internal server errors
That's something Lars would have to do himself, I don't have ssh access. See here for how to use your own php.ini on Uberspace.garvinhicking wrote:error_log = /path/to/a/writable/php-error.log
log_errors= On
I'm still pretty sure this is related to one or some of the many plugins used. We'll see if the G+ code was already it.
YL
Re: Sporadic(?) internal server errors
Hi,
I have another suspect: the flickr Photostream plugin.
Enabling that again led immediately to the error ("An internal server error occurred. Please try again later."). It was disabled together with the G+ code, so I might have been simply wrong by suspecting the G+ code.
What I did now was re-enabling the G+ code and removing the flickr plugin again. For now everything works perfectly, let's see if it stays.
Cheers,
Lars
I have another suspect: the flickr Photostream plugin.
Enabling that again led immediately to the error ("An internal server error occurred. Please try again later."). It was disabled together with the G+ code, so I might have been simply wrong by suspecting the G+ code.
What I did now was re-enabling the G+ code and removing the flickr plugin again. For now everything works perfectly, let's see if it stays.
Cheers,
Lars
Re: Sporadic(?) internal server errors
Something you might also want to think about: reducing the number of posts per page. This is a blog which includes a lot of photos and videos, at least some of them embedded from external services. This will always affect the page rendering performance, so reducing the number of media included from 3rd-party servers will most likely help.lfrantzen wrote:What I did now was re-enabling the G+ code and removing the flickr plugin again. For now everything works perfectly, let's see if it stays.
YL