Server contacted, but Gallery not found at this URL

sboux

Joined: 2003-01-29
Posts: 5
Posted: Sat, 2005-10-01 02:47

Hello,

I have read the FAQ, I have searched the forums for every recent post that discusses my problem and have tried every suggestion that I have found. (apart from installing the latest build of Gallery 2)

I am using Gallery Remote 1.5.1-b1 and my system information is

Gallery version = 2.0 core 1.0.0
PHP version = 4.3.4 cgi-fcgi
Webserver = Microsoft-IIS/6.0
Database = mysql 3.23.58-max-nt
Toolkits = Exif, ImageMagick, Thumbnail
Operating system = Windows NT DEADBOLT 5.2 build 3790
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

I am getting the error "Server contacted, but Gallery not found at this URL". Are there any new suggestions for this problem? Or have I missed the solution to my problem in these forums?

Any help is appreciated.

Thanks

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sat, 2005-10-01 07:07

Can you post the GR log of trying to log on?

Gallery Remote developer

 
sboux

Joined: 2003-01-29
Posts: 5
Posted: Sat, 2005-10-01 23:04

Hi, I have searched for the log explained in the FAQ, but it is just not turning up. I set GR to spew its log information to the console. This is what is generated when I attempt to login.

19156|INFO |GalComm2 |Error: Server contacted, but Gallery not found at this URL ( http://pix.sboux.com/gallery_remote2.php )
21531|TRACE|GalComm2 |Failed to log in to pix.sboux.com
37094|INFO |MainFrame |Command selected Fetch
37094|INFO |MainFrame |fetchAlbums starting
37125|INFO |GalComm2 |Logging in to pix.sboux.com
37125|TRACE|GalComm2 |login parameters: [HTTPClient.NVPair[name=cmd,value=login], HTTPClient.NVPair[name=protocol_version,value=2.3],

HTTPClient.NVPair[name=uname,value=sboux], null]
37125|TRACE|GalComm2 |Connecting to: http://pix.sboux.com/gallery_remote2.php
37125|TRACE|GalComm2 |Path: /gallery_remote2.php
37125|TRACE|GalComm |Sending cookie: PHPSESSID=71cdb623615ff3633851509d53d7e0f8; path=/; domain=.pix.sboux.com
37203|TRACE|GalComm |Accepting cookie: PHPSESSID=71cdb623615ff3633851509d53d7e0f8; path=/; domain=.pix.sboux.com
37203|TRACE|GalComm2 |No input file specified.
37203|ERROR|GalComm2 |com.gallery.GalleryRemote.GR2Exception: Server contacted, but Gallery not found at this URL (

http://pix.sboux.com/gallery_remote2.php )
at com.gallery.GalleryRemote.GalleryComm2.requestResponse(GalleryComm2.java:1393)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.login(GalleryComm2.java:384)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.java:283)
at java.lang.Thread.run(Unknown Source)

37203|INFO |GalComm2 |Error: Server contacted, but Gallery not found at this URL ( http://pix.sboux.com/gallery_remote2.php )
38469|TRACE|GalComm2 |Failed to log in to pix.sboux.com

I hope this is what you where looking for.

Thanks again.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2005-10-04 07:02

Do you have a gallery_remote2.php file in your gallery2 directory? When I went to the URL (http://pix.sboux.com/gallery_remote2.php), I got a page with the text No input file specified, which is not what's supposed to happen: I'm supposed to get a 404 error.

Gallery Remote developer

 
Hue

Joined: 2004-06-10
Posts: 3
Posted: Mon, 2005-10-10 13:08

I have the same problem - for me it's because of a bug with IIS and PHP. For *any* .php file that doesn't exist I get a "No input file specified" because this is the message back from the installation of PHP on my system!

PHP should really return a 404 error.

Even creating a gallery_remote2.php file that tries to write a 404 page doesn't work for me :(

So I've had to ask my users to force the gallery version in the galleryRemote.properties file.

 
sboux

Joined: 2003-01-29
Posts: 5
Posted: Mon, 2005-10-10 18:09

No I do not have a gallery_remote2.php file in my gallery2 directory. I can assume that I never have because I haven't tampered with any of the files in that directory.

Interestingly, I was just able to connect to my gallery with gallery remote. I created a virtual directory pointing to gallery off my domain name. I can now connect with gallery remote using http://www.sboux.com/gallery/.

I am still not able to connect using http://pix.sboux.com, but I can browse the site using either URL.

I'm sure there is some sort of explaination for this. But I don't have it :)

 
Hue

Joined: 2004-06-10
Posts: 3
Posted: Mon, 2005-10-10 19:17

Sboux,
The reason (I should have explained a bit better in my previous post) is because Gallery Remote is doing a version check on the Gallery you have. It does this by looking for the file gallery_remote2.php.
If it exists, then this is a Gallery v1.x installation.
If it doesn't exist, then this is a Gallery v2.x installation

In your case, you have Gallery 2.0 installation, but if you do a http://pix.sboux.com/gallery_remote2.php you don't get a 404 File not found error (try it and see what you get!). So now it looks to Gallery Remote that you have a v1.x installation... but you don't :-)

Hope this explains it a bit better.

 
guiltouf

Joined: 2006-02-01
Posts: 2
Posted: Wed, 2006-02-01 20:18

Hello,

For me I've same error message, but logs are differents.
When I send COOKIE, i've not 'accepting' state and have in return, an error page saying i've Security Violation.

I'm sure on my login and password.
I've got this problem since i've installed G2.
I use last Gallery Remote version. (1.51-b10)
Gallery Remote is included into drupal with a module (0.91)

have you an idea about my problem ?
Thx

PS: I forgot, but 'http://127.0.0.1/Blog/modules/gallery/li
b/main.php' is accessible and no rights problem.

Quote:
837390|INFO |GalComm2 |Error: Server contacted, but Gallery not found at this
URL ( http://127.0.0.1/Blog/modules/gallery/lib/main.php )
838906|TRACE|GalComm2 |Failed to log in to Guiltouf
864156|INFO |MainFrame |Command selected Fetch
864156|INFO |MainFrame |fetchAlbums starting
864156|INFO |GalComm2 |Logging in to Guiltouf
864156|TRACE|GalComm2 |login parameters: [HTTPClient.NVPair[name=cmd,value=log
in], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=
uname,value=guiltouf], null]
864156|TRACE|GalComm2 |Overriding form data: [HTTPClient.NVPair[name=g2_form[c
md],value=login], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], H
TTPClient.NVPair[name=g2_form[uname],value=guiltouf], HTTPClient.NVPair[name=g2_
form[password],value=XXXXXX], HTTPClient.NVPair[name=g2_controller,value=remote
.GalleryRemote]]
864156|TRACE|GalComm2 |Connecting to: http://127.0.0.1/Blog/modules/gallery/li
b/main.php
864156|TRACE|GalComm2 |Path: /Blog/modules/gallery/lib/main.php
864172|TRACE|GalComm |Sending cookie: GALLERYSID=159839d16f6d91439f5fb6537fa0
d02e; expires=Sun Jan 26 20:53:26 CET 2031; path=/Blog/modules/gallery/lib/; dom
ain=.127.0.0.1
864672|TRACE|GalComm2 |Content-type: text/html; charset=UTF-8
864672|TRACE|GalComm2 |<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN
....

Security Violation
....
The action you attempted is not permitted.
....
<a href="http://127.0.0.1/Blog/modules/gallery/lib/main.php">Back to the G
allery</a>

...
</html>
864672|ERROR|GalComm2 |com.gallery.GalleryRemote.GR2Exception: Server contacte
d, but Gallery not found at this URL ( http://127.0.0.1/Blog/modules/gallery/lib
/main.php )
at com.gallery.GalleryRemote.GalleryComm2.requestResponse(GalleryComm2.j
ava:1406)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.login(GalleryComm2
.java:385)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.j
ava:284)
at java.lang.Thread.run(Unknown Source)

864672|INFO |GalComm2 |Error: Server contacted, but Gallery not found at this
URL ( http://127.0.0.1/Blog/modules/gallery/lib/main.php )
866203|TRACE|GalComm2 |Failed to log in to Guiltouf

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2006-02-02 09:59

With G2, you don't have to declare that your Gallery is embedded in GR like you did with G1: just use the normal G2 URL.

--
Gallery Remote developer

 
guiltouf

Joined: 2006-02-01
Posts: 2
Posted: Thu, 2006-02-02 14:58

Hi Paour,

Thanks for your answer, but I don't really understand what i've to do.
Can you explain the fact I don't have to declare that Gallery is not embedded in GR.

This is my GR account configuration :
Login informations
Gallery Type : Stand Alone
Gallery URL : http://127.0.0.1/Blog/modules/gallery/lib/

The import Remote module is activated in G2 modules.

What have I to change in those parameters ?

Thx

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2006-02-02 15:07

You have to change the Gallery URL to wherever your Gallery 2 is installed (where you extracted the G2 zip file to).

--
Gallery Remote developer

 
jamarante

Joined: 2005-03-14
Posts: 6
Posted: Sun, 2006-02-05 16:35

I have the same exact problem. My gallery remote was working until I updated it using the Fantastico scripts provided by my web host. Now I cannot use gallery remote. The files were not present in my gallery directory. I copied both gallery_remote.php and gallery_remote2.php from the backup of my old gallery 2.0 into the current gallery directory, but I still get the same msg as documented in this post.

Here's what I get if I try to access gallery_remote2.php in a browser:

Warning: main(/home/jamm/public_html/amarante/gallery/init.php): failed to open stream: No such file or directory in /home/jamm/public_html/amarante/gallery/gallery_remote2.php on line 25

Fatal error: main(): Failed opening required '/home/jamm/public_html/amarante/gallery/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jamm/public_html/amarante/gallery/gallery_remote2.php on line 25

Before I start copying more files, can someone offer another solution?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2006-02-06 10:54

First, neither gallery_remote.php nor gallery_remote2.php should be anywhere in G2, except to overcome the bad 404 error.

The best way to do that is to force GR to use the G2 (rather than G1) protocol: http://codex.gallery2.org/index.php/GalleryRemote:FAQ#Connecting_to_a_G2_installation:_Server_contacted.2C_but_Gallery_not_found_at_this_URL

--
Gallery Remote developer

 
jamarante

Joined: 2005-03-14
Posts: 6
Posted: Mon, 2006-02-06 19:12

Ok, I'm not getting a 404 error, just the msg that's in the title of this forum post:

Server contacted, but Gallery not found at this URL

My GR was working prior to the 2.02 patch. How do I fix this problem?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2006-02-06 20:38

jamarante: this error is what GR says whenever it can't log it, for whatever reason. You'll need to attach the log for me to find out what's really happening...

--
Gallery Remote developer

 
jamarante

Joined: 2005-03-14
Posts: 6
Posted: Mon, 2006-02-06 22:09

Sorry, I'm new to this.

I've attached the log...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2006-02-07 08:02

jamarante: the problem is that despite the fact that you have a G2, it responds positively when GR tries to find out if it's a G1. Please apply the solution I pointed out in my previous post.

--
Gallery Remote developer

 
jamarante

Joined: 2005-03-14
Posts: 6
Posted: Tue, 2006-02-07 15:59

Great, that worked! I was getting the 404 already, so I had to use the second option. I had tried to edit the file while GR was running. It appeared to save, but GR still didn't work. I checked it one more time without GR running, and the .property file changes hadn't saved. Second try worked.

Thanks again for all the help.

 
sunkit

Joined: 2005-08-02
Posts: 23
Posted: Wed, 2006-02-08 02:04

I found this problem in these two days.

I have setup a new computer and new G2,

after all the method I found in this forum, all cannot work but until I delete the log file in %temp%.

It ok now.

Just for your ref.

 
mruiz-gal

Joined: 2006-02-15
Posts: 1
Posted: Wed, 2006-02-15 04:47

Here is my log file. Can you tell me what is wrong with my url.
http://photos.mruiz.com = http//mruiz.com/gallery2

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sat, 2006-02-18 15:27

mruiz-gal, did you enable the remote module on your Gallery?

--
Gallery Remote developer

 
tabu

Joined: 2006-02-21
Posts: 2
Posted: Tue, 2006-02-21 03:34

I had this problem when I've used "Upload applet" to upload *.avi movie files. However I was only getting it when files were over 2MB.

So I have changed my php settings to 100 MB, but now files that are like 40M are rejected. I realize there are browser side restrictions, but is that the end of the road? or is there still a way to upload those big files?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2006-02-21 07:55

tabu: for really large movie files, I think the best solution is to place them on a web server and use G2's import from URL.

--
Gallery Remote developer

 
tabu

Joined: 2006-02-21
Posts: 2
Posted: Tue, 2006-02-21 13:42

I have no problem with that, but my older parents do... :(

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2006-02-21 17:12

Gallery is ill-equipped to handle movies that size, since it relies on PHP, which is flawed in that respect.

--
Gallery Remote developer

 
scottnemiro

Joined: 2006-05-02
Posts: 57
Posted: Tue, 2006-05-09 02:01

i am having same prob... i have tried all suggested fixes but no joy...

i get "error: server contacted, but gallery not found at this url (http://www.scottnemiro.com/gallery/main.php"

 
ravell

Joined: 2003-03-14
Posts: 10
Posted: Sun, 2006-05-14 04:07

Server contacted etc error... I've attached my log file can someone look at it please and tell me my course of action... Also where can i find the remote module? Activate/install ????

thx Rav

email or post here

[img]http://rav.horca.org/images/Capture1.BMP[/img]
[img]http://rav.horca.org/images/Capture2.BMP[/img]

 
eye1marie

Joined: 2006-05-21
Posts: 13
Posted: Sun, 2006-05-28 09:30
scottnemiro wrote:
i am having same prob... i have tried all suggested fixes but no joy
...

i get "error: server contacted, but gallery not found at this url (http://www.scottnemiro.com/gallery/main.php"

Yeah same problem here... still trying out some suggested fixes.. but still hoping it would be good rightaway! Thnx though for all the information.

 
jam583

Joined: 2007-02-20
Posts: 15
Posted: Sun, 2008-12-07 17:30

I wanted to give some input on this error that I also had. I use Drupal and recently deployed Global Redirect for SEO Purposes (http://drupal.org/project/globalredirect). Upon doing so my gallery remote broke. This has to do with Drupal taking over the 404 pages and rewriting. Creating the gallery_remote2.php file and putting it in the root directory where gallery was installed worked. However, I had to open the file in my web browser once before remote started working.