Rocksolid Light

Welcome to novaBBS

register   nodelist   faq  

Latest changes: 'View all headers' link for messages. 'Latest' poster and link available for each thread.


rocksolid / Rocksolid Nodes Announce / Re: first sync after change

SubjectAuthor
* first sync after changeAnonymous
`* Re: first sync after changeRetro Guy
 `* Re: first sync after changeRetro Guy
  `* Re: first sync after changeRetro Guy
   `- Re: first sync after changeRetro Guy

1
Subject: first sync after change
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.nodes.announce
Organization: i2pn2 (i2pn.org)
Date: Sun, 31 May 2020 22:22 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.nodes.announce
Subject: first sync after change
Date: Sun, 31 May 2020 15:22:24 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <na.255.1837r2@anon.com>
References: <de1a6b5b3a3aff1f144b8390c4128d35$1@news.novabbs.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="25423"; mail-complaints-to="usenet@i2pn2.org"
View all headers
tell spoolnews to go back (currently 20) articles and retry to pull them.

This it did, for all groups. Did not change the display of social, though.

cheers

trw


Subject: Re: first sync after change
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Sun, 31 May 2020 23:18 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: first sync after change
Date: Sun, 31 May 2020 23:18 UTC
Organization: Rocksolid Light
Message-ID: <24f82b277817b822b6ef83a568a9df75$1@www.novabbs.com>
References: <de1a6b5b3a3aff1f144b8390c4128d35$1@news.novabbs.com> <na.255.1837r2@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="32471"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$vp7hSdnQv2IwNNh2RbOeieyeQeJijDMiN0ommcpWtgXbdnIJff5W2
View all headers
I'm starting to suspect something....

Could you please delete in the spool all the <group.name> - * files (except -overview and -title):

$ ls rocksolid.programming-* -ldh
-rw-r--r-- 1 www-data www-data 4.6K May 31 23:04 rocksolid.programming-1-100.html
-rw-r--r-- 1 www-data www-data    0 May 31 23:04 rocksolid.programming-cache.txt
-rw-r--r-- 1 www-data www-data  38K May 31 13:03 rocksolid.programming-data.dat
-rw-r--r-- 1 www-data www-data   51 May 31 13:03 rocksolid.programming-info.txt
-rw-r--r-- 1 www-data www-data   97 May 31 13:03 rocksolid.programming-lastarticleinfo.dat

Don't delete these:
-rw-r--r-- 1 www-data www-data   56 May 30 12:31 rocksolid.programming-title
-rw-r--r-- 1 www-data www-data  16K May 31 13:03 rocksolid.programming-overview

Let's see what happens.

Retro Guy


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


Subject: Re: first sync after change
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Sun, 31 May 2020 23:29 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: first sync after change
Date: Sun, 31 May 2020 23:29 UTC
Organization: Rocksolid Light
Message-ID: <a403d7a6d5ba84b45dccbf5db6694ece$1@www.novabbs.com>
References: <de1a6b5b3a3aff1f144b8390c4128d35$1@news.novabbs.com> <na.255.1837r2@anon.com> <24f82b277817b822b6ef83a568a9df75$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="1126"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$DN4pbtkIraiUR2VLtEYnQuwOK.l/sTlCZWZYPitqNk7/psQsreh1i
View all headers
I'm wondereing if vichan is running message_read on an article before rslight tries to display the article, then rslight is just trying to pull it from the spool because it already exists (rslight does that for speed purposes).

Then rslight is never creating the correct cache files and ends up getting lost on those articles (the cache files are incorrect).

If that's the case, we can fix it, but I'd like to see if message_read being run separately from rslight running it is causing a problem.

Retro Guy

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


Subject: Re: first sync after change
From: Retro ...@example.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Organization: rslight Debian test site
Date: Mon, 1 Jun 2020 09:37 UTC
Attachments: vichan_message_read.txt (text/plain)
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@example.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: first sync after change
Date: Mon, 1 Jun 2020 09:37 UTC
Organization: rslight Debian test site
Message-ID: <ed6e84c066894ab1785cdd5c1429d95f$1@192.168.0.220>
References: <de1a6b5b3a3aff1f144b8390c4128d35$1@news.novabbs.com> <na.255.1837r2@anon.com> <24f82b277817b822b6ef83a568a9df75$1@www.novabbs.com> <a403d7a6d5ba84b45dccbf5db6694ece$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: multipart/mixed;boundary="------------5ed4cc4e814997.11182267"
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="8775"; mail-complaints-to="usenet@i2pn2.org"
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on i2pwall.i2p
X-Rslight-Site: $2y$10$EoUu4ziq0G8kmp9N03D2v.PzXHhjXB2xTmotQAAl6xA7VM5NU1s5q
View all headers
Could you add the function below (and attached) to /var/www/html/rocksolid/lib/message.inc.php and then call this function instead of message read with vichan?

I'm curious still if we're messing anything up calling message read but not from the rslight code.

I don't have your modified vichan to test with so this is untested. It might just do nothing useful. Also, I kept '$bodynum=0' in the declaration so you don't need to change anything to call it other than the function name.

Also, if you could delete the files mentioned in the previous message in this thread let's see if we get anywhere.

Thanks!

Retro Guy

------------------------------
function vichan_message_read($id,$bodynum=0,$group="") {
  global $spooldir,$spoolpath,$text_error;
  if (!testGroup($group)) {
    echo $text_error["read_access_denied"];
    return;
  }
  $message = new messageType;
   $articlepath = $spoolpath.preg_replace('/./', '/', $group)."/".$id;
   if (file_exists($articlepath)) {
    $rawmessage_fh = fopen($articlepath, "r");
     $rawmessage=array();
     $line=rtrim(fgets($rawmessage_fh), PHP_EOL);
     while(!feof($rawmessage_fh)) {
       if(strcmp($line,".") == 0) {
         break;
       }
       $rawmessage[]=$line;
       $line=rtrim(fgets($rawmessage_fh), PHP_EOL);
     }
    fclose($rawmessage_fh);
   } else {
    return false;
   }
  $message=message_parse($rawmessage);
  return $message;
}




Attachments: vichan_message_read.txt (text/plain)
Subject: Re: first sync after change
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Mon, 1 Jun 2020 11:48 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: first sync after change
Date: Mon, 1 Jun 2020 11:48 UTC
Organization: Rocksolid Light
Message-ID: <30cfbc8dac6de93d6f5e94bf24016673$1@www.novabbs.com>
References: <de1a6b5b3a3aff1f144b8390c4128d35$1@news.novabbs.com> <na.255.1837r2@anon.com> <24f82b277817b822b6ef83a568a9df75$1@www.novabbs.com> <a403d7a6d5ba84b45dccbf5db6694ece$1@www.novabbs.com> <ed6e84c066894ab1785cdd5c1429d95f$1@192.168.0.220>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="25325"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$ZoxJ.RBGSPu7myI9KepUmu/Zcy6w.ovodqeCLNuXfpnyySvmgTnmm
View all headers
Retro Guy wrote:

Could you add the function below (and attached) to /var/www/html/rocksolid/lib/message.inc.php and then call this function instead of message read with vichan?

Just a note: message_read, and most of message.inc.php is newsportal code, so if it seems sometimes that I'm not sure what it's doing, you are correct :)

Retro Guy

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


1
rocksolid light 0.6.6
clearnet i2p tor