Coder Social home page Coder Social logo

Cache about squid-windows HOT 21 CLOSED

diladele avatar diladele commented on June 6, 2024
Cache

from squid-windows.

Comments (21)

nebadom avatar nebadom commented on June 6, 2024 1

I was having a lot of trouble configuring the cache: squid -z returned errors in the cache log. No matter how much I follow the steps to the letter, the squid -z was reluctant to initialize the cache folders.

Then I read about the %PATH%: So I added "C:\Squid\bin" to the %PATH% (please, for the love of Kthulu do not REPLACE the existing PATH value, just add the new string).

And then I attempted squid -z IN the cache folder and voilà! it worked!!!

So I would consider %PATH% > add > "C:\Squid\bin" to be the answer I was looking for.

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

Hi ray73864,

did you precisely follow the steps described here?
http://docs.diladele.com/faq/squid/cache_squid_windows.html

Thank you!
-e

from squid-windows.

ray73864 avatar ray73864 commented on June 6, 2024

I did, yes. Followed it exactly several times and not once did it work for
me. This is on Windows Server 2012 R2.

On Saturday, June 20, 2015, ea-at-diladele-com [email protected]
wrote:

Hi ray73864,

did you precisely follow the steps described here?
http://docs.diladele.com/faq/squid/cache_squid_windows.html

Thank you!
-e


Reply to this email directly or view it on GitHub
#40 (comment)
.

from squid-windows.

RostorX avatar RostorX commented on June 6, 2024

Stop the service.
Write in your conf:
cache_dir aufs c:/squidcachedir/cache 3000 16 256

Then in the squid terminal: squid -z
Restart the service.

This works for me on Win2008R2

from squid-windows.

ray73864 avatar ray73864 commented on June 6, 2024

That's basically what I have on my Win2k12R2 server, but it isn't working
as it continously tells me in the logfile that I need to run 'squid -z'
even though I have several times, and when I look in my squid cachedir,
there isn't any directories in there that should have been created, such as
00, 01, etc...

On 26 June 2015 at 17:49, RostorX [email protected] wrote:

cache_dir aufs c:/squidcachedir/cache 3000 16 256

This works on Win2008R2


Reply to this email directly or view it on GitHub
#40 (comment)
.

from squid-windows.

RostorX avatar RostorX commented on June 6, 2024

Did you give EVERYONE rights to cachedir folder ?

from squid-windows.

ray73864 avatar ray73864 commented on June 6, 2024

I would have to check.

If that is what the issue is then I would respectfully ask that the wiki be
updated to reflect that. I made the assumption (possibly a faulty one at
that) that because I was logged in as the administrator and running 'squid
-z' as the administrator when I open up the command prompt (yes, I am doing
'Command Prompt (Admin)' when I right click on the start button) that it
would use the administrator privs to set up the cachedir.

On 26 June 2015 at 18:06, RostorX [email protected] wrote:

Did you give EVERYONE rights to cachedir folder ?


Reply to this email directly or view it on GitHub
#40 (comment)
.

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

Hi ray,

Did you have a chance to check RostorX's suggestion? Did it solve you problem?
Thanks!
-e

from squid-windows.

ray73864 avatar ray73864 commented on June 6, 2024

I won't be able to try it until later on today when I can get to the
primary school I work at to try it out.

Will come back with a yay or nay then.

On 27 June 2015 at 06:46, ea-at-diladele-com [email protected]
wrote:

Hi ray,

Did you have a chance to check RostorX's suggestion? Did it solve you
problem?
Thanks!
-e


Reply to this email directly or view it on GitHub
#40 (comment)
.

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

did it work? thank you!

from squid-windows.

ra-at-diladele-com avatar ra-at-diladele-com commented on June 6, 2024

3.5.6 is on site - squid.diladele.com

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

The symptoms are you are not running the "squid -z" from the squid terminal (should be on the desktop after installation), but a simple cmd.exe

If that is the case , please make sure C:\Squid\bin is in the %PATH% variable

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

I would appreciate if you could confirm. Thank you!

from squid-windows.

ray73864 avatar ray73864 commented on June 6, 2024

That appears to have worked on my test machine, though I won't be able to test it on site for a couple of weeks as the site (in this case a primary school) is locked up due to school holidays.

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

Thank you! I will close this issue for now, if you still bump into any troubles drop an email at support @ diladele.com or open a new issue.

from squid-windows.

mkraju avatar mkraju commented on June 6, 2024

Iam also facing same problem.
squid conf -- cache_dir ufs c:/squid/var/cache/squid/cache 100 16 256
when i run squid -z getting error "assertion failed: Kid.cc:45: "cpid > 0" in cache.log
hence its not creating swap folders in cache directory
gave full rights for everyone on cache folder

from squid-windows.

ea-at-diladele-com avatar ea-at-diladele-com commented on June 6, 2024

Please make sure you precisely follow the steps described here
http://docs.diladele.com/faq/squid/cache_squid_windows.html

You have to perform "squid -z" in the Squid Terminal window that the squid installer creates on your desktop.

from squid-windows.

mkraju avatar mkraju commented on June 6, 2024

YES, Its working now.
Thanks.

from squid-windows.

ra-at-diladele-com avatar ra-at-diladele-com commented on June 6, 2024

Ok clear. Thanks a lot for your research!

from squid-windows.

DRSDavidSoft avatar DRSDavidSoft commented on June 6, 2024

@ra-at-diladele-com Hopefully, the part where Squid\bin needs to be in %PATH% should be documented! I usually don't use the shortcuts created, and just cd into the squid bin dir. The assertion failed: Kid.cc:45: "cpid > 0" gave me a headache, where it just needed to be in path.

tl;dr

  • cd C:\Squid\bin
  • path %cd%;%path%
  • squid.exe -z

That's it :)

from squid-windows.

hwaarl avatar hwaarl commented on June 6, 2024

Also: please note that you must install squid onto an unencrypted drive/partition. Mine had Bitlocker activated and it took me hours to realise. Uninstall, re-install on a different drive with the same conf - fixed

from squid-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.