Author Topic: 500 Internal Server Error  (Read 2216 times)
Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #15 on: June 18, 2019, 04:14:01 PM » Author: Patrick
All the error indicates is that the PHP script had stalled and timed out.  It doesn't provide any detail as to the reason.  It could be resource contention.  I tried to make a few optimizations to reduce load, and it seems to me pages have been opening a little faster, but that may not have been the underlying issue or might not have reduced contention sufficiently.  It's also possible that a defect such as a memory leak exists that eventually bogs down the PHP process until it finally stalls out.  Regardless, it occurs as a result of concurrent activity and isn't reproducible, making it tough to pinpoint.  I'll do some more digging.  If you can identify any pattern to it, feel free to let me know.
Logged

Patrick C., Administrator
Lighting-Gallery.net

Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #16 on: June 18, 2019, 04:41:52 PM » Author: Patrick
I have discovered that there are some photos on the site that are taking considerably longer than others to load.  The image files are separate, so it's not the size of the pictures themselves.  Something about certain images or albums is negatively affecting the performance of the database queries used to retrieve data for the page.  Hopefully I'll have a solution soon. 
Logged

Patrick C., Administrator
Lighting-Gallery.net

Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #17 on: June 18, 2019, 07:17:11 PM » Author: Patrick
All right, I found there were a number of albums on the site with keywords.  Keywords can be used in searches, but also provide the ability to link albums together to create meta albums containing photos from other albums.  It's a nifty feature, but does not perform well.  I thought we disabled it a long time ago, but some albums still had them set.  So I've wiped out all of the keywords, and if we're lucky, this will reduce the number of timeouts we've been experiencing.
Logged

Patrick C., Administrator
Lighting-Gallery.net

xmaslightguy
Hero Member
*****
Offline

Gender: Male
Posts: 861
View Gallery

^homebuilt fixture


GoL ATL
WWW
Re: 500 Internal Server Error « Reply #18 on: June 18, 2019, 08:06:00 PM » Author: xmaslightguy
Just got one when trying to access lighting-gallery.net/gallery/thumbnails.php?album=lastcom
But unlike others here, I really haven't had any issues before this one with getting that error.
Logged

Colored Fluorescent's such as F40T12 Red or  Green or Blue are awesome...

High Intensity
Full Member
***
Offline

Gender: Male
Posts: 161
View Gallery

EYE 175w MV


GoL
Re: 500 Internal Server Error « Reply #19 on: June 19, 2019, 08:34:28 PM » Author: High Intensity
Just got another 500 error.
Logged

Old lighting is, and will always be, the best lighting.

dor123
Hero Member
*****
Offline

Gender: Male
Posts: 2560
View Gallery
Other loves are computers, office equipment, A/Cs


WWW
Re: 500 Internal Server Error « Reply #20 on: June 19, 2019, 08:39:08 PM » Author: dor123
Also: The gallery is very slow now.
Logged

I"m don't speak English well, and rely on online translating to write in this site.
Please forgive me if my choice of my words looks like offensive, while that isn't my intention.

I only working with the European date format (dd.mm.yyyy).

I lives in Israel, which is a 230-240V, 50hz country.

dor123
Hero Member
*****
Offline

Gender: Male
Posts: 2560
View Gallery
Other loves are computers, office equipment, A/Cs


WWW
Re: 500 Internal Server Error « Reply #21 on: June 20, 2019, 09:29:07 AM » Author: dor123
Another form of 500 Internal Server Error:
Logged

I"m don't speak English well, and rely on online translating to write in this site.
Please forgive me if my choice of my words looks like offensive, while that isn't my intention.

I only working with the European date format (dd.mm.yyyy).

I lives in Israel, which is a 230-240V, 50hz country.

Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #22 on: June 20, 2019, 09:01:07 PM » Author: Patrick
If necessary, we can upgrade the server's CPU, but the hosting company charges extra for additional cores.  So I don't want to go that route unless it's absolutely necessary.

I blocked a couple of IP addresses for a foreign search engine that were routinely making multiple requests per minute, and I've opened a ticket with the hosting company to find out if they have any recommendations.
Logged

Patrick C., Administrator
Lighting-Gallery.net

dor123
Hero Member
*****
Offline

Gender: Male
Posts: 2560
View Gallery
Other loves are computers, office equipment, A/Cs


WWW
Re: 500 Internal Server Error « Reply #23 on: June 20, 2019, 11:10:04 PM » Author: dor123
Continue to get this error.
Try to do the following: https://www.interserver.net/tips/kb/troubleshoot-500-internal-server-error/
Logged

I"m don't speak English well, and rely on online translating to write in this site.
Please forgive me if my choice of my words looks like offensive, while that isn't my intention.

I only working with the European date format (dd.mm.yyyy).

I lives in Israel, which is a 230-240V, 50hz country.

rjluna2
Sr. Member
****
Offline

Gender: Male
Posts: 297
View Gallery

Robert


GoL
Re: 500 Internal Server Error « Reply #24 on: June 21, 2019, 06:03:02 AM » Author: rjluna2
Seems to logged in better and switch from forum to gallery quicker Smiley
Logged

Pretty, please no more Chinese failure.

Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #25 on: June 22, 2019, 08:16:56 PM » Author: Patrick
After blocking more IP addresses and adding additional robots.txt directives, bot activity seems to be under control for now.  Problems start when the server is receiving requests faster than it can respond.  The result is a traffic jam.  Page loads slow down, and finally requests that can't be fulfilled time out.  Then the queue clears and it speeds up again, but it'll repeat unless the volume of requests is reduced.

Improvements to the hardware and software can also help satisfy the demand, but there's no sense upgrading to support crawlers that aren't benefiting us.  We want Google, Bing, and major search engines to index the site, but the bulk of the traffic was originating from other provides, and appeared to me to be excessive and unnecessary.

The logs look a lot quieter now, and hopefully all of you see an improvement.
Logged

Patrick C., Administrator
Lighting-Gallery.net

dor123
Hero Member
*****
Offline

Gender: Male
Posts: 2560
View Gallery
Other loves are computers, office equipment, A/Cs


WWW
Re: 500 Internal Server Error « Reply #26 on: June 22, 2019, 08:32:24 PM » Author: dor123
Right now I didn't experience this problem for at least one or two days.
Logged

I"m don't speak English well, and rely on online translating to write in this site.
Please forgive me if my choice of my words looks like offensive, while that isn't my intention.

I only working with the European date format (dd.mm.yyyy).

I lives in Israel, which is a 230-240V, 50hz country.

Fluorescent05
Full Member
***
Offline

Gender: Male
Posts: 152
View Gallery

Zack


Re: 500 Internal Server Error « Reply #27 on: June 22, 2019, 09:42:41 PM » Author: Fluorescent05
Just did it to me a few times while commenting, usually the site responds very slowly to commands before and after this error occurs.
Same for me, usually I'll wait a long time after commenting or clicking on a gallery photo, then a 500 internal server error will pop up.
Logged

Don't be fooLED, T8 IS the worst thing to do to a magnetic T12 fixture.

dor123
Hero Member
*****
Offline

Gender: Male
Posts: 2560
View Gallery
Other loves are computers, office equipment, A/Cs


WWW
Re: 500 Internal Server Error « Reply #28 on: June 23, 2019, 03:20:17 AM » Author: dor123
The problem returned for a sec without my knowledge:

Logged

I"m don't speak English well, and rely on online translating to write in this site.
Please forgive me if my choice of my words looks like offensive, while that isn't my intention.

I only working with the European date format (dd.mm.yyyy).

I lives in Israel, which is a 230-240V, 50hz country.

Patrick
Webmaster
Sr. Member
*****
Offline

Posts: 445
View Gallery


LightingGallery
Re: 500 Internal Server Error « Reply #29 on: June 23, 2019, 09:00:05 AM » Author: Patrick
I can't blame that one on bots.  There weren't any active at the time.  Something else must have been responsible for the timeout.  I'll see if I can find anything.
Logged

Patrick C., Administrator
Lighting-Gallery.net

Print 
© 2005-2019 Lighting-Gallery.net | Powered by SMF 1.1.21 | SMF © 2015, Simple Machines