FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » can't get newsgroup manager to work
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
can't get newsgroup manager to work [message #22293] Wed, 26 January 2005 18:42 Go to next message
SimonHF is currently offline  SimonHF   Germany
Messages: 12
Registered: January 2005
Karma: 0
Junior Member
I've setup a newsgroup rule with a server and newsgroup which work fine using a normal windows client. However, when I try to import using nntp.php then nothing happens (I'm using XP + Apache2 + PHP4). This is what I use to try and import news messages:
C:\Program Files\Apache Group\Apache2\htdocs\FUDforum_2-6-9\FUDforum\scripts>php -d register_argc_argv=1 "C:/Program Files/Apache Group/Apache2/htdocs/FUDforum_2-6-9/FUDforum/scrip
ts/nntp.php" 1
Content-type: text/html
X-Powered-By: PHP/4.3.10

I had to add the -d switch or it complains:
Enable the 'register_argc_argv' php.ini directive

Either way I get no status or error message. Or are they stored in a log somewhere else? I was expecting some 100s of newsgroup messages to be imported... any ideas why this is not working?

P.S.: I tried both types of authentication.
Re: can't get newsgroup manager to work [message #22294 is a reply to message #22293] Wed, 26 January 2005 18:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Check the forum's errors directory, there should be .nntp directory inside with some status information.

FUDforum Core Developer
Re: can't get newsgroup manager to work [message #22296 is a reply to message #22294] Wed, 26 January 2005 19:47 Go to previous messageGo to next message
SimonHF is currently offline  SimonHF   Germany
Messages: 12
Registered: January 2005
Karma: 0
Junior Member
Thanks. error_log always contains the same error:
Failed to recieve proper response from NNTP Server when setting 'MODE reader', got 500 Syntax Error or Unknown Command
Any ideas? As I say, the news server works fine with usual Windows clients...
Re: can't get newsgroup manager to work [message #22297 is a reply to message #22296] Wed, 26 January 2005 20:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi,

MODE READER is used by the client (in this case, FUDForum) to indicate to the NNTP Server that it is a news reading client and not a news-forwarding peer. Error 500 means "I don't know that command", but you can proceed as normal.

I'm not sure how FUDFroum responds when it received error 500, but it should igore it and continue as normal.

Best regards.

Frank
Re: can't get newsgroup manager to work [message #22298 is a reply to message #22297] Wed, 26 January 2005 20:45 Go to previous messageGo to next message
SimonHF is currently offline  SimonHF   Germany
Messages: 12
Registered: January 2005
Karma: 0
Junior Member
It's an American provider called Tera News.
I wrote a quick perl script and the debug output from Net::NNTP confirms your suspicion:
...
Net::NNTP=GLOB(0x1b040c4)<<< 200 NNTPServer.com manticore (Tornado v1.0.6)
Net::NNTP=GLOB(0x1b040c4)>>> MODE READER
Net::NNTP=GLOB(0x1b040c4)<<< 500 Syntax Error or Unknown Command
Net::NNTP=GLOB(0x1b040c4)>>> AUTHINFO USER simonhf
Net::NNTP=GLOB(0x1b040c4)<<< 381 More Authentication Required
Net::NNTP=GLOB(0x1b040c4)>>> AUTHINFO PASS ....
Net::NNTP=GLOB(0x1b040c4)<<< 281 Authentication Accepted
Net::NNTP=GLOB(0x1b040c4)>>> GROUP de.comp.lang.perl.misc
Net::NNTP=GLOB(0x1b040c4)<<< 211 138 56102 56453 de.comp.lang.perl.misc

Although the MODE READER commands fails then it seems to have no effect on the script being able to access news groups and articles... is the MODE READER command really so important?
Re: can't get newsgroup manager to work [message #22300 is a reply to message #22298] Wed, 26 January 2005 20:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
When I wrote the code I was under the impression that when this command fails we should abort, which is what FUDforum's nntp script does.

But, as your trace indicates, this seems to harmless so I've applied a patch allowing this command to fail.

Here it is:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3277


FUDforum Core Developer
Re: can't get newsgroup manager to work [message #22301 is a reply to message #22298] Wed, 26 January 2005 20:59 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
FUDForum doesn't ignore the 500 error as it should. Extract from .../fuddata/include/nntp.inc:

$ret = $this->cmd("MODE reader");

if (!$this->compare_return_codes(200, $ret) && !$this->compare_return_codes(201, $ret)) {
   $this->error = "Failed to recieve proper response from NNTP Server when setting 'MODE reader', got ".$this->lrc."\n";
   return false;
}


Best regards.

Frank
Re: can't get newsgroup manager to work [message #22302 is a reply to message #22301] Wed, 26 January 2005 21:02 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Oops, too late, I see it's alread fixed!
Re: can't get newsgroup manager to work [message #22305 is a reply to message #22300] Wed, 26 January 2005 22:18 Go to previous messageGo to next message
SimonHF is currently offline  SimonHF   Germany
Messages: 12
Registered: January 2005
Karma: 0
Junior Member
I commented out the code but now the error log has a new error type:
Unable to use de.comp.lang.php newsgroup NTTP Msg: 501 Bad Command Usage
Re: can't get newsgroup manager to work [message #22306 is a reply to message #22305] Wed, 26 January 2005 22:21 Go to previous message
SimonHF is currently offline  SimonHF   Germany
Messages: 12
Registered: January 2005
Karma: 0
Junior Member
Now it works - I changed the authentication type to 'original'. Problem solved! Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to configure more descriptive urls?
Next Topic: Can't Login or Register Users
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 05:30:34 GMT 2024

Total time taken to generate the page: 0.02523 seconds