Error downloading index from ... when trying to download plugins

edh

Joined: 2008-10-17
Posts: 5
Posted: Fri, 2008-10-17 02:32

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2008-10-17 03:29

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-10-17 03:56
Quote:
Error downloading index from 'http://gallery.menalto.com/repository/released/index'.

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

 
edh

Joined: 2008-10-17
Posts: 5
Posted: Fri, 2008-10-17 16:11

Here's a link to my phpinfo... I don't see anything disabled.

http://www.carolynanderic.com/photos/phpinfo.php

 
edh

Joined: 2008-10-17
Posts: 5
Posted: Fri, 2008-10-17 16:14
Quote:
Error downloading index from 'http://gallery.menalto.com/repository/released/index'.

Not so intermittent for me... It's been a week straight no matter how many times I try. Any better answers than that?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2008-10-17 17:18

@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

 
edh

Joined: 2008-10-17
Posts: 5
Posted: Fri, 2008-10-17 19:34

Valiant...

Quote:
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.

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2008-10-17 19:56

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

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 13:04
edh wrote:
Quote:
Error downloading index from 'http://gallery.menalto.com/repository/released/index'.

Not so intermittent for me... It's been a week straight no matter how many times I try. Any better answers than that?

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???????

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 14:25

Just upgraded to 2.3 and have the same problem still.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-20 14:46

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

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 15:11

Oh, and here's my phpinfo: www.benstillman.com/phpinfo.php

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 15:18
nivekiam wrote:
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

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-20 15:22

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

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 15:45
nivekiam wrote:
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

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-20 15:49

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

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 15:53

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-20 16:06

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

 
bstillman

Joined: 2008-10-20
Posts: 7
Posted: Mon, 2008-10-20 16:35

Still nothing.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-20 17:03

EDIT:: OOPS that was for another thread
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Wed, 2008-10-22 04:28

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2008-10-22 05:08

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

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Wed, 2008-10-22 06:52

Nivekiam,

login info in you PM box. Thanks for helping with this problem

Karen

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2008-10-22 07:29

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

 
VENCO
VENCO's picture

Joined: 2004-03-01
Posts: 78
Posted: Wed, 2008-10-22 09:41

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

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Wed, 2008-10-22 13:31

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2008-10-22 13:58

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

 
vortex0007

Joined: 2007-01-31
Posts: 29
Posted: Wed, 2008-10-22 14:44

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2008-10-22 15:35

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

 
Supernico

Joined: 2004-07-16
Posts: 12
Posted: Wed, 2008-10-22 16:47

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2008-10-22 17:24

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

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2008-10-22 18:12

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.

 
sableholic

Joined: 2008-10-22
Posts: 3
Posted: Wed, 2008-10-22 18:30

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

 
vortex0007

Joined: 2007-01-31
Posts: 29
Posted: Wed, 2008-10-22 19:07

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.

 
kferranti4

Joined: 2008-02-10
Posts: 26
Posted: Wed, 2008-10-22 19: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

 
visitkans

Joined: 2008-08-13
Posts: 15
Posted: Wed, 2008-10-22 19:26

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?

 
tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Wed, 2008-10-22 19:40

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2008-10-22 20:46

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:

<?php
$host = "gallery.menalto.com";
$fd = fsockopen($host, 80);
fwrite($fd, "GET / HTTP/1.0\r\nHost: $host\r\n\r\n");                   
print fread($fd, 1024);
fclose($fd);
?>

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:

HTTP/1.1 200 OK
Date: Wed, 22 Oct 2008 20:44:00 GMT
Server: Apache
X-Powered-By: PHP/5.2.6-5
Set-Cookie: ...
Last-Modified: Wed, 22 Oct 2008 20:34:34 GMT
ETag: "24404d3c74bfddec1fe01750251ecdac"
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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
 <title>Gallery | Your photos on your website</title> 
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="alternate" type="application/rss+xml" title="Gallery RSS" href="http://gallery.menalto.com/node/feed" /> 
 
<link rel="shortcut icon" href="/themes/gmc/favicon.ico" type="image/x-icon" /> 

(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.

 
sableholic

Joined: 2008-10-22
Posts: 3
Posted: Wed, 2008-10-22 21:05

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

 
visitkans

Joined: 2008-08-13
Posts: 15
Posted: Wed, 2008-10-22 21:20

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

 
vortex0007

Joined: 2007-01-31
Posts: 29
Posted: Wed, 2008-10-22 21:22

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

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2008-10-22 22:48

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.

 
sableholic

Joined: 2008-10-22
Posts: 3
Posted: Wed, 2008-10-22 23:34

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.

 
tberman333
tberman333's picture

Joined: 2007-12-26
Posts: 41
Posted: Thu, 2008-10-23 01:52

Here are the results form my test

Quote:
Warning: fsockopen(): unable to connect to gallery.menalto.com:80 in /home/content/t/b/e/tberman333/html/Myles/fsockopen_test.php on line 3

Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/t/b/e/tberman333/html/Myles/fsockopen_test.php on line 4

Warning: fread(): supplied argument is not a valid stream resource in /home/content/t/b/e/tberman333/html/Myles/fsockopen_test.php on line 5

Warning: fclose(): supplied argument is not a valid stream resource in /home/content/t/b/e/tberman333/html/Myles/fsockopen_test.php on line 6

IP Address:

64.202.163.9

 
kb9k

Joined: 2008-10-10
Posts: 20
Posted: Thu, 2008-10-23 01:53

Only blank page ???

 
kb9k

Joined: 2008-10-10
Posts: 20
Posted: Thu, 2008-10-23 01:57

My hosting is StartLogic. I enter the test file and got the blank page. http://www.jovanperic.com/ga2/fsockopen_test.php

 
vortex0007

Joined: 2007-01-31
Posts: 29
Posted: Thu, 2008-10-23 13:17

Bharat,

The results of

<?php print($_SERVER['SERVER_ADDR']); ?>

are: 74.220.215.245

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2008-10-23 15:32

@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.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2008-10-23 15:51

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:

Quote:
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.

A shell session on a hostmonster host times out when running wget http://gallery.menalto.com:

Quote:
[~]# wget http://gallery.menalto.com
--09:45:52-- http://gallery.menalto.com/
=> `index.html'
Resolving gallery.menalto.com... 209.237.226.156
Connecting to gallery.menalto.com|209.237.226.156|:80... failed: Connection timed out.
Retrying.

--09:46:37-- http://gallery.menalto.com/
(try: 2) => `index.html'
Connecting to gallery.menalto.com|209.237.226.156|:80... failed: Connection timed out.
Retrying.

--09:47:22-- http://gallery.menalto.com/
(try: 3) => `index.html'
Connecting to gallery.menalto.com|209.237.226.156|:80... failed: Connection timed out.
Retrying.

--09:48:07-- http://gallery.menalto.com/
(try: 4) => `index.html'
Connecting to gallery.menalto.com|209.237.226.156|:80... failed: Connection timed out.
Retrying.

--09:48:52-- http://gallery.menalto.com/
(try: 5) => `index.html'
Connecting to gallery.menalto.com|209.237.226.156|:80... ^C

I'm fairly sure I've wget to fetch gallery updates on that system in the past.

 
visitkans

Joined: 2008-08-13
Posts: 15
Posted: Thu, 2008-10-23 16:45

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
******

 
vortex0007

Joined: 2007-01-31
Posts: 29
Posted: Thu, 2008-10-23 21:21

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.