Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error when I try th verify the links

Quote Reply
Error when I try th verify the links
Hi

I have the following error message when I try to verify the links :

A fatal error has occured:

Error launching child '/usr/local/bin/perl /home/content/cgi-bin/links/admin/verify-child.pl '. Status: 9 at /home/content/cgi-bin/links/admin/Links/Parallel.pm line 199.

I have searched in the forum, I saw some people had the the same prob but there were no answers...

thanks



FMP
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
Hi,

Do you have shell access? If so, try running:

/usr/local/bin/perl /home/content/cgi-bin/links/admin/verify-child.pl

from shell and see what it produces.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Error when I try th verify the links In reply to
hiWink

So I did it, and I get the following error message

A fatal error has occured
Can't call method "fetchrow_array" on an undefined value at verify-child.pl line 50.

So here is what we get at verify-child.pl line 50


40 # We get a list of ID numbers passed to us on command line.
41 for (@ARGV) { $url_ids{$_} = 1; }
42
43 my $cond = new GT::SQL::Condition;
44 my $val = "(" . join (",", @ARGV) . ")";
45 $cond->add ("ID", "IN", \$val);
46
47 $db = $DB->table ('Links');
48 $sth = $db->select ( $cond, ['ID', 'URL'] );
49
50 while ( @row = $sth->fetchrow_array() ) {
51 $status = ($row[1] =~ m,^ftp://,) ? check_ftp_link ($row[1]) : check_link ( $row[1] );
52 delete @url_ids{$row[0]};
53 print "$row[0]\t$status\t$row[1]\t\t\n";
54 }


Is it clear for you? what does it means?

thanks

WinkFMP
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
In your error log, what is shown? It should have some helpful debugging information from GT::SQL logged in there...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
1) Is this on Unix or Windows?

2) Did you make any recent changes to Links, or the Links tables?

3) Did you run repair tables from the Admin area? (on database fetches/updates this can often fix odd messages).

3a) On MySQL systems, if all that fails, did you run isamchk to see if the indexes are corrupted? You need root access to do that.

4) Did you try reinstalling Links? Sometimes files are corrupted (or in binary) and Links gives out cryptic error messages, since the error has to filter through several layers.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
Quote:
$sth = $db->select ( $cond, ['ID', 'URL'] );[/code]
Try changing that line to:

$sth = $db->select ( $cond, ['ID', 'URL'] ) or die $GT::SQL::error;

...that will hopefully show you some details.

Last edited by:

Paul: Sep 21, 2002, 9:21 AM
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
Hi,

That's very strange. The problem is that Links SQL can not launch multiple copies of verify child for some reason. The error in the code is normal as you called verify child with no arguments. The original error is caused because the program could not launch properly. I think you'll need to send ssh access to support-lsql@gossamer-threads.com and have us take a look at it.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to
Sometimes I got the same error both on Linux and windows server. The server log didn't give much information.

Is the exit status 9 a fetal error or just a warning? Should I jsut ignor it? I change the code in Parallel.pm like this:

Code:
from:
if ((!$pid) or ($?)) or die "...."
to:
if (!$pid) or die "...."

Now the verify process can finish without stopping.

Yanz
Quote Reply
Re: [yanzi] Error when I try th verify the links In reply to
In Reply To:
from:
if ((!$pid) or ($?)) or die "...."
to:
if (!$pid) or die "...."
[/code]


Hi Yanzi

I've made the change...

it works great now

TxsWink

FMP
Quote Reply
Re: [fmp] Error when I try th verify the links In reply to

You are welcome. But I still don't know why some child processes return an exit status of 9. I checked my server error log after the error occured. There is nothing helpful. Actually it's not caused by a empty @links_to_check. There ARE links passed to that child process. I guess status 9 is just some kind of warning message. Yanz