• poll.bsy

    From pweck@21:3/113 to All on Saturday, October 19, 2024 19:01:52
    hi all

    i know there has been posts about issues with poll.bsy hanging. so instead of sticking with the most recent version, i backed down to the most recent stable version and still see poll.bsy hanging a few times a week!

    anyway, i am running pi 32 bit and wondering if anyone has a solution or work-around for the ongoing issue.

    thanks
    pweck

    ... Error, no Keyboard - Press F1 to Continue.

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)
  • From paulie420@21:2/150 to pweck on Saturday, October 19, 2024 18:02:45
    i know there has been posts about issues with poll.bsy hanging. so
    instead of sticking with the most recent version, i backed down to the most recent stable version and still see poll.bsy hanging a few times a week!

    anyway, i am running pi 32 bit and wondering if anyone has a solution or work-around for the ongoing issue.

    I wrote a script that *I* trust. Please review it for yourself, I could be an idiot and all...

    -----
    $ cat bsy.sh
    #!/usr/bin/env bash

    # Mystic BBS software .bsy file manager
    # At times, Mystic leaves a poll.bsy, mutil.bsy, or mis.bsy file when it should # NOT be present. This script checks if fidopoll or mutil is running; if neither
    # process is running (meaning those .bsy files should NOT be present) - it then # checks for any .bsy files that have been present for longer than 60 minutes
    # and removes them if found. This helps prevent stale or orphaned .bsy files
    # from causing issues with the system.

    # Set the working directory to the Mystic installation directory WDIR="/home/pi/mystic"

    # Change to the working directory
    cd $WDIR

    # Check if the 'mis poll' or 'mutil' is running.
    # The \ps command ensures that we use the system's ps command, bypassing any
    # aliases. If either are running, set output to "RUNNING", otherwise set it to # "NOT RUNNING".
    F=$(\ps -ef | grep "mis poll" | grep -v grep >/dev/null; [ $? -gt 0 ] && echo "NOT RUNNING" || echo "RUNNING")

    M=$(pidof mutil; [ $? -gt 0 ] && echo "NOT RUNNING" || echo "RUNNING")

    # Find all .bsy files related to Mystic that have been modified more than 60
    # minutes ago. The -mmin +60 option filters for files older than 60 minutes. B=$(find . -type f -name "*.bsy" -mmin +60 | grep echomail | wc -l)

    # Display the status of fidopoll and mutil processes and the number of old .bsy # files found.
    cat << EOF
    Fidopoll pidof result: $F
    Mutil pidof result: $M
    Number of BSY files (older than 60 min): $B
    EOF

    # If there are any .bsy files older than 60 minutes, and neither fidopoll nor i # mutil is running, it means these .bsy files are likely orphaned and can be
    # safely removed.
    if [[ $B -gt 0 && ($F == "NOT RUNNING" && $M == "NOT RUNNING") ]]; then
    # Inform the user that orphaned .bsy files are being cleared.
    echo -e "\nClearing $B orphaned BSY files (older than 60 min)..."

    # Loop through each .bsy file found and remove it.
    for F in $(find . -type f -name "*.bsy" -mmin +60 | grep echomail); do
    echo "Removing: $F"; rm $F
    done

    # Run the mailout process using mutil to ensure any queued mail is processed.
    ./mutil mailout

    # Force a fidopoll to make sure the system is synchronized with other nodes.
    ./mis poll force
    fi
    -----



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From niter3@21:1/199 to pweck on Sunday, October 20, 2024 06:45:27
    i know there has been posts about issues with poll.bsy hanging. so
    instead of sticking with the most recent version, i backed down to the most recent stable version and still see poll.bsy hanging a few times a week!

    I want to say I have a nightly script that clears out the bsy files.

    Maybe a script for now?

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)
  • From Bucko@21:4/131 to pweck on Sunday, October 20, 2024 08:04:49
    On 19 Oct 2024, pweck said the following...

    hi all

    i know there has been posts about issues with poll.bsy hanging. so
    instead of sticking with the most recent version, i backed down to the most recent stable version and still see poll.bsy hanging a few times a week!


    I know it goes against the proper way of doing things, but I added an event to kill poll.bsy hourly. It tries to remove and if it is there it removes it if not just gives an error 1.


    |11 Bucko |14- |06Wrong Number Family Of BBS' |07- |03www.wrgnbr.com

    ... Press any key to continue or any other key to quit...

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From pweck@21:3/113 to paulie420 on Sunday, October 20, 2024 12:46:12
    On 19 Oct 2024, paulie420 said the following...

    i know there has been posts about issues with poll.bsy hanging. so instead of sticking with the most recent version, i backed down to th most recent stable version and still see poll.bsy hanging a few times week!

    anyway, i am running pi 32 bit and wondering if anyone has a solution work-around for the ongoing issue.

    I wrote a script that *I* trust. Please review it for yourself, I could
    be an idiot and all...


    thanks paulie, i will try the script out. hopefully g00r00 will find a fix in the code for it.

    pweck

    -----
    $ cat bsy.sh
    #!/usr/bin/env bash

    # Mystic BBS software .bsy file manager
    # At times, Mystic leaves a poll.bsy, mutil.bsy, or mis.bsy file when it should # NOT be present. This script checks if fidopoll or mutil is running; if neither
    # process is running (meaning those .bsy files should NOT be present) -
    it then # checks for any .bsy files that have been present for longer
    than 60 minutes # and removes them if found. This helps prevent stale or orphaned .bsy files # from causing issues with the system.

    # Set the working directory to the Mystic installation directory WDIR="/home/pi/mystic"

    # Change to the working directory
    cd $WDIR

    # Check if the 'mis poll' or 'mutil' is running.
    # The \ps command ensures that we use the system's ps command, bypassing any # aliases. If either are running, set output to "RUNNING", otherwise set it to # "NOT RUNNING".
    F=$(\ps -ef | grep "mis poll" | grep -v grep >/dev/null; [ $? -gt 0 ] && echo "NOT RUNNING" || echo "RUNNING")

    M=$(pidof mutil; [ $? -gt 0 ] && echo "NOT RUNNING" || echo "RUNNING")

    # Find all .bsy files related to Mystic that have been modified more
    than 60 # minutes ago. The -mmin +60 option filters for files older than 60 minutes. B=$(find . -type f -name "*.bsy" -mmin +60 | grep echomail | wc -l)

    # Display the status of fidopoll and mutil processes and the number of
    old .bsy # files found.
    cat << EOF
    Fidopoll pidof result: $F
    Mutil pidof result: $M
    Number of BSY files (older than 60 min): $B
    EOF

    # If there are any .bsy files older than 60 minutes, and neither
    fidopoll nor i # mutil is running, it means these .bsy files are likely orphaned and can be # safely removed.
    if [[ $B -gt 0 && ($F == "NOT RUNNING" && $M == "NOT RUNNING") ]]; then
    # Inform the user that orphaned .bsy files are being cleared.
    echo -e "\nClearing $B orphaned BSY files (older than 60 min)..."

    # Loop through each .bsy file found and remove it.
    for F in $(find . -type f -name "*.bsy" -mmin +60 | grep echomail); do
    echo "Removing: $F"; rm $F
    done

    # Run the mailout process using mutil to ensure any queued mail is processed. ./mutil mailout

    # Force a fidopoll to make sure the system is synchronized with other nodes. ./mis poll force
    fi
    -----




    ... The person who snores the loudest will fall asleep first

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)
  • From pweck@21:3/113 to niter3 on Sunday, October 20, 2024 12:47:21
    i know there has been posts about issues with poll.bsy hanging. so instead of sticking with the most recent version, i backed down to th most recent stable version and still see poll.bsy hanging a few times week!

    I want to say I have a nightly script that clears out the bsy files.

    Maybe a script for now?


    yes that is what i suspect is needed for now. thanks
    pweck

    ... I'd love to help you out. Which way did you come in?

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)
  • From pweck@21:3/113 to Bucko on Sunday, October 20, 2024 12:48:54
    i know there has been posts about issues with poll.bsy hanging. so instead of sticking with the most recent version, i backed down to th most recent stable version and still see poll.bsy hanging a few times week!


    I know it goes against the proper way of doing things, but I added an event to kill poll.bsy hourly. It tries to remove and if it is there it removes it if not just gives an error 1.


    yes i fear that might do harm, but worth a try.
    thanks
    pweck

    ... THE fIRST sTEP iS tO tAKE oFF tHE cAPS lOCK

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)
  • From paulie420@21:2/150 to pweck on Sunday, October 20, 2024 16:04:17
    I know it goes against the proper way of doing things, but I added an event to kill poll.bsy hourly. It tries to remove and if it is there removes it if not just gives an error 1.

    yes i fear that might do harm, but worth a try.

    I agree that JUST removing all .bsy's, or even poll.bsy/mutil.bsy could be a bad idea - but I do some testing before deleting in the bsy.sh I posted;

    Make sure mutil isn't running
    Only delete poll.bsy/mutil.bsy if they've been a file for more than XX mins
    etc etc



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From MeaTLoTioN@21:1/158 to paulie420 on Monday, October 21, 2024 11:11:19
    On 19 Oct 2024, paulie420 said the following...

    I wrote a script that *I* trust. Please review it for yourself, I could
    be an idiot and all...

    That looks just like mine! =)

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ
    |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ

    ... Great minds think alike; small minds run together

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (21:1/158)
  • From MeaTLoTioN@21:1/158 to Paulie420 on Monday, October 21, 2024 11:14:47
    On 21 Oct 2024, MeaTLoTioN said the following...

    On 19 Oct 2024, paulie420 said the following...

    I wrote a script that *I* trust. Please review it for yourself, I cou be an idiot and all...

    That looks just like mine! =)

    https://github.com/christiansacks/chk_orph_bsy

    haha, even the variable names are the same :P

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ
    |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ

    ... Intelligence tests are biased toward the literate.

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (21:1/158)
  • From paulie420@21:2/150 to MeaTLoTioN on Monday, October 21, 2024 18:22:20
    I wrote a script that *I* trust. Please review it for yourself, I cou be an idiot and all...

    That looks just like mine! =)

    Really? I thought me and ChatGPT made it - but I would have linked to you if I remembered correctly. I often use your GitHub to FIX my mistakes, so... :P

    byte for byte? I must have made one w/ GPT and then found yours.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From pweck@21:3/113 to paulie420 on Tuesday, October 29, 2024 17:49:49
    I wrote a script that *I* trust. Please review it for yourself, I could
    be an idiot and all...

    hey,i haven't been able to get the script to work and i get a syntax error. is the script run from /mystic or somewhere else

    thanks
    pweck

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)
  • From paulie420@21:2/150 to pweck on Wednesday, October 30, 2024 18:45:50
    I wrote a script that *I* trust. Please review it for yourself, I cou be an idiot and all...

    hey,i haven't been able to get the script to work and i get a syntax error. is the script run from /mystic or somewhere else

    MeaTLoTioN mentioned that it is HIS script, so maybe grab it from his github to make sure there were no syntax errors from the Mystic MSG post???

    https://github.com/christiansacks/chk_orph_bsy

    I thought it was one I made w/ ChatGPT but was wrong. That being said, I can't say for sure it will work on your setup!!



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From Bucko@21:4/131 to paulie420 on Thursday, October 31, 2024 19:18:42
    On 30 Oct 2024, paulie420 said the following...


    MeaTLoTioN mentioned that it is HIS script, so maybe grab it from his github to make sure there were no syntax errors from the Mystic MSG post???

    https://github.com/christiansacks/chk_orph_bsy

    I need to grab it, I wasn't able to check in on this board last night and checked tonight to have about 30 files sitting in my ftn in directory because they didn't get tossed!!


    |11 Bucko |14- |06Wrong Number Family Of BBS' |07- |03www.wrgnbr.com

    ... Running Windows is better than washing them!

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From pweck@21:3/113 to paulie420 on Thursday, October 31, 2024 19:18:38
    MeaTLoTioN mentioned that it is HIS script, so maybe grab it from his github to make sure there were no syntax errors from the Mystic MSG post???

    https://github.com/christiansacks/chk_orph_bsy

    I thought it was one I made w/ ChatGPT but was wrong. That being said, I can't say for sure it will work on your setup!!


    thanks, i checked and both are the same so not sure why that line doesnt work. the search continues...
    pweck

    ... A program is used to turn data into error messages.

    --- Mystic BBS v1.12 A48 (Raspberry Pi/32)
    * Origin: Pweck's Retreat BBS (21:3/113)