Rocksolid Light

Welcome to novaBBS

register   nodelist   faq  

Your account also provides newsreader access to all groups at news.i2pn2.org port 119 or 563 (TLS)


rocksolid / Programming / latest code

SubjectAuthor
* latest codeAnonymous
`* Re: latest codeRetro Guy
 `* Re: latest codeRetro Guy
  `* Re: latest codeanon
   `* Re: latest codeRetro Guy
    `* Re: latest codeanon
     `* Re: latest codeanon
      `* Re: latest codeanon
       `* Re: latest codeanon
        `- Re: latest codereshmakavi

1
Subject: latest code
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Organization: def5
Date: Sat, 13 Jun 2020 23:21 UTC
Attachments: vichan_sync_v0.11.zip (application/zip)
Path: i2pn2.org!rocksolid2!def5!.POSTED.bogusentry!not-for-mail
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: latest code
Date: Sat, 13 Jun 2020 16:21:20 -0700
Organization: def5
Message-ID: <code.393.9xhc4@anon.com>
References: <code.100.gmepn@anon.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=3ca0c89d94899557e5fc69e877799b62e134884a
Injection-Info: def5.org; posting-host="bogusentry:192.168.1.189";
logging-data="31598"; mail-complaints-to="usenet@def5.org"
View all headers
please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

cheers

trw


Attachments: vichan_sync_v0.11.zip (application/zip)
Subject: Re: latest code
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Sun, 14 Jun 2020 06:31 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Sun, 14 Jun 2020 06:31 UTC
Organization: Rocksolid Light
Message-ID: <c1679b2fa98bc6b358c530c3eaffccdd$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.393.9xhc4@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="30905"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$X7Lq8WENiP3FPB.Zn9dDjOkjNZYfsbSyw5fXMZUtzcZskfP7m/GXi
View all headers
Anonymous wrote:

please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

Thanks! I'll take a look at this in a couple of days. I'm quite curious to see how vichan is written.

Retro Guy


--
Posted on: Rocksolid Light
www.novabbs.com


Subject: Re: latest code
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Mon, 15 Jun 2020 10:07 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Mon, 15 Jun 2020 10:07 UTC
Organization: Rocksolid Light
Message-ID: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.393.9xhc4@anon.com> <c1679b2fa98bc6b358c530c3eaffccdd$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="29338"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$LB2aPVeJl.qjcVIcSkkv/OlotXhmXhRtNrdcA7s/GsW5rQnCjY7KK
View all headers
Retro Guy wrote:

Anonymous wrote:

please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

Thanks! I'll take a look at this in a couple of days. I'm quite curious to see how vichan is written.

I've downloaded and installed (on top of vichan-devel). I kept the dir structure from your zip and put it into the devel structure. Then installed (seems vichan requires php-mcrypt) but that's not listed in Requirements in the README).

Anyway, it installs easily, and I set the nntp server in config file. I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there. It created the thread files in ./threads fine (nice).

What I don't know is how to I tie those to the boards in vichan? So, what did I do wrong, or what have I not done yet that I need to do? :)

Thanks,

Retro Guy




--
Posted on: Rocksolid Light
www.novabbs.com


Subject: Re: latest code
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Mon, 15 Jun 2020 19:39 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <c1745706afd0f31fd468c5bced04ec4b@def4>
Subject: Re: latest code
Date: Mon, 15 Jun 2020 19:39:06+0000
Organization: def5
In-Reply-To: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
References: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

Then installed (seems vichan requires php-mcrypt) but that's not listed in Requirements in the README).

Strange, either I had that installed already, or there is something different between our installations. I don't recall having to do that.

Anyway, it installs easily, and I set the nntp server in config file.

Good, that was the same for me, installation was easy.

I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there.

That's fine. It can run from anywhere, and you can run it from cli or call it from cron.
Did you put gpost.php in the webroot (next to post.php) ?

It created the thread files in ./threads fine (nice).

There should also be a dir named "watermarks". If not, something went wrong.

What I don't know is how to I tie those to the boards in vichan?

Each board needs to be set in its config file, and there you make the connection to the newsgroup.
Also in sync.php there is an array called "translation" which needs to be set (I will take that from the central config later).

So, what did I do wrong, or what have I not done yet that I need to do? :)

I would suggest to start with one group only:
-set it in the central config
-set it in the board config
-set it in sync.php
and let run again.

What is the content of error.log and application.log ?

cheers

trw

Posted on def4


Subject: Re: latest code
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Tue, 16 Jun 2020 00:53 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Tue, 16 Jun 2020 00:53 UTC
Organization: Rocksolid Light
Message-ID: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
References: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com> <c1745706afd0f31fd468c5bced04ec4b@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="32663"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$/zAUB4VY/Xpu9Tgau.INseXL5zIZGrsQ0ybTMUSWdWeFnRV./Q.HK
View all headers
anon wrote:

I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there.

That's fine. It can run from anywhere, and you can run it from cli or call it from cron.
Did you put gpost.php in the webroot (next to post.php) ?

Yes, I left the structure the same and copied the files into the distribution.

It created the thread files in ./threads fine (nice).

There should also be a dir named "watermarks". If not, something went wrong.

It is there, and populated with files for each group.

What I don't know is how to I tie those to the boards in vichan?

Each board needs to be set in its config file, and there you make the connection to the newsgroup.
Also in sync.php there is an array called "translation" which needs to be set (I will take that from the central config later).

I see the translation array in gpost.php, but not in sync.php.

So, what did I do wrong, or what have I not done yet that I need to do? :)

I would suggest to start with one group only:
-set it in the central config
-set it in the board config
-set it in sync.php
and let run again.

I've been trying this but I'm not sure how to 'set it'. I've tried several variations on adding it to the array in each, but nothing changes. sync.php builds stuff, but I don't see how it gets put into the db.

Can you list an example line to add/change for each file?

What is the content of error.log and application.log ?

Nothing in error.log.

application.log looks ok:

no index found for group rocksolid.shared.test, building it building index for group rocksolid.shared.test
update for group rocksolid.shared.testsolid.shared.testest
syncing message # 1 from group rocksolid.nodes

Obviously, I don't understand how it all ties together, but I'd like to get it working if possible.

Retro Guy

--
Posted on: Rocksolid Light
www.novabbs.com


Subject: Re: latest code
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Tue, 16 Jun 2020 07:01 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
Subject: Re: latest code
Date: Tue, 16 Jun 2020 07:01:09+0000
Organization: def5
In-Reply-To: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
References: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

I see the translation array in gpost.php, but not in sync.php.

yes, sorry, this is what i meant.


I've been trying this but I'm not sure how to 'set it'. I've
tried several variations on adding it to the array in each,
but nothing changes.

i will post a config example.

the way a synced article gets inserted in the db is that sync.php calls gpost.php and tells it to. if you don't see any error message in application.log this should have worked already.

Posted on def4


Subject: Re: latest code
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 18 Jun 2020 14:34 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <8b7c90572ddb757974fd282abf015f30@def4>
Subject: Re: latest code
Date: Thu, 18 Jun 2020 14:34:24+0000
Organization: def5
In-Reply-To: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
References: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

this is the relevant part of the central config file (./inc/config.php):

        $config['nntpchan'] = array();

        // Enable NNTPChan integration
        $config['nntpchan']['enabled'] = true;

        // NNTP server
        $config['nntpchan']['server'] = "192.168.1.1:1119";
        $config['nntpchan']['name'] = "username";
        $config['nntpchan']['password'] = "password";
          // Global dispatch array. Add your boards to it to enable them. Please make
        // sure that this setting is set in a global context.
        $config['nntpchan']['dispatch'] = array(
                                        'rocksolid.nodes' => 'n',
                                        'rocksolid.nodes.help' => 'nh',
                                        'rocksolid.nodes.announce' => 'na',
                                        'rocksolid.shared.encryption' => 'ec',
                                        'rocksolid.shared.entertainment' => 'et',
                                        'rocksolid.shared.freenet' => 'f',
                                        'rocksolid.shared.general' => 'g',
                                        'rocksolid.shared.hacking' => 'ha',
                                        'rocksolid.shared.helpdesk' => 'he',
                                        'rocksolid.shared.i2p' => 'i',
                                        'rocksolid.shared.linux' => 'l',
                                        'rocksolid.shared.news' => 'ne',
                                        'rocksolid.shared.offtopic' => 'b',
                                        'rocksolid.programming' => 'code',
                                        'rocksolid.shared.rocksolid' => 'r',
                                        'rocksolid.shared.security' => 'opsec',
                                        'rocksolid.social' => 'soc',
                                        'rocksolid.shared.test' => 'ts',
                                        'rocksolid.shared.tor' => 'to',
                                        ); // 'overchan.test' => 'test'

        // Trusted peer - an IP address of your NNTPChan instance. This peer will have
        // increased capabilities, eg.: will evade spamfilter.
        $config['nntpchan']['trusted_peer'] = '127.0.0.1';

        // Salt for message ID generation. Keep it long and secure.
        $config['nntpchan']['salt'] = 'something_very_long_and_radom';

        // A local message ID domain. Make sure to change it.
        $config['nntpchan']['domain'] = 'yourdomain.org';


the server data of the nntp server (        $config['nntpchan']['server'], $config['nntpchan']['name'] and
$config['nntpchan']['password'])
is not actually important, since the posting works differently now (by dropping the message in the outspool), but i set them regardless.

Posted on def4


Subject: Re: latest code
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 18 Jun 2020 14:41 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
Subject: Re: latest code
Date: Thu, 18 Jun 2020 14:41:06+0000
Organization: def5
In-Reply-To: <8b7c90572ddb757974fd282abf015f30@def4>
References: <8b7c90572ddb757974fd282abf015f30@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

and this is the relevant part of the local config (so, for a board called "ts" this is ./ts/config.php):

     $config['nntpchan'] = array();

        // Enable NNTPChan integration
        $config['nntpchan']['enabled'] = true;

        // NNTP server
        $config['nntpchan']['server'] = "localhost:10119";

        // Trusted peer - an IP address of your NNTPChan instance. This peer will have
        // increased capabilities, eg.: will evade spamfilter.
        $config['nntpchan']['trusted_peer'] = '127.0.0.1';

        // Salt for message ID generation. Keep it long and secure.
        $config['nntpchan']['salt'] = 'something_long_and_random';

        // A local message ID domain. Make sure to change it.
        $config['nntpchan']['domain'] = 'yourdomain.org';

        // An NNTPChan group name.
        // Please set this setting in your board/config.php, not globally.
        $config['nntpchan']['group'] = 'rocksolid.shared.test';
 again, this one here ($config['nntpchan']['server']) does not do anything, but I set it regardless.

if you ran sync.php and it put out "syncing message yxz" and there is no error message, but the message is not visible, i would suspect that it was silently dropped because something was not defined.

let me know if that helped.

cheers

trw

Posted on def4


Subject: Re: latest code
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Fri, 19 Jun 2020 15:50 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <2fef2df466d99579a486a92bde3edacc@def4>
Subject: Re: latest code
Date: Fri, 19 Jun 2020 15:50:42+0000
Organization: def5
In-Reply-To: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
References: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

and the most likely reason why this did not work is that you need to adapt the server settings in the file sync.php to reflect yours, i think i forgot to mention before, sorry.
it is in line 398.

cheers

trw

--
Posted on def4


Subject: Re: latest code
From: reshmaka...@gmail.com (reshmakavi)
Newsgroups: rocksolid.programming
Organization: novaBBS
Date: Wed, 23 Sep 2020 09:02 UTC
Date: Wed, 23 Sep 2020 09:02:21 +0000
Subject: Re: latest code
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs
From: reshmaka...@gmail.com (reshmakavi)
Newsgroups: rocksolid.programming
X-Rslight-Site: $2y$10$07LxCbrzrcc0IKQxlYgLa.OrysOtk8Ohrh9CpJLsC/7dcS3TrhJ5.
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
References: <3c06c3ee2ecf19d813bc6758b2d7781a@def4> <2fef2df466d99579a486a92bde3edacc@def4>
Organization: novaBBS
Message-ID: <7f81bdfd1a3bba256e98c75c4a5f9639$1@www.novabbs.com>
View all headers
Interesting thread....
--
Posted on: novaBBS
www.novabbs.com



1
rocksolid light 0.6.6
clearnet i2p tor