![]() |
I am looking for an immediate fix unable to post/export messages to newsgroups, I am able to receive/import messages properly .
Here is additional information, this was working fine 20 days back and now stopped, I am unable to fix/debug the issue. Code:
Connecting to server, server says: 200 Text.GigaNews.Com |
Would it be possible to promote your forum on usenet with this hack? i.e. have each post by a forum member include a reference to your site? If so, then this may yield quite some new members.
Is there a 3.6 port of this hack? I couldn't find it. |
Quote:
Use this free server here and you will be able to post: nntp.aioe.org (Or get your credentials sorted out with giganews). Also, if that Microsoft feed is your only one, just use one of the Microsoft Public Access servers. They all allow posting and they are free also. msnews.microsoft.com is one such server. |
Quote:
There is no 3.6 port and I doubt there will be as long as this one works. There are a few bug fixes scattered out inside this thread so it might be worth doing a page by page scan to see what all is here. The hack, in it's original forum, is quite buggy but the fixes donated by members in this thread make it bearable. |
Many thanks for your helpful answer. You write that after the fixes are applied, it becomes bearable. What bugs remain?
With this being such a interesting and useful add-on, I do hope that someone will try to port this, include the listed fixes and straighten out the rest of the bugs. |
Quote:
|
I don't know yet, if anyone has reported this bug - i neither don't know if I've mentioned this earlier. But there is actually a problem with usenet-servers that are configured as peer-servers, especially if the forum-usenet-gateway is spotted on the same server as there are outgoing peers. I've got a mail that made me realize this. I'm quoting myself here:
I think you've just discovered some very strange bug here. For a time ago, I moved the usenet-server to another one, internally because the main server got too high loaded with the service. By moving it to another server that only takes care of the usenet everything started to work again. The problem here seem to be the firewall that forwards traffic to my internal server. It can't handle the NAT correct so instead of taking the connection as a news-reader, all traffic are handled like they were newspeers. This is normally, by regular news-readers fixed by itself, since they are sending the string "MODE READER" as a handshake-command. The nntp-gateway don't do this, so instead of work properly some permissions are wrong on connection. I've just tested this, and it may be fixed by adding a line into includes/nntp.php - I tried this before but something happened after that and the gateway didn't work as good as I thought. I think it works this time, but I can't confirm... (this part is quite important /TMM) Find the lines for the handshake part. It should be around line 80 or so. You are looking for: PHP Code:
PHP Code:
|
This fix did not work for me but I emailed you directly about it.
|
Quote:
**) I run a larger server and a smaller, and currently, traffic are forwarded (with a shitty NAT-rule) to the smaller due too high load on the larger. The smaller, unfortunately, have other data stored, that makes the counters differ a bit (and that is bad too) *) When fetching posts from usenet this command is sent to the server GROUP news.software.nntp The server answers with 211 41 63 103 news.software.nntp Where the data received stands for (from the example): 41 = estimated number of articles in group, 63 = first article number in the group, 103 = last article number in the group I'm not sure if the gateway does like this, because I didn't find anything about it in the source, but since there is a lastread-field in the admincp, some similar calculations are made, that for the moment prevents new posts to reach you... And yes, that is probably my fault.. :o |
I've added most of the hacks that were added to this thread and then installed it.. It actually took me a couple of hours to go through all the posts. Now I have a problem. I didn't install all the files that came with the original files like the setlastmsg.php, mime.php, pop.php, the XML file (cpnav_nntp_gateway.xml) because it didn't specify it in the Read Me as far as I can tell I used option 2 for installation because it was mentioned earlier in this thread. Now when I try to run mysite.com/gateway.php?debug=1 I get this error:
Code:
Parse error: syntax error, unexpected T_ELSE in /home/username/public_html/gateway.php on line 385 Anyone knows what the problem could be? It looks to me like it could be some kind of error with the code DKendall supplied only because the error seems to be coming from that line, but I'm no PHP expert and I'm not really sure. |
Quote:
|
Looks like this is what it says:
Code:
$kf = killfile_match(); Here's a little bit more of the code in case that part isn't enough: Code:
elseif ($nntp['grouptype'] == 'mail' |
Ok.. Something is just missing there... This part:
PHP Code:
PHP Code:
|
Are there any plans to update this for 3.6.7? If not, are there any other similar mods?
|
This is the only mod for Usenet.
|
It seems like I have everything working fine, but now I'm getting a 411 error no such group. I am using about 20 different newsgroups and I know some of them are good. Why am I getting this error for most of them? The servers are replying and giving info like no posting and stuff like that, why is it saying they don't exist?
Here's an example: Code:
Connecting to server, server says: 200 aioe.org InterNetNews NNRP server INN 2.4.4 (20060818 snapshot) ready (posting ok). |
Quote:
Another thing that may be important for aioe-users: They only allow 25 posts/day per ip. If you're running a server with many users, those 25 may be used up quite fast. |
The problem is I'm getting this with about 15 other newsgroups. It could be my settings since they are basically the same for all of them. Here's a screenshot of the settings I have (I've attached them here for future viewers and also uploaded them temporarily for ease of viewing):
https://vborg.vbsupport.ru/ Most of the newsgroups I'm attempting to use appear to not use username and passwords so that's the reason it's not included. Newsgroup/Mailing List Email: I put in link Forum: Forum I want it to show in Prefix: I've left blank Last Message: 0 Server: I put in the link again The rest I've left blank (username and password are not required on these newsgroups) and enabled it. Am I filling it out wrong? By the way I appreciate your help. Thank you. |
Quote:
The only wrong I can see in your attachment is that the top field for the newsgroup-name should be an existing newsgroup. The current you have in your screenshot doesn't exist :) Quote:
There's only one thing I'm thinking of now - does the gateway work when sending empty identification strings, since aioe don't use authentication? |
It worked!!! Thanks again.
I changed Newsgroup/Mailing List Email to one of the groups from the link you provided (I picked alt.accounting) and got some posts. I'm actually only testing the script for now, I have not placed it in a live section of my forum. It's in an admin viewable only section. As far as authentication, I'm not sure, but everything else seems to work fine, I guess it was just that I didn't pick the right Newsgroup name and that seemed to fix everything. I'm still testing so I may be back with more questions, but I hope everything works for now. I'll probably end up using one of the paid newsgroup solutions, but I want to get all of my testing out of the way with free newsgroups for now. |
anyone get this working on 3.6.8? If so what did you have to do?
|
Nevermind, I got it working, I just had to up the database timeout cause it encountered a large import.
|
I got this working on 3.6.8. Works good except for the scheduled tasks in VB. I instead want to do this by cron with the server itself. Does anyone know how to get this to work using the crontab manager?
I honestly have no clue how to set up a cron job using that and the instructions arent much help. |
Quote:
If you have access to add cronjobs directly, the format would be: Code:
*/10 * * * * /usr/bin/lynx -source "http://www.example.com/forums/gateway.php" |
Quote:
|
You would add
Code:
"/usr/bin/lynx -source "http://www.example.com/forums/gateway.php" |
Quote:
Thanks for taking the time to help me out with this. It's much appreciated. EDIT: That worked! Thank you! Just had to remove the first " and everything updated. |
Can anybody point me in the right direction for removing the >> indents as this looks very messy.
Thanks |
OK i've read through all the pages, but i can't figure out what's wrong. I've just installed it, and getting this error
Quote:
http://img528.imageshack.us/img528/5...dd47kr9.th.png |
You're using a news server that only allows connections from your IP.
If you're using a server that doesn't require a username or password then that is the problem. |
Apart from just Yahoo groups, can you use myspace groups? Any other ideas what other ones you can use?
|
I am having trouble with scheduling this to run in a standard cron job.
Cron job: Code:
/usr/local/php5/bin/php /home/myuser/mysite.com/forum/gateway.php Code:
// ############################################################################# Error: Code:
Warning: require_once(/home/.saint/user/includes/class_core.php): failed to open stream: No such file or directory in /home/.saint/user/mysite.com/forum/includes/init.php on line 42 |
Hi to all.
I have make some changes and fixes. // Modified by Fabio Dell'Aria on 20-Sep-2007 (fabio.dellaria@gmail.com) // Modified Files: nntp.php, functions_nntp.php // --------------------------------------------------------------------- // Changes: // -------- // 1)...Added the ability to can works with local NNTP servers; // 2)...Added the ability to can avoid duplicated NNTP messages; // 3)...A little NNTP Send speed improvement; // 4)...Increased the Debug details; // 5)...Fix a bug that caused "Invalid From address" NNTP error; // 6)...Fix a bug that caused "Duplicated Message" NNTP error. // --------------------------------------------------------------------- How I can includes them in the OFFICIAL release? |
hello,
i try to download this newsgroup: nzn.fr.delphi (server server.amis.tv) and i can't !! it's work for some time (sometime i can download 500 messages, sometime 3000), but i always have : Fatal error maximum execution time of 1800 seconds exceeded in nntp.php on line 121 ! where the problem is? what can i do? thanks you by advance ! stéphane |
Quote:
|
yes, but in fact it's impossible to make the script workin ... i always have this error !! this is on the line : $response = trim(fgets($this->fp, 128));
when i check on outlook express, the server work perfectly without any probleme ! you can try : nzn.fr.delphi (server server.amis.tv) |
Quote:
|
But now i have a BIG problem! it's sometime crash php-cgi.exe (with big windows error popup) !!!
|
I am having similar issues, the mod put too much load on the server, i am 2x DualCore Xeon 2.8 with 2GB ram 100mbit.... Cron set to run every 24hrs or midnight :o... once the cron run the load shoots up to 6 - 20 till apache crashes....
even now the server is dead slow due the gateway.php cron Code:
xyz 18394 11.2 3.6 86660 74972 ? Ss 00:00 25:39 /usr/bin/php /home/xyz/public_html/forum/gateway.php This is a great hack, but someone need to update and optimize the code. |
Most likely you're trying to grab too many threads (aka: articles) in one session resulting in the timeout. Before bringing in a new group check to see what the last article ID is and then retrieve only the last hundred or so articles. Do that and add one group at a time and see if there if a difference in your results.
|
All times are GMT. The time now is 11:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|