Hello, I'm new to Gallery and I'm having an issue with downloading plugins.
I was testing Gallery about a week ago using a pre-installation from my webhost. Everything was working perfectly and I was able to get lists of plugins from all three repositories and I was able to install and use some plugins. I decided to remove that particular installation of Gallery and now I've installed another instance in a new directory.
Now when I try to download from the repositories, I receive the following messages:
Error downloading index from 'http://gallery.menalto.com/repository/released/index'.
Error downloading index from 'http://gallery.menalto.com/repository/experimental/index'.
Error downloading index from 'http://gallery.menalto.com/repository/community/index'.
Please make sure that your internet connection is set up properly or try again later.
I have looked through the entire site including FAQ, troubleshooting, and the forums for about a week now. I've seen this issue mentioned somewhere in another post, yet there is no solution.
I have cleared all the cache using the maintenance link. I have tried deleting my repository directory from the server. I've checked my file integrity and it checks out. I've even tried yet another install in another new directory and duplicated the same issue.
I'm hoping that someone else has run into this and sees this post.
Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.45-community-log, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd, ImageMagick
Acceleration = full/900, full/900
Operating system = Linux box428.bluehost.com 2.6.26-5_2.BHsmp #1 SMP Thu Sep 25 09:22:16 MDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
Rows in GalleryAccessMap table = 17
Rows in GalleryAccessSubscriberMap table = 1350
Rows in GalleryUser table = 8
Rows in GalleryItem table = 1342
Rows in GalleryAlbumItem table = 14
Rows in GalleryCacheMap table = 111
Here is a list of my System Checks:
PHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Memory limit (32Mb) Success
File uploads allowed Success
Maximum upload size (2Mb) Success
Maximum POST size (8Mb) Success
Translation support Success
Gallery file integrity Success
Thanks
EDH
Posts: 16504
Can you post a link to phpinfo or look in it and see if there are any disabled functions? This link explains how to create a phpinfo page:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
http://gallery.menalto.com/node/65724
Seems to be an intermittent issue that we can't reproduce consistently. Try again later.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Here's a link to my phpinfo... I don't see anything disabled.
http://www.carolynanderic.com/photos/phpinfo.php
Posts: 5
Not so intermittent for me... It's been a week straight no matter how many times I try. Any better answers than that?
Posts: 32509
@edh:
can your server open connections to other hosts on the internet without going through a proxy?
this functionality of g2 doesn't work for servers with proxy settings.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 5
Valiant...
I'm honestly not sure the answer to your question. I will have to look into that, however I was able to use the plugin download functionality a week ago.
Thanks
Posts: 16504
edh, then I'd ask your host to see if anything has changed, mentioning Valiant comment.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
Same here. I installed Gallery early last week (Sunday or Monday, can't remember). Tried installing plugins with no luck. Saw the post saying to wait, and that the server was having weird problems or whatever. Well it's a week later and it's still doing it. Any word???????
Posts: 7
Just upgraded to 2.3 and have the same problem still.
Posts: 16504
Ask your host if they have anything in place that doesn't allow this, or some proxy server.
Also, if the function fsockopen is disabled, you won't be able to use this feature at this time. You'll need to manually download plugins or themes and upload them to your server.
http://codex.gallery2.org/Gallery2:Manual_Plugin_Installation
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
Oh, and here's my phpinfo: www.benstillman.com/phpinfo.php
Posts: 7
I have a virtual dedicated server. Fsockopen is enabled. I'm not behind a proxy. I've deleted the cache several times. No idea what's going on.
Posts: 16504
Put gallery into debug mode and see if that gives a clue as to what's going on as this user did:
http://gallery.menalto.com/node/82575
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
I must be stupid. I reviewed the debug notes in the config.php file. I tried buffered, but saw nothing. So then I tried logging, created a txt file, made it writable, and still I see nothing. Could there be no debug info for this? And if so, then what could it possibly be?
Here's the line from my config.php file:
$gallery->setDebugLogFile('/home/admin/benstillman/debug.txt');
You can view the debug.txt file at www.benstillman.com/debug.txt , but it's blank.
By the way, thanks for your help. Hopefully we can figure this out. I'd really like to start using this product.
Posts: 16504
In buffered debug mode you should see all kinds of stuff on the screen at the bottom of the page as well as a Smarty Debug pop-up window.
Try buffered debug mode again:
$gallery->setDebug('buffered');
Just to be sure, the line you are editing in config.php doesn't have an asterisk at the beginning does it? (it's happened to me and it took me a few minutes to figure out why the heck my gallery was still in debug mode when I had just set it to false....)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
Here's that part of the config.php changing it to buffered:
$storeConfig['usePersistentConnections'] = false;
$gallery->setConfig('storage.config', $storeConfig);
$gallery->setDebug('buffered');
/*
* Put Gallery into debug mode. Useful for tracking down problems with the
* application. Not a good idea to leave it this way, though. Possible debug
* choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to
* use the quotes for any value but false!
No asterisk.
Still no debug info. I tried it on Internet Explorer and FireFox just incase.
Posts: 16504
Make sure debug is set to 'buffered'
Then go to Site Admin > Performance and uncheck "enabled template caching" click Save then click Clear Saved Pages.
Also go to Maintenance and clear template cache.
Does nothing still come up?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
Still nothing.
Posts: 16504
EDIT:: OOPS that was for another thread
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 26
I am having the same problem. My host tells me that it is not a proxy and fsockopen is not disabled. I was able to debug but everytime I tried to copy into a text file it would lock up my computer. I am willing to give you ftp and admin permissions if bstillman can not. Just let me know.
PHP info
http://www.kimmitasphotography.com/gallery2/phpinfo.php
K
Posts: 16504
kferranti4,
No need for FTP access, meant that to go into another thread....
But can you create a user in Gallery, add that user to the Admin Group, and put Gallery into debug mode. Then send me a PM with the login details and I'll take a look at the debug output.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 26
Nivekiam,
login info in you PM box. Thanks for helping with this problem
Karen
Posts: 16504
hmmm, I claims it's timing out. I don't know about the others, but yours keeps getting hung up on downloading the themes in any of the 3 options (official, experimental, community)
You said here, http://gallery.menalto.com/node/82575#comment-289326, that you tried increasing the timeout. But it's still at 5 seconds when I was looking at your debug info. Try increasing that to 30 seconds and let's see if that makes a difference.
I'm pretty sure it's not something corrupt on the server because I can download the plugin lists without problems on a couple of different installs. I'm kind of suspecting either something corrupt on your server or something else.
I've attached the zipped debug info from your site (replacing the path to your gallery install with "/path/to/gallery2") Maybe someone else will see something there.
I'll take a closer look at it tomorrow, I'm heading to bed now.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 78
I am also having this problem since I installed G2.3 rc2. No server settings have changed in that time.
_________________________
[img]http://www.indefik.com/pics/forumrandom.jpg[/img] Random picture from my Gallery
LyricsRepository.com
Posts: 26
I was editing something else and my screen went blank so I went and changed all the changes I had made to Gallery and that was one I change back just to be safe. I have switched it to 30 now
Posts: 16504
I didn't notice this before, but there are apparently two places in that WebHelper_simple.class file to change that in. The one you've already changed and at around line 238.
Please change that line and let me know and I'll try again, right now that page is still thinking the timeout is set to 5.
Can you also dig into your g2data directory and check what the permissions are and who the owner of the directories are of:
g2data/cache/repository/community/modules
g2data/cache/repository/community/themes
Take a screen shot if you want
Should look something like:
-rw-r--r-- 1 www-user www-user <filesize> <date time> <directory/file name>
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 29
Does anyone have an actual fix for this problem?
As of 10:30 AM EST, I'm also receiving this same error:
Error downloading index from 'http://gallery.menalto.com/repository/released/index'.
Error downloading index from 'http://gallery.menalto.com/repository/experimental/index'.
Error downloading index from 'http://gallery.menalto.com/repository/community/index'.
Please make sure that your internet connection is set up properly or try again later.
Here is my info:
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.6 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.0.45-community-log, lock.system=flock
Toolkits = Thumbnail, Getid3, LinkItemToolkit, ImageMagick, NetPBM, SquareThumb
Acceleration = full/86400, full/86400
Operating system = Linux host245.hostmonster.com 2.6.26-5_2.BHsmp #1 SMP Thu Sep 25 09:22:16 MDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
Rows in GalleryAccessMap table = 1665
Rows in GalleryAccessSubscriberMap table = 5628
Rows in GalleryUser table = 2
Rows in GalleryItem table = 5625
Rows in GalleryAlbumItem table = 216
Rows in GalleryCacheMap table = 6
Posts: 16504
So far I think every single person I've seen report this problem has been with Bluehost/Hostmonster except for one and their host had apparently disabled the fsockopen function.
If you read the thread you can see the steps I've gone through to get some information so far and you can try them yourself.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
I have the same problem (last successful update was two weeks ago) and noticed that I can ping gallery.menalto.com but "wget http://gallery.menalto.com" is timing out. My server is a dedicated one and the firewall isn't blocking the wget request (and of course I can wget google.com for example).
Are you sure you're not filtering anything on your side ? My server ip is 91.121.0.xx
Posts: 16504
Excellent observation! I'm checking with checking with the guys who can look into that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7994
Hm. I did an wget, and others have tested it and it works for them. I checked over our configs and I don't see anything that we're doing to block these addresses, nor do I know of any configuration (I've configured most of gallery.menalto.com myself) that would block your IP.
My guess is that this is something happening on the Bluehost/Hostmonster side. If you can have them personally contact me (email to
) I will work with them to sort it out.
Posts: 3
I actually am having this issue and am not on Bluehost/Hostmonster. I am using powweb and it was working two days ago. I have tried the fixes mentioned (changing the timeout on both places in the WebHelper, clearing the cache, etc), however nothing is fixing it. I have confirmed with Powweb that fsockopen is supported on port 80 and 443, so it should still be working. Any thoughts? Here is my information:
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.1 cgi
Webserver = Apache
Database = mysqlt 5.0.45-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, jpegtran, Gd
Acceleration = none, none
Operating system = Linux cgi1402.int.bizland.net 2.6.24.7 #1 SMP Wed May 14 19:55:18 PDT 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 22
Rows in GalleryAccessSubscriberMap table = 4
Rows in GalleryUser table = 2
Rows in GalleryItem table = 2
Rows in GalleryAlbumItem table = 2
Rows in GalleryCacheMap table = 0
Posts: 29
I have opened an incident with Hostmonster.com and included bharat on the incident. The Hostmonster.com incident is ticket Number 240950 if anyone else needs to piggyback on this one. Hostmonster.com has indicated they are willing to work wtih Bharat on resolving this issue.
Bharat - thank you for your assistance.
Posts: 26
Nivekiam,
Sorry I have been working on a theme. I just saw your post. I will make those changes tonight after the kids are in bed. I will also contact hostmonster and add my account to the incident ticket. Thanks for helping with everyone. Hopefully it will be resolved soon.
Karen
Posts: 15
Hi all,
Add me to the list of people having issues, i am on hostgator and am facing the same issue, tried a new install twice before stumbling on this forum topic, it was working fine a cpl of weeks ago and after the update to 2.3 the plugin update has stopped working.
Is it an issue with a lot of hosts?
Posts: 41
Just like sableholic I am having the same problem and am not on Bluehost/Hostmonster. I use Go Daddy and have confirmed that they support fsockopen on ports 80 and 443.
Here is my System Information
Gallery version 2.3
PHP version 4.3.11 cgi-fcgi
Webserver Apache
Database mysqlt 5.0.67-log
Toolkits ImageMagick, Gd
Operating system Linux linhost218.prod.mesa1.secureserver.net 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Link to php info:
http://mylesjay.com/info.php
Any help would be appreciated.
Posts: 7994
Ok, let's check this out. I wrote a small test script to let you verify things. Create a file called fsockopen_test.php and put this in it:
Then open it in your browser. You *should* see the first 1k worth of response from the Gallery website show up. For me, that looks like this:
(note that I blanked out the cookie). Please try this out on your various systems and report back with your results. I'm also in contact with Hostmonster to see if we can figure it out from their side.
Posts: 3
I only get a blank page for the gallery.menalto.com link. I tried it for yahoo.com and google.com though and was able to get a response, although it doesn't look like yours:
HTTP/1.1 200 OK Date: Wed, 22 Oct 2008 21:03:40 GMT P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV" Cache-Control: private Vary: User-Agent X-XRDS-Location: http://open.login.yahooapis.com/openid20/www.yahoo.com/xrds Last-Modified: Wed, 22 Oct 2008 20:56:37 GMT Accept-Ranges: bytes Content-Length: 9554 Connection: close Content-Type: text/html; charset=utf-8
Posts: 15
Here are the results:
*****HOSTGATOR******
Warning: fsockopen() [function.fsockopen]: unable to connect to gallery.menalto.com:80 (Connection timed out) in /home/kans78/public_html/fsockopen_test.php on line 3
Warning: fwrite(): supplied argument is not a valid stream resource in /home/kans78/public_html/fsockopen_test.php on line 4
Warning: fread(): supplied argument is not a valid stream resource in /home/kans78/public_html/fsockopen_test.php on line 5
Warning: fclose(): supplied argument is not a valid stream resource in /home/kans78/public_html/fsockopen_test.php on line 6
*****BRINKSTER*****
HTTP/1.1 200 OK Date: Wed, 22 Oct 2008 21:17:53 GMT Server: Apache X-Powered-By: PHP/5.2.6-5 Set-Cookie: ...; expires=Sat, 15 Nov 2008 00:51:13 GMT; path=/; domain=.gallery.menalto.com Last-Modified: Wed, 22 Oct 2008 21:17:11 GMT ETag: "2d864670bb83ca566e22b4d7d4251cfa" Expires: Sun, 19 Nov 1978 05:00:00 GMT Cache-Control: must-revalidate Vary: Accept-Encoding,User-Agent Connection: close Content-Type: text/html; charset=utf-8
Posts: 29
Here is my output:
Warning: fsockopen() [function.fsockopen]: unable to connect to gallery.menalto.com:80 (Connection timed out) in /home/aftersix/public_html/gallery2/fsockopen_test.php on line 3
Warning: fwrite(): supplied argument is not a valid stream resource in /home/aftersix/public_html/gallery2/fsockopen_test.php on line 4
Warning: fread(): supplied argument is not a valid stream resource in /home/aftersix/public_html/gallery2/fsockopen_test.php on line 5
Warning: fclose(): supplied argument is not a valid stream resource in /home/aftersix/public_html/gallery2/fsockopen_test.php on line 6
Posts: 7994
That was fast.. thanks for getting back to me.
@sableholic: Make sure that you have display_errors set to true. Put
ini_set('display_errors', 1);
at the top of that script. See if that makes a difference.@visitkans: that's interesting, it times out, then you get a response.. so you are getting something from our side. It's unclear to me why it's getting reported as a timeout on your side.
@vortex0007: I'm also not sure why you'd get a timeout from that side.
In all 3 cases, you guys should pass this test script up-stream to your hosting provider. It's small, and unrelated to Gallery except that it's trying to connect to the Gallery website. It's possible that we've got a bad route between your servers and ours, or it's possible that our server is blocking your IP. If you can report back with your IP address to by running this:
<?php print($_SERVER['SERVER_ADDR']); ?>
That would at least help me check the network routes from my side. Please also cc:
on the tickets you file with your hosts.
Posts: 3
Yep I thought about checking my error logs after I posted. Heres the errors from the log:
PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to gallery.menalto.com:80 (Connection refused) in replaced path/fsockopen_test.php on line 3
PHP Warning: fwrite(): supplied argument is not a valid stream resource in replaced path/fsockopen_test.php on line 4
PHP Warning: fread(): supplied argument is not a valid stream resource in replaced path/fsockopen_test.php on line 5
PHP Warning: fclose(): supplied argument is not a valid stream resource in replaced path/fsockopen_test.php on line 6
The SERVER_ADDR print didn't do anything and no errors either so I assume its not set. I do see 74.65.28.137 as the REMOTE_ADDR, not sure if thats the same thing.
Posts: 41
Here are the results form my test
IP Address:
64.202.163.9
Posts: 20
Only blank page ???
Posts: 20
My hosting is StartLogic. I enter the test file and got the blank page. http://www.jovanperic.com/ga2/fsockopen_test.php
Posts: 29
Bharat,
The results of
<?php print($_SERVER['SERVER_ADDR']); ?>
are: 74.220.215.245
Posts: 7994
@kb9k: Please try the test script I added above.
@tberman333: as far as I can tell, that ip isn't blocked on the gallery webserver
If the simple test script does not work, then please file a ticket with your host and cc
so that I can work with them.
Posts: 4342
I can confirm that there's something up with Hostmonster on this one, as my 2.2.5 installation which has to-date been faultless at downloading updates now responds with:
A shell session on a hostmonster host times out when running
wget http://gallery.menalto.com
:I'm fairly sure I've wget to fetch gallery updates on that system in the past.
Posts: 15
logged a ticket with Hostgator and here is their reply, looks like gallery.menalto is blocking my site IP.
My server IP running the above php command - 74.54.191.210
Can you please check if this is the case as said by the hostgator tech.
********
Hello,
In the test file the host is gallery.menalto.com. That host is not allowing the connection:
[root@gator547 /home/kans78/www]# telnet gallery.menalto.com 80
Trying 209.237.226.156...
When I try the same test with another host it works properly:
http://vividscapes.com/fsockopen_test2.php
It appears gallery.menalto.com is blocking the connection from the server.
[root@gator547 /home/kans78/www]# traceroute 209.237.226.156
traceroute to 209.237.226.156 (209.237.226.156), 30 hops max, 38 byte packets
1 d1.bf.364a.static.theplanet.com (74.54.191.209) 1.080 ms 0.446 ms 0.420 ms
2 vl2.dsr02.dllstx2.theplanet.com (12.96.160.42) 0.258 ms 0.308 ms 0.239 ms
3 te7-4.dsr02.dllstx3.theplanet.com (70.87.253.121) 0.566 ms 0.451 ms 0.437 ms
4 et3-2.ibr04.dllstx3.theplanet.com (70.87.253.25) 0.405 ms 0.390 ms 0.376 ms
5 te-3-4.car4.Dallas1.Level3.net (4.71.122.1) 0.475 ms 0.464 ms 0.609 ms
6 vlan99.csw4.Dallas1.Level3.net (4.68.19.254) 10.298 ms 0.818 ms 0.809 ms
7 ae-93-93.ebr3.Dallas1.Level3.net (4.69.136.165) 5.845 ms 11.125 ms 1.391 ms
8 ae-3.ebr2.LosAngeles1.Level3.net (4.69.132.77) 38.136 ms 33.099 ms 32.775 ms
9 ae-62-62.csw1.LosAngeles1.Level3.net (4.69.137.18) 33.186 ms 33.067 ms ae-72-72.csw2.LosAngeles1.Level3.net (4.69.137.22) 46.571 ms
10 ae-2-79.edge5.LosAngeles1.Level3.net (4.68.20.75) 33.156 ms 33.493 ms 33.297 ms
11 CWIE-LLC.edge5.LosAngeles1.Level3.net (4.59.48.30) 44.663 ms 44.432 ms 44.625 ms
12 Vlan800.br01-200p-sfo.unitedlayer.com (209.237.224.205) 45.454 ms 45.882 ms 45.551 ms
13 Vlan529.cr02-200p-sfo.unitedlayer.com (209.237.224.158) 45.047 ms 44.951 ms 44.772 ms
14 * * *
You would have to contact them regarding that.
Regards,
Cody S.
HostGator Support
******
Posts: 29
An update:
I continue to go back and forth with Hostmonster.com on who's fault this is. I love vendor ping pong.
Hopefully Hostmonster.com will provide more detail tomorrow.