NikonGear'23

The NikonGear Office => Site Issues => Topic started by: rosko on May 27, 2016, 15:13:24

Title: 500 internal server error...
Post by: rosko on May 27, 2016, 15:13:24
I am trying to post in ''old school Nikon primes'' thread. Impossible, even without picture. I tried several times.

I could post one with picture this morning, though !

Can it be my computer ?

Cheers, Francis.
Title: Re: 500 internal server error...
Post by: Andrea B. on May 27, 2016, 16:22:39
Hi Francis -

A 500 error is generated because of something that happens in our Site5 web server. It is a generic error message and difficult to trace. Most likely there was some temporary problem on the server possibly involving connection to the database or reaching some kind of PHP memory limit. I will go check the error logs and try to discover what happened.

Although this error message has no connection to anything you did, it is sometimes useful anyway to completely start over. Turn off browser, clear your browser caches, restart the browser and try again.

As a general note:  HTTP error codes like 5XX are due to website server problems. HTTP error codes like 4XX are caused by something on the client (your) side. More details can be found in good old Wikipedia: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Cheers - Andrea B.
Title: Re: 500 internal server error...
Post by: Andrea B. on May 27, 2016, 16:51:15
I can find no listed server problems, per se, for the NG server. So it was some connection timeout most likely. Nothing you or we had any control over.
Title: Re: 500 internal server error...
Post by: Frank Fremerey on May 27, 2016, 17:00:59
#404 is "page not found on server", certainly not a client side problem....
Title: Re: 500 internal server error...
Post by: rosko on May 27, 2016, 17:08:01
Thank you Andrea for your prompt answer ! :)

I will try again.
Title: Re: 500 internal server error...
Post by: Andrea B. on May 27, 2016, 20:04:04
Frank, 404 is a client-side error. It means you asked for a page that is not available on the server. This could happen because you are using an old link or because you got something wrong in a URL. But it is not a server error because the server did not fail: the server received a request, performed that request and reported the result.
Title: Re: 500 internal server error...
Post by: Frank Fremerey on May 27, 2016, 20:18:25
Thank you, Andrea!
Title: Re: 500 internal server error...
Post by: rosko on May 27, 2016, 20:26:11
I think that is due obviously because of my poor connection : when I click on a post , I have to wait several seconds to minute to get the post I want to read.

Also, any pictures appear very slowly.

I am patient, retrying later.

Thanks again, Andrea for your help ! :)

Francis.
Title: Re: 500 internal server error...
Post by: Andrea B. on May 27, 2016, 20:33:20
Francis, that could be the problem.

Here is a link where you can test both your Download and your Upload speed.
http://www.speedtest.net/ (http://www.speedtest.net/)

My test shows that my Download speed is 58.21 Mb/second and my Upload speed is 31.44 Mb/second. My internet service is not the fastest possible in my area, but is suffices. When I click on an NG post, it immediately appears for reading.
Title: Re: 500 internal server error...
Post by: Frank Fremerey on May 27, 2016, 20:42:28
Francis, that could be the problem.
Here is a link where you can test both your Download and your Upload speed.
http://www.speedtest.net/ (http://www.speedtest.net/)
My test shows that my Download speed is 58.21 Mb/second and my Upload speed is 31.44 Mb/second. My internet service is not the fastest possible in my area, but is suffices. When I click on an NG post, it immediately appears for reading.

Title: Re: 500 internal server error...
Post by: rosko on June 01, 2016, 12:08:18
My internet connection is now back to normal. (week day, hence less demand).

I tried again posting with an image (size : 800x689, 478KB)

I still get this error message :


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Internal Server Error

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

Please contact the server administrator, webmaster@nikongear.net 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 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

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


I tried first in ''old school nikon primes'' without success, and then tried in ''critique'' still unsuccessfully.

Just for information.

I am going to try with my laptop.

Will let you know.

Cheers, Francis.
Title: Re: 500 internal server error...
Post by: Bjørn Rørslett on June 01, 2016, 12:30:14
My current internet connection is very slow, a tiny fraction of the figures quoted by Andrea and Frank. Yet the NG sides load almost instantly, if they contain mainly text. With a lot of attached images, the text still comes up quickly, but then I have to wait for the attachments to show. This is actually my backup net connection so I don't bother to worry further about it, more important is the new provider that is to be installed this week. However that internet connection won't be operative unless I reroute cables inside my house and then I have to drill through a wall or two. Under the current heat wave over here I probably just let things be as they are. 32C is too hot for a fierce bear of the north.
Title: Re: 500 internal server error...
Post by: rosko on June 01, 2016, 13:26:02
Thanks Bjørn for this prompt answer.

We just phoned to our internet provider. He tweaked in the line and now our computers are faster.

I have to drill through a wall or two.

I would be more than happy to give you hands to drill your walls, but Oslo is too far ! ;D

BTW, 32C is too hot for me too...I comparison, we are freezing here in south England !  :o

No problem at all about the issue, I am patient and I can still read the forum.

Anyway, I am sure the things will come back to normal soon. ;)
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 17:01:31
Hi Francis -

I can't think what could cause this 500 level server error. Of course I am looking into this.

I wonder if you would be so kind as to put one of the photos which you are trying to upload into Dropbox and send me the link? I want to determine whether there is anything at all about the photo file which may cause a problem in the server.

More later.
Title: Re: 500 internal server error...
Post by: rosko on June 01, 2016, 20:44:15
Hello Andrea !

Ok, will try to do it. :)
Title: Re: 500 internal server error...
Post by: rosko on June 01, 2016, 21:25:05


Here is the link :

https://www.dropbox.com/sh/o1ivgq0sjwojrnt/AAC1hpvgLIBndGBrMnqv921Ca?dl=0

I hope that will help.


Many thanks, Andrea !

Francis.
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:22:51
My trial upload of Francis' photograph just failed and created a 500 Internal Server error.
I suspect it is because of the way the filename was constructed:  mosquito's larva .JPG
The spaces may not be good. I'm not sure about the apostrophe, but it also may not work.

I am going to rename the file like this:  mosquito_larva.JPG.
And then I will try the upload again.
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:23:39
Trial upload of renamed photo.
This obviously worked.

Turns out it was the apostrophe which confused the software.

So, Francis, please rename your photo files so as to have no apostrophes.  ;D
Title: Re: 500 internal server error...
Post by: Bjørn Rørslett on June 01, 2016, 22:26:18
Spaces embedded in a file name should not be a problem. I upload files with spaces in their name every day to NG.

Apostrophes are another matter and probably can break the upload?

Very nice image, by the way.


Added: trying to upload a file with apostrophe in the file name causes Server Error 500.
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:29:55
Yes it was the apostrophe which somehow broke something. Why, I could not begin to guess. But I think it was probably mis-interpreted as some kind of beginning quote mark.

I think there is still some software out there which also does not like spaces in filenames. So it is best to be careful with that too.

(I tested uploads with apostrophe only and with space only.)
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:32:02
Renamed with space only:  mosquito larva.JPG
This works just fine here on NG.
May not always work everywhere.
Title: Re: 500 internal server error...
Post by: Bjørn Rørslett on June 01, 2016, 22:35:20
As I said, a few thousand images with embedded spaces in their file names have been uploaded to NG before ...
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:36:23
Yes, Bjørn, we got it. But spaces may not always work everywhere. I'm just sayin'.

"Best practices" for file naming still suggests no special characters and no spaces.
Not all software has caught up to spaced filenames yet.
Title: Re: 500 internal server error...
Post by: Bjørn Rørslett on June 01, 2016, 22:42:11
Using such file names on every web site to which I subscribe. Never been a problem.

However, what sometimes is mislabelled "accented characters" can get you into deep troubles. Sadly even in 2016 we are burdened by the ASCII inheritance. The world should cater for UniCode these days ....
Title: Re: 500 internal server error...
Post by: Andrea B. on June 01, 2016, 22:47:41
Well, I am happy for you that you have been lucky so far with spaced filenames. There is so much "legacy" code out there, that it is difficult to know sometimes just how it will respond to spaces, special characters, "accented characters" and so forth.
Title: Re: 500 internal server error...
Post by: rosko on June 02, 2016, 00:27:22
Thank you so much, Andrea ! Fortunately you found out the issue.

I knew that something was wrong either with my computer or image, but as you have certainly noticed I am far to be an expert ! ::)

Cheers, Francis.
Title: Re: 500 internal server error...
Post by: rosko on June 02, 2016, 00:48:07
So, Francis, please rename your photo files so as to have no apostrophes.  ;D

Photo renamed (without apostrophe)

Post and picture successfully sent ! :)

I am relieved ! ;)

http://nikongear.net/revival/index.php/topic,3171.195.html

 :)
Title: Re: 500 internal server error...
Post by: zuglufttier on June 02, 2016, 20:09:45
However, what sometimes is mislabelled "accented characters" can get you into deep troubles. Sadly even in 2016 we are burdened by the ASCII inheritance. The world should cater for UniCode these days ....
It's just the forum software: It doesn't check for valid file names. The best case would be to check for a valid name on the client side before uploading and after uploading again on the server if the image is really an image and not something else ;)