Problems with unclassified teams @Milkyway

Message boards : Server programs : Problems with unclassified teams @Milkyway
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Saenger
Avatar

Send message
Joined: 9 Nov 05
Posts: 123
Germany
Message 13744 - Posted: 10 Nov 2007, 21:10:22 UTC
Last modified: 10 Nov 2007, 21:10:33 UTC

Hello,

I'm not puter wizz, so I don't have the faintest idea what's going wrong @Milkyway, but if you look in this thread:

http://milkyway.cs.rpi.edu/milkyway/forum_thread.php?id=39#322

you'll see that there is some problem on the server, and the admins don't know how to deal with it.

Anyone here with more knowledge to help them?
Gruesse vom Saenger

For questions about Boinc look in the BOINC-Wiki
ID: 13744 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13746 - Posted: 10 Nov 2007, 22:54:00 UTC - in response to Message 13744.  
Last modified: 10 Nov 2007, 22:55:55 UTC

Sounds like a cache problem. In this case the admin there should be able to fix it (clean_cache.php under ops would be my guess, I don't know the management UI).
ID: 13746 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13749 - Posted: 10 Nov 2007, 23:09:52 UTC - in response to Message 13744.  
Last modified: 10 Nov 2007, 23:19:40 UTC

Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67


No variable called "too_many" in the current version of that PHP file

I can only guess ...

        echo "
            More than 100 teams match your search.
            The first 100 are shown.<br>
        ";


Well, those inline linefeeds should work - if the file was a proper text file.

On SVN, the file team_lookup.php is a proper DOS text file, but now interpreted on a *ix system, I'm not sure wether it works well in this constellation.

I think it would be a good idea to have all server side files in *ix format on SVN, currently it looks a bit random, some have 0D0A and some only 0A. Both are are ignored by PHP and HTML - but within quotes that's a different story, I wouldn't count on a specific behaviour there.


The Milkyway admin could try to pull all files to a Windows PC via FTP in binary mode and then copy them back in ascii/text mode. That's easier than using a sed script on all files.
ID: 13749 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13751 - Posted: 10 Nov 2007, 23:30:20 UTC - in response to Message 13749.  
Last modified: 10 Nov 2007, 23:31:54 UTC

Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67
...


I signed up trac now so I can use the SVN browser interface ... my guess was wrong (the conclusion was not)

Tell the admin to insert the bold line near line 50 of team_lookup.php :

...
page_head("Search Results");
$too_many = false;
if ($result_list) {
...
ID: 13751 · Report as offensive
Travis Desell

Send message
Joined: 6 Mar 07
Posts: 3
Message 13758 - Posted: 11 Nov 2007, 17:15:09 UTC - in response to Message 13751.  

Notice: Undefined variable: too_many in /export/share0/www/boinc/milkyway/html/user/team_lookup.php on line 67
...


I signed up trac now so I can use the SVN browser interface ... my guess was wrong (the conclusion was not)

Tell the admin to insert the bold line near line 50 of team_lookup.php :

...
page_head("Search Results");
$too_many = false;
if ($result_list) {
...


Hi, I'm the admin over at the milkyway@home project, and i've tried this but it still looks like the teams aren't showing up. i've ran the clean_cache.php as well, and re-run the update_stats script, but no luck. are there some other settings we need to enable to get all the teams to show up?
ID: 13758 · Report as offensive
Travis Desell

Send message
Joined: 6 Mar 07
Posts: 3
Message 13759 - Posted: 11 Nov 2007, 17:17:57 UTC - in response to Message 13758.  

basically, the problem is we have teams being shown in the unclassified top 20, but not the teams top 20.
ID: 13759 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13761 - Posted: 11 Nov 2007, 18:08:55 UTC
Last modified: 11 Nov 2007, 18:16:42 UTC

That "$too_many = false;" stuff was only needed to get rid of an (unrelated) error message.
________________________

Maybe it would be a good idea to echo these two values for debugging :

$cache_args (top_teams.php at about line 60)

$type_sql (top_teams.php at about line 16)

It will not print both but then we would know if the data come from cache or database and we would know how the selection for cache or database looks like.


btw., teams with an empty type (= "unknown") do show whereas all teams with type=1 (= unclassified) do not show, when there should be no "type" restriction


p.s.: I just see that $type_sql is uninitialized in function get_top_teams(), maybe it would be good to set it to

 $type_sql=""; <==================this is missing (still missing in the latest version)
 if ($type){
    $type_sql = "where type=".(int)$type;
 }
ID: 13761 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13763 - Posted: 11 Nov 2007, 19:27:13 UTC
Last modified: 11 Nov 2007, 19:43:22 UTC

Maybe this little test helps somehow, just run the PHP standalone on your BOINC server :

<?php

function get_top_teams($type=""){
    if ($type){
        $type_sql = "where type=".(int)$type;
    }
  echo "type_sql=($type_sql)<br>";
}

$type = 0;
if ($type < 1 || $type > 7) {
    $type = null;
}
$type_sql="";

$cache_args = "sort_by=$sort_by&offset=$offset&type=$type";
echo "cache_args=($cache_args)<br>";
$data = get_top_teams($type);

?>


PHP3 :
cache_args=(sort_by=&offset=&type=null)
type_sql=(where type=0)

PHP4 and PHP5 :
cache_args=(sort_by=&offset=&type=)
type_sql=()

The behaviour of PHP3 is not what BOINC needs in top_teams.php

In this case it might help to replace
$type = null;
with
unset ($type);
or
$type = "";

(both work in my test)
ID: 13763 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13764 - Posted: 11 Nov 2007, 19:53:41 UTC
Last modified: 11 Nov 2007, 20:02:34 UTC

Yep, that must be it.

On http://milkyway.cs.rpi.edu/milkyway/top_teams.php?sort_by=total_credit

not only the "Unclassified" teams are missing, it's more like all teams are missing except for those with "Unknown" (i.e. 0) type, the "Company", "University" (...) teams are missing too.
_______________________________

As this might not be the only place in the source that can cause problems, you could try to add those lines to .htaccess too (if that is possible on your server) :

AddType x-mapp-php4 .php
AddType x-mapp-php4 .PHP

(or php5 if available) or change the default PHP handler to a later version
ID: 13764 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 13768 - Posted: 11 Nov 2007, 23:44:35 UTC - in response to Message 13763.  

PHP3 :
cache_args=(sort_by=&offset=&type=null)
type_sql=(where type=0)

PHP4 and PHP5 :
cache_args=(sort_by=&offset=&type=)
type_sql=()

The behaviour of PHP3 is not what BOINC needs in top_teams.php

Who the hell still runs PHP3? PHP4 will be discontinued at the end of the year!
ID: 13768 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13769 - Posted: 12 Nov 2007, 4:13:53 UTC - in response to Message 13768.  
Last modified: 12 Nov 2007, 4:31:53 UTC

...
Who the hell still runs PHP3? PHP4 will be discontinued at the end of the year!


Well, I'm quite happy that my web space provider still offers it as an option or I wouldn't have been able to test (well, I could have installed it on my PC of course). In the Milkyway forum it sounds as if PHP3 actually did cause it.

p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version

Maybe the Management UI should have a version check with a hint like "Not tested under this PHP version" or so.

There should be hints about required modules too, like LibGD (with JPG/PNG/GIF support if needed) and ZLib. Expected settings like allow_url_fopen would be a good hint too.
ID: 13769 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 13771 - Posted: 12 Nov 2007, 13:20:58 UTC - in response to Message 13769.  

p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version

It does say PHP5 is required. See [trac]wiki:SoftwarePrereqsUnix[/trac].

ID: 13771 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13772 - Posted: 12 Nov 2007, 14:35:49 UTC - in response to Message 13771.  
Last modified: 12 Nov 2007, 14:37:24 UTC

p.s.: I didn't find any place in the docs saying something about the recommended / required PHP version

It does say PHP5 is required. See [trac]wiki:SoftwarePrereqsUnix[/trac].


Thanks :-) I expected a link to that here, that's why I didn't find it.

Maybe it should be on both the BOINC developer and the project developer page.
ID: 13772 · Report as offensive

Message boards : Server programs : Problems with unclassified teams @Milkyway

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.