guyht / Glog

NodeJS and Git backed blogging engine
MIT License
52 stars 10 forks source link

too many open files #21

Closed hughht5 closed 11 years ago

hughht5 commented 11 years ago

Hi,

I get the following error when trying to start up my server. Do I literally just have too many blog posts? I have just over 500.

Error reading article. Err: Error: EMFILE, too many open files 'blog_repo/articles/1348072156000_654803.txt'

guyht commented 11 years ago

500 should be fine... not seen that error before, might be a bug. Are you able to reproduce it?

On 24 September 2012 02:58, Hugh Halford-Thompson notifications@github.comwrote:

Hi,

I get the following error when trying to start up my server. Do I literally just have too many blog posts? I have just over 500.

Error reading article. Err: Error: EMFILE, too many open files 'blog_repo/articles/1348072156000_654803.txt'

— Reply to this email directly or view it on GitHubhttps://github.com/guyht/Glog/issues/21.

hughht5 commented 11 years ago

Yeah - every time I try to start it.

guyht commented 11 years ago

Its possible that glog is not releasing file handlers after it has read the files, or that it is trying to read too many files asynchronously. Might be worth trying to load the files synchronously and releasing the file handler after each file has been loaded.

On 24 September 2012 09:27, Hugh Halford-Thompson notifications@github.comwrote:

Yeah - every time I try to start it.

— Reply to this email directly or view it on GitHubhttps://github.com/guyht/Glog/issues/21#issuecomment-8825031.

hughht5 commented 11 years ago

too many files open asynchronously I think is the issue. I'll try the sync version.

Mr Hugh Halford-Thompson +44 (0)7789231917 - UK mobile hughht5@gmail.com

http://www.techcrunchlite.com/

4 Quilting Court Garter Way London SE16 6XF UK

Le Grand Gennetay 49640 Morrannes France

On 24 September 2012 17:52, Guy Halford-Thompson notifications@github.comwrote:

Its possible that glog is not releasing file handlers after it has read the files, or that it is trying to read too many files asynchronously. Might be worth trying to load the files synchronously and releasing the file handler after each file has been loaded.

On 24 September 2012 09:27, Hugh Halford-Thompson notifications@github.comwrote:

Yeah - every time I try to start it.

— Reply to this email directly or view it on GitHub< https://github.com/guyht/Glog/issues/21#issuecomment-8825031>.

— Reply to this email directly or view it on GitHubhttps://github.com/guyht/Glog/issues/21#issuecomment-8825908.

hughht5 commented 11 years ago

sync worked... thanks