Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

This screen intentionally left blank.


computers / Rocksolid Nodes Help / help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

SubjectAuthor
* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
`* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
 `* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
  +* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
  |`* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
  | +* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
  | |`* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
  | | `- help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
  | `* help request: PHP Fatal error: Uncaught TypeError: fgets(): ArgumentRetro Guy
  |  `* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
  |   `- help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
  `* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
   `* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
    `* help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy
     `* help request: PHP Fatal error: Uncaught TypeError: fgets():Syber Shock
      `- help request: PHP Fatal error: Uncaught TypeError: fgets():Retro Guy

1
help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216121451.74280d0c@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!news.samoylyk.net!paganini.bofh.team!tor-network!not-for-mail
From: <3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 12:14:51 -0600
Organization: To protect and to server
Message-ID: <20231216121451.74280d0c@dev>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="231457"; posting-host="Bu5j7PB3/0aAe4dQwP9naw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:IT3bvht3S6OFwBOTCgukQ0YCZ62BFEROv01oe4V/s/g=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmExMjo1OTQwOjkxMDE6OjI= --
 by: Syber Shock - Sat, 16 Dec 2023 18:14 UTC

I continued from the last test and troubleshooting today. I am using
the same test install at:

https://rocksolid.sybershock.com/

Whereas last time it seemed to be working right, today some errors
cropped up. I am running php8.2 explicitly when invoking cron job. I
also tried running directly without the bash wrapper on the command:

php8.2 /etc/rslight/scripts/cron.php

I have changed nothing on the install since last testing it. I made
sure nntp.php and nntp-ssl.php were running.

I tested the nntp(s) server ports with telnet. When I send the 'list'
command it replies 215 with an empty group list.

I checked rocksolid/groups.txt to ensure the group names weren't
mangled. When I run the cron I get this:

Updated user count
Sending articles
Send Done
Refreshed spoolnews
Expired articles
Sending articles
Send DonePHP Fatal error: Uncaught TypeError: fgets(): Argument #1
($stream) must be of type resource, bool given in
..../public_html/rocksolid/newsportal.php:355 Stack trace: #0
..../public_html/rocksolid/newsportal.php(355): fgets() #1
/etc/rslight/scripts/spoolnews.php(352): testGroup() #2
/etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
thrown in .../public_html/rocksolid/newsportal.php on line 355

Refreshed spoolnews
Expired articles
Sending articles
Send DonePHP Fatal error: Uncaught TypeError: fgets(): Argument #1
($stream) must be of type resource, bool given in
..../public_html/rocksolid/newsportal.php:355 Stack trace: #0
..../public_html/rocksolid/newsportal.php(355): fgets() #1
/etc/rslight/scripts/spoolnews.php(352): testGroup() #2
/etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
thrown in .../public_html/rocksolid/newsportal.php on line 355

Refreshed spoolnews
Expired articles
RSS Feeds updated
Log files rotated
Keys rotated
Removed old files

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulkq8r$73g$2@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulkq8r$73g$2@i2pn2.org>
References: <20231216121451.74280d0c@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 18:28 UTC

On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:

> I continued from the last test and troubleshooting today. I am using the
> same test install at:
>
> https://rocksolid.sybershock.com/
>
> Whereas last time it seemed to be working right, today some errors
> cropped up. I am running php8.2 explicitly when invoking cron job. I
> also tried running directly without the bash wrapper on the command:
>
> php8.2 /etc/rslight/scripts/cron.php
>
> I have changed nothing on the install since last testing it. I made sure
> nntp.php and nntp-ssl.php were running.
>
> I tested the nntp(s) server ports with telnet. When I send the 'list'
> command it replies 215 with an empty group list.

The error below is related to the groups lists.

> I checked rocksolid/groups.txt to ensure the group names weren't
> mangled. When I run the cron I get this:
>
> Updated user count Sending articles Send Done Refreshed spoolnews
> Expired articles Sending articles Send DonePHP Fatal error: Uncaught
> TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool
> given in .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> .../public_html/rocksolid/newsportal.php(355): fgets() #1
> /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
> thrown in .../public_html/rocksolid/newsportal.php on line 355

($stream) is the groups.txt file pointer, which should have been opened
(by newsportal). $config_dir/<section>/groups.txt
It's saying it's 'bool' because it's probably 'false', meaning the file
could not be opened for some reason.

Could you confirm that your www-data user can read that file?

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216130246.432ee1d2@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:02:46 -0600
Organization: To protect and to server
Message-ID: <20231216130246.432ee1d2@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="236592"; posting-host="Dta083cideOtEI+3FPMuAA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:yWyHZIB/hDLkoAXKWigKFUJOAN9B/YJuZyuLRQDGVz0=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwMjplYzA6MjA5OjEwOjo0 --
 by: Syber Shock - Sat, 16 Dec 2023 19:02 UTC

On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>
> > I continued from the last test and troubleshooting today. I am
> > using the same test install at:
> >
> > https://rocksolid.sybershock.com/
> >
> > Whereas last time it seemed to be working right, today some errors
> > cropped up. I am running php8.2 explicitly when invoking cron job. I
> > also tried running directly without the bash wrapper on the command:
> >
> > php8.2 /etc/rslight/scripts/cron.php
> >
> > I have changed nothing on the install since last testing it. I made
> > sure nntp.php and nntp-ssl.php were running.
> >
> > I tested the nntp(s) server ports with telnet. When I send the
> > 'list' command it replies 215 with an empty group list.
>
> The error below is related to the groups lists.
>
> > I checked rocksolid/groups.txt to ensure the group names weren't
> > mangled. When I run the cron I get this:
> >
> > Updated user count Sending articles Send Done Refreshed spoolnews
> > Expired articles Sending articles Send DonePHP Fatal error:
> > Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type
> > resource, bool given in
> > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
> > thrown in .../public_html/rocksolid/newsportal.php on line 355
>
> ($stream) is the groups.txt file pointer, which should have been
> opened (by newsportal). $config_dir/<section>/groups.txt
> It's saying it's 'bool' because it's probably 'false', meaning the
> file could not be opened for some reason.
>
> Could you confirm that your www-data user can read that file?

Haha always the first linuxario check: look at your file permissions!

Permissions look ok. To make sure I just did chown -R username:username
on /etc/rslight and /var/spool/rslight and ran the cron again. It still
gives the same error when I run the cron.

I thought that permissions might be the problem so I ran another test
install at a different domain just now. I wanted to be very sure the
perms were all readable by that user so this time I ran the installer
as web user rather than as sudo. Then when I fired the cron as sudo,
everything worked out of the box.

The just now working test install of rslight is at the URL
https://test.sybershock.com using /opt subdirs as the install target and
guess what? That one works. I have no clue why the other one quit
working after I thought I had it fixed. Gremlins? Typo somewhere?
Something in my server config blocking just that one groups.txt file?
IDK. Gagh.

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216131212.031aff7e@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!eternal-september.org!paganini.bofh.team!tor-network!not-for-mail
From: <3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:12:12 -0600
Organization: To protect and to server
Message-ID: <20231216131212.031aff7e@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="236592"; posting-host="Dta083cideOtEI+3FPMuAA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:SYMlt4t+okBynpz6ExqSV6puiVcMV8xsThJV6osoM6Q=
X-TOR-Router: sha256:MmEwMjplYzA6MjA5OjEwOjo0 --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sat, 16 Dec 2023 19:12 UTC

On Sat, 16 Dec 2023 13:02:46 -0600
Syber Shock <3883@sugar.bug> wrote:

> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> Retro Guy <retroguy@i2pn2.org> wrote:
>
> > On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
> >
> > > I continued from the last test and troubleshooting today. I am
> > > using the same test install at:
> > >
> > > https://rocksolid.sybershock.com/
> > >
> > > Whereas last time it seemed to be working right, today some errors
> > > cropped up. I am running php8.2 explicitly when invoking cron
> > > job. I also tried running directly without the bash wrapper on
> > > the command:
> > >
> > > php8.2 /etc/rslight/scripts/cron.php
> > >
> > > I have changed nothing on the install since last testing it. I
> > > made sure nntp.php and nntp-ssl.php were running.
> > >
> > > I tested the nntp(s) server ports with telnet. When I send the
> > > 'list' command it replies 215 with an empty group list.
> >
> > The error below is related to the groups lists.
> >
> > > I checked rocksolid/groups.txt to ensure the group names weren't
> > > mangled. When I run the cron I get this:
> > >
> > > Updated user count Sending articles Send Done Refreshed spoolnews
> > > Expired articles Sending articles Send DonePHP Fatal error:
> > > Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type
> > > resource, bool given in
> > > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> > > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> > > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> > > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
> > > thrown in .../public_html/rocksolid/newsportal.php on line 355
> >
> > ($stream) is the groups.txt file pointer, which should have been
> > opened (by newsportal). $config_dir/<section>/groups.txt
> > It's saying it's 'bool' because it's probably 'false', meaning the
> > file could not be opened for some reason.
> >
> > Could you confirm that your www-data user can read that file?
>
> Haha always the first linuxario check: look at your file permissions!
>
> Permissions look ok. To make sure I just did chown -R
> username:username on /etc/rslight and /var/spool/rslight and ran the
> cron again. It still gives the same error when I run the cron.
>
> I thought that permissions might be the problem so I ran another test
> install at a different domain just now. I wanted to be very sure the
> perms were all readable by that user so this time I ran the installer
> as web user rather than as sudo. Then when I fired the cron as sudo,
> everything worked out of the box.
>
> The just now working test install of rslight is at the URL
> https://test.sybershock.com using /opt subdirs as the install target
> and guess what? That one works. I have no clue why the other one quit
> working after I thought I had it fixed. Gremlins? Typo somewhere?
> Something in my server config blocking just that one groups.txt file?
> IDK. Gagh.

Knock on wood, I should, I should.

On this install all files are owned explicitly by web user.

After a couple successful cron runs on the https://test.sybershock.com
fresh install, this fputs() error popped up:

Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
resource is not a valid stream resource in
..../public_html/rocksolid/lib/thread.inc.php:237
Stack trace: #0
..../public_html/rocksolid/lib/thread.inc.php(237):
fputs() #1
..../public_html/rocksolid/lib/thread.inc.php(304):
thread_overview_read() #2
/opt/rocksolid/config/scripts/spoolnews.php(146):
thread_load_newsserver() #3 {main} thrown in
..../public_html/rocksolid/lib/thread.inc.php
on line 237

Refreshed spoolnews
Expired articles
RSS Feeds updated
Log files rotated
Keys rotated
Removed old files

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulksq5$73g$3@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 19:12:05 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulksq5$73g$3@i2pn2.org>
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 19:12:05 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 19:12 UTC

On Sat, 16 Dec 2023 13:02:46 -0600, Syber Shock wrote:

> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> Retro Guy <retroguy@i2pn2.org> wrote:
>
>> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>>
>> > I continued from the last test and troubleshooting today. I am using
>> > the same test install at:
>> >
>> > https://rocksolid.sybershock.com/
>> >
>> > Whereas last time it seemed to be working right, today some errors
>> > cropped up. I am running php8.2 explicitly when invoking cron job. I
>> > also tried running directly without the bash wrapper on the command:
>> >
>> > php8.2 /etc/rslight/scripts/cron.php
>> >
>> > I have changed nothing on the install since last testing it. I made
>> > sure nntp.php and nntp-ssl.php were running.
>> >
>> > I tested the nntp(s) server ports with telnet. When I send the 'list'
>> > command it replies 215 with an empty group list.
>>
>> The error below is related to the groups lists.
>>
>> > I checked rocksolid/groups.txt to ensure the group names weren't
>> > mangled. When I run the cron I get this:
>> >
>> > Updated user count Sending articles Send Done Refreshed spoolnews
>> > Expired articles Sending articles Send DonePHP Fatal error: Uncaught
>> > TypeError: fgets(): Argument #1 ($stream) must be of type resource,
>> > bool given in .../public_html/rocksolid/newsportal.php:355 Stack
>> > trace: #0 .../public_html/rocksolid/newsportal.php(355): fgets() #1
>> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
>> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
>> > thrown in .../public_html/rocksolid/newsportal.php on line 355
>>
>> ($stream) is the groups.txt file pointer, which should have been opened
>> (by newsportal). $config_dir/<section>/groups.txt It's saying it's
>> 'bool' because it's probably 'false', meaning the file could not be
>> opened for some reason.
>>
>> Could you confirm that your www-data user can read that file?
>
> Haha always the first linuxario check: look at your file permissions!
>
> Permissions look ok. To make sure I just did chown -R username:username
> on /etc/rslight and /var/spool/rslight and ran the cron again. It still
> gives the same error when I run the cron.
>
> I thought that permissions might be the problem so I ran another test
> install at a different domain just now. I wanted to be very sure the
> perms were all readable by that user so this time I ran the installer as
> web user rather than as sudo. Then when I fired the cron as sudo,
> everything worked out of the box.
>
> The just now working test install of rslight is at the URL
> https://test.sybershock.com using /opt subdirs as the install target and
> guess what? That one works. I have no clue why the other one quit
> working after I thought I had it fixed. Gremlins? Typo somewhere?
> Something in my server config blocking just that one groups.txt file?
> IDK. Gagh.

If you 'sudo -u www-data bash' then try to read the file (as www-user),
can you read it?

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulkst4$73g$4@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 19:13:40 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulkst4$73g$4@i2pn2.org>
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev> <20231216131212.031aff7e@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 19:13:40 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 19:13 UTC

On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:

> On Sat, 16 Dec 2023 13:02:46 -0600 Syber Shock <3883@sugar.bug> wrote:
>
>> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
>> Retro Guy <retroguy@i2pn2.org> wrote:
>>
>> > On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>> >
>> > > I continued from the last test and troubleshooting today. I am
>> > > using the same test install at:
>> > >
>> > > https://rocksolid.sybershock.com/
>> > >
>> > > Whereas last time it seemed to be working right, today some errors
>> > > cropped up. I am running php8.2 explicitly when invoking cron job.
>> > > I also tried running directly without the bash wrapper on the
>> > > command:
>> > >
>> > > php8.2 /etc/rslight/scripts/cron.php
>> > >
>> > > I have changed nothing on the install since last testing it. I made
>> > > sure nntp.php and nntp-ssl.php were running.
>> > >
>> > > I tested the nntp(s) server ports with telnet. When I send the
>> > > 'list' command it replies 215 with an empty group list.
>> >
>> > The error below is related to the groups lists.
>> >
>> > > I checked rocksolid/groups.txt to ensure the group names weren't
>> > > mangled. When I run the cron I get this:
>> > >
>> > > Updated user count Sending articles Send Done Refreshed spoolnews
>> > > Expired articles Sending articles Send DonePHP Fatal error:
>> > > Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type
>> > > resource, bool given in
>> > > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
>> > > .../public_html/rocksolid/newsportal.php(355): fgets() #1
>> > > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
>> > > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
>> > > thrown in .../public_html/rocksolid/newsportal.php on line 355
>> >
>> > ($stream) is the groups.txt file pointer, which should have been
>> > opened (by newsportal). $config_dir/<section>/groups.txt It's saying
>> > it's 'bool' because it's probably 'false', meaning the file could not
>> > be opened for some reason.
>> >
>> > Could you confirm that your www-data user can read that file?
>>
>> Haha always the first linuxario check: look at your file permissions!
>>
>> Permissions look ok. To make sure I just did chown -R username:username
>> on /etc/rslight and /var/spool/rslight and ran the cron again. It still
>> gives the same error when I run the cron.
>>
>> I thought that permissions might be the problem so I ran another test
>> install at a different domain just now. I wanted to be very sure the
>> perms were all readable by that user so this time I ran the installer
>> as web user rather than as sudo. Then when I fired the cron as sudo,
>> everything worked out of the box.
>>
>> The just now working test install of rslight is at the URL
>> https://test.sybershock.com" rel="nofollow" target="_blank">https://test.sybershock.com using /opt subdirs as the install target
>> and guess what? That one works. I have no clue why the other one quit
>> working after I thought I had it fixed. Gremlins? Typo somewhere?
>> Something in my server config blocking just that one groups.txt file?
>> IDK. Gagh.
>
> Knock on wood, I should, I should.
>
> On this install all files are owned explicitly by web user.
>
> After a couple successful cron runs on the https://test.sybershock.com
> fresh install, this fputs() error popped up:
>
> Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
> resource is not a valid stream resource in
> .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
> .../public_html/rocksolid/lib/thread.inc.php(237):
> fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
> thread_overview_read() #2
> /opt/rocksolid/config/scripts/spoolnews.php(146):
> thread_load_newsserver() #3 {main} thrown in
> .../public_html/rocksolid/lib/thread.inc.php on line 237
>
> Refreshed spoolnews Expired articles RSS Feeds updated Log files rotated
> Keys rotated Removed old files

That one is a known bug. It "should" work fine on the next run. I thought
I fixed that, but maybe not :(

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216131931.6628f2c2@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: <3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:19:31 -0600
Organization: To protect and to server
Message-ID: <20231216131931.6628f2c2@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
<ulksq5$73g$3@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="236592"; posting-host="Dta083cideOtEI+3FPMuAA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:UUZdb1AFakjXHapkbDgyiVy2jv/Arh/LddI42/z2pGE=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwMjplYzA6MjA5OjEwOjo0 --
 by: Syber Shock - Sat, 16 Dec 2023 19:19 UTC

On Sat, 16 Dec 2023 19:12:05 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Sat, 16 Dec 2023 13:02:46 -0600, Syber Shock wrote:
>
> > On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> > Retro Guy <retroguy@i2pn2.org> wrote:
> >
> >> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
> >>
> >> > I continued from the last test and troubleshooting today. I am
> >> > using the same test install at:
> >> >
> >> > https://rocksolid.sybershock.com/
> >> >
> >> > Whereas last time it seemed to be working right, today some
> >> > errors cropped up. I am running php8.2 explicitly when invoking
> >> > cron job. I also tried running directly without the bash wrapper
> >> > on the command:
> >> >
> >> > php8.2 /etc/rslight/scripts/cron.php
> >> >
> >> > I have changed nothing on the install since last testing it. I
> >> > made sure nntp.php and nntp-ssl.php were running.
> >> >
> >> > I tested the nntp(s) server ports with telnet. When I send the
> >> > 'list' command it replies 215 with an empty group list.
> >>
> >> The error below is related to the groups lists.
> >>
> >> > I checked rocksolid/groups.txt to ensure the group names weren't
> >> > mangled. When I run the cron I get this:
> >> >
> >> > Updated user count Sending articles Send Done Refreshed spoolnews
> >> > Expired articles Sending articles Send DonePHP Fatal error:
> >> > Uncaught TypeError: fgets(): Argument #1 ($stream) must be of
> >> > type resource, bool given in
> >> > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> >> > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> >> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> >> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
> >> > {main} thrown in .../public_html/rocksolid/newsportal.php on
> >> > line 355
> >>
> >> ($stream) is the groups.txt file pointer, which should have been
> >> opened (by newsportal). $config_dir/<section>/groups.txt It's
> >> saying it's 'bool' because it's probably 'false', meaning the file
> >> could not be opened for some reason.
> >>
> >> Could you confirm that your www-data user can read that file?
> >
> > Haha always the first linuxario check: look at your file
> > permissions!
> >
> > Permissions look ok. To make sure I just did chown -R
> > username:username on /etc/rslight and /var/spool/rslight and ran
> > the cron again. It still gives the same error when I run the cron.
> >
> > I thought that permissions might be the problem so I ran another
> > test install at a different domain just now. I wanted to be very
> > sure the perms were all readable by that user so this time I ran
> > the installer as web user rather than as sudo. Then when I fired
> > the cron as sudo, everything worked out of the box.
> >
> > The just now working test install of rslight is at the URL
> > https://test.sybershock.com using /opt subdirs as the install
> > target and guess what? That one works. I have no clue why the other
> > one quit working after I thought I had it fixed. Gremlins? Typo
> > somewhere? Something in my server config blocking just that one
> > groups.txt file? IDK. Gagh.
>
> If you 'sudo -u www-data bash' then try to read the file (as
> www-user), can you read it?

Yes. I tested read from shell several times.

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216132242.0677a736@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:22:42 -0600
Organization: To protect and to server
Message-ID: <20231216132242.0677a736@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
<20231216131212.031aff7e@dev>
<ulkst4$73g$4@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="236592"; posting-host="Dta083cideOtEI+3FPMuAA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:7d28U/uX4xzthuKjv5aO8DWBzedUic2gmYbBaPtM43w=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwMjplYzA6MjA5OjEwOjo0 --
 by: Syber Shock - Sat, 16 Dec 2023 19:22 UTC

On Sat, 16 Dec 2023 19:13:40 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:
>
> > On Sat, 16 Dec 2023 13:02:46 -0600 Syber Shock <3883@sugar.bug>
> > wrote:
> >> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> >> Retro Guy <retroguy@i2pn2.org> wrote:
> >>
> >> > On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
> >> >
> >> > > I continued from the last test and troubleshooting today. I am
> >> > > using the same test install at:
> >> > >
> >> > > https://rocksolid.sybershock.com/
> >> > >
> >> > > Whereas last time it seemed to be working right, today some
> >> > > errors cropped up. I am running php8.2 explicitly when
> >> > > invoking cron job. I also tried running directly without the
> >> > > bash wrapper on the command:
> >> > >
> >> > > php8.2 /etc/rslight/scripts/cron.php
> >> > >
> >> > > I have changed nothing on the install since last testing it. I
> >> > > made sure nntp.php and nntp-ssl.php were running.
> >> > >
> >> > > I tested the nntp(s) server ports with telnet. When I send the
> >> > > 'list' command it replies 215 with an empty group list.
> >> >
> >> > The error below is related to the groups lists.
> >> >
> >> > > I checked rocksolid/groups.txt to ensure the group names
> >> > > weren't mangled. When I run the cron I get this:
> >> > >
> >> > > Updated user count Sending articles Send Done Refreshed
> >> > > spoolnews Expired articles Sending articles Send DonePHP Fatal
> >> > > error: Uncaught TypeError: fgets(): Argument #1 ($stream) must
> >> > > be of type resource, bool given in
> >> > > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> >> > > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> >> > > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> >> > > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
> >> > > {main} thrown in .../public_html/rocksolid/newsportal.php on
> >> > > line 355
> >> >
> >> > ($stream) is the groups.txt file pointer, which should have been
> >> > opened (by newsportal). $config_dir/<section>/groups.txt It's
> >> > saying it's 'bool' because it's probably 'false', meaning the
> >> > file could not be opened for some reason.
> >> >
> >> > Could you confirm that your www-data user can read that file?
> >>
> >> Haha always the first linuxario check: look at your file
> >> permissions!
> >>
> >> Permissions look ok. To make sure I just did chown -R
> >> username:username on /etc/rslight and /var/spool/rslight and ran
> >> the cron again. It still gives the same error when I run the cron.
> >>
> >> I thought that permissions might be the problem so I ran another
> >> test install at a different domain just now. I wanted to be very
> >> sure the perms were all readable by that user so this time I ran
> >> the installer as web user rather than as sudo. Then when I fired
> >> the cron as sudo, everything worked out of the box.
> >>
> >> The just now working test install of rslight is at the URL
> >> https://test.sybershock.com" rel="nofollow" target="_blank">https://test.sybershock.com using /opt subdirs as the install
> >> target and guess what? That one works. I have no clue why the
> >> other one quit working after I thought I had it fixed. Gremlins?
> >> Typo somewhere? Something in my server config blocking just that
> >> one groups.txt file? IDK. Gagh.
> >
> > Knock on wood, I should, I should.
> >
> > On this install all files are owned explicitly by web user.
> >
> > After a couple successful cron runs on the
> > https://test.sybershock.com fresh install, this fputs() error
> > popped up:
> >
> > Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
> > resource is not a valid stream resource in
> > .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
> > .../public_html/rocksolid/lib/thread.inc.php(237):
> > fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
> > thread_overview_read() #2
> > /opt/rocksolid/config/scripts/spoolnews.php(146):
> > thread_load_newsserver() #3 {main} thrown in
> > .../public_html/rocksolid/lib/thread.inc.php on line 237
> >
> > Refreshed spoolnews Expired articles RSS Feeds updated Log files
> > rotated Keys rotated Removed old files
>
> That one is a known bug. It "should" work fine on the next run. I
> thought I fixed that, but maybe not :(

A few more subsequent runs did not give the error. It now pulled the
most recent messages on https://test.sybershock.com. Then another
subsequent run gave the error again. Then another subsequent run worked
without the error. So I guess the bug is hit or miss then?

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulktep$73g$5@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 19:23:05 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulktep$73g$5@i2pn2.org>
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev> <ulksq5$73g$3@i2pn2.org>
<20231216131931.6628f2c2@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 19:23:05 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 19:23 UTC

On Sat, 16 Dec 2023 13:19:31 -0600, Syber Shock < wrote:

> On Sat, 16 Dec 2023 19:12:05 -0000 (UTC) Retro Guy <retroguy@i2pn2.org>
> wrote:
>
>> On Sat, 16 Dec 2023 13:02:46 -0600, Syber Shock wrote:
>>
>> > On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
>> > Retro Guy <retroguy@i2pn2.org> wrote:
>> >
>> >> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>> >>
>> >> > I continued from the last test and troubleshooting today. I am
>> >> > using the same test install at:
>> >> >
>> >> > https://rocksolid.sybershock.com/
>> >> >
>> >> > Whereas last time it seemed to be working right, today some errors
>> >> > cropped up. I am running php8.2 explicitly when invoking cron job.
>> >> > I also tried running directly without the bash wrapper on the
>> >> > command:
>> >> >
>> >> > php8.2 /etc/rslight/scripts/cron.php
>> >> >
>> >> > I have changed nothing on the install since last testing it. I
>> >> > made sure nntp.php and nntp-ssl.php were running.
>> >> >
>> >> > I tested the nntp(s) server ports with telnet. When I send the
>> >> > 'list' command it replies 215 with an empty group list.
>> >>
>> >> The error below is related to the groups lists.
>> >>
>> >> > I checked rocksolid/groups.txt to ensure the group names weren't
>> >> > mangled. When I run the cron I get this:
>> >> >
>> >> > Updated user count Sending articles Send Done Refreshed spoolnews
>> >> > Expired articles Sending articles Send DonePHP Fatal error:
>> >> > Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type
>> >> > resource, bool given in
>> >> > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
>> >> > .../public_html/rocksolid/newsportal.php(355): fgets() #1
>> >> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
>> >> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3 {main}
>> >> > thrown in .../public_html/rocksolid/newsportal.php on line 355
>> >>
>> >> ($stream) is the groups.txt file pointer, which should have been
>> >> opened (by newsportal). $config_dir/<section>/groups.txt It's saying
>> >> it's 'bool' because it's probably 'false', meaning the file could
>> >> not be opened for some reason.
>> >>
>> >> Could you confirm that your www-data user can read that file?
>> >
>> > Haha always the first linuxario check: look at your file permissions!
>> >
>> > Permissions look ok. To make sure I just did chown -R
>> > username:username on /etc/rslight and /var/spool/rslight and ran the
>> > cron again. It still gives the same error when I run the cron.
>> >
>> > I thought that permissions might be the problem so I ran another test
>> > install at a different domain just now. I wanted to be very sure the
>> > perms were all readable by that user so this time I ran the installer
>> > as web user rather than as sudo. Then when I fired the cron as sudo,
>> > everything worked out of the box.
>> >
>> > The just now working test install of rslight is at the URL
>> > https://test.sybershock.com using /opt subdirs as the install target
>> > and guess what? That one works. I have no clue why the other one quit
>> > working after I thought I had it fixed. Gremlins? Typo somewhere?
>> > Something in my server config blocking just that one groups.txt file?
>> > IDK. Gagh.
>>
>> If you 'sudo -u www-data bash' then try to read the file (as www-user),
>> can you read it?
>
> Yes. I tested read from shell several times.

That's strange. Here's the code:

$glfp = fopen($config_dir . $menuitem[0] . "/groups.txt", 'r');
$section = "";
while ($gl = fgets($glfp)) {

($stream) is ($glfp). It would appear that it can not open the file
'groups.txt'. Are your files in the spool showing up as user 'www-data'?

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulkto9$73g$6@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 19:28:09 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulkto9$73g$6@i2pn2.org>
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev> <20231216131212.031aff7e@dev>
<ulkst4$73g$4@i2pn2.org> <20231216132242.0677a736@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 19:28:09 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 19:28 UTC

On Sat, 16 Dec 2023 13:22:42 -0600, Syber Shock wrote:

> On Sat, 16 Dec 2023 19:13:40 -0000 (UTC)
> Retro Guy <retroguy@i2pn2.org> wrote:
>
>> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:
>>
>> > On Sat, 16 Dec 2023 13:02:46 -0600 Syber Shock <3883@sugar.bug>
>> > wrote:
>> >> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
>> >> Retro Guy <retroguy@i2pn2.org> wrote:
>> >>
>> >> > On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>> >> >
>> >> > > I continued from the last test and troubleshooting today. I am
>> >> > > using the same test install at:
>> >> > >
>> >> > > https://rocksolid.sybershock.com/
>> >> > >
>> >> > > Whereas last time it seemed to be working right, today some
>> >> > > errors cropped up. I am running php8.2 explicitly when invoking
>> >> > > cron job. I also tried running directly without the bash wrapper
>> >> > > on the command:
>> >> > >
>> >> > > php8.2 /etc/rslight/scripts/cron.php
>> >> > >
>> >> > > I have changed nothing on the install since last testing it. I
>> >> > > made sure nntp.php and nntp-ssl.php were running.
>> >> > >
>> >> > > I tested the nntp(s) server ports with telnet. When I send the
>> >> > > 'list' command it replies 215 with an empty group list.
>> >> >
>> >> > The error below is related to the groups lists.
>> >> >
>> >> > > I checked rocksolid/groups.txt to ensure the group names weren't
>> >> > > mangled. When I run the cron I get this:
>> >> > >
>> >> > > Updated user count Sending articles Send Done Refreshed
>> >> > > spoolnews Expired articles Sending articles Send DonePHP Fatal
>> >> > > error: Uncaught TypeError: fgets(): Argument #1 ($stream) must
>> >> > > be of type resource, bool given in
>> >> > > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
>> >> > > .../public_html/rocksolid/newsportal.php(355): fgets() #1
>> >> > > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
>> >> > > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
>> >> > > {main} thrown in .../public_html/rocksolid/newsportal.php on
>> >> > > line 355
>> >> >
>> >> > ($stream) is the groups.txt file pointer, which should have been
>> >> > opened (by newsportal). $config_dir/<section>/groups.txt It's
>> >> > saying it's 'bool' because it's probably 'false', meaning the file
>> >> > could not be opened for some reason.
>> >> >
>> >> > Could you confirm that your www-data user can read that file?
>> >>
>> >> Haha always the first linuxario check: look at your file
>> >> permissions!
>> >>
>> >> Permissions look ok. To make sure I just did chown -R
>> >> username:username on /etc/rslight and /var/spool/rslight and ran the
>> >> cron again. It still gives the same error when I run the cron.
>> >>
>> >> I thought that permissions might be the problem so I ran another
>> >> test install at a different domain just now. I wanted to be very
>> >> sure the perms were all readable by that user so this time I ran the
>> >> installer as web user rather than as sudo. Then when I fired the
>> >> cron as sudo, everything worked out of the box.
>> >>
>> >> The just now working test install of rslight is at the URL
>> >> https://test.sybershock.com" rel="nofollow" target="_blank">https://test.sybershock.com using /opt subdirs as the install target
>> >> and guess what? That one works. I have no clue why the other one
>> >> quit working after I thought I had it fixed. Gremlins? Typo
>> >> somewhere? Something in my server config blocking just that one
>> >> groups.txt file? IDK. Gagh.
>> >
>> > Knock on wood, I should, I should.
>> >
>> > On this install all files are owned explicitly by web user.
>> >
>> > After a couple successful cron runs on the
>> > https://test.sybershock.com fresh install, this fputs() error popped
>> > up:
>> >
>> > Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
>> > resource is not a valid stream resource in
>> > .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
>> > .../public_html/rocksolid/lib/thread.inc.php(237):
>> > fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
>> > thread_overview_read() #2
>> > /opt/rocksolid/config/scripts/spoolnews.php(146):
>> > thread_load_newsserver() #3 {main} thrown in
>> > .../public_html/rocksolid/lib/thread.inc.php on line 237
>> >
>> > Refreshed spoolnews Expired articles RSS Feeds updated Log files
>> > rotated Keys rotated Removed old files
>>
>> That one is a known bug. It "should" work fine on the next run. I
>> thought I fixed that, but maybe not :(
>
> A few more subsequent runs did not give the error. It now pulled the
> most recent messages on https://test.sybershock.com. Then another
> subsequent run gave the error again. Then another subsequent run worked
> without the error. So I guess the bug is hit or miss then?

It's on a timer. Every (I don't remember how many) minutes, it tries to
run 'thread_load_newsserver()', and sometimes that fails.

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216133521.3ff06910@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:35:21 -0600
Organization: To protect and to server
Message-ID: <20231216133521.3ff06910@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
<ulksq5$73g$3@i2pn2.org>
<20231216131931.6628f2c2@dev>
<ulktep$73g$5@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="236592"; posting-host="Dta083cideOtEI+3FPMuAA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:qGBSyE8nvBMY3i0ptqjtWlwmHtuqXR9bntxftrCVvkk=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwMjplYzA6MjA5OjEwOjo0 --
 by: Syber Shock - Sat, 16 Dec 2023 19:35 UTC

On Sat, 16 Dec 2023 19:23:05 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Sat, 16 Dec 2023 13:19:31 -0600, Syber Shock < wrote:
>
> > On Sat, 16 Dec 2023 19:12:05 -0000 (UTC) Retro Guy
> > <retroguy@i2pn2.org> wrote:
> >
> >> On Sat, 16 Dec 2023 13:02:46 -0600, Syber Shock wrote:
> >>
> >> > On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> >> > Retro Guy <retroguy@i2pn2.org> wrote:
> >> >
> >> >> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
> >> >>
> >> >> > I continued from the last test and troubleshooting today. I am
> >> >> > using the same test install at:
> >> >> >
> >> >> > https://rocksolid.sybershock.com/
> >> >> >
> >> >> > Whereas last time it seemed to be working right, today some
> >> >> > errors cropped up. I am running php8.2 explicitly when
> >> >> > invoking cron job. I also tried running directly without the
> >> >> > bash wrapper on the command:
> >> >> >
> >> >> > php8.2 /etc/rslight/scripts/cron.php
> >> >> >
> >> >> > I have changed nothing on the install since last testing it. I
> >> >> > made sure nntp.php and nntp-ssl.php were running.
> >> >> >
> >> >> > I tested the nntp(s) server ports with telnet. When I send the
> >> >> > 'list' command it replies 215 with an empty group list.
> >> >>
> >> >> The error below is related to the groups lists.
> >> >>
> >> >> > I checked rocksolid/groups.txt to ensure the group names
> >> >> > weren't mangled. When I run the cron I get this:
> >> >> >
> >> >> > Updated user count Sending articles Send Done Refreshed
> >> >> > spoolnews Expired articles Sending articles Send DonePHP
> >> >> > Fatal error: Uncaught TypeError: fgets(): Argument #1
> >> >> > ($stream) must be of type resource, bool given in
> >> >> > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> >> >> > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> >> >> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> >> >> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
> >> >> > {main} thrown in .../public_html/rocksolid/newsportal.php on
> >> >> > line 355
> >> >>
> >> >> ($stream) is the groups.txt file pointer, which should have been
> >> >> opened (by newsportal). $config_dir/<section>/groups.txt It's
> >> >> saying it's 'bool' because it's probably 'false', meaning the
> >> >> file could not be opened for some reason.
> >> >>
> >> >> Could you confirm that your www-data user can read that file?
> >> >
> >> > Haha always the first linuxario check: look at your file
> >> > permissions!
> >> >
> >> > Permissions look ok. To make sure I just did chown -R
> >> > username:username on /etc/rslight and /var/spool/rslight and ran
> >> > the cron again. It still gives the same error when I run the
> >> > cron.
> >> >
> >> > I thought that permissions might be the problem so I ran another
> >> > test install at a different domain just now. I wanted to be very
> >> > sure the perms were all readable by that user so this time I ran
> >> > the installer as web user rather than as sudo. Then when I fired
> >> > the cron as sudo, everything worked out of the box.
> >> >
> >> > The just now working test install of rslight is at the URL
> >> > https://test.sybershock.com using /opt subdirs as the install
> >> > target and guess what? That one works. I have no clue why the
> >> > other one quit working after I thought I had it fixed. Gremlins?
> >> > Typo somewhere? Something in my server config blocking just that
> >> > one groups.txt file? IDK. Gagh.
> >>
> >> If you 'sudo -u www-data bash' then try to read the file (as
> >> www-user), can you read it?
> >
> > Yes. I tested read from shell several times.
>
> That's strange. Here's the code:
>
> $glfp = fopen($config_dir . $menuitem[0] . "/groups.txt", 'r');
> $section = "";
> while ($gl = fgets($glfp)) {
>
> ($stream) is ($glfp). It would appear that it can not open the file
> 'groups.txt'. Are your files in the spool showing up as user
> 'www-data'?

No. 'www-data' has no access to this domain. 'www-data' is disabled
from shell access in /etc/passwd. The rslight user is the web user
registered with the server for this domain. That web user has access to
all files on the domain and in the config/ and spool/ directories. The
same user getting the error for the file
/etc/rslight/rocksolid/groups.txt but is not getting the error for the
file /opt/rslight/config/groups.txt. The second one works fine, same
permissions, on the test.* subdomain.

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<ulkudp$73g$7@i2pn2.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@i2pn2.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 19:39:37 -0000 (UTC)
Organization: i2pn2 (i2pn.org)
Message-ID: <ulkudp$73g$7@i2pn2.org>
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev> <ulksq5$73g$3@i2pn2.org>
<20231216131931.6628f2c2@dev> <ulktep$73g$5@i2pn2.org>
<20231216133521.3ff06910@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Dec 2023 19:39:37 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="7280"; mail-complaints-to="usenet@i2pn2.org";
posting-account="Gg8gAsZLN5FnWZrpbmz42d6ib2C2ewfwYI9Q557pxrY";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
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_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 16 Dec 2023 19:39 UTC

On Sat, 16 Dec 2023 13:35:21 -0600, Syber Shock wrote:

> On Sat, 16 Dec 2023 19:23:05 -0000 (UTC)
> Retro Guy <retroguy@i2pn2.org> wrote:
>
>> On Sat, 16 Dec 2023 13:19:31 -0600, Syber Shock < wrote:
>>
>> > On Sat, 16 Dec 2023 19:12:05 -0000 (UTC) Retro Guy
>> > <retroguy@i2pn2.org> wrote:
>> >
>> >> On Sat, 16 Dec 2023 13:02:46 -0600, Syber Shock wrote:
>> >>
>> >> > On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
>> >> > Retro Guy <retroguy@i2pn2.org> wrote:
>> >> >
>> >> >> On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
>> >> >>
>> >> >> > I continued from the last test and troubleshooting today. I am
>> >> >> > using the same test install at:
>> >> >> >
>> >> >> > https://rocksolid.sybershock.com/
>> >> >> >
>> >> >> > Whereas last time it seemed to be working right, today some
>> >> >> > errors cropped up. I am running php8.2 explicitly when invoking
>> >> >> > cron job. I also tried running directly without the bash
>> >> >> > wrapper on the command:
>> >> >> >
>> >> >> > php8.2 /etc/rslight/scripts/cron.php
>> >> >> >
>> >> >> > I have changed nothing on the install since last testing it. I
>> >> >> > made sure nntp.php and nntp-ssl.php were running.
>> >> >> >
>> >> >> > I tested the nntp(s) server ports with telnet. When I send the
>> >> >> > 'list' command it replies 215 with an empty group list.
>> >> >>
>> >> >> The error below is related to the groups lists.
>> >> >>
>> >> >> > I checked rocksolid/groups.txt to ensure the group names
>> >> >> > weren't mangled. When I run the cron I get this:
>> >> >> >
>> >> >> > Updated user count Sending articles Send Done Refreshed
>> >> >> > spoolnews Expired articles Sending articles Send DonePHP Fatal
>> >> >> > error: Uncaught TypeError: fgets(): Argument #1 ($stream) must
>> >> >> > be of type resource, bool given in
>> >> >> > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
>> >> >> > .../public_html/rocksolid/newsportal.php(355): fgets() #1
>> >> >> > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
>> >> >> > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
>> >> >> > {main} thrown in .../public_html/rocksolid/newsportal.php on
>> >> >> > line 355
>> >> >>
>> >> >> ($stream) is the groups.txt file pointer, which should have been
>> >> >> opened (by newsportal). $config_dir/<section>/groups.txt It's
>> >> >> saying it's 'bool' because it's probably 'false', meaning the
>> >> >> file could not be opened for some reason.
>> >> >>
>> >> >> Could you confirm that your www-data user can read that file?
>> >> >
>> >> > Haha always the first linuxario check: look at your file
>> >> > permissions!
>> >> >
>> >> > Permissions look ok. To make sure I just did chown -R
>> >> > username:username on /etc/rslight and /var/spool/rslight and ran
>> >> > the cron again. It still gives the same error when I run the cron.
>> >> >
>> >> > I thought that permissions might be the problem so I ran another
>> >> > test install at a different domain just now. I wanted to be very
>> >> > sure the perms were all readable by that user so this time I ran
>> >> > the installer as web user rather than as sudo. Then when I fired
>> >> > the cron as sudo, everything worked out of the box.
>> >> >
>> >> > The just now working test install of rslight is at the URL
>> >> > https://test.sybershock.com using /opt subdirs as the install
>> >> > target and guess what? That one works. I have no clue why the
>> >> > other one quit working after I thought I had it fixed. Gremlins?
>> >> > Typo somewhere? Something in my server config blocking just that
>> >> > one groups.txt file? IDK. Gagh.
>> >>
>> >> If you 'sudo -u www-data bash' then try to read the file (as
>> >> www-user), can you read it?
>> >
>> > Yes. I tested read from shell several times.
>>
>> That's strange. Here's the code:
>>
>> $glfp = fopen($config_dir . $menuitem[0] . "/groups.txt", 'r');
>> $section = "";
>> while ($gl = fgets($glfp)) {
>>
>> ($stream) is ($glfp). It would appear that it can not open the file
>> 'groups.txt'. Are your files in the spool showing up as user
>> 'www-data'?
>
> No. 'www-data' has no access to this domain. 'www-data' is disabled from
> shell access in /etc/passwd. The rslight user is the web user registered
> with the server for this domain. That web user has access to all files
> on the domain and in the config/ and spool/ directories. The same user
> getting the error for the file /etc/rslight/rocksolid/groups.txt but is
> not getting the error for the file /opt/rslight/config/groups.txt. The
> second one works fine, same permissions, on the test.* subdomain.

Ok, so if $config_dir = '/opt/rslight' it works? If so, you should be able
to move $config_dir by (moving it, of course), then setting it in
<webdir>/common/config.inc.php

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231216134402.0a64a857@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sat, 16 Dec 2023 13:44:02 -0600
Organization: To protect and to server
Message-ID: <20231216134402.0a64a857@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
<20231216131212.031aff7e@dev>
<ulkst4$73g$4@i2pn2.org>
<20231216132242.0677a736@dev>
<ulkto9$73g$6@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="240938"; posting-host="YOt6O3QgPcgmGkSTHsI4NQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:U+HydI35QaF2HHUzTRoFHgf/xLh379I10Ami5f1fdTQ=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MmEwYjpmNGMyOjM6Ojky --
 by: Syber Shock - Sat, 16 Dec 2023 19:44 UTC

On Sat, 16 Dec 2023 19:28:09 -0000 (UTC)
Retro Guy <retroguy@i2pn2.org> wrote:

> On Sat, 16 Dec 2023 13:22:42 -0600, Syber Shock wrote:
>
> > On Sat, 16 Dec 2023 19:13:40 -0000 (UTC)
> > Retro Guy <retroguy@i2pn2.org> wrote:
> >
> >> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:
> >>
> >> > On Sat, 16 Dec 2023 13:02:46 -0600 Syber Shock <3883@sugar.bug>
> >> > wrote:
> >> >> On Sat, 16 Dec 2023 18:28:43 -0000 (UTC)
> >> >> Retro Guy <retroguy@i2pn2.org> wrote:
> >> >>
> >> >> > On Sat, 16 Dec 2023 12:14:51 -0600, Syber Shock < wrote:
> >> >> >
> >> >> > > I continued from the last test and troubleshooting today. I
> >> >> > > am using the same test install at:
> >> >> > >
> >> >> > > https://rocksolid.sybershock.com/
> >> >> > >
> >> >> > > Whereas last time it seemed to be working right, today some
> >> >> > > errors cropped up. I am running php8.2 explicitly when
> >> >> > > invoking cron job. I also tried running directly without
> >> >> > > the bash wrapper on the command:
> >> >> > >
> >> >> > > php8.2 /etc/rslight/scripts/cron.php
> >> >> > >
> >> >> > > I have changed nothing on the install since last testing
> >> >> > > it. I made sure nntp.php and nntp-ssl.php were running.
> >> >> > >
> >> >> > > I tested the nntp(s) server ports with telnet. When I send
> >> >> > > the 'list' command it replies 215 with an empty group list.
> >> >> > >
> >> >> >
> >> >> > The error below is related to the groups lists.
> >> >> >
> >> >> > > I checked rocksolid/groups.txt to ensure the group names
> >> >> > > weren't mangled. When I run the cron I get this:
> >> >> > >
> >> >> > > Updated user count Sending articles Send Done Refreshed
> >> >> > > spoolnews Expired articles Sending articles Send DonePHP
> >> >> > > Fatal error: Uncaught TypeError: fgets(): Argument #1
> >> >> > > ($stream) must be of type resource, bool given in
> >> >> > > .../public_html/rocksolid/newsportal.php:355 Stack trace: #0
> >> >> > > .../public_html/rocksolid/newsportal.php(355): fgets() #1
> >> >> > > /etc/rslight/scripts/spoolnews.php(352): testGroup() #2
> >> >> > > /etc/rslight/scripts/spoolnews.php(139): get_articles() #3
> >> >> > > {main} thrown in .../public_html/rocksolid/newsportal.php on
> >> >> > > line 355
> >> >> >
> >> >> > ($stream) is the groups.txt file pointer, which should have
> >> >> > been opened (by newsportal). $config_dir/<section>/groups.txt
> >> >> > It's saying it's 'bool' because it's probably 'false',
> >> >> > meaning the file could not be opened for some reason.
> >> >> >
> >> >> > Could you confirm that your www-data user can read that file?
> >> >> >
> >> >>
> >> >> Haha always the first linuxario check: look at your file
> >> >> permissions!
> >> >>
> >> >> Permissions look ok. To make sure I just did chown -R
> >> >> username:username on /etc/rslight and /var/spool/rslight and
> >> >> ran the cron again. It still gives the same error when I run
> >> >> the cron.
> >> >>
> >> >> I thought that permissions might be the problem so I ran another
> >> >> test install at a different domain just now. I wanted to be very
> >> >> sure the perms were all readable by that user so this time I
> >> >> ran the installer as web user rather than as sudo. Then when I
> >> >> fired the cron as sudo, everything worked out of the box.
> >> >>
> >> >> The just now working test install of rslight is at the URL
> >> >> https://test.sybershock.com" rel="nofollow" target="_blank">https://test.sybershock.com using /opt subdirs as the install
> >> >> target and guess what? That one works. I have no clue why the
> >> >> other one quit working after I thought I had it fixed.
> >> >> Gremlins? Typo somewhere? Something in my server config
> >> >> blocking just that one groups.txt file? IDK. Gagh.
> >> >
> >> > Knock on wood, I should, I should.
> >> >
> >> > On this install all files are owned explicitly by web user.
> >> >
> >> > After a couple successful cron runs on the
> >> > https://test.sybershock.com fresh install, this fputs() error
> >> > popped up:
> >> >
> >> > Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
> >> > resource is not a valid stream resource in
> >> > .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
> >> > .../public_html/rocksolid/lib/thread.inc.php(237):
> >> > fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
> >> > thread_overview_read() #2
> >> > /opt/rocksolid/config/scripts/spoolnews.php(146):
> >> > thread_load_newsserver() #3 {main} thrown in
> >> > .../public_html/rocksolid/lib/thread.inc.php on line 237
> >> >
> >> > Refreshed spoolnews Expired articles RSS Feeds updated Log files
> >> > rotated Keys rotated Removed old files
> >>
> >> That one is a known bug. It "should" work fine on the next run. I
> >> thought I fixed that, but maybe not :(
> >
> > A few more subsequent runs did not give the error. It now pulled the
> > most recent messages on https://test.sybershock.com. Then another
> > subsequent run gave the error again. Then another subsequent run
> > worked without the error. So I guess the bug is hit or miss then?
>
> It's on a timer. Every (I don't remember how many) minutes, it tries
> to run 'thread_load_newsserver()', and sometimes that fails.

Other than that, everything on the test.* subdomain seems to work. I
will jiggle it a bit later.

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<b9a05fce793fb7a9bbd7f2513ca03e81@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Sun, 17 Dec 2023 12:16:56 +0000
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument
#1 ($stream) must be of type resource, bool
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$OJ7yYi3XxOd1A9xWw3Yq0uCjUhaTeFFx1PD7OhIi/aGkgHXD/ZmHy
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org> <20231216130246.432ee1d2@dev> <20231216131212.031aff7e@dev> <ulkst4$73g$4@i2pn2.org>
Organization: Rocksolid Light
Message-ID: <b9a05fce793fb7a9bbd7f2513ca03e81@news.novabbs.org>
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 - Sun, 17 Dec 2023 12:16 UTC

Retro Guy wrote:

> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:

<snip>

>> After a couple successful cron runs on the https://test.sybershock.com
>> fresh install, this fputs() error popped up:
>>
>> Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
>> resource is not a valid stream resource in
>> .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
>> .../public_html/rocksolid/lib/thread.inc.php(237):
>> fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
>> thread_overview_read() #2
>> /opt/rocksolid/config/scripts/spoolnews.php(146):
>> thread_load_newsserver() #3 {main} thrown in
>> .../public_html/rocksolid/lib/thread.inc.php on line 237
>>
>> Refreshed spoolnews Expired articles RSS Feeds updated Log files rotated
>> Keys rotated Removed old files

> That one is a known bug. It "should" work fine on the next run. I thought
> I fixed that, but maybe not :(

This error is strange. I thought I "fixed" it, or at least avoided it by checking that we had a connection to the server:

if ($ns) {
thread_load_newsserver($ns2, $name[0], 0);

function thread_load_newsserver(&$ns, $groupname, $poll)
{ ...
$overviewformat = thread_overview_read($ns);

If $ns is not available (connection down), we should never reach thread_load_newsserver. In fact that error has disappeared on my installs since I thought I fixed it (by adding the if($ns), line 143 in spoolnews.php).

--
Retro Guy

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<dce4323b6358740d2cf26bee93ca93c3$1@news.novabbs.org>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Date: Sun, 17 Dec 2023 12:18:36 +0000
Message-ID: <dce4323b6358740d2cf26bee93ca93c3$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Newsgroups: rocksolid.nodes.help
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_BH0=hZt'[%)4kG|
References: <20231216121451.74280d0c@dev> <ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev> <20231216131212.031aff7e@dev>
<ulkst4$73g$4@i2pn2.org> <b9a05fce793fb7a9bbd7f2513ca03e81@news.novabbs.org>
MIME-Version: 1.0
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
 by: Retro Guy - Sun, 17 Dec 2023 12:18 UTC

On Sun, 17 Dec 2023 12:16:56 +0000, Retro Guy wrote:

> Retro Guy wrote:
>
>> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:
>
> <snip>
>
>>> After a couple successful cron runs on the https://test.sybershock.com
>>> fresh install, this fputs() error popped up:
>>>
>>> Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
>>> resource is not a valid stream resource in
>>> .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
>>> .../public_html/rocksolid/lib/thread.inc.php(237):
>>> fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
>>> thread_overview_read() #2
>>> /opt/rocksolid/config/scripts/spoolnews.php(146):
>>> thread_load_newsserver() #3 {main} thrown in
>>> .../public_html/rocksolid/lib/thread.inc.php on line 237
>>>
>>> Refreshed spoolnews Expired articles RSS Feeds updated Log files
>>> rotated Keys rotated Removed old files
>
>> That one is a known bug. It "should" work fine on the next run. I
>> thought I fixed that, but maybe not :(
>
> This error is strange. I thought I "fixed" it, or at least avoided it by
> checking that we had a connection to the server:
>
>
> if ($ns) {
> thread_load_newsserver($ns2, $name[0], 0);
>
> function thread_load_newsserver(&$ns, $groupname, $poll)
> {
> ...
> $overviewformat = thread_overview_read($ns);
>
> If $ns is not available (connection down), we should never reach
> thread_load_newsserver. In fact that error has disappeared on my
> installs since I thought I fixed it (by adding the if($ns), line 143 in
> spoolnews.php).

LOL, the moron (ME) sees the error now :)

Re: help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

<20231217080230.522b5fce@dev>

  copy mid

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

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: help request: PHP Fatal error: Uncaught TypeError: fgets():
Argument #1 ($stream) must be of type resource, bool
Date: Sun, 17 Dec 2023 08:02:30 -0600
Organization: To protect and to server
Message-ID: <20231217080230.522b5fce@dev>
References: <20231216121451.74280d0c@dev>
<ulkq8r$73g$2@i2pn2.org>
<20231216130246.432ee1d2@dev>
<20231216131212.031aff7e@dev>
<ulkst4$73g$4@i2pn2.org>
<b9a05fce793fb7a9bbd7f2513ca03e81@news.novabbs.org>
<dce4323b6358740d2cf26bee93ca93c3$1@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="342305"; posting-host="PucJEPotjJyynPGC85C0DQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:h38mDhM7rWtmroqdEKzMoA8Ox02EPP2UFgQS9YKmPQw=
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sun, 17 Dec 2023 14:02 UTC

On Sun, 17 Dec 2023 12:18:36 +0000
Retro Guy <retroguy@novabbs.org> wrote:

> On Sun, 17 Dec 2023 12:16:56 +0000, Retro Guy wrote:
>
> > Retro Guy wrote:
> >
> >> On Sat, 16 Dec 2023 13:12:12 -0600, Syber Shock < wrote:
> >
> > <snip>
> >
> >>> After a couple successful cron runs on the
> >>> https://test.sybershock.com fresh install, this fputs() error
> >>> popped up:
> >>>
> >>> Send DonePHP Fatal error: Uncaught TypeError: fputs(): supplied
> >>> resource is not a valid stream resource in
> >>> .../public_html/rocksolid/lib/thread.inc.php:237 Stack trace: #0
> >>> .../public_html/rocksolid/lib/thread.inc.php(237):
> >>> fputs() #1 .../public_html/rocksolid/lib/thread.inc.php(304):
> >>> thread_overview_read() #2
> >>> /opt/rocksolid/config/scripts/spoolnews.php(146):
> >>> thread_load_newsserver() #3 {main} thrown in
> >>> .../public_html/rocksolid/lib/thread.inc.php on line 237
> >>>
> >>> Refreshed spoolnews Expired articles RSS Feeds updated Log files
> >>> rotated Keys rotated Removed old files
> >
> >> That one is a known bug. It "should" work fine on the next run. I
> >> thought I fixed that, but maybe not :(
> >
> > This error is strange. I thought I "fixed" it, or at least avoided
> > it by checking that we had a connection to the server:
> >
> >
> > if ($ns) {
> > thread_load_newsserver($ns2, $name[0], 0);
> >
> > function thread_load_newsserver(&$ns, $groupname, $poll)
> > {
> > ...
> > $overviewformat = thread_overview_read($ns);
> >
> > If $ns is not available (connection down), we should never reach
> > thread_load_newsserver. In fact that error has disappeared on my
> > installs since I thought I fixed it (by adding the if($ns), line
> > 143 in spoolnews.php).
>
> LOL, the moron (ME) sees the error now :)

Don't be too hard on yourself. Once you try troubleshooting bugs in a
mastodon server, you would consider rslight a work of art in
comparsion. That's one reason why I'm testing this to death. Mastodon
servers and fediverse software just keep getting worse and more buggy
as time advances. The world needs a real alternative.


computers / Rocksolid Nodes Help / help request: PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor