• Too many open files?

    From Al@1:103/705 to Digital Man on Thu Jun 14 02:27:16 2018
    For the last couple or three days I have been getting errors like "too many open files".

    I've picked a few entries from my data/error.log below.

    Wed Jun 13 2018 11:14 am trmb.synchro.net
    Node 0 !ERROR 24 (Too many open files) in pack_rep.cpp line 120 (pack_rep) open ing "/sbbs/data/mail" access=4294967096 info=smb_open_fp 24 'Too many open file s' opening /sbbs/data/mail.shd

    Wed Jun 13 2018 11:40 am trmb.synchro.net
    Timed event: AVAT-IN returned -1

    Wed Jun 13 2018 11:40 am trmb.synchro.net
    Timed event: AVAT-OUT returned -1

    Wed Jun 13 2018 08:06 pm trmb.synchro.net
    mail 0585 !SMTP ERROR -200 (smb_open_fp 24 'Too many open files' opening /sbbs/ data/mail.sid) saving message

    Wed Jun 13 2018 10:28 pm trmb.synchro.net
    srvc 1012 BINKP !JavaScript FAILED to compile script (/sbbs/exec/binkit.js)

    Wed Jun 13 2018 11:36 pm trmb.synchro.net
    srvc 1012 BINKP !JavaScript : uncaught exception: Unable to open '/sbbs/ctrl/sb bsecho.ini'

    Any idea what these errors mean or what I can do to stop them?

    Currently my data/error.log is 16K.

    Ttyl :-),
    Al


    ... COMMAND: A suggestion made to a computer.

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Al on Thu Jun 14 13:35:15 2018
    Re: Too many open files?
    By: Al to Digital Man on Thu Jun 14 2018 02:27 am

    For the last couple or three days I have been getting errors like "too many open files".

    Here's a nice little FAQ on that subject: https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

    digital man

    This Is Spinal Tap quote #30:
    Big bottom, big bottom / Talk about mud flaps, my girl's got 'em!
    Norco, CA WX: 85.3oF, 42.0% humidity, 8 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.05-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Jun 15 01:39:03 2018
    Re: Too many open files?
    By: Digital Man to Al on Thu Jun 14 2018 01:35 pm

    For the last couple or three days I have been getting errors like "too
    many open files".

    Here's a nice little FAQ on that subject: https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-fi les/

    Using the example commands from that page and running "cat /proc/sys/fs/files-max" I get 324282. I think that is enough but I could try upping that value and see what I get. The only thing running on the BBS machine is exec/sbbs and sometimes syncterm in another terminal.

    When I got home tonight there were multiple inbound files and mail packets/bundles in my inbound but sbbsecho is not being run. I'm not sure if fidoin.now is not being written or read.

    I also looked in htop and saw one of the exec/sbbs entries is sitting at 100% cpu usage so I killed exec/sbbs and started up the BBS again. All is normal now I just need to figure out why one of the exec/sbbs processes runs at 100% like that.

    Ttyl :-),
    Al


    ... Don't worry, I'm go*ng t* b*ckup t*d*-|!&%#~%

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Al on Fri Jun 15 12:26:24 2018
    Re: Too many open files?
    By: Al to Digital Man on Fri Jun 15 2018 01:39 am

    Re: Too many open files?
    By: Digital Man to Al on Thu Jun 14 2018 01:35 pm

    For the last couple or three days I have been getting errors like "too
    many open files".

    Here's a nice little FAQ on that subject: https://www.cyberciti.biz/faq /linux-increase-the-maximum-number-of-open-fi les/

    Using the example commands from that page and running "cat /proc/sys/fs/files-max" I get 324282.

    What does "ulimit -n" report (run as the user that you run sbbs as)?

    I also looked in htop and saw one of the exec/sbbs entries is sitting at 100% cpu usage so I killed exec/sbbs and started up the BBS again. All is normal now I just need to figure out why one of the exec/sbbs processes runs at 100% like that.

    Which one?

    digital man

    Synchronet "Real Fact" #69:
    You can purchase the BBS Documentary DVD set at http://bbsdocumentary.com/order/
    Norco, CA WX: 84.1oF, 37.0% humidity, 8 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.05-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:103/705 to Digital Man on Fri Jun 15 13:19:38 2018
    Re: Too many open files?
    By: Digital Man to Al on Fri Jun 15 2018 12:26 pm

    What does "ulimit -n" report (run as the user that you run sbbs as)?

    ulimit -Sn says 1024 and -Hn says 4096.

    I can't adjust that using the examples on that page. I'll have to figure out how to increase that on slackware.

    I also looked in htop and saw one of the exec/sbbs entries is sitting
    at 100% cpu usage so I killed exec/sbbs and started up the BBS again.
    All is normal now I just need to figure out why one of the exec/sbbs
    processes runs at 100% like that.

    Which one?

    I had installed ecwebv4 a short time ago and the web site has been busier than usual, bots I think. I've switched back to the runemaster interface and seem to be back to normal here, I think. Looking at htop everything seems to be working well.

    I'm not sure what the process was that was stuck at 100% but I think if I can raise those limits that would probably fix it. I'll be experimenting over the weekend.

    Ttyl :-),
    Al


    ... No amount of planning will replace dumb luck

    ---
    * Synchronet * The Rusty MailBox - Penticton, BC Canada
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)