galleryadd.pl gets error 500 at login

geantbrun

Joined: 2007-07-21
Posts: 13
Posted: Sat, 2007-11-10 15:18

hello,
I'm getting error 500 while trying to upload an image with galleryadd.pl

/usr/bin/perl galleryadd.pl -g http://www.geantbrun.com/albums -u myuser -p mypassword -G 2 -a album_name photo.jpg -v

I always get this error message:
============================================================
System http://www.geantbrun.com/albums/main.php [G2]
Login: geantbrun [ERROR]

http://www.geantbrun.com/albums/main.php
500
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
500 Internal Server Error
</BODY>
</HTML>

Any hint very appreciated!
Thanks,
Patrick

 
pelinga

Joined: 2007-05-22
Posts: 26
Posted: Fri, 2007-11-23 06:47

Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
Open an IP socket connection to that IP address.
Write an HTTP data stream through that socket.
Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.

----------
http://www.lisisoft.com/::http://www.lib-art.com/

 
geantbrun

Joined: 2007-07-21
Posts: 13
Posted: Tue, 2007-11-27 21:40

Thank you pelinga for your answer.

I opened a socket connection through PHP to retrieve information about my server:
HTTP/1.1 200 OK Date: Tue, 27 Nov 2007 21:28:03 GMT Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2 X-Powered-By: PHP/4.4.7 MS-Author-Via: DAV Vary: Accept-Encoding Transfer-Encoding: chunked Content-Type: text/html

Could you be more explicit about writing an HTTP data stream through a socket, receiving data, parse for *useful* status codes?

Thank you again,
geantbrun

 
greenleaf_the_savage

Joined: 2008-02-11
Posts: 12
Posted: Thu, 2008-02-14 04:27

I get the same error (well, different URL, username, and password, but same type of error. I can manually add files through my web browser through the website, but the Perl script gives me this error every time. I had started another thread about this, because I hadn't found this thread yet, but it got deleted.

Does anyone have any suggestions that don't require programming and an extensive knowledge of hypertext transfer protocol to understand?

 
johncass

Joined: 2008-03-16
Posts: 1
Posted: Sun, 2008-03-16 14:07

I has this problem.

If you are using Gallery2, make sure you have the Remote Interfaces plugin installed and enabled.

galleryadd.pl uses this interface to control gallery (version 2 only)

regards

JOhn

 
geantbrun

Joined: 2007-07-21
Posts: 13
Posted: Wed, 2008-08-13 14:55

A little bit late but... thanks johncass, it works now!
Patrick