Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Brain off-line, please wait.


computers / Rocksolid Nodes Help / Error: fresh rocksolid install connection_failed

SubjectAuthor
* Error: fresh rocksolid install connection_failedSyber Shock
+* P.S.: Error: fresh rocksolid install connection_failedSyber Shock
|`* P.S.: Error: fresh rocksolid install connection_failedRetro Guy
| `* P.S.: Error: fresh rocksolid install connection_failedSyber Shock
|  `* P.S.: Error: fresh rocksolid install connection_failRetro Guy
|   +- P.S.: Error: fresh rocksolid install connection_failedSyber Shock
|   `* *update* : SSL borkage? : Error: fresh rocksolid installSyber Shock
|    +- *update* : stream error? : Error: fresh rocksolid installSyber Shock
|    `- *update* : SSL borkage? : Error: fresh rocksolidRetro Guy
`* Error: fresh rocksolid install connection_failedRetro Guy
 `* Error: fresh rocksolid install connection_failedSyber Shock
  `* Error: fresh rocksolid install connection_failedSyber Shock
   `* Error: fresh rocksolid install connection_failedSyber Shock
    `* Error: fresh rocksolid install connection_failedRetro Guy
     `* Error: fresh rocksolid install connection_failedSyber Shock
      `- Error: fresh rocksolid install connection_failedRetro Guy

1
Error: fresh rocksolid install connection_failed

<ug21r2$2d6tt$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=635&group=rocksolid.nodes.help#635

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Error: fresh rocksolid install connection_failed
Date: Mon, 9 Oct 2023 18:20:17 -0500
Organization: sybershock.com
Message-ID: <ug21r2$2d6tt$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 9 Oct 2023 23:20:03 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2530237"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Mon, 9 Oct 2023 23:20 UTC

Began with fresh install of recent git clone current to commit
25bba4e9c1a50d8a8b4026f6aa36307aa30c0e33.

Set up with exact same initial configuration information as older
version that is running well, except database instead of tradspool.

Every run of the cron returns this error:

"The connection to the Message Server failed"

.... which appears to come from 'english.lang':

"$text_error["connection_failed"]="The connection to the Message Server
failed";"

After several cron jobs the new install had no articles and no database
data.

Wiped, then switched config to tradspool, ran cron. No sync, no
articles in spool directory, nada. The .dat files get built, but
nothing happens.

Both php newsportal nntp and nntpssl workers are running in all checks.

Tried to sync via clearnet and Tor, fails each way, no successes, not
data copied from remote host to local.

The only errors showing in logs:

$ cat spoolnews.log.1

Oct 09 22:00:10 spoolnews Failed to connect to news.novabbs.org:563
Oct 09 22:00:10 spoolnews remote_server: news.novabbs.org
Oct 09 22:00:40 spoolnews Failed to connect to news.novabbs.org:563
Oct 09 22:01:11 rocksolid Failed to connect to news.novabbs.org:563
Oct 09 22:01:12 rocksolid remote_server: news.novabbs.org
Oct 09 22:01:42 rocksolid Failed to connect to news.novabbs.org:563

I have no problem connecting to novabbs.org via telnet and s_client,
and with graphical client. They all work via clearnet and Tor.

What else do I need to check?

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

P.S.: Error: fresh rocksolid install connection_failed

<ug2hhr$2ek8r$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=636&group=rocksolid.nodes.help#636

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: P.S.: Error: fresh rocksolid install connection_failed
Date: Mon, 9 Oct 2023 22:48:26 -0500
Organization: sybershock.com
Message-ID: <ug2hhr$2ek8r$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 10 Oct 2023 03:48:11 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2576667"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Tue, 10 Oct 2023 03:48 UTC

P.S. I wiped out the install and killed the daemons and reinstalled a
few times and kept having the same problem. Then I wiped out the
install and installed older version 0.7.2 with the exact same
configuration for rslight.inc.php and the older version runs fine. I
have no idea what I am missing to get the newer version to talk to the
server.

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: P.S.: Error: fresh rocksolid install connection_failed

<20231010015404.7d3c33d9131419b3d4539904@novabbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=637&group=rocksolid.nodes.help#637

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: P.S.: Error: fresh rocksolid install connection_failed
Date: Tue, 10 Oct 2023 01:54:04 -0700
Organization: novaBBS
Message-ID: <20231010015404.7d3c33d9131419b3d4539904@novabbs.com>
References: <ug21r2$2d6tt$1@novabbs.org>
<ug2hhr$2ek8r$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1032768"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Tue, 10 Oct 2023 08:54 UTC

On Mon, 9 Oct 2023 22:48:26 -0500
Syber Shock <admin@sybershock.com> wrote:

> P.S. I wiped out the install and killed the daemons and reinstalled a
> few times and kept having the same problem. Then I wiped out the
> install and installed older version 0.7.2 with the exact same
> configuration for rslight.inc.php and the older version runs fine. I
> have no idea what I am missing to get the newer version to talk to the
> server.

That's no fun at all :(

If you don't mind, can you tell me what os and php (versions) you are running, and
I will install in a VM here?

Obviously I'm running the latest and all is fine here, so let's see what the
difference could be. This is my current php ver:
php -v
PHP 8.2.5 (cli) (built: Apr 27 2023 08:13:47) (NTS)
Zend Engine v4.2.5, Copyright (c) Zend Technologies
with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies

--
Retro Guy

Re: P.S.: Error: fresh rocksolid install connection_failed

<ug35i2$2gern$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=638&group=rocksolid.nodes.help#638

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: P.S.: Error: fresh rocksolid install connection_failed
Date: Tue, 10 Oct 2023 04:29:53 -0500
Organization: sybershock.com
Message-ID: <ug35i2$2gern$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<ug2hhr$2ek8r$1@novabbs.org>
<20231010015404.7d3c33d9131419b3d4539904@novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 10 Oct 2023 09:29:38 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2636663"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Tue, 10 Oct 2023 09:29 UTC

On Tue, 10 Oct 2023 01:54:04 -0700
Retro Guy <retroguy@novabbs.com> wrote:

> On Mon, 9 Oct 2023 22:48:26 -0500
> Syber Shock <admin@sybershock.com> wrote:
>
> > P.S. I wiped out the install and killed the daemons and reinstalled
> > a few times and kept having the same problem. Then I wiped out the
> > install and installed older version 0.7.2 with the exact same
> > configuration for rslight.inc.php and the older version runs fine. I
> > have no idea what I am missing to get the newer version to talk to
> > the server.
>
> That's no fun at all :(

It has me mind boggled. I can't find any errors in any error logs: none
in nginx, none in apache, none in the rslight logs (except connection
failure) and none in php-fpm logs. I ran strace on the cron and that
didn't tell me anything either. I think a low-level trace of the php
socket functions is what I need to do but I have no idea how to begin
that.
> If you don't mind, can you tell me what os and php (versions) you are
> running, and I will install in a VM here?

No problem. Please find the data pasted below. I was thinking, if you
want to open a raw logging socket on a port and log incoming to file, I
can add that as a fake.inc.php pseudo host and hammer the cron a bunch
of times so you can check the incoming data raw. If you want to do that
send me an email. It's easy to do with socat and s_server or even a tor
hidden onion address piped to file or netcat piped to file.

I might not be able to check until tomorrow. No rush.
> Obviously I'm running the latest and all is fine here, so let's see
> what the difference could be. This is my current php ver:
> php -v
> PHP 8.2.5 (cli) (built: Apr 27 2023 08:13:47) (NTS)
> Zend Engine v4.2.5, Copyright (c) Zend Technologies
> with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies
>

---- neofetch data ----

OS: Debian GNU/Linux 11 (bullseye) x86_64
Kernel: 5.10.0-25-amd64
Shell: bash 5.1.4

Note: I can't update to Bookworm yet. I run several server apps and
a DNS server that might break that I can't risk breakage until I know
for sure the upgrade path will work smooth.

---- php version ----

$ php --version
PHP 8.2.11 (cli) (built: Oct 6 2023 10:11:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.11, Copyright (c) Zend Technologies
with Zend OPcache v8.2.11, Copyright (c), by Zend Technologies

---- server setup ----

Apache2 server with nginx as proxy and php8.2-fpm backend for the
latest git master branch of Rocksolid Light.

Apache2 server with nginx as proxy and php7.4-fpm backend for the 0.7.2
zip blob version of Rocksolid Light.

The old 0.7.2 version is working just fine.

---- ideas not yet investigated ----

1. ssl time offset causing remote to reject connection?
2. php script or newsportal sending null variables instead of data?
3. gremlins mad about me eating all the laser chicken?

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: Error: fresh rocksolid install connection_failed

<20231010023844.6494849047dac86b6a2ba839@novabbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=639&group=rocksolid.nodes.help#639

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Tue, 10 Oct 2023 02:38:44 -0700
Organization: novaBBS
Message-ID: <20231010023844.6494849047dac86b6a2ba839@novabbs.com>
References: <ug21r2$2d6tt$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1037347"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Retro Guy - Tue, 10 Oct 2023 09:38 UTC

On Mon, 9 Oct 2023 18:20:17 -0500
Syber Shock <admin@sybershock.com> wrote:

> Began with fresh install of recent git clone current to commit
> 25bba4e9c1a50d8a8b4026f6aa36307aa30c0e33.
>
> Set up with exact same initial configuration information as older
> version that is running well, except database instead of tradspool.
>
> Every run of the cron returns this error:
>
> "The connection to the Message Server failed"
>
> ... which appears to come from 'english.lang':
>
> "$text_error["connection_failed"]="The connection to the Message Server
> failed";"

The server this is referencing is the one that should be running on your
machine. You might check in rslight.inc.php:
'local_server' => '127.0.0.1',
'local_port' => '1119',
'local_ssl_port' => '',
'enable_all_networks' => '1',
'server_auth_user' => 'localuser',
'server_auth_pass' => 'some_password',

> After several cron jobs the new install had no articles and no database
> data.
>
> Wiped, then switched config to tradspool, ran cron. No sync, no
> articles in spool directory, nada. The .dat files get built, but
> nothing happens.
>
> Both php newsportal nntp and nntpssl workers are running in all checks.
>
> Tried to sync via clearnet and Tor, fails each way, no successes, not
> data copied from remote host to local.
>
> The only errors showing in logs:
>
> $ cat spoolnews.log.1
>
> Oct 09 22:00:10 spoolnews Failed to connect to news.novabbs.org:563
> Oct 09 22:00:10 spoolnews remote_server: news.novabbs.org
> Oct 09 22:00:40 spoolnews Failed to connect to news.novabbs.org:563
> Oct 09 22:01:11 rocksolid Failed to connect to news.novabbs.org:563
> Oct 09 22:01:12 rocksolid remote_server: news.novabbs.org
> Oct 09 22:01:42 rocksolid Failed to connect to news.novabbs.org:563
>
> I have no problem connecting to novabbs.org via telnet and s_client,
> and with graphical client. They all work via clearnet and Tor.
>
> What else do I need to check?

I find it strange that it can't connect to it's local server OR remote
server. Something is obviously wrong here. BTW, when it says above that
it 'Failed to connect', that could also mean 'failed to authenticate'.

Also, have you compared your old version of rslight.inc.php to the
version in git? Just to see if something important has changed.

--
Retro Guy

Re: Error: fresh rocksolid install connection_failed

<ug4igb$2n4nn$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=640&group=rocksolid.nodes.help#640

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Tue, 10 Oct 2023 17:16:59 -0500
Organization: sybershock.com
Message-ID: <ug4igb$2n4nn$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 10 Oct 2023 22:16:47 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2855671"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Tue, 10 Oct 2023 22:16 UTC

On Tue, 10 Oct 2023 02:38:44 -0700
Retro Guy <retroguy@novabbs.com> wrote:

> On Mon, 9 Oct 2023 18:20:17 -0500
> Syber Shock <admin@sybershock.com> wrote:
>
> > Began with fresh install of recent git clone current to commit
> > 25bba4e9c1a50d8a8b4026f6aa36307aa30c0e33.
> >
> > Set up with exact same initial configuration information as older
> > version that is running well, except database instead of tradspool.
> >
> > Every run of the cron returns this error:
> >
> > "The connection to the Message Server failed"
> >
> > ... which appears to come from 'english.lang':
> >
> > "$text_error["connection_failed"]="The connection to the Message
> > Server failed";"
>
> The server this is referencing is the one that should be running on
> your machine. You might check in rslight.inc.php:
> 'local_server' => '127.0.0.1',
> 'local_port' => '1119',
> 'local_ssl_port' => '',
> 'enable_all_networks' => '1',
> 'server_auth_user' => 'localuser',
> 'server_auth_pass' => 'some_password',

Quintuple checked. Everything checked out. Ran diff several times and
inspected with nothing out of order.

Just did another wipe and re-install. First run of cron:

Updated user count
Sending articles
<p><font color="red">Error:</font></p><p>The connection to the Message
Server failed</p>Refreshed spoolnews
Expired articles
Sending articles
<p><font color="red">Error:</font></p><p>The connection to the Message
Server failed</p>Refreshed spoolnews
Expired articles
RSS Feeds updated
Rotated: /etc/rslight/spool//log/access.log
Rotated: /etc/rslight/spool//log/cron.log
Rotated: /etc/rslight/spool//log/expire.log
Rotated: /etc/rslight/spool//log/nntp.log
Rotated: /etc/rslight/spool//log/spoolnews.log
Log files rotated
Keys rotated

Notice the double-slashes in paths. I think that has nothing to do with
the connection problem but I noticed it anyway. I did not add trailing
slashes during install wizard.

Second run of cron:

Updated user count
Sending articles
<p><font color="red">Error:</font></p><p>The connection to the Message
Server failed</p>Refreshed spoolnews
Expired articles
Sending articles
<p><font color="red">Error:</font></p><p>The connection to the Message
Server failed</p>Refreshed spoolnews
Expired articles
RSS Feeds updated
Log files rotated
Keys rotated

Spool log:

log# cat spoolnews.log

Oct 10 21:41:58 spoolnews Failed to connect to news.novabbs.org:563
Oct 10 21:41:58 spoolnews remote_server: news.novabbs.org
Oct 10 21:42:28 spoolnews Failed to connect to news.novabbs.org:563
Oct 10 21:42:58 rocksolid Failed to connect to news.novabbs.org:563
Oct 10 21:42:59 rocksolid remote_server: news.novabbs.org
Oct 10 21:43:29 rocksolid Failed to connect to news.novabbs.org:563
Oct 10 21:45:00 spoolnews Failed to connect to news.novabbs.org:563
Oct 10 21:45:00 spoolnews remote_server: news.novabbs.org
Oct 10 21:45:30 spoolnews Failed to connect to news.novabbs.org:563
Oct 10 21:46:01 rocksolid Failed to connect to news.novabbs.org:563
Oct 10 21:46:02 rocksolid remote_server: news.novabbs.org
Oct 10 21:46:32 rocksolid Failed to connect to news.novabbs.org:563

Listing of spool directory:

spool# ls | grep ""
articles-overview.db3
keys.dat
lock
log
rocksolid
rocksolid-groups.dat
rocksolid.nodes.announce-data.db3
rocksolid.nodes-data.db3
rocksolid.nodes.help-data.db3
rocksolid.programming-data.db3
rocksolid.shared.encryption-data.db3
rocksolid.shared.entertainment-data.db3
rocksolid.shared.freenet-data.db3
rocksolid.shared.general-data.db3
rocksolid.shared.hacking-data.db3
rocksolid.shared.helpdesk-data.db3
rocksolid.shared.i2p-data.db3
rocksolid.shared.linux-data.db3
rocksolid.shared.news-data.db3
rocksolid.shared.offtopic-data.db3
rocksolid.shared.rocksolid-data.db3
rocksolid.shared.security-data.db3
rocksolid.shared.test-data.db3
rocksolid.shared.tor-data.db3
rocksolid.social-data.db3
rocksolid.spam-data.db3
rocksolid-thread-timer
sessions.dat
spoolnews
spoolnews-thread-timer
ssl
upload

I am able to manually connect to the newsportal nntp and nntps on the
localhost after running the cron.

I triple checked user/pass for novabbs.org. I cut and pasted from
password manager. I then visually inspected the user/pass. The same
user/pass works in my news clients. I suspect the cron script is never
able to connect to the remote server.

Pasta from rslight.inc.php with the senstives removed:

'remote_server' => 'news.novabbs.org',
'remote_port' => '563',
'remote_ssl' => '1',

'enable_nntp' => '1',
'local_server' => '127.0.0.1',
'local_port' => '119',
'local_ssl_port' => '563',
'enable_all_networks' => '1',

> > After several cron jobs the new install had no articles and no
> > database data.
> >
> > Wiped, then switched config to tradspool, ran cron. No sync, no
> > articles in spool directory, nada. The .dat files get built, but
> > nothing happens.
> >
> > Both php newsportal nntp and nntpssl workers are running in all
> > checks.
> >
> > Tried to sync via clearnet and Tor, fails each way, no successes,
> > not data copied from remote host to local.
> >
> > The only errors showing in logs:
> >
> > $ cat spoolnews.log.1
> >
> > Oct 09 22:00:10 spoolnews Failed to connect to news.novabbs.org:563
> > Oct 09 22:00:10 spoolnews remote_server: news.novabbs.org
> > Oct 09 22:00:40 spoolnews Failed to connect to news.novabbs.org:563
> > Oct 09 22:01:11 rocksolid Failed to connect to news.novabbs.org:563
> > Oct 09 22:01:12 rocksolid remote_server: news.novabbs.org
> > Oct 09 22:01:42 rocksolid Failed to connect to news.novabbs.org:563
> >
> > I have no problem connecting to novabbs.org via telnet and s_client,
> > and with graphical client. They all work via clearnet and Tor.
> >
> > What else do I need to check?
>
> I find it strange that it can't connect to it's local server OR remote
> server. Something is obviously wrong here. BTW, when it says above
> that it 'Failed to connect', that could also mean 'failed to
> authenticate'.
>
> Also, have you compared your old version of rslight.inc.php to the
> version in git? Just to see if something important has changed.

Yes, it all checks out.

I suspected a possible permissions issue. So I ran another fresh
install with debian-install.sh and I put all the paths up in the web
root. The result is still the same as above. I can find nothing in the
logs telling me why it can't connect to the remote host. I don't think
I can troubleshoot this without full tracing of the php functions that
are negotiating the nntp connections. And I have zero idea how to do
that.

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: Error: fresh rocksolid install connection_failed

<ug51mg$2on6q$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=641&group=rocksolid.nodes.help#641

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Tue, 10 Oct 2023 21:36:14 -0500
Organization: sybershock.com
Message-ID: <ug51mg$2on6q$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
<ug4igb$2n4nn$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Oct 2023 02:36:00 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2907354"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Wed, 11 Oct 2023 02:36 UTC

Maybe something is preventing php fsockopen from assigning a
socket. That might explain no error output to be found.

I installed on a separate physical machine running php8.1 and apache
without nginx and fpm and still and got the same results. no
discernible errors I can trace, just connection failure.

Is there a way to get verbose output from fsockopen? Is there something
that must be set in php.ini for fsockopen to operate?

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: Error: fresh rocksolid install connection_failed

<ug5mkt$2r6h7$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=642&group=rocksolid.nodes.help#642

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Wed, 11 Oct 2023 03:33:50 -0500
Organization: sybershock.com
Message-ID: <ug5mkt$2r6h7$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
<ug4igb$2n4nn$1@novabbs.org>
<ug51mg$2on6q$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Oct 2023 08:33:33 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="2988583"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Wed, 11 Oct 2023 08:33 UTC

One more thing might be worth checking.

One remote server would not connect via SSL with the rslight 0.7.2
version. I tested about a dozen cron hammers. It returned the same
error as the newer rslight version with nothing in log files to
indicate the exact cause of the connection failure.

Then I disabled SSL and rlight cron connected to the same host via port
119 and downloaded messages to local.

The same hack did not work for the more recent rslight version.

Maybe fsockopen wants a prefix of 'ssl://' or some equivalent? IDK.

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: P.S.: Error: fresh rocksolid install connection_failed

<2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=643&group=rocksolid.nodes.help#643

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: P.S.: Error: fresh rocksolid install connection_fail
ed
Date: Wed, 11 Oct 2023 15:00:01 +0000
Organization: RetroBBS
Message-ID: <2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com>
References: <ug21r2$2d6tt$1@novabbs.org> <ug2hhr$2ek8r$1@novabbs.org> <20231010015404.7d3c33d9131419b3d4539904@novabbs.com> <ug35i2$2gern$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1192038"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$MrH.WXAInyNtwt7Tbk23beIFosbgiOAceGJb1a.LITIq3PVv/AOyu
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Wed, 11 Oct 2023 15:00 UTC

Syber Shock wrote:

> On Tue, 10 Oct 2023 01:54:04 -0700
> Retro Guy <retroguy@novabbs.com> wrote:

>> On Mon, 9 Oct 2023 22:48:26 -0500
>> Syber Shock <admin@sybershock.com> wrote:
>>
>> snip

> I might not be able to check until tomorrow. No rush.

>> Obviously I'm running the latest and all is fine here, so let's see
>> what the difference could be. This is my current php ver:
>> php -v
>> PHP 8.2.5 (cli) (built: Apr 27 2023 08:13:47) (NTS)
>> Zend Engine v4.2.5, Copyright (c) Zend Technologies
>> with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies
>>

> ---- php version ----

> $ php --version
> PHP 8.2.11 (cli) (built: Oct 6 2023 10:11:52) (NTS)
> Copyright (c) The PHP Group
> Zend Engine v4.2.11, Copyright (c) Zend Technologies
> with Zend OPcache v8.2.11, Copyright (c), by Zend Technologies

I'm only seeing php 7.4.33 on bullseye. Are you installing from backports,
or another method to get 8.2.11?

I have bullseye set up now, I'll try to install rslight later today (this is
one of my slow weeks (medical stuff).

--
Retro Guy

Re: P.S.: Error: fresh rocksolid install connection_failed

<e8d1d26b6a8b8ab720fb557dc8dafa21$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=644&group=rocksolid.nodes.help#644

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: P.S.: Error: fresh rocksolid install connection_failed
Date: Wed, 11 Oct 2023 15:37:50 -0500
Organization: sybershock.com
Message-ID: <e8d1d26b6a8b8ab720fb557dc8dafa21$1@sybershock.com>
References: <ug21r2$2d6tt$1@novabbs.org>
<ug2hhr$2ek8r$1@novabbs.org>
<20231010015404.7d3c33d9131419b3d4539904@novabbs.com>
<ug35i2$2gern$1@novabbs.org>
<2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: novabbs.org;
logging-data="3139069"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Wed, 11 Oct 2023 20:37 UTC

On Wed, 11 Oct 2023 15:00:01 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> I'm only seeing php 7.4.33 on bullseye. Are you installing from
> backports, or another method to get 8.2.11?

My server pulls the packages from https://sury.org/. This is the
official site of the Debian developer who maintains apache and php
packages. I also pull nginx packages from nginx.org official.

https://packages.sury.org/apache2 bullseye InRelease
https://packages.sury.org/php bullseye InRelease
https://nginx.org/packages/mainline/debian bullseye InRelease

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

*update* : SSL borkage? : Error: fresh rocksolid install connection_failed

<ug7tef$31sqm$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=645&group=rocksolid.nodes.help#645

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: *update* : SSL borkage? : Error: fresh rocksolid install
connection_failed
Date: Wed, 11 Oct 2023 23:42:06 -0500
Organization: sybershock.com
Message-ID: <ug7tef$31sqm$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<ug2hhr$2ek8r$1@novabbs.org>
<20231010015404.7d3c33d9131419b3d4539904@novabbs.com>
<ug35i2$2gern$1@novabbs.org>
<2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Oct 2023 04:41:51 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="3208022"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Thu, 12 Oct 2023 04:42 UTC

On Wed, 11 Oct 2023 15:00:01 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Syber Shock wrote:
>
> > On Tue, 10 Oct 2023 01:54:04 -0700
> > Retro Guy <retroguy@novabbs.com> wrote:
>
> >> On Mon, 9 Oct 2023 22:48:26 -0500
> >> Syber Shock <admin@sybershock.com> wrote:
> >>
> >> snip
>
> > I might not be able to check until tomorrow. No rush.
>
> >> Obviously I'm running the latest and all is fine here, so let's see
> >> what the difference could be. This is my current php ver:
> >> php -v
> >> PHP 8.2.5 (cli) (built: Apr 27 2023 08:13:47) (NTS)
> >> Zend Engine v4.2.5, Copyright (c) Zend Technologies
> >> with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies
> >>
>
> > ---- php version ----
>
> > $ php --version
> > PHP 8.2.11 (cli) (built: Oct 6 2023 10:11:52) (NTS)
> > Copyright (c) The PHP Group
> > Zend Engine v4.2.11, Copyright (c) Zend Technologies
> > with Zend OPcache v8.2.11, Copyright (c), by Zend Technologies
>
> I'm only seeing php 7.4.33 on bullseye. Are you installing from
> backports, or another method to get 8.2.11?
>
> I have bullseye set up now, I'll try to install rslight later today
> (this is one of my slow weeks (medical stuff).

Take it yeezy. This can wait. I'll just keep posting in this thread
until I or anyone figures out what is broken.

I think I almost found the borkage problem. It has something to do with
SSL.

The latest version will not connect to any host over SSL.

I got it to connect and sync to two remote hosts over port 119 without
SSL. It worked without a hitch when I set the remote server like this:

'remote_server' => 'news.i2pn2.org',
'remote_port' => '119',
'remote_ssl' => '',

Something is causing SSL connections to hang up and time out, thus
there are no php or server errors being logged. It is returning a
unexplained connection failure.

So I think the main thing needing troubleshot is the SSL. I still can't
tell if it is on my end. I do know that some NNTP hosts have SSL
configurations that are outdated and break all the time. Some have
outdated certificates. I don't know what the SSL library in PHP does
over these connections.

There was another error with fputs which I will post in a separate
message.

I will follow up if I figure anything out.

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: *update* : stream error? : Error: fresh rocksolid install connection_failed

<ug7uc1$31sqm$2@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=646&group=rocksolid.nodes.help#646

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: *update* : stream error? : Error: fresh rocksolid install
connection_failed
Date: Wed, 11 Oct 2023 23:57:56 -0500
Organization: sybershock.com
Message-ID: <ug7uc1$31sqm$2@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<ug2hhr$2ek8r$1@novabbs.org>
<20231010015404.7d3c33d9131419b3d4539904@novabbs.com>
<ug35i2$2gern$1@novabbs.org>
<2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com>
<ug7tef$31sqm$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Oct 2023 04:57:38 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="3208022"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Thu, 12 Oct 2023 04:57 UTC

Same setup and specs as first reported error in this thread:

OS: Debian GNU/Linux 11 (bullseye) x86_64

# php -v
PHP 8.2.11 (cli) (built: Oct 6 2023 10:11:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.11, Copyright (c) Zend Technologies
with Zend OPcache v8.2.11, Copyright (c), by Zend Technologies

apt sources:

https://packages.sury.org/apache2 bullseye InRelease
https://packages.sury.org/php bullseye InRelease
https://nginx.org/packages/mainline/debian bullseye InRelease

First two cron runs completed without errors.

### Third run ERROR:

Updated user count
Sending articles
Send DoneRefreshed spoolnews
Expired articles
Sending articles
Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
resource is not a valid stream resource in
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php:237
Stack trace: #0
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php(237):
fputs() #1
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php(304):
thread_overview_read() #2
/etc/rslight-temporary_testing_7/config/scripts/spoolnews.php(133):
thread_load_newsserver() #3 {main} thrown in
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php
on line 237 Refreshed spoolnews Expired articles RSS Feeds updated Log
files rotated Keys rotated

### Fourth run no errors:

Updated user count
Sending articles
Send DoneRefreshed spoolnews
Expired articles
Sending articles
Send DoneRefreshed spoolnews
Expired articles
RSS Feeds updated
Log files rotated
Keys rotated

### Fifth run ERROR:

Updated user count
Sending articles
Send DoneRefreshed spoolnews
Expired articles
Sending articles
Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
resource is not a valid stream resource in
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php:237
Stack trace: #0
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php(237):
fputs() #1
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php(304):
thread_overview_read() #2
/etc/rslight-temporary_testing_7/config/scripts/spoolnews.php(133):
thread_load_newsserver() #3 {main} thrown in
/var/www/html/rslight-temporary_testing_7/rocksolid/lib/thread.inc.php
on line 237 Refreshed spoolnews Expired articles RSS Feeds updated Log
files rotated Keys rotated

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: Error: fresh rocksolid install connection_failed

<20231012085713.344726eff86090a46448a4fa@novabbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=647&group=rocksolid.nodes.help#647

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Thu, 12 Oct 2023 08:57:13 -0700
Organization: novaBBS
Message-ID: <20231012085713.344726eff86090a46448a4fa@novabbs.com>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
<ug4igb$2n4nn$1@novabbs.org>
<ug51mg$2on6q$1@novabbs.org>
<ug5mkt$2r6h7$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1324860"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Thu, 12 Oct 2023 15:57 UTC

On Wed, 11 Oct 2023 03:33:50 -0500
Syber Shock <admin@sybershock.com> wrote:

> One more thing might be worth checking.
>
> One remote server would not connect via SSL with the rslight 0.7.2
> version. I tested about a dozen cron hammers. It returned the same
> error as the newer rslight version with nothing in log files to
> indicate the exact cause of the connection failure.
>
> Then I disabled SSL and rlight cron connected to the same host via port
> 119 and downloaded messages to local.
>
> The same hack did not work for the more recent rslight version.
>
> Maybe fsockopen wants a prefix of 'ssl://' or some equivalent? IDK.

Just for logging purposes, I modified newsportal.php to show me what port
it was trying to use, and if it successfully opened a stream. You can try
adding the 'echo' line in 'nntp2_open' function in newsportal.php here:
} else {
if (isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !== '') {
$ns = fsocks4asockopen($CONFIG['socks_host'], $CONFIG['socks_port'], $nserver, $nport);
} else {
$ns = @fsockopen('tcp://' . $nserver . ":" . $nport);
}
}
// $ns=@fsockopen($nserver,$nport);
echo "PORT: ".$nport." ns: ".$ns; // <- ADD THIS
$weg = line_read($ns); // kill the first line
if (substr($weg, 0, 2) != "20") {

What I get when I run this (run it manually as www user from $webdir/spoolnews dir:

Starting Spoolnews...
resource(28) of type (stream)
string(0) ""
int(0)
PORT: 563 ns: Resource id #28 <- HERE
Retrieving articles for: i2pn.spam...
Spoolnews Done

This shows it's using port 563, and that it has successfully opened a stream. This might
give us maybe a little more info if you wish to try it.

--
Retro Guy

Re: *update* : SSL borkage? : Error: fresh rocksolid install connection_failed

<3ee5836329a2d05fd8ef35d42e189b80@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=648&group=rocksolid.nodes.help#648

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: *update* : SSL borkage? : Error: fresh rocksolid
install connection_failed
Date: Thu, 12 Oct 2023 16:08:21 +0000
Organization: RetroBBS
Message-ID: <3ee5836329a2d05fd8ef35d42e189b80@rocksolidbbs.com>
References: <ug21r2$2d6tt$1@novabbs.org> <ug2hhr$2ek8r$1@novabbs.org> <20231010015404.7d3c33d9131419b3d4539904@novabbs.com> <ug35i2$2gern$1@novabbs.org> <2694e646376a00036818c7c0c3b4ccca@rocksolidbbs.com> <ug7tef$31sqm$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1325751"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
X-Rslight-Site: $2y$10$XSqPFiQVCt9A5GdTdGMjne4G.Hy.TrFoMdR/ayoR5mhpoUZs28WXe
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Thu, 12 Oct 2023 16:08 UTC

Syber Shock wrote:

> On Wed, 11 Oct 2023 15:00:01 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> Syber Shock wrote:
>>
>> > On Tue, 10 Oct 2023 01:54:04 -0700
>> > Retro Guy <retroguy@novabbs.com> wrote:
>>
>> >> On Mon, 9 Oct 2023 22:48:26 -0500
>> >> Syber Shock <admin@sybershock.com> wrote:
>> >>
>> >> snip
>>
> I think I almost found the borkage problem. It has something to do with
> SSL.

> The latest version will not connect to any host over SSL.

> I got it to connect and sync to two remote hosts over port 119 without
> SSL. It worked without a hitch when I set the remote server like this:

> 'remote_server' => 'news.i2pn2.org',
> 'remote_port' => '119',
> 'remote_ssl' => '',

> Something is causing SSL connections to hang up and time out, thus
> there are no php or server errors being logged. It is returning a
> unexplained connection failure.

> So I think the main thing needing troubleshot is the SSL. I still can't
> tell if it is on my end. I do know that some NNTP hosts have SSL
> configurations that are outdated and break all the time. Some have
> outdated certificates. I don't know what the SSL library in PHP does
> over these connections.

On my servers I use letsencrypt. Here is inn on news.novabbs.org:563
0 s:CN = www.novabbs.org
i:C = US, O = Let's Encrypt, CN = R3
a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
v:NotBefore: Aug 17 02:55:14 2023 GMT; NotAfter: Nov 15 02:55:13 2023 GMT

news.i2pn2.org:563
0 s:CN = i2pn2.org
i:C = US, O = Let's Encrypt, CN = R3
a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
v:NotBefore: Aug 16 22:42:53 2023 GMT; NotAfter: Nov 14 22:42:52 2023 GMT

openssl s_client seems to work ok on these.

--
Retro Guy

Re: Error: fresh rocksolid install connection_failed

<ug9ckb$3943m$1@novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=649&group=rocksolid.nodes.help#649

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Thu, 12 Oct 2023 13:07:21 -0500
Organization: sybershock.com
Message-ID: <ug9ckb$3943m$1@novabbs.org>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
<ug4igb$2n4nn$1@novabbs.org>
<ug51mg$2on6q$1@novabbs.org>
<ug5mkt$2r6h7$1@novabbs.org>
<20231012085713.344726eff86090a46448a4fa@novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Oct 2023 18:07:07 -0000 (UTC)
Injection-Info: novabbs.org;
logging-data="3444854"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Thu, 12 Oct 2023 18:07 UTC

On Thu, 12 Oct 2023 08:57:13 -0700
Retro Guy <retroguy@novabbs.com> wrote:

> On Wed, 11 Oct 2023 03:33:50 -0500
> Syber Shock <admin@sybershock.com> wrote:
>
> > One more thing might be worth checking.
> >
> > One remote server would not connect via SSL with the rslight 0.7.2
> > version. I tested about a dozen cron hammers. It returned the same
> > error as the newer rslight version with nothing in log files to
> > indicate the exact cause of the connection failure.
> >
> > Then I disabled SSL and rlight cron connected to the same host via
> > port 119 and downloaded messages to local.
> >
> > The same hack did not work for the more recent rslight version.
> >
> > Maybe fsockopen wants a prefix of 'ssl://' or some equivalent? IDK.
> >
>
> Just for logging purposes, I modified newsportal.php to show me what
> port it was trying to use, and if it successfully opened a stream.
> You can try adding the 'echo' line in 'nntp2_open' function in
> newsportal.php here: } else {
> if (isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !==
> '') { $ns = fsocks4asockopen($CONFIG['socks_host'],
> $CONFIG['socks_port'], $nserver, $nport); } else {
> $ns = @fsockopen('tcp://' . $nserver . ":" . $nport);
> }
> }
> // $ns=@fsockopen($nserver,$nport);
> echo "PORT: ".$nport." ns: ".$ns; // <- ADD THIS
> $weg = line_read($ns); // kill the first line
> if (substr($weg, 0, 2) != "20") {
>
> What I get when I run this (run it manually as www user from
> $webdir/spoolnews dir:
>
> Starting Spoolnews...
> resource(28) of type (stream)
> string(0) ""
> int(0)
> PORT: 563 ns: Resource id #28 <- HERE
> Retrieving articles for: i2pn.spam...
> Spoolnews Done
>
> This shows it's using port 563, and that it has successfully opened a
> stream. This might give us maybe a little more info if you wish to
> try it.

Hack added. First run result give port 1. Is it pulling the remote_ssl
var instead of the port var?

Updated user count
Sending articles
PORT: 1 ns: <p><font color="red">Error:</font></p><p>The connection to
the Message Server failed</p>Refreshed spoolnews Expired articles
Sending articles
PORT: 1 ns: <p><font color="red">Error:</font></p><p>The connection to
the Message Server failed</p>Refreshed spoolnews Expired articles
RSS Feeds updated
Log files rotated
Keys rotated

Second run I changed the remote_ssl var from 1 to 666:

'remote_server' => 'news.novabbs.org',
'remote_port' => '563',
'remote_ssl' => '666', // eebil nummer

Result is that cronjob is trying to connect to the wrong port:

Updated user count
Sending articles
PORT: 666 ns: <p><font color="red">Error:</font></p><p>The connection
to the Message Server failed</p>Refreshed spoolnews
Expired articles
Sending articles
PORT: 666 ns: <p><font color="red">Error:</font></p><p>The connection
to the Message Server failed</p>Refreshed spoolnews
Expired articles
RSS Feeds updated
Log files rotated
Keys rotated

So the cronjob is pulling the port value in the array from remote_ssl
instead of remote_port.

'remote_ssl' => '563',

With this change the cronjob connected to remote over ssl and pulled
messages. So with this change the connection succeeded. Having the
boolean of 1 there was causing the cronjob to connect to port 1 on
remote.

I also noticed that whatever values I place in overrides.inc.php.dist
have no effect on the number of messages pulled during cronjob.

// expire.php
'max_articles_per_group' => 10,

// spoolnews.php
'maxarticles_per_run' => 1,
'maxfirstrequest' => 1,

With this setting the job still pulls almost 2000 messages on first go.

--
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: Error: fresh rocksolid install connection_failed

<20231012113405.b81404c94bfeb729c45d331e@novabbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=650&group=rocksolid.nodes.help#650

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Error: fresh rocksolid install connection_failed
Date: Thu, 12 Oct 2023 11:34:05 -0700
Organization: novaBBS
Message-ID: <20231012113405.b81404c94bfeb729c45d331e@novabbs.com>
References: <ug21r2$2d6tt$1@novabbs.org>
<20231010023844.6494849047dac86b6a2ba839@novabbs.com>
<ug4igb$2n4nn$1@novabbs.org>
<ug51mg$2on6q$1@novabbs.org>
<ug5mkt$2r6h7$1@novabbs.org>
<20231012085713.344726eff86090a46448a4fa@novabbs.com>
<ug9ckb$3943m$1@novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="1339736"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Newsreader: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Retro Guy - Thu, 12 Oct 2023 18:34 UTC

On Thu, 12 Oct 2023 13:07:21 -0500
Syber Shock <admin@sybershock.com> wrote:

> On Thu, 12 Oct 2023 08:57:13 -0700
> Retro Guy <retroguy@novabbs.com> wrote:
>
> > On Wed, 11 Oct 2023 03:33:50 -0500
> > Syber Shock <admin@sybershock.com> wrote:
> >
snip...

> So the cronjob is pulling the port value in the array from remote_ssl
> instead of remote_port.
>
> 'remote_ssl' => '563',
>
> With this change the cronjob connected to remote over ssl and pulled
> messages. So with this change the connection succeeded. Having the
> boolean of 1 there was causing the cronjob to connect to port 1 on
> remote.

Yes, 'remote_ssl' should be the port number. I'll need to make that more
clear in setup or the config file.

> I also noticed that whatever values I place in overrides.inc.php.dist
> have no effect on the number of messages pulled during cronjob.
>
> // expire.php
> 'max_articles_per_group' => 10,
>
> // spoolnews.php
> 'maxarticles_per_run' => 1,
> 'maxfirstrequest' => 1,
>
> With this setting the job still pulls almost 2000 messages on first go.

Strange. Always a new issue a :(

Should be in: config.inc.php (section web dir)
$OVERRIDES = include ($config_dir . '/overrides.inc.php');

Spoolnews should contain:
// Overrides
if ($OVERRIDES['maxarticles_per_run'] > 0) {
$maxarticles_per_run = $OVERRIDES['maxarticles_per_run'];
} if ($OVERRIDES['maxfirstrequest'] > 0) {
$maxfirstrequest = $OVERRIDES['maxfirstrequest'];
}

--
Retro Guy

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor