"Failed to obtain latest version information"

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

"Failed to obtain latest version information"

Post by oliverfr » Fri Nov 11, 2011 10:33 pm

Hello,

It's been three days, I think, that when I log into my forum's administration panel, I get the message

Code: Select all

Failed to obtain latest version information.
Re-Check version · More information »
And the "More information" link only gives

Code: Select all

Information
Connection timed out
I'm puzzled, here :shock:

- My weak google-fu told me phpbb should still use the same URL to check on ( http://version.phpbb.com/phpbb/30x.txt ), but I don't know where it may be changed within my own forum (I found no mention of the text 30x.txt neither in my database nor in my forum's files)
- Being paranoid, I even used a folder comparison tool, doing binary comparisons file by file, against an older backup, to make sure my forum had not been hacked during these last days - it had not.
- I'm on shared hosting so I cannot be entirely sure my host has not changed his firewalling policies, but I doubt they'd be stupid enough as to block, for whatever reason it is, phpbb forums from updating, they're a major and supposedly smart host, OVH.
- My server logs are HUGE, so unless I know what to search for, I cant' find a link to the current problem.

Please, would you know how I could solve it ?

Thank you very much if you can help :)

Regards,
Sabinou

User avatar
Oyabun1
Former Team Member
Posts: 23164
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: "Failed to obtain latest version information"

Post by Oyabun1 » Fri Nov 11, 2011 11:48 pm

The version on your board is is not stored in the files but in the config table in the database. The function compares the version value stored in the database there against the value in the text file here.

Have you asked your host whether they have changed anything?
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Sat Nov 12, 2011 12:45 am

About searching in the database, I meant : searching where the forum software was, itself, trying to connect to know if there's a new version. Who knows, maybe, for some reason, phpbb is trying to connect itself to a wrong URL ?

(I'm running phpbb's latest, if it must be precised)

I asked my host, but, heck, I'm bound to have a "no sir, we did nothing" reply by next friday, at best. They're a big host while I'm a small fry, sadly, and they're nowhere as fast to respond as American hosts (powerful, secure and cheap hosting, true, but sorrowfully slow support).

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: "Failed to obtain latest version information"

Post by Noxwizard » Sat Nov 12, 2011 1:33 am

Your host might be blocking outbound connections or have disabled fsockopen. Make a text file, call it test.php and put this in it:

Code: Select all

<?php
$host = 'version.phpbb.com';
$directory = '/phpbb';
$filename = '30x.txt';
$port = 80;
$timeout = 10;
$errstr = '';
$errno = 0;

if ($fsock = fsockopen($host, $port, $errno, $errstr, $timeout))
{
    @fputs($fsock, "GET $directory/$filename HTTP/1.1\r\n");
    @fputs($fsock, "HOST: $host\r\n");
    @fputs($fsock, "Connection: close\r\n\r\n");

    $file_info = '';
    $get_info = false;

    while (!@feof($fsock))
    {
        if ($get_info)
        {
            $file_info .= @fread($fsock, 1024);
        }
        else
        {
            $line = @fgets($fsock, 1024);
            if ($line == "\r\n")
            {
                $get_info = true;
            }
            else if (stripos($line, '404 not found') !== false)
            {
                $errstr = 'File not found';
                break;
            }
        }
    }
    @fclose($fsock);
    echo $file_info;
}
else
{
    if ($errstr)
    {
        echo $errstr;
    }
    else
    {
        echo 'fsock disabled';
    }
}
?>
Post the output that you get.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Sat Nov 12, 2011 1:52 am

Thank you Noxwizard !

After a long loading time, I had that result :

Code: Select all

Warning: fsockopen() [function.fsockopen]: unable to connect to version.phpbb.com:80 (Connection timed out) in (##local path, sorry, I can't publish it in public##)/forum/test.php on line 10
Connection timed out
So, that would mean that, suddenly, fsocksopen are now, well, closed ? O_o

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: "Failed to obtain latest version information"

Post by Noxwizard » Sat Nov 12, 2011 1:57 am

They block connections on that port, yes.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Sat Nov 12, 2011 2:05 am

Argh, they must have changed their rules.

Well, thank you very much for the confirmation, Noxwizard ! :)

Am I allowed to take it for granted that phpbb.com must have a feature to notify us of updates by email, somewhere ? I tried my best to find it just now, but I failed to find it ? ;)

User avatar
Oyabun1
Former Team Member
Posts: 23164
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: "Failed to obtain latest version information"

Post by Oyabun1 » Sat Nov 12, 2011 2:27 am

There's a link on the Downloads pages, To the phpbb-announce mailing list.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Sat Nov 12, 2011 2:53 am

Got it.

It's as if I'm repeating myself a lot, but, once again, thank you very much for the help ! :)

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Thu Nov 17, 2011 3:51 pm

Hi again,

I finally received a reply from my web host.

They told me that they were ONLY blocking "listening to" fsock connexions, while "connecting to the outside" fsock connexions were allowed without restrictions.

And indeed, looking at my server logs, the "out" logs succesfully displayed this for when I asked my phpbb forum to once again check for updates :

Code: Select all

[2011 Nov 17 10:25:48] (52296) => 140.211.15.15(80)
[2011 Nov 17 10:25:51] (52296) => 140.211.15.15(80)
[2011 Nov 17 10:25:57] (52296) => 140.211.15.15(80)
[2011 Nov 17 10:27:11] (52657) => 140.211.15.15(80)
[2011 Nov 17 10:27:14] (52657) => 140.211.15.15(80)
[2011 Nov 17 10:27:20] (52657) => 140.211.15.15(80)
While there was no mention regarding this IP or "phpbb.com" in my "errors" log file.

The support technician concluded in telling me that, from what it seemed, the problem lied with phpbb.com and not with them, ovh.com

This is weird, nobody else is reporting having the same problem O_o

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: "Failed to obtain latest version information"

Post by Noxwizard » Thu Nov 17, 2011 7:43 pm

That claim is easy enough to test. Run this script:

Code: Select all

<?php
function get_file($host, $directory, $filename, $port = 80, $timeout = 10)
{
    $errstr = '';
    $errno = 0;

    echo '<strong>' . $host . $directory . '/' . $filename . ':</strong> ';
    if ($fsock = fsockopen($host, $port, $errno, $errstr, $timeout))
    {
        @fputs($fsock, "GET $directory/$filename HTTP/1.1\r\n");
        @fputs($fsock, "HOST: $host\r\n");
        @fputs($fsock, "Connection: close\r\n\r\n");

        $file_info = '';
        $get_info = false;

        while (!@feof($fsock))
        {
            if ($get_info)
            {
                $file_info .= @fread($fsock, 1024);
            }
            else
            {
                $line = @fgets($fsock, 1024);
                if ($line == "\r\n")
                {
                    $get_info = true;
                }
                else if (stripos($line, '404 not found') !== false)
                {
                    $errstr = 'File not found<br />';
                    break;
                }
            }
        }
        @fclose($fsock);
        echo $file_info . '<br />';
    }
    else
    {
        if ($errstr)
        {
            echo $errstr . '<br />';
        }
        else
        {
            echo 'fsock disabled';
            exit;
        }
    }
}

get_file('version.phpbb.com', '/phpbb', '30x.txt'); echo '<hr />';
get_file('theexiled.pwnageservers.com', '/test', 'file.txt'); echo '<hr />';
get_file('www.gamers.org', '/pub/idgames2/planetquake/planetstarsiege', 'foo.txt'); echo '<hr />';
get_file('www.google.com', '', 'robots.txt'); echo '<hr />';
?>
The output should be this:
version.phpbb.com/phpbb/30x.txt: 3.0.9 http://www.phpbb.com/community/viewtopi ... &t=2134142

theexiled.pwnageservers.com/test/file.txt: this is a file

www.gamers.org/pub/idgames2/planetquake ... ge/foo.txt: foo

www.google.com/robots.txt: User-agent: * Disallow: /search Disallow: /groups Disallow: *snip*
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Thu Nov 17, 2011 8:38 pm

Thank you, Noxwizard !

Now, the output becomes interesting !

I ran it, and only the phpbb line caused problems :

Code: Select all

version.phpbb.com/phpbb/30x.txt:
Warning: fsockopen() [function.fsockopen]: unable to connect to version.phpbb.com:80 (Connection timed out) in (***my hosting's local path***)/forum/test2.php on line 8
Connection timed out
theexiled.pwnageservers.com/test/file.txt: this is a file
www.gamers.org/pub/idgames2/planetquake/planetstarsiege/foo.txt: foo
www.google.com/robots.txt: User-agent: * Disallow: /sea (***I cut that wall of text***)
-

I'm seeing another possible explanation, maybe, that my forum could have become blacklisted...

In the past, my website had had its security compromised, this is a long story starting from two years ago, continued when I became the new owner (the previous admin "retired" from time-wasting online activities, and handled it over to me, a friend), but to keep it short, I'll mention that a person managed to upload a FilesMan trojan, and owned the login-password combo of the previous admin, with Founder rights (which allowed him to re-contaminate even a cleanly reinstalled forum, editing style files with eval code).
It took me forever to make sure that EVERYTHING inside the forum was legit, opening every single code file present on the hosting account, comparing against clean copies, removing all non-legit files, and leaving only one Founder account, mine, with an impossible to guess password.

Maybe my forum acted "badly" in the past, and it has been - possibly - blacklisted, or something like that ?

I can't give here the URL of the forum (this is a "between adults discussion" forum, let minors search for adult inspirations without my help, and phpbb.com isn't for that !), but if someone's willing to ask me by PM, I can give it.

-

Otherwise, I really am puzzled O_o

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: "Failed to obtain latest version information"

Post by Noxwizard » Sat Nov 19, 2011 5:32 am

What's your server's IP? The url is fine too if you can't get that easily.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

oliverfr
Registered User
Posts: 53
Joined: Thu Jul 14, 2011 12:38 am

Re: "Failed to obtain latest version information"

Post by oliverfr » Sat Nov 19, 2011 12:18 pm

This may not be very specific as a reply, since i'm on shared hosting, but there you are, my IP is 213.186.33.18 (actually pointing to cluster007.ovh.net , the server bay hosting my website, alongside with a ton (OMG) of other websites)...

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10232
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: "Failed to obtain latest version information"

Post by Noxwizard » Sun Nov 20, 2011 6:30 am

I'm not aware of any IP blocks placed on version.phpbb.com and our host (OSUOSL) doesn't have any global blocks in place. It could be that one of our upstream providers has blocked you, which we can't do much about.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 90 guests