-
MsgBase get_all_msg_headers issue
From
Nightfox@VERT/DIGDIST to
Digital Man on Wed Mar 13 13:49:04 2019
Hi DM,ããI've had a couple people mention to me an issue with my message reader when
they try to up/downvote with it, and the line where it's reporting an issue is calling get_all_msg_headers() with a MsgBase object:ããvar tmpHdrs = msgbase.get_all_msg_headers();ããThis is the error they're seeing:ã!JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error: index read
(10710) failedããDo you know what might cause that error when calling MsgBase's get_all_msg_headers() method?ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Nightfox on Wed Mar 13 16:41:52 2019
Re: MsgBase get_all_msg_headers issueã By: Nightfox to Digital Man on Wed Mar 13 2019 01:49 pmãã > Hi DM,ã >ã > I've had a couple people mention to me an issue with my message reader whenã > they try to up/downvote with it, and the line where it's reporting an issueã > is calling get_all_msg_headers() with a MsgBase object:ã >ã > var tmpHdrs = msgbase.get_all_msg_headers();ã >ã > This is the error they're seeing:ã > !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error: index readã > (10710) failedã >ã > Do you know what might cause that error when calling MsgBase'sã > get_all_msg_headers() method?ããIt should be fixed now. I was able to repro by just callingãmsgbase.get_all_msg_headers() twice in a row (the second attempt failed withãthe same/similar error).ãã digital manããSynchronet/BBS Terminology Definition #63:ãSSH = Secure ShellãNorco, CA WX: 63.8øF, 47.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Wed Mar 13 17:04:59 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pmãã DM> It should be fixed now. I was able to repro by just callingã DM> msgbase.get_all_msg_headers() twice in a row (the second attempt failedã DM> with the same/similar error).ããAh cool, thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Thu Mar 14 20:12:04 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pmãã >> var tmpHdrs = msgbase.get_all_msg_headers();ãã >> This is the error they're seeing:ã >> !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:ã >> index read (10710) failedãã DM> It should be fixed now. I was able to repro by just callingã DM> msgbase.get_all_msg_headers() twice in a row (the second attempt failedã DM> with the same/similar error).ããI updated my Synchronet binaries with the ones built today (March 14), but nowãI'm seeing a similar error on my BBS when my reader is callingãget_all_msg_headers():ãã!JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392: Error: indexãreãad (1062) failedããI wasn't seeing that before. I've overwritten my binaries now, so I'm not sureãoffhand which binaries I had where I wasn't seeing that error.ããWhere it's failing in my script, I'm not calling that function twice, it'sãright after opening the messagebase.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Nightfox on Fri Mar 15 00:13:11 2019
Re: MsgBase get_all_msg_headers issueã By: Nightfox to Digital Man on Thu Mar 14 2019 08:12 pmãã > Re: MsgBase get_all_msg_headers issueã > By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pmã >ã > >> var tmpHdrs = msgbase.get_all_msg_headers();ã >ã > >> This is the error they're seeing:ã > >> !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:ã > >> index read (10710) failedã >ã > DM> It should be fixed now. I was able to repro by just callingã > DM> msgbase.get_all_msg_headers() twice in a row (the second attempt failedã > DM> with the same/similar error).ã >ã > I updated my Synchronet binaries with the ones built today (March 14), butã > now I'm seeing a similar error on my BBS when my reader is callingã > get_all_msg_headers():ã >ã > !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392: Error:ã > index reã > ad (1062) failedã >ã > I wasn't seeing that before. I've overwritten my binaries now, so I'm notã > sure offhand which binaries I had where I wasn't seeing that error.ããThe problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) was introducedãin rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JS MsgBase method thatãread from the index file before calling the get_all_msg_headers() method wouldãcause the error. I confirmed the error and the fix.ãã > Where it's failing in my script, I'm not calling that function twice, it'sã > right after opening the messagebase.ããThat's weird. Calling get_msg_headers() right after opening the messagebase didãnot cause any error for me, nor should it have (the file pointer would be atãthe beginning the file by default). I wrote a simple little script to executingãJSexec to 1. reproduce the error and 2. confirm the fix.ãã digital manããThis Is Spinal Tap quote #29:ãI find lost luggage. I locate mandolin strings in the middle of Austin!ãNorco, CA WX: 54.9øF, 25.0% humidity, 4 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Fri Mar 15 12:54:08 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 amãã >> get_all_msg_headers():ãã >> !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:ã >> Error: index reã >> ad (1062) failedãã DM> The problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) wasã DM> introduced in rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JSã DM> MsgBase method that read from the index file before calling theã DM> get_all_msg_headers() method would cause the error. I confirmed the errorã DM> and the fix. ãã >> Where it's failing in my script, I'm not calling that function twice,ã >> it's right after opening the messagebase.ãã DM> That's weird. Calling get_msg_headers() right after opening theã DM> messagebase did not cause any error for me, nor should it have (the fileã DM> pointer would be at the beginning the file by default). I wrote a simpleã DM> little script to executing JSexec to 1. reproduce the error and 2. confirmã DM> the fix. ããIt seems to be inconsistent - I'm not getting that error with every sub-board,ãonly some of them. I'm not sure if I might have some sub-board corruptionãsomehow..ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Nightfox on Fri Mar 15 12:57:17 2019
Re: MsgBase get_all_msg_headers issueã By: Nightfox to Digital Man on Fri Mar 15 2019 12:54 pmãã > Re: MsgBase get_all_msg_headers issueã > By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 amã >ã > >> get_all_msg_headers():ã >ã > >> !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:ã > >> Error: index reã > >> ad (1062) failedã >ã > DM> The problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) wasã > DM> introduced in rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JSã > DM> MsgBase method that read from the index file before calling theã > DM> get_all_msg_headers() method would cause the error. I confirmed theã > DM> error and the fix.ã >ã > >> Where it's failing in my script, I'm not calling that function twice,ã > >> it's right after opening the messagebase.ã >ã > DM> That's weird. Calling get_msg_headers() right after opening theã > DM> messagebase did not cause any error for me, nor should it have (theã > DM> file pointer would be at the beginning the file by default). I wrote aã > DM> simple little script to executing JSexec to 1. reproduce the error andã > DM> 2. confirm the fix.ã >ã > It seems to be inconsistent - I'm not getting that error with everyã > sub-board, only some of them. I'm not sure if I might have some sub-boardã > corruption somehow..ããWhat happens if you run chksmb on those sub-boards?ãã digital manããSynchronet "Real Fact" #101:ãAlternate and loadable font support was added to Synchronet in February 2018.ãNorco, CA WX: 67.3øF, 24.0% humidity, 10 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Fri Mar 15 13:07:27 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 amãã >> !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:ã >> Error: index reã >> ad (1062) failedãã >> I wasn't seeing that before. I've overwritten my binaries now, so I'mã >> not sure offhand which binaries I had where I wasn't seeing thatã >> error. ãã >> Where it's failing in my script, I'm not calling that function twice,ã >> it's right after opening the messagebase.ãã DM> That's weird. Calling get_msg_headers() right after opening theã DM> messagebase did not cause any error for me, nor should it have (the fileã DM> pointer would be at the beginning the file by default). I wrote a simpleã DM> little script to executing JSexec to 1. reproduce the error and 2. confirmã DM> the fix. ããIt seems that many of my messagebases had corruption in them (particularly,ãmost of them were FidoNet areas). I ran fixsmb on those and it seems to beãresolved.ããAnother sub-board where it's having that error though is another one where theãmessagebase files don't exist (possibly because nobody has posted in thereãyet?).ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Hustler@VERT/HAVENS to
Digital Man on Fri Mar 15 19:32:44 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 amãã ã > >>> This is the error they're seeing:ã > >>> !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:ã > >>> index read (10710) failedãã I know longer see this error and voting works again. Thanks! I thinkãupvoting/Downvoting is a great addition to Syncrhonet BBS. That's my 2 centsãanwayzãã HusTlerããHustlerãã... If a circuit cannot fail, it will.ãã---ã þ Synchronet þ Havens BBS havens.synchronetbbs.orgã
-
From
Digital Man@VERT to
Nightfox on Fri Mar 15 15:11:47 2019
Re: MsgBase get_all_msg_headers issueã By: Nightfox to Digital Man on Fri Mar 15 2019 01:07 pmãã > Re: MsgBase get_all_msg_headers issueã > By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 amã >ã > >> !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:ã > >> Error: index reã > >> ad (1062) failedã >ã > >> I wasn't seeing that before. I've overwritten my binaries now, so I'mã > >> not sure offhand which binaries I had where I wasn't seeing thatã > >> error.ã >ã > >> Where it's failing in my script, I'm not calling that function twice,ã > >> it's right after opening the messagebase.ã >ã > DM> That's weird. Calling get_msg_headers() right after opening theã > DM> messagebase did not cause any error for me, nor should it have (theã > DM> file pointer would be at the beginning the file by default). I wrote aã > DM> simple little script to executing JSexec to 1. reproduce the error andã > DM> 2. confirm the fix.ã >ã > It seems that many of my messagebases had corruption in them (particularly,ã > most of them were FidoNet areas). I ran fixsmb on those and it seems to beã > resolved.ããI'll see if I can make it more tolerant of corrupted message bases.ãã > Another sub-board where it's having that error though is another one whereã > the messagebase files don't exist (possibly because nobody has posted inã > there yet?).ããIt shouldn't do that. What's the exact error message in that case?ãã digital manããThis Is Spinal Tap quote #36:ãBobbi Flekman: Money talks, and bullshit walks.ãNorco, CA WX: 70.5øF, 23.0% humidity, 12 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Fri Mar 15 16:47:08 2019
Re: MsgBase get_all_msg_headers issueã By: Digital Man to Nightfox on Fri Mar 15 2019 03:11 pmãã >> Another sub-board where it's having that error though is another oneã >> where the messagebase files don't exist (possibly because nobody hasã >> posted in there yet?).ãã DM> It shouldn't do that. What's the exact error message in that case?ããAfter checking again, I'm not sure that was the case. It looks like I haveãsome old messagebase files leftover after changing the internal code prefix ofãone of my message groups.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã