Menu

Error: Too many open files...

Help
Otmar
2010-01-21
2013-05-30
  • Otmar

    Otmar - 2010-01-21

    I got just following error message. Five minutes later I could login without problems. What could be the reason for this error?

    I use pgv 4.2.3

    outcut of config.php
    $MAX_VIEWS='50'; //- the maximum number of page views per xx seconds per session
    $MAX_VIEW_TIME='1'; //- the number of seconds in which the maximum number of views must not be reached
    $PGV_MEMORY_LIMIT='512M'; //- the maximum amount of memory that PGV should be allowed to consume


    ERROR 2:
    require_once(/var/www/vhosts/my_domain/httpdocs/pgv/modules/research_a
    ssistant/blocks/mytasks_block.php) : failed to open
    stream: Too many open files
    0 Error occurred on line 90 of file index.php in function require_once
    1 called from line 90 of file index.php

    Warning: fopen(./index/pgv-201001.log) : failed to open
    stream: Too many open files in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 303

    Warning: flock() expects parameter 1 to be resource, boolean given in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 304

    Warning: fputs(): supplied argument is not a valid stream resource in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 305

    Warning: flock() expects parameter 1 to be resource, boolean given in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 306

    Warning: fclose(): supplied argument is not a valid stream resource in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 307

    Warning:
    require_once(/var/www/vhosts/my_domain/httpdocs/pgv/modules/research_a
    ssistant/blocks/mytasks_block.php) : failed to open
    stream: Too many open files in
    /var/www/vhosts/my_domain/httpdocs/pgv/index.php on line 90

    Fatal error: require_once() : Failed opening required
    '/var/www/vhosts/my_domain/httpdocs/pgv/modules/research_assistant/blo
    cks/mytasks_block.php' (include_path='.:') in
    /var/www/vhosts/my_domain/httpdocs/pgv/index.php on line 90

    ERROR 2:
    require_once(/var/www/vhosts/my_domain/httpdocs/pgv/blocks/user_favori
    tes.php) : failed to open stream: Too many open files
    0 Error occurred on line 71 of file index.php in function require_once
    1 called from line 71 of file index.php

    Warning: fopen(./index/pgv-201001.log) : failed to open
    stream: Too many open files in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 303

    Warning: flock() expects parameter 1 to be resource, boolean given in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 304

    Warning: fputs(): supplied argument is not a valid stream resource in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 305

    Warning: flock() expects parameter 1 to be resource, boolean given in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 306

    Warning: fclose(): supplied argument is not a valid stream resource in
    /var/www/vhosts/my_domain/httpdocs/pgv/includes/authentication.php on
    line 307

    Warning:
    require_once(/var/www/vhosts/my_domain/httpdocs/pgv/blocks/user_favori
    tes.php) : failed to open stream: Too many open files
    in /var/www/vhosts/my_domain/httpdocs/pgv/index.php on line 71

    Fatal error: require_once() : Failed opening required
    '/var/www/vhosts/my_domain/httpdocs/pgv/blocks/user_favorites.php'
    (include_path='.:') in
    /var/www/vhosts/my_domain/httpdocs/pgv/index.php on line 71

     
  • Anonymous

    Anonymous - 2010-01-22

    That sounds like a limit your web host has imposed, one you (briefly) exceeded. You would need to ask them what it is and why.

    Once you hit that first error ("failed to open stream: Too many open files") everything else is just a consequence of it. Thats not a limit that PGV controls.

     
  • Gerry Kroll

    Gerry Kroll - 2010-01-22

    This PHP bug: http://bugs.php.net/bug.php?id=22416
    says that the problem is with the operating system.

    Do a Google search on:  php too many open files
    and you'll get quite a few hits, most of which say that the problem is with the operating system.

     

Log in to post a comment.