Repeated crashes with "Out of pseudo file handles. See

FireFly Media Server Firefly Media Server Forums Firefly Media Server Nightlies Feedback Repeated crashes with "Out of pseudo file handles. See

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #701
    HorizonX
    Guest

    I started using firefly about 3 weeks ago (Win32 nightlies on XP SP2) and have been getting the nightlies as they come out, and I’ve had a problem with this error for nearly the entire time I’ve been running the server. I think I’ve found the culprit by upping the debug level and looking at the logs — any user running the program “myTunes Redux” seems to open a MASSIVE amount of connections to my machine when copying a signfigant amount of music. I’m running svn-1400 atm, and the server has exited unexpectedly with “Out of pseudo file handles. See ya” 16 times already this week. >_< edit: I took a look at the traffic using a bw monitor… when I looked firefly had what looked like 100s(!) of sockets open to only 3 IPs! Is this a documented problem? :/ edit again: I discovered all the notices it puts in the event log at higher debug levels. Every single time, the error occurred after opening Socket #511. I guess something about trying to open socket #512 is what is causing it to crash. Could you code in a fix for this behaivor? I’m sure it’s due to sloppy coding in myTunes redux, but still… >_>

    #6943
    rpedde
    Participant

    @HorizonX wrote:

    edit: I took a look at the traffic using a bw monitor… when I looked firefly had what looked like 100s(!) of sockets open to only 3 IPs! Is this a documented problem? :/

    Not really… but yeah, there are only so many sockets it can have open. There must be something going on where the sockets aren’t getting closed.

    edit again: I discovered all the notices it puts in the event log at higher debug levels. Every single time, the error occurred after opening Socket #511. I guess something about trying to open socket #512 is what is causing it to crash. Could you code in a fix for this behaivor? I’m sure it’s due to sloppy coding in myTunes redux, but still… >_>

    Won’t fix it. The underlying problem is I’m not closing some sockets. Unless you have a *ton* of users connecting to this server. Is that the case? If so, I could crank up the socket limit, but I never figured there would be that many connections to the server simultaneously.

    #6944
    HorizonX
    Guest

    There’s not a LOT of users (maybe 1-4 a time, something like 5-15 unique in a day), the main problem is that there can be in excess of 200 sockets open to a single IP. I don’t think increasing the socket limit would fix it, just delay the crash a little. I could get you any information on the problem you want since I’ll have the crash around every hour when someone uses myTunes redux to get music from my server, and somewhat infrequently otherwise. I set the service up to restart itself and the crash happened 16 times today >_>. I think the problem is something like when a client fails to open a proper connection, a socket is left open on my machine for some reason and it adds up since they never go away. :/

    #6945
    rpedde
    Participant

    @HorizonX wrote:

    There’s not a LOT of users (maybe 1-4 a time, something like 5-15 unique in a day), the main problem is that there can be in excess of 200 sockets open to a single IP. I don’t think increasing the socket limit would fix it, just delay the crash a little. I could get you any information on the problem you want since I’ll have the crash around every hour when someone uses myTunes redux to get music from my server, and somewhat infrequently otherwise. I set the service up to restart itself and the crash happened 16 times today >_>. I think the problem is something like when a client fails to open a proper connection, a socket is left open on my machine for some reason and it adds up since they never go away. :/

    Yeah. I’m just wondering what it is that mtunesredux is doing that differently than iTunes that I’m not closing the socket on my end.

    I’ll look into it though — I have mytunesredux installed here somewhere.

    — Ron

    #6946
    HorizonX
    Guest

    I got some info that might be useful out of this week’s logs (debug lvl 7)… it seems the following 2 messages are popping up a lot:

    “Write error: An existing connection was forcibly closed by the remote host.”

    and

    “Thread xxx: could not read: An existing connection was forcibly closed by the remote host.”

    I can also tell you that myTunes seems to be able to attempt connections VERY quickly so it wouldn’t surprise me if that had something to do with it. 😯

    #6947
    dantidote
    Participant

    Whatever this is, I’m getting it now too. All the sockets open at the same time. Weird. This happened all the way back on 1586 and is still a problem for me on the latest 1676.

    2007-10-18 22:05:08 (688f3533): Socket 504 (1016): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 505 (1017): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 506 (1018): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 507 (1019): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 508 (1020): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 509 (1021): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 510 (1022): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 511 (1023): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Out of pseudo file handles. See ya
    2007-10-18 22:05:08: Aborting

    #6948
    rpedde
    Participant

    @dantidote wrote:

    Whatever this is, I’m getting it now too. All the sockets open at the same time. Weird. This happened all the way back on 1586 and is still a problem for me on the latest 1676.

    2007-10-18 22:05:08 (688f3533): Socket 504 (1016): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 505 (1017): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 506 (1018): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 507 (1019): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 508 (1020): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 509 (1021): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 510 (1022): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Socket 511 (1023): State Open/Listening
    2007-10-18 22:05:08 (688f3533): Out of pseudo file handles. See ya
    2007-10-18 22:05:08: Aborting

    Whaaa? Since > 1589, the pseudo handle thing isn’t used anymore. The code isn’t even in there.

    Are you *sure* you are running a new version?

    #6949
    dantidote
    Participant

    whoops, ha yep you’re right. I’ve been switching back and forth between the latest nightlies and 1586. forgot which one was installed.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Nightlies Feedback’ is closed to new topics and replies.