#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: mytto at openxtrem dot com Reported By: jhalla at legion dot org Status: Bogus Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.5 Assigned To: wez New Comment: definitely sure, i checked it out twice :) Unfortunately I don't have root access to my webspace but only FTP and Plesk admin... Shall I request these modifications to my provider? Can I check those values from a web browser anyhow? Thanks for you help Previous Comments: [2004-09-06 21:59:30] [EMAIL PROTECTED] Are you sure that you are using 4.3.5? If yes, then you have really to few file handles and this problem have nothing to do with PHP. SunONE recommends for the webserver to raise the hard limit of open files (must be done by root in /etc/system): set rlim_fd_max=8192 set rlim_fd_cur=1024 [2004-09-06 21:44:41] mytto at openxtrem dot com Unfortunately ih happens rather randomly on many websites I host, which are themselves instances of opensource solutions like Mambo, TikiWiki or dotProject. It's often a fopen() fonction call that raise a 'failed to create/open stream: Too many open files'. The trick is that when I refresh several times, it happens work back again... I'm quite puzzled :/ [2004-09-06 13:56:39] [EMAIL PROTECTED] In which context does that happen? Any function call? The Zend engine itsself has no further limitations. Only 3rd party modules can run into this limitation if they use stdio which is limited in Solaris 32bit (even 3rd party libs that are used by a PHP extension). Libs/Extensions that have problems (as I know): * sybase/sybase_ct (in the libs of Sybase, not PHP) -> use freetds here * imap extension (no further testing), depends on the imap library used * older MySQL libs, use newest one, not the bundled one In PHP itsself one of this are currently the mail() function because it uses stdio pipes to send data to sendmail. [2004-09-06 13:42:47] mytto at openxtrem dot com Though I'm running PHP 4.3.5, I encounter the same problem. Do you have another solution? [2003-10-11 12:02:11] [EMAIL PROTECTED] Use the newest version of PHP (4.3.3 or greater). There this limit is removed. Your comment to 64bit is not acceptable for iPlanet users because iPlanet is a 32 bit webserver which cannot run modules compiled in 64 bit. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22416 -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: mytto at openxtrem dot com Reported By: jhalla at legion dot org Status: Bogus Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.6 Assigned To: wez New Comment: Unfortunately ih happens rather randomly on many websites I host, which are themselves instances of opensource solutions like Mambo, TikiWiki or dotProject. It's often a fopen() fonction call that raise a 'failed to create/open stream: Too many open files'. The trick is that when I refresh several times, it happens work back again... I'm quite puzzled :/ Previous Comments: [2004-09-06 13:56:39] [EMAIL PROTECTED] In which context does that happen? Any function call? The Zend engine itsself has no further limitations. Only 3rd party modules can run into this limitation if they use stdio which is limited in Solaris 32bit (even 3rd party libs that are used by a PHP extension). Libs/Extensions that have problems (as I know): * sybase/sybase_ct (in the libs of Sybase, not PHP) -> use freetds here * imap extension (no further testing), depends on the imap library used * older MySQL libs, use newest one, not the bundled one In PHP itsself one of this are currently the mail() function because it uses stdio pipes to send data to sendmail. [2004-09-06 13:42:47] mytto at openxtrem dot com Though I'm running PHP 4.3.5, I encounter the same problem. Do you have another solution? [2003-10-11 12:02:11] [EMAIL PROTECTED] Use the newest version of PHP (4.3.3 or greater). There this limit is removed. Your comment to 64bit is not acceptable for iPlanet users because iPlanet is a 32 bit webserver which cannot run modules compiled in 64 bit. [2003-03-13 14:59:22] [EMAIL PROTECTED] The issue is that the (brain-dead) solaris libc has a hard limit of 256 FILE*s. It is not possible to fopen() more files than that (although open() works just fine). Duplicate of Bug #20274. [2003-02-25 09:15:03] jhalla at legion dot org Running: Solaris 8, iPlanet 6sp4 enterprise, PHP 4.3 All PHP pages get this error: Warning: Unknown(/web_sites/doc_root/public_html/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Unknown(): Failed opening '/web_sites/doc_root/public_html/index.php' for inclusion (include_path='.:/php/includes:/web_sites/doc_root:/home/web_sites/doc_root/public_html') in Unknown on line 0 Files which are basically just all HTML w/ no PHP code in them whatsoever, but w/ the .php extension, will also produce the above error. PHP 4.2.3 appears to be the only workable release for iPlanet 6 on Solaris - at least, according to feedback from other users on this Bug List, so we are going back to that release. This is a serious issue w/ PHP 4.3.0 and iPlanet, and needs to be addressed. Thank you. -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: mytto at openxtrem dot com Reported By: jhalla at legion dot org Status: Bogus Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 Assigned To: wez New Comment: Though I'm running PHP 4.3.5, I encounter the same problem. Do you have another solution? Previous Comments: [2003-10-11 12:02:11] [EMAIL PROTECTED] Use the newest version of PHP (4.3.3 or greater). There this limit is removed. Your comment to 64bit is not acceptable for iPlanet users because iPlanet is a 32 bit webserver which cannot run modules compiled in 64 bit. [2003-03-13 14:59:22] [EMAIL PROTECTED] The issue is that the (brain-dead) solaris libc has a hard limit of 256 FILE*s. It is not possible to fopen() more files than that (although open() works just fine). Duplicate of Bug #20274. [2003-02-25 09:15:03] jhalla at legion dot org Running: Solaris 8, iPlanet 6sp4 enterprise, PHP 4.3 All PHP pages get this error: Warning: Unknown(/web_sites/doc_root/public_html/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Unknown(): Failed opening '/web_sites/doc_root/public_html/index.php' for inclusion (include_path='.:/php/includes:/web_sites/doc_root:/home/web_sites/doc_root/public_html') in Unknown on line 0 Files which are basically just all HTML w/ no PHP code in them whatsoever, but w/ the .php extension, will also produce the above error. PHP 4.2.3 appears to be the only workable release for iPlanet 6 on Solaris - at least, according to feedback from other users on this Bug List, so we are going back to that release. This is a serious issue w/ PHP 4.3.0 and iPlanet, and needs to be addressed. Thank you. -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: jmorris at sunflower dot com Reported By: jhalla at legion dot org Status: Bogus Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 Assigned To: wez New Comment: While the 32-bit libc stdio is limited to 256, the 64-bit libc stdio is not. Try compiling in 64-bit mode (gcc -m64). Test programs indicate that the limit is removed in 64-bit programs, I have not yet built apache and php in 64-bit mode. http://access1.sun.com/technotes/01406.html Previous Comments: [2003-04-09 17:28:00] [EMAIL PROTECTED] Let me reiterate the cause of the problem: **Solaris libc stdio is broken** This is not really a bug in PHP. The only workaround for PHP < 5 is to link against an alternative stdio library, such as the AT&T sfio, although some people are reporting problems compiling that on their Solaris systems. PHP 5 will (and does) avoid stdio like the plague, so it does not fall victim to this Solaris deficiency. The changes required to make PHP 4.3.x do the same are too big to introduce into the stable branch (they require some potentially unstable changes to the Zend Engine). This report is marked as bogus as it is a duplicate of another report that we found more useful for bug-fixing purposes. [2003-04-09 16:51:51] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. , [2003-04-09 15:11:36] jhalla at legion dot org "No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you." Sniper, the bug isn't resolved... PHP 4.3x still does not run on iPlanet/Solaris. [2003-04-09 15:09:58] fillmore at nrcan dot gcc dot a We have been having these problems also. I just installed php-4.3.2RC1.tar.gz to see if it helps, and the site started failing again within a half hour. I doubt that it's an open file limit in libc, because the site had only 14 hits on .php URLs before it started failing. Also, only two scripts were called, and they don't open any files. Here's the code in the most complicated of the two scripts: ' .substr($val,strrpos($val,"*")+1).' '; } ?> - Bob Fillmore [2003-03-13 14:59:22] [EMAIL PROTECTED] The issue is that the (brain-dead) solaris libc has a hard limit of 256 FILE*s. It is not possible to fopen() more files than that (although open() works just fine). Duplicate of Bug #20274. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22416 -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: fowler at csufresno dot edu Reported By: jhalla at legion dot org Status: No Feedback Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 New Comment: Still seeing it with php4-STABLE-200303121630. Previous Comments: [2003-03-13 12:16:09] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-03-07 19:55:47] [EMAIL PROTECTED] jflemer: Thats my guess. You could try running the "ab" (apache bench) tool to stress test the dev server and see if the fault occurs. [2003-03-07 11:34:39] [EMAIL PROTECTED] Wez, I've just tried a recent snapshot (stable 200303051430), and I no longer see this warning. However, without deploying this on a production server, I cannot get the same hit rate, and the same variation on php script execution. Do you think that this was just a symptom of Bug #21713 (leaky descriptors on remote includes)? [2003-03-05 18:20:11] fowler at csufresno dot edu 4.3.2-dev (stable latest snap) Still see it. "failed to open stream: Too many open files in Unknown on line 0" Anyone run pstack on the httpd, yet? [2003-03-05 08:16:28] [EMAIL PROTECTED] *please* try the stable snapshot. 4.3.1 contains *NO* bug fixes over 4.3.0 (as it states in the NEWS). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22416 -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: fowler at csufresno dot edu Reported By: jhalla at legion dot org Status: Feedback Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 New Comment: 4.3.2-dev (stable latest snap) Still see it. "failed to open stream: Too many open files in Unknown on line 0" Anyone run pstack on the httpd, yet? Previous Comments: [2003-03-05 08:16:28] [EMAIL PROTECTED] *please* try the stable snapshot. 4.3.1 contains *NO* bug fixes over 4.3.0 (as it states in the NEWS). [2003-03-05 07:46:53] jhalla at legion dot org We have not tested PHP 4.3.1 on Solaris with Apache; only iPlanet/Sun ONE. Perhaps this issue is not 'iPlanet related' but 'Solaris related' ? [2003-03-04 20:34:06] [EMAIL PROTECTED] I am seeing this problem as well, but with Apache. OS: Solaris 8 SAPI: Apache 1.3.27 PHP: 4.3.1 (module) './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-versioning' '--with-mysql=/usr/local/mysql' '--with-oci8=/usr/local/oracle/product/8.0.6' '--enable-track-vars' '--enable-safe-mode' '--with-zlib=/usr/local' '--with-ldap=/usr/local' '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-gd=/usr/local' '--with-ccvs=/usr/local/ccvs' '--with-mcal=/usr/local/mcal' '--enable-dbase' '--with-freetype-dir=/usr/local' '--with-mcrypt=/usr/local' '--enable-gd-native-ttf' '--with-openssl' [2003-02-27 10:56:59] webmaster at telearmenia dot net dot co Download and install the CVS recommended by you but the mistake repeats Warning: Unknown(/path/to/doc-root/index.php): failed to open stream: Too many open files in Unknown on line 0 Warning: (null)() [function.include]: Failed opening '/path/to/doc-root/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 Some suggestion [2003-02-26 15:35:54] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Could you please clarify on whether or not you've found this bug in LATEST stable CVS avaliable for download from the URLs above? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22416 -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: webmaster at telearmenia dot net dot co Reported By: jhalla at legion dot org Status: Feedback Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 New Comment: Download and install the CVS recommended by you but the mistake repeats Warning: Unknown(/path/to/doc-root/index.php): failed to open stream: Too many open files in Unknown on line 0 Warning: (null)() [function.include]: Failed opening '/path/to/doc-root/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 Some suggestion Previous Comments: [2003-02-26 15:35:54] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Could you please clarify on whether or not you've found this bug in LATEST stable CVS avaliable for download from the URLs above? [2003-02-26 13:29:24] webmaster at telearmenia dot net dot co We are running php4.3.0 with Sun One Web Server 6.0sp5 on Solaris 8. It was compiled with gcc 2.95.3 using './configure' '--with-nsapi=/path/to/iplanet/web/server' It compiled successfully and runs fine for a few hours or minutes but accessing pages soon reports the following: == Warning: Unknown(/path/to/doc-root/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Failed opening '/path/to/doc-root/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 == We increased our kernel file descriptor limit, but shows the same mistake. A quick fix is to setup a cron job to restart the web server hourly,but this is not desired. Please if you can provide information with since this problem solves Thanks [2003-02-26 13:21:20] jhalla at legion dot org We have found that there is no resolution to this issue of PHPv4.3 running on Solaris 8 or 9, with Sun One Web Server (formerly iPlanet; we have tried w/ both SP4 and SP5). The issue _seems_ like a memory leak, but that is just our assessment based on observation under a limited number of server environments. Our only course of action to resolve this issue at this time has been to downgrade to PHP v4.2.2, which is the last known version of PHP to both install correctly (we had issues installing v4.2.3) as well as to have no problems running. With any luck, a patched version of PHP v4.3 will be released that resolves this issue for Solaris/SunOne users. Thank you. - Jason Halla [EMAIL PROTECTED] [2003-02-25 10:01:49] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-02-25 09:15:03] jhalla at legion dot org Running: Solaris 8, iPlanet 6sp4 enterprise, PHP 4.3 All PHP pages get this error: Warning: Unknown(/web_sites/doc_root/public_html/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Unknown(): Failed opening '/web_sites/doc_root/public_html/index.php' for inclusion (include_path='.:/php/includes:/web_sites/doc_root:/home/web_sites/doc_root/public_html') in Unknown on line 0 Files which are basically just all HTML w/ no PHP code in them whatsoever, but w/ the .php extension, will also produce the above error. PHP 4.2.3 appears to be the only workable release for iPlanet 6 on Solaris - at least, according to feedback from other users on this Bug List, so we are going back to that release. This is a serious issue w/ PHP 4.3.0 and iPlanet, and needs to be addressed. Thank you. -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: webmaster at telearmenia dot net dot co Reported By: jhalla at legion dot org Status: Open Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 New Comment: We are running php4.3.0 with Sun One Web Server 6.0sp5 on Solaris 8. It was compiled with gcc 2.95.3 using './configure' '--with-nsapi=/path/to/iplanet/web/server' It compiled successfully and runs fine for a few hours or minutes but accessing pages soon reports the following: == Warning: Unknown(/path/to/doc-root/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Failed opening '/path/to/doc-root/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 == We increased our kernel file descriptor limit, but shows the same mistake. A quick fix is to setup a cron job to restart the web server hourly,but this is not desired. Please if you can provide information with since this problem solves Thanks Previous Comments: [2003-02-26 13:21:20] jhalla at legion dot org We have found that there is no resolution to this issue of PHPv4.3 running on Solaris 8 or 9, with Sun One Web Server (formerly iPlanet; we have tried w/ both SP4 and SP5). The issue _seems_ like a memory leak, but that is just our assessment based on observation under a limited number of server environments. Our only course of action to resolve this issue at this time has been to downgrade to PHP v4.2.2, which is the last known version of PHP to both install correctly (we had issues installing v4.2.3) as well as to have no problems running. With any luck, a patched version of PHP v4.3 will be released that resolves this issue for Solaris/SunOne users. Thank you. - Jason Halla [EMAIL PROTECTED] [2003-02-25 10:01:49] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-02-25 09:15:03] jhalla at legion dot org Running: Solaris 8, iPlanet 6sp4 enterprise, PHP 4.3 All PHP pages get this error: Warning: Unknown(/web_sites/doc_root/public_html/index.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Unknown(): Failed opening '/web_sites/doc_root/public_html/index.php' for inclusion (include_path='.:/php/includes:/web_sites/doc_root:/home/web_sites/doc_root/public_html') in Unknown on line 0 Files which are basically just all HTML w/ no PHP code in them whatsoever, but w/ the .php extension, will also produce the above error. PHP 4.2.3 appears to be the only workable release for iPlanet 6 on Solaris - at least, according to feedback from other users on this Bug List, so we are going back to that release. This is a serious issue w/ PHP 4.3.0 and iPlanet, and needs to be addressed. Thank you. -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1