HTTP POST failed: HTTP 500 Internal Server Error

picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-04-27 20:35

Hello,

Trying to log into Gallery with Gallery Remote from the "add items" link using the Java Webstart causes an HTTP POST failed: HTTP 500 Internal Server Error.

I have updated and installed the latest plug in from the repository and cleared my Java cache.

My GR log file is attached. If someone could help me decipher the error and, ideally, point me to a fix, I would greatly appreciate it.

Thanks,
Andrew

Gallery URL = http://www.photosbybailini.com/g2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.17 cgi
Webserver = Apache/2
Database = mysqlt 5.0.91-log, lock.system=flock
Toolkits = ImageMagick, jpegtran
Acceleration = partial/3600, partial/3600
Operating system = Linux cgi0701.int.bizland.net 2.6.35.8-nx #1 SMP Wed Nov 3 01:47:21 EDT 2010 i686
Default theme = carbon
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1
Rows in GalleryAccessMap table = 1249
Rows in GalleryAccessSubscriberMap table = 85237
Rows in GalleryUser table = 256
Rows in GalleryItem table = 85234
Rows in GalleryAlbumItem table = 2980
Rows in GalleryCacheMap table = 416

AttachmentSize
GalleryRemoteLog.txt29.05 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-27 20:59
Quote:
HTTP 500 Internal Server Error.

Check Apache's error log (not access log) That's the only place those types of server side errors are logged.
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-04-27 21:30

A-HA!

Powweb's techs have been telling me it's an app problem, not a server problem.

Do you mean the CGI Error log? I've downloaded it, but can't attach it here because it exceeds the file size limit.
So, I cleared the log and tried running GR the same way which once again caused the same error. However, after refreshing the log, it's still blank....

suggestions?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-27 21:41

No, Apache's error log:
FAQ: What is the webserver error log?

Powweb will probably need to look at that for you. But it's not possible for a browser or client to cause a 500 server error. Well it is, since it's them making the request, but to have any idea what they are doing to make the server vomit we need to know what the error actually is and those error messages are only on the server.
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-04-27 21:57

All I can find in my control panel is the CGI error log, so I've asked the techs for the Apache log.
Once I hear back from them, I will update here.

Thanks!
Andrew

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-27 22:07

Error log, not access log. There is a difference :)
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-04-27 22:24

I found the access log in my stats directory and noticed that it doesn't have any error listings. Still couldn't find any server error logs, though.

I have asked again for the Apache error log.

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-04-27 23:54

I've been informed that Powweb does not make it's server error log available to customers due to the shared hosting environment.

So, the next question is, can you suggest a more efficient and customer friendly host for my gallery...???

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-04-28 15:50

Unfortunately, Powweb will not help me. They won't release the server error log to me, nor will the simply read it and pass along the pertinent info.
They still say it's not a server problem, so I'm rather stuck.

Is there anything you can glean from the attached GR log? It's the latest one after trying a few times to log in this morning.

By the way, I am able to upload via the "Upload Applet", but considering the volume of proofs I normally upload, it wont be a practical interface.
GR is needed.

It was working for me before, so is there somewhere I can still download the previous build? Maybe something in this latest build isn't playing well with the powweb server....?

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Wed, 2011-06-01 17:19

So, after a month of fiddling, I have a (more or less) working gallery on a new VPS host.

GR is still causing the Internal Server Error, but at least now I have the error log to diagnose it:

[Wed Jun 01 12:40:17 2011] [error] [client 70.27.136.30] File does not exist: /home/photosby/public_html/g2/gallery_remote2.php

The error seems fairly obvious to me, so the question is why is that file not where it's supposed to be..?
Doesn't the java webstart place the file there when asked to...?
Or do I need to place it there?

Thanks!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 16:03

Here's the latest error from just a moment ago when I tried again after some tweaking....

[Thu Jun 02 12:02:41 2011] [error] [client 70.27.136.30] File does not exist: /home/photosby/public_html/404.shtml
[Thu Jun 02 12:02:41 2011] [error] [client 70.27.136.30] File does not exist: /home/photosby/public_html/g2/gallery_remote2.php

Any ideas...?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-06-02 17:42

gallery_remote2.php is part of gallery1 and not intended for use w/ gallery2
maybe you have the wrong version of Gallery Remote, or have it configured wrong.
http://codex.gallery2.org/Gallery_Remote

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 17:57

So even though I'm trying to run it from within G2.3 (java webstart), it's still looking for G1 protocols?
I don't understand that at all. Doesn't running the java webstart ensure the latest version is launched?

I also don't understand how it could be configured wrong since, again, it's being launched from within G2.3.

I have also tried installing the .jar bundle on my computer, but that caused some strange java things...
I'll try to recreate that and update with more info.

Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2011-06-02 18:45

Do you have the Remote plugin installed under Site Admin > Plugins?
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 18:50

Yes. I've deactivated, uninstalled, cleared plug in cache and re-installed it too.

Just about to try updating the applets as described in
http://codex.gallery2.org/Gallery_Remote:FAQ - How do I upgrade the GR applets in G2?

Is the latest nightly build safe?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2011-06-02 18:55

Try these, but I think you have...
FAQ: Gallery Remote can't find my G2, what's wrong?

As well as this:
http://codex.gallery2.org/GalleryRemote:FAQ#Connecting_to_a_G2_installation:_Server_contacted.2C_but_Gallery_not_found_at_this_URL
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 19:40

I've used Terminal to add the forceGalleryVersion line to .GalleryRemote.properties
I've added gallery_remote2.php with the code to my /g2 directory.

Still no luck.

Here's what my host tech support has to say about it:

Hi,

Currently the basic requirements for the application is enabled on the server and you can check the status at http://www.photosbybailini.com/ghcc.php , It seems the the issue is with the installation and seems some files (for example File does not exist: /home/photosby/public_html/g2/gallery_remote2.php). We recommend you to reinstall the application without a forwarder.

Does he mean to install GR directly on my server? Do I just download and extract the appropriate GR version?

Since I'm on a new server.....
Gallery URL = http://www.photosbybailini.com/g2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi
Webserver = Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.92-community, lock.system=flock
Toolkits = ImageMagick
Acceleration = partial/3600, partial/3600
Operating system = Linux server1.photosbybailini.com 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 x86_64
Default theme = carbon
gettext = disabled
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 19:55

Here's the latest java log

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 19:57
 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 20:01

just tried downloading the MacOSX bundle and installing it on my computer.
Same result.

Error log:
[Thu Jun 02 16:00:26 2011] [error] [client 88.131.106.22] File does not exist: /home/photosby/public_html/404.shtml
[Thu Jun 02 16:00:26 2011] [error] [client 88.131.106.22] File does not exist: /home/photosby/public_html/g1

Any idea why it's still looking for g1 even after forcing GalleryVersion?

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Thu, 2011-06-02 20:41

After updating the applets

[Thu Jun 02 16:39:19 2011] [error] [client 70.27.136.30] File does not exist: /home/photosby/public_html/404.shtml, referer: http://www.photosbybailini.com/g2/main.php
[Thu Jun 02 16:39:19 2011] [error] [client 70.27.136.30] File does not exist: /home/photosby/public_html/favicon.ico, referer: http://www.photosbybailini.com/g2/main.php

Is this progress...?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-06-03 02:41

I didn't realize or pay attention that you're still running 2.3, upgrade to 2.3.1 and let us know if you're still having the problem.

Also, did you create the "dummy" gallery_remote2.php file?
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Fri, 2011-06-03 14:38

Gallery version = 2.3 core 1.3.0

Isn't that essentially 2.3.1? Or is there another upgrade for G2?

As a matter of fact, increasing the php max upload file size seems to have solved the problem. I also created the "dummy" gallery_remote2.php file.
I don't really understand how this interfered with GR logging on or even how it caused an HTTP 500 error, but I uploaded via GR last night and will be doing so again today (hopefully!)

Thanks for all your help nivekiam and suprsidr!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-06-03 15:51
Quote:
Isn't that essentially 2.3.1? Or is there another upgrade for G2?

No and yes
____________________________________________
Like Gallery? Like the support? Donate now!

 
picdude

Joined: 2006-06-13
Posts: 176
Posted: Fri, 2011-06-03 16:00
nivekiam wrote:
Quote:
Isn't that essentially 2.3.1? Or is there another upgrade for G2?

No and yes
____________________________________________
Like Gallery? Like the support? Donate now!

Figures.... Just when I got it all set up and working properly....
I'm very reluctant to go messing around with it again, but will go look at what's involved in the upgrade.

I have a flash mod that I'm worried about overwriting if I upgrade.