Skip to content

Too Many Open Files #7

Description

@beshaya

tagServer loses ability to access GPIO after a long period (months?) due to two many open files.

Error:

Error: EMFILE, too many open files '/sys/class/gpio/gpio18/direction'
    at Object.fs.openSync (fs.js:436:18)
    at GPIODirection (/home/pi/tagServer/lib/gpio.js:13:17)
    at on (/home/pi/tagServer/lib/gpio.js:37:5)
    at Object.blink (/home/pi/tagServer/lib/gpio.js:27:5)
    at app.get.admin (/home/pi/tagServer/tagServer.js:90:8)
    at Layer.handle [as handle_request] (/home/pi/tagServer/node_modules/expres/lib/router/layer.js:82:5)
    at next (/home/pi/tagServer/node_modules/express/lib/router/route.js:110:13
    at Route.dispatch (/home/pi/tagServer/node_modules/express/lib/router/routejs:91:3)
    at Layer.handle [as handle_request] (/home/pi/tagServer/node_modules/expres/lib/router/layer.js:82:5)
    at /home/pi/tagServer/node_modules/express/lib/router/index.js:267:22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions