X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "jameshanley39 AT yahoo DOT co DOT uk" Subject: Re: cygwin and squid - RLIMIT_NOFILE Date: Tue, 4 Dec 2007 12:16:26 +0000 (UTC) Lines: 76 Message-ID: References: <47548C3A DOT 4070705 AT acm DOT org> <4754F7F2 DOT 5090208 AT sh DOT cvut DOT cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: XanaNews/1.18.1.6 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Václav Haisman wrote: > > > jameshanley39 AT yahoo DOT co DOT uk wrote, On 4.12.2007 4:40: > > David Rothenberger wrote: > > > >> On 12/3/2007 2:51 PM, jameshanley39 AT yahoo DOT co DOT uk wrote: > >> [snip] > >>> $ squid -N > >>> FATAL: setrlimit: RLIMIT_NOFILE: (24) Too many open files > > > > > >>> This is a classic error described a few times on the mailing list. > > > > > >>> So.. > >>> has anybody managed this?!!! > >>> and how?! > >> Is there any reason not to use the Windows-native squid > binaries[1]? >> I thought about trying to package squid-2.6 for > Cygwin because of the >> problems you mention, but when I noticed the > Windows-native binaries >> I decided it wasn't worth the effort. > > > > >> [1] http://www.acmeconsulting.it/SquidNT/ > > > > > > I did try the windows port, it did not work either. > > here is a direct link to the download page > > http://squid.acmeconsulting.it/download/dl-squid.html > > > > I tried with 2.6 stable17, and 2.6 stable16. Same result. > > > > first time I got an error > > C:\squid\sbin>squid > > FATAL: Unable to open configuration file: c:/squid/etc/squid.conf: > > > > > > ( > > well, > > there is no such file. There was squid.conf.default, so I did > > copy squid.conf.default squid.conf > > ) > > > > > > I ran it again and got a different error > > C:\squid\sbin>squid > > FATAL: cache_dir c:/squid/var/cache: (2) No such file or directory > > Squid Cache (Version 2.6.STABLE17): Terminated abnormally. > > CPU Usage: 0.030 seconds = 0.010 user + 0.020 sys > > Maximum Resident Size: 3944 KB > > Page faults with physical i/o: 996 > > > > > > I tried it on another machine, since on this machine (maybe a bad > > win xp) I have been able to run servers, but have had problems when > > installing a server as a service, like openssh runs ./sshd but not > > net start sshd. Anyhow, it did not work on the computer with the > > fully working win xp either. same errors > > > I think that you need to RTFM. IIRC you first have to create your swap > directories using the -z option. I just want to emphasise, that your response only regarding the windows port.. I will look into that, I see it has install instructions on that site. I had not researched the windows port much. (which is one reason why I did not mention the windows port as a problem in my original post) But regarding the cygwin squid thing, I researched it.. Read all over the mailing list, and was dealing with a classic error that had solutions that were meant to work. -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/