Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > rocksolid.programming > #261 > unrolled thread

Status of the nntp server from rslight ?

Started byAnonymous <poster@anon.com>
First post2021-03-12 01:58 -0800
Last post2021-03-14 00:27 +0000
Articles 14 — 3 participants

Back to article view | Back to rocksolid.programming


Contents

  Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-12 01:58 -0800
    Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-12 10:43 +0000
    Re: Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-12 05:00 -0800
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-13 11:04 +0000
    Re: Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-13 04:21 -0800
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-13 12:40 +0000
    Re: Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-13 04:14 -0800
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-13 12:43 +0000
    Re: Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-13 05:49 -0800
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-13 14:04 +0000
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-14 01:27 +0000
    Re: Status of the nntp server from rslight ? Anonymous <poster@anon.com> - 2021-03-13 06:23 -0800
      Re: Status of the nntp server from rslight ? retro.guy@rocksolidbbs.com (Retro Guy) - 2021-03-13 14:59 +0000
        Re: Status of the nntp server from rslight ? anonymous@def4.i2p (anonymous) - 2021-03-14 00:27 +0000

#261 — Status of the nntp server from rslight ?

FromAnonymous <poster@anon.com>
Date2021-03-12 01:58 -0800
SubjectStatus of the nntp server from rslight ?
Message-ID<code.713.24efuk@anon.com>
Hi Retro Guy,

did you ever get around to release your standalone version of the nntp server you made for rslight ?
I was trying to install it a couple of days ago, but could not find anything, just the rslight packages. Or is it part of that ?

cheers

trw

-- 
Posted on def2

[toc] | [next] | [standalone]


#262

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-12 10:43 +0000
Message-ID<9cbfa264cf2ebc9a7d9dc3cbc646ff33$1@news.novabbs.org>
In reply to#261
Anonymous wrote:

> Hi Retro Guy,

> did you ever get around to release your standalone version of the nntp server you made for rslight ?
> I was trying to install it a couple of days ago, but could not find anything, just the rslight packages. Or is it part of that ?

Ah, sorry about that. I've been spending a lot of time on search and never made an installer for standalone nntp.

I'll get that put together soon. It's simply a matter of a toggle to disable automated threading, and writing an installer script. I assume a debian installer is what you nee, so that's what I'll provide.

I did set up a standalone and still run it and it's fine, but I just let it do pointless threading. It all can be run in one directory (with subdirs). I'll get on that over the next few days and let you know when it's ready.

Retro Guy
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#263

FromAnonymous <poster@anon.com>
Date2021-03-12 05:00 -0800
Message-ID<code.715.srxor@anon.com>
In reply to#261
>>e3839d36a8eb35c58e
>I assume a debian installer is what you nee, so that's what I'll provide.

I use mostly debian on my servers, that's right. And I don't absolutely need an installer, but if you make one, I will take it :-).

> It all can be run in one directory (with subdirs).

That sounds good to me.

> I'll get on that over the next few days and let you know when it's ready.

Thanks a lot.

-- 
Posted on def2

[toc] | [prev] | [next] | [standalone]


#264

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-13 11:04 +0000
Message-ID<b6c71f606bdec038cb3921be594805c6$1@news.novabbs.org>
In reply to#263
Anonymous wrote:

>>>e3839d36a8eb35c58e
>>I assume a debian installer is what you nee, so that's what I'll provide.

> I use mostly debian on my servers, that's right. And I don't absolutely need an installer, but if you make one, I will take it :-).

Ok, I just installed this in a Debian vm and no problems. It's pretty simple and all runs in one directory with subdirs. It will run as whatever user you choose during the installation script, which defaults to www-data. You can select any user you wish, just make sure that the user can r/w the spool dir and rslight/user and rslight/userconfig.

I placed the latest version here:
http://rslight.i2p/getrslight/rslight-13032021.zip
This is newer than what is on github, so probably the best choice.

Unzip the file into a temp dir. I use /tmp/rslight each time. Then cd Rocksolid_Light to find the installer and run it as root. It will ask about web root stuff, just let it place some files there as rslight expects the files to exist. There is no need to make anything web accessible.

/debian-install.sh 

This is the main installation script for Rocksolid Light
and must be run as root from the root directory of the extracted files

Select installation directories

Choose a path for your web root for rslight
Use default web root /var/www/html (y/n)? n

Enter web root for rslight: /usr/local/rslight/html
                                                                                                                                                                                                                                                                               
Choose a path for your spool files for rslight                                                                                                                                                                                                                                 
Use default spool path /var/spool/rslight (y/n)? n                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
Enter spool path for rslight: /usr/local/rslight/spool                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
Choose a path for rslight configuration files                                                                                                                                                                                                                                  
Use default config path /etc/rslight (y/n)? n                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                               
Enter config path for rslight: /usr/local/rslight/rslight                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                               
Choose username used by your web server                                                                                                                                                                                                                                        
Use default username www-data (y/n)? y                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                               
You have selected the following options:                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                               
Web root: /usr/local/rslight/html                                                                                                                                                                                                                                              
Spool dir: /usr/local/rslight/spool                                                                                                                                                                                                                                            
Config dir: /usr/local/rslight/rslight                                                                                                                                                                                                                                         
Web user: www-data                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
Are you sure you wish to install to these directories now                                                                                                                                                                                                                      
and change permissions as necessary to www-data?                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                               
Type 'YES' to create the directories and move files into place: YES                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                               
Creating directories                                                                                                                                                                                                                                                           
/usr/local/rslight/html...done                                                                                                                                                                                                                                                 
/usr/local/rslight/spool...done                                                                                                                                                                                                                                                
/usr/local/rslight/rslight...done

Moving files into place...done

Setting permissions...done

Applying configuration...sed: can't read : No such file or directory
***there will be sed errors here but should be fine***
done

***************************************************
******** YOUR ADMIN PASSWORD IS: '(not important)'
***************************************************

Now edit in /usr/local/rslight/rslight/menu.conf (to disable forum features):

Change 'rocksolid:1:1' to 'rocksolid:0:1'

Next open /usr/local/rslight/rslight/rslight.inc.php and set your upstream server details, and anything else you wish to change. Use '1' or '' (blank) for on/off true/false. This file is really meant to be edited by the web interface, not manually, but it's easy to edit.

Once all that is done, add to crontab for root:
*/5 * * * * cd /usr/local/rslight/html/spoolnews ; bash -lc "php /usr/local/rslight/rslight/scripts/cron.php"

Adjust directories as necessary based on where you installed.

I just did all this, the exact same steps in the same order and it's working fine on Debian 10. This requires sqlite support so you probably need to add the package in Debian: 
php7.x-sqlite3

Sqlite is serverless, so there is nothing more to do to take advantage of using the database.

I hope this goes smoothly. If not, it would have to be something simple so let me know :)

Retro Guy
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#265

FromAnonymous <poster@anon.com>
Date2021-03-13 04:21 -0800
Message-ID<code.718.3ip0v4@anon.com>
In reply to#261
Just one question, is spoolnews supposed two run with two instances ? this is output from ps aux after running cron.php manually as root:

www-data sh -c php /etc/rslight/scripts/spoolnews.php
www-data php /etc/rslight/scripts/spoolnews.php

Or is it wrong to run cron.php manually for testing purposes ?

-- 
Posted on def2

[toc] | [prev] | [next] | [standalone]


#267

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-13 12:40 +0000
Message-ID<6f7ba435d9cb5aba8f5819caf3ce4e55$1@news.novabbs.org>
In reply to#265
Anonymous wrote:

> Just one question, is spoolnews supposed two run with two instances ? this is output from ps aux after running cron.php manually as root:

> www-data sh -c php /etc/rslight/scripts/spoolnews.php
> www-data php /etc/rslight/scripts/spoolnews.php

You'll end up with a spoolnews.php instance for each 'section'. In this case, rocksolid and spoolnews (spoolnews is it's own section). There is a lock file for each instance per section, so you shouldn't see multiples very often once you are caught up (have downloaded articles).

As a note, the default number of articles to download backward on a new group (new on your end) is 1000. To change that, it's near the top of spoolnews.php.

> Or is it wrong to run cron.php manually for testing purposes ?

No, that's fine. I do it all the time for testing. Should be no problem.

Retro Guy
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#266

FromAnonymous <poster@anon.com>
Date2021-03-13 04:14 -0800
Message-ID<code.717.3v8lsj@anon.com>
In reply to#261
Big thanks, I just downloaded it (while I was playing with a regular rslight installation meanwhile).
I'll let you know how it handles for me.
As a feedback for the installation of rslight:
-it also shows the sed errors, while all data are written correctly
-you might want to mention the dependency on php-gnupg, or else the nocem script is crashing
-the rest runs nicely, and the message cache is slowly filling up.

cheers

trw

-- 
Posted on def2

[toc] | [prev] | [next] | [standalone]


#268

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-13 12:43 +0000
Message-ID<828cd0bbe9c121243101772a61cb1e70$1@news.novabbs.org>
In reply to#266
Anonymous wrote:

> Big thanks, I just downloaded it (while I was playing with a regular rslight installation meanwhile).
> I'll let you know how it handles for me.
> As a feedback for the installation of rslight:
> -it also shows the sed errors, while all data are written correctly
> -you might want to mention the dependency on php-gnupg, or else the nocem script is crashing
> -the rest runs nicely, and the message cache is slowly filling up.

Thank you for the feedback :)

It's helpful as I assume I'm really the only user of rslight, and I can get a bit blinded by being used to it and may not notice something a user with a new install would deal with.

I think I know the reason for the sed errors, I'll take a look in the near future to fix it but as you say, it does work anyway. I'll add gnupg comment to INSTALL.md.

If you are seeing growing .db3 files in the spool dir, that's a good sign. spool/log/spoolnews.log should also show articles being saved.

Hopefully it works!

Retro Guy
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#269

FromAnonymous <poster@anon.com>
Date2021-03-13 05:49 -0800
Message-ID<code.721.wxnr6@anon.com>
In reply to#261
Thanks for the explanations. 
I have this rslight nntp server now running on vm2sdbjd*.b32.i2p, the same address as my inn2 server used to be.
In the logs (nntp.log in this case), I notice a lot of these error messages:
Syntax error: IHAVE <1p5zarf.ck1h45pt3fc3N@de-ster.xs4all.nl>
Looks like the rslight nntp server does not understand this one ? Or do I need to enable something for this to work ?

-- 
Posted on def2

[toc] | [prev] | [next] | [standalone]


#270

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-13 14:04 +0000
Message-ID<4e901587eb3e66798e0855fe66968ed5$1@news.novabbs.org>
In reply to#269
Anonymous wrote:

> Thanks for the explanations. 
> I have this rslight nntp server now running on vm2sdbjd*.b32.i2p, the same address as my inn2 server used to be.
> In the logs (nntp.log in this case), I notice a lot of these error messages:
> Syntax error: IHAVE <1p5zarf.ck1h45pt3fc3N@de-ster.xs4all.nl>
> Looks like the rslight nntp server does not understand this one ? Or do I need to enable something for this to work ?

rslight does not support IHAVE. Oh, maybe it's from my inn servers trying to peer with it? rslight needs to sync with other servers as a reader. I'm guessing your client (bbx) doesn't use IHAVE as a client would not do that.
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#274

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-14 01:27 +0000
Message-ID<92ba0e2d47df9ac3d24c68c2b61c03b0$1@news.novabbs.org>
In reply to#269
Anonymous wrote:

> Thanks for the explanations. 
> I have this rslight nntp server now running on vm2sdbjd*.b32.i2p, the same address as my inn2 server used to be.

I'm going to remove this peer from my inn peer list. Meaning, inn won't try to send messages there as it will be pulling instead.

I'll just comment the lines out on my end so I can re-enable again if you switch back.

Retro Guy
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#271

FromAnonymous <poster@anon.com>
Date2021-03-13 06:23 -0800
Message-ID<code.723.3n7vn@anon.com>
In reply to#261
>>a6faa80c42f7a25b90
>Oh, maybe it's from my inn servers trying to peer with it? 

Yes, I believe so.

>rslight needs to sync with other servers as a reader. 

So this means it is pulling only ?

>I'm guessing your client (bbx) doesn't use IHAVE as a client would not do that.

No, I played with that one but gave it up.

-- 
Posted on def2

[toc] | [prev] | [next] | [standalone]


#272

Fromretro.guy@rocksolidbbs.com (Retro Guy)
Date2021-03-13 14:59 +0000
Message-ID<c68f29bb51fe6f26c22e558a59c04013$1@news.novabbs.org>
In reply to#271
Anonymous wrote:

>>rslight needs to sync with other servers as a reader. 

> So this means it is pulling only ?

No, it posts also, but as a reader. Reading and posting should work fine, just that it doesn't act as a "peer" but as a newsreader. 

When you post, it sends it to the upstreamn nnep server, and when it syncs it pulls articles from upstream.
-- 
Posted on Rocksolid Light
news.novabbs.org

[toc] | [prev] | [next] | [standalone]


#273

Fromanonymous@def4.i2p (anonymous)
Date2021-03-14 00:27 +0000
Message-ID<f942eba3485f4e1ede4b201cac03cbb7$1@def4.i2p>
In reply to#272
>Reading and posting should work fine, just that it doesn't act as a "peer" but as a newsreader

Ok, got it. 

I can see posting is working fine.
-- 
def4 rslight devel node
def4.i2p

[toc] | [prev] | [standalone]


Back to top | Article view | rocksolid.programming


csiph-web