Too many open files

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
michap
Posts: 437
Joined: 26 Mar 2013 10:35
Contact:

Too many open files

Post by michap »

I have added an event shell script in the related js file:

way.devices[8].instances[0].commandClasses[48].data.level.bind(function() {
try {
system("sh /opt/notify.sh" + this.value );
} catch(err) {
debugPrint("Failed to execute command: " + err);
}

and after some time I will get in log:

Failed to execute command: Too many open files
Looking for the open files I see after not a very long time:

root@raspberrypi:/tmp# lsof | grep z-way-ser | grep -c FIFO
2635

full lines like this:
z-way-ser 26556 26560 root 158w FIFO 0,8 0t0 6266559 pipe
z-way-ser 26556 26560 root 159r FIFO 0,8 0t0 6267569 pipe

The shell script itself does nothing - all possible things hve removed...
notify.sh:
# any comment
exit

If there is anything inside it will be executed - this is not the problem.

I do not understand why here will be created such a lot of open pipes.
It seems that every call will open 5 pipes (and never close it).

Restarting Z-Way wil help, but after some time the same again.

Any idea? What here maybe wrong?
Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Any udates on this issue?

Post by Tiptop »

I wanted to know if there are any news about this issue as I am facing the same problems as reported by michap.
z-way-server seems to open but never close the mentioned FIFO pipes. I guess the system() function call is somewhat broken.

Are there workarounds for this issue or is an update fix already in the works?

Thanks in advance for any feedback!

Greets,
Stefan
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Fixed several days ago in our

Post by PoltoS »

Fixed several days ago in our test branch. Will become public in a week or so.
Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Any news about the release date of this fix?

Post by Tiptop »

I am waiting impatiently for this fix as this bug forces me to restart z-way-server around 2 times per day... :-)
Many thanks in advance!

Greets,
Stefan
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

4th evening or 5th morning if

Post by PoltoS »

4th evening or 5th morning if nothing critical is found during last tests.
Post Reply