upload applet error ("Gallery not found")
tradenet
Joined: 2004-11-22
Posts: 9 |
![]() |
Is this thing working? I'm using the latest CVS version (Nice and it really is) |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
It works for me.. And I can't find references to "gallery_upload.php" anywhere in the Gallery 1, Gallery 2 or Gallery Remote source code |
|
tradenet
Joined: 2004-11-22
Posts: 9 |
![]() |
Actually it's gallery_remote2.php...sorry about that. bharat wrote:
It works for me.. And I can't find references to "gallery_upload.php" anywhere in the Gallery 1, Gallery 2 or Gallery Remote source code |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Hm. Look at your access logs when you access it via knsi.net and then when you use tradenet.com. What files does it request for each and what is the result code? My guess is that it's successfully getting something back from knsi.net that it's not getting back from tradenet.com which is causing it to fall back to thinking that you have Gallery 1.x installed (we use similar applet libraries for both versions). |
|
tradenet
Joined: 2004-11-22
Posts: 9 |
![]() |
OK this is what I get: Quote:
access log: BTW, logs are a bit changed to protect the innocent ;-) |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Your access long and error log don't line up. That's kind of odd. But the weird thing is that for some reason it's trying to get to files under "~/gallery" which doesn't exist. That's very odd. Any chance that I can ssh to your box and try it out myself? Thanks. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
I have this same error. It is whne using the upload applet. The exact error is: |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
By the way, I am using Windows Server 2k3, it looks like tradenet is also. I checked for that file, gallery_remote2.php and it definatley does not exist on my installs either. I have added two additional installs and have the same result of the upload applet malfunctioning. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
check the G2 FAQ for the format of the url to give to GR. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Thanks for the reply...however... Cheers |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
gregradz read the faq, yay! Yes, my bad.. i sometimes forget about the applet as i haven't used it much. I just tried it out and got the same error you reported.. though I tried with firefox on mac osx, and I learned using java on that browser+os is a sketchy experience at best. I'm afraid i don't know enough about GR or the upload applet to be able to find the problem easily, but i'm pretty sure it shares a codebase with G1 GR/applet, so maybe it's confused on which gallery version it is working with. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Thanks for the reply! I spent some time today playing with it and my server and GR... |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
if i'm reading the thread correctly, you want to check yourserver.com/gallery2/modules/remote/module.inc |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
That is what I read also. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
I have made progress, in a way. The same setup works great on IIS5, Server 2000. So, it is something different from 2000 to 2003 that is causing the problem. I changed around the directory structure so there is no longer any virtual directory usage, that did not fix the error either. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Well, messing with setting, adding .inc files as allowed extensions for php to run in IIS, and I have a new error. When I try to hit modules.inc in the remote directory, I get this: |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
you've got it right. you're not supposed to be able to do anything useful by accessing that file directly.. it only needs to be accessible. if the file exists at all then GR can tell it is G2. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Ok, so I can hit the file now...which was the permissions issue I thought was preventing GR/upload applet from working right. But guess what, I still get the error that gallery does not exist, cannot find gallery_remote2.php |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
sorry, not from me.. i don't know the internals of GR or the applet |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Well, there are three of us working on it now. I am the least advanced in terms of progamming knowledge so maybe one of the other guys will get it figured out. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
ok, I dug into it far enough to find the problem. so for now, change your .htaccess. paour can find a more reliable way to figure out the gallery version (maybe just reverse the order of the check? or will /gallery2/modules/remote/module.inc be a valid url against G1? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
i filed this bug for this |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
ah, now i've learned that in mid november this bug was resolved by adding a line in the recommended .htaccess file... take a look at Site Admin / Import / Gallery 1 where it has the sample .htaccess. Make sure yours has that line with gallery_remote2.php in it.. (mine didn't!).. now I can use the upload applet. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
ahhh....only thing is the hatccess is an Apache configuration file and this is a Windows IIS6 box. So, I don't think the htaccess is going to make any difference for me. UPDATE!!! |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
Okay, I just installed G2 on Win2K/IIS 5.0 and I'm receiving the same problem. I don't have a virtual directory set up for this. I've tried it with both the "Gallery Remote" and "Upload Applet" and both have given me the same error about the gallery_remote2.php file. I do have to say I'm quite impressed with the admin side of the system, and if my ideas (wished for in other posts) are done, I'd be tickled pink! or blue! |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
While I am just a 'regular' user, I will see if I can put you on the right path. |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
Well a Win2K3 upgrade is on hold until I find work again, so a different aproach is necessary Turning debug module on doesn't do anything in particular that I can see... no messages on screen, don'tsee any files.. logs etc.... |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
You are able to browse (with IE or similar) to and properly open the file located in /gallery/modules/remote/modules.inc ? It should give you an error message on line 28 or something similar. If so, that means your php is working fine and the applet should see the file which means it should recognize the G2 install as it is instead of defaulting back to G1 version, which is what it is doing. |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
IIS 5, PHP 4, G2 I tried to access that page (inc) and it opens as a "HTML page" not a php page. I did get a weird error. running gallery on 1 web page, I tried opening another (to index.php) gave me a weird page, then clicking on the links messed up... if I instead used main.php instead of index.php it worked fine... so back to my remote problem..... the entire directory structure is set for read access currently. When setting to full access for entire galery, still didn't work. I've also tried setting the user_tmp_dir in the php.ini as well, to no avail. Cheers, |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
follow-up... I updated the configuration in IIS so that .inc files should be called as PHP, and I get the error on line 28 as noted (above), but the upload applet still doesn't work. BTW, the cancel button also fails to close the window. using the gallery_remote tool (as updated today) also gives same message about the www/gallery2/gallery_remote2.php Cheers, |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
So check your php.ini file and make sure it is set to work properly with IIS. You should have main.php and index.php is your documents listing in your IIS site configuration. Also, when I say open up your permissions, I mean open. Set your gallery related folders to full access-including write. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
OK!! So, from what I understand, your php is now working properly and your permissions are now set. The gallery install is good, so the issue is with IIS... |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
oh, the weird error I believe is a red herring in this problem, I was just noting it exists. Basically PHP works, IIS works, MySQL works and Win2K works. This has been a mostly stable platform for a while now. Even Gallery2 seems to work (what little I've tested). The mass uploading aspects don't and alas are still haven't changed. 1. I did try turning on full permissions. didn't change anything. alas the 2 upload mthods don't but I am sure they both use the same mechanism to check. Is there another tool that can be used to check? or an url I can type in to see what happens.... something to indicate what might be a direction I should go. As I am wondering if there is some virtual php thing thats going on.... Cheers, |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
I agree on everything except #2-installing he service pack made everything suddenly work for me. I cannot explain it any other way. It won't hurt to try it, S4 is the latest with 2k, see what happens. Roll it back if ou don't like it or do it on a test platform. |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
1.... the topic should be changed as its not solved for all cases. So if I were an upload tool... what would the URL be that I'd be attempting to send to test for existance of a G1 or G2 version..... (hopfully this could be a starting point for discovery....) Cheers, |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
When I start up the applet, I see the following in my access log Quote:
x.x.x.x - - [08/Jan/2005:11:34:33 -0800] "HEAD /gallery2/gallery_remote2.php HTTP/1.1" 404 - "-" "RPT-HTTPClient/0.3-3E" What do you see in your access log? |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
Entering the following as the URL: http://www.sarafinchan.com/gallery2/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=no-op RETURNS: #__GR2PROTO__ ------------------------ Cheers, |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
It's weird that it says "'no-op' unknown". I think that this is a bug. However, I verified with GR and the upload applets on my own G2 server that this doesn't affect the applets (ie, they still work). When I use the upload applets on my G2 (Apache2) install, I see: applets request: GET /gallery2/main.php?g2_controller=remote:GalleryRemote&g2_form%5Bcmd%5D=no-op server returns: #__GR2PROTO__ status=301 status_text=Command 'no-op' unknown. debug_user=admin applet requests: POST /%7Ebharat/gallery2/main.php g2_form%5Bcmd%5D=login&g2_form%5Bprotocol_version%5D=2.3&g2_controller=remote%3AGalleryRemote&start_debug=1&debug_port=10000&debug_host=x.x.x.x%2C127.0.0.1&send_sess_end=1&debug_url=1 server returns: #__GR2PROTO__ server_version=2.3 status=202 status_text=Login parameters not found. debug_user=admin applet requests: POST /%7Ebharat/gallery2/main.php <then a ton of multipart post form data here, including the image I'm uploading server returns: #__GR2PROTO__ status=0 status_text=Add photo successful. debug_user=admin I got this info by running "sudo tcpflow -c port 80" and watching the traffic over the wire. There are some unusal things in there. I don't know why the noop command says Command 'no-op' unknown and I don't know why we do a login request and then don't pass in a username/password when we don't even need to log in at this point. I'll ask Pierre about those. However, it actually works for me. What do you see when you try watching your net traffic? |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
What is sudo? |
|
fryfrog
Joined: 2002-10-30
Posts: 3236 |
![]() |
Try "man sudo" on a linux system some time, but basically it is a program that allows people to run commands / programs AS root with out having the root password. If you have ever used "su" you know that to use it you need the root password, sudo is similar except it requires YOUR password... not roots. Those kinds of questions are also easily answered by google, which you can find at http://www.google.com |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
I had a feeling it was a linux command. I'm running Windoze for this application (its the beast with the huge drive array). So another option is required.... Cheers, |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
quentinjs wrote:
I had a feeling it was a linux command. I'm running Windoze for this application (its the beast with the huge drive array). So another option is required.... Try installing Ethereal -- it'll let you watch net traffic just like tcpflow does. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Sorry all to jump in at this late stage in the post. I had taken a break from GR work (heled by the fact that I wasn't receiving the "watch this topic" emails). I fixed this in CVS. It was a very lame error in the remote module in G2 (my fault). |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Paour- |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
I noticed a debug version of GalleryRemote today. I've updated both the G2 and RemoteGallery from the CVS from last night. Following is my log for RG from the moment I press the login button: 19250|TRACE|GalComm2 |login parameters: [HTTPClient.NVPair[name=cmd,value=login], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=uname,value=quentin], null] 19250|INFO |GalComm2 |Error: Server contacted, but Gallery not found at this URL ( http://www.sarafinchan.com/gallery2/gallery_remote2.php ) --------------------------------------- Cheers, |
|
quentinjs
Joined: 2004-11-25
Posts: 32 |
![]() |
*Bump* Any additional ideas? Suggestions? Is the log above reporting correctly, or can someone decifer it? Cheers |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Quentin, I think what's wrong is that instead of returning a 404 error, like GR expects, your Apache is returning an error message, so GR doesn't know what to do. I'm not sure how this came to be, but you can look in that direction. |
|
gregradz
Joined: 2004-09-20
Posts: 57 |
![]() |
Paour, he is running IIS, not Apache. This error only seems to occur with IIS. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Great, I have even less IIS experience... Can anybody with IIS experience help out? |
|
Waterman981
Joined: 2004-12-20
Posts: 7 |
![]() |
I just wanted to post that I was also getting this error in GR. "Error: Server contacted, but Gallery not found at this url (http://www.mydomain.com/gallery2/gallery_remote2.php)." I am running 2k3, and IIS. I did like Greg and installed SP1 RC1(the only change I made to the server) and now GR has no problem connecting. So like Greg said, it's a IIS issue. I wanted to post that Gregs solution (SP1 RC1) fixed the problem for me as well on 2K3 with IIS. |
|
blehbleh
Joined: 2004-02-03
Posts: 6 |
![]() |
i have a similar problem. it just differs in the filename: Gallery not found at this url (http://www.mydomain.com/gallery/main.php i can login fine with GR, but i get this error when i try to create a new album with GR. |
|