PDA

View Full Version : "failed to open stream" messages


atoulis
19th September 2006, 00:26
I get the following messages when I log into Web-FTP using a specific user account in ISPConfig. The www folder in this account contains a large number of files and subfolders. If I remove 2/3 of the folders, then problem disappears. I was wondering if anyone knows why this happens.

Thank you.
Alex

Warning: include(/home/admispconfig/ispconfig/web//lib/module.inc.php) [function.include]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 240

Warning: include() [function.include]: Failed opening '/home/admispconfig/ispconfig/web//lib/module.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/lib/session.inc.php on line 240

till
19th September 2006, 11:15
I guess there is either a FTP or PHP timeout when the number of files and folders is too large. About how many files / folders we are talking approx?

atoulis
19th September 2006, 14:19
There were about 27636 files and 2408 folders when the error messages appeared. No messages with about 9870 files and 860 folders. Any suggestions which timout settings might help?

Thanks.
Alex

atoulis
20th September 2006, 00:06
The errors appear in about 30 seconds after logging in to Web-FTP. I increased the values for settings in ispconfig/php/php.ini (max_execution_time, max_input_time, memory_limit, post_max_size, upload_max_file_size), restarted, but this did not help. I am wondering if there is an FTP or Apache setting that may help? This is definitely seems related to the number of files and folders. No problems when using an FTP client like IE or Filezilla.
Alex

falko
20th September 2006, 17:52
Hm... Maybe you must increase the amount of allowed file descriptors on your system, as described here: http://www.netadmintools.com/art295.html

atoulis
20th September 2006, 18:38
Hi Falko,
I doubled the value for allowed file descriptors to 183500 and then tried 400000, but the warning messages continue to appear in the right window of Web-FTP. In my initial posting, I failed to mention the last message below which seems to indicate a possible problem with items retrieved in $webnodes? Thank you.

Warning: include(/home/admispconfig/ispconfig/web//lib/module.inc.php) [function.include]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 240

Warning: include() [function.include]: Failed opening '/home/admispconfig/ispconfig/web//lib/module.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/lib/session.inc.php on line 240

Warning: Invalid argument supplied for foreach() in /home/admispconfig/ispconfig/web/isp_file/frame_start.php on line 118