Results 1 to 6 of 6

Thread: Squid cache dir error

  1. #1
    Join Date
    Feb 2012
    Beans
    33

    Squid cache dir error

    I've installed squid 3 on a ubuntu 32 bit server with all the default installs.

    Whenever I enable (uncomment) the default cache dir, squid doesn't want to start. I've checked that the actual directory does exist and I've run squid3 -z to initialise.

    What could be the issue?

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,496
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Squid cache dir error

    Does it have the right permissions? It probably needs to be owned by squid:squid. What do the logs report?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Feb 2012
    Beans
    33

    Re: Squid cache dir error

    Hi, I can't see any reason for not starting - just typed in sudo service squid3 start but checking the status shows stop/waiting.

  4. #4
    Join Date
    Feb 2012
    Beans
    33

    Re: Squid cache dir error

    How do I ensure the permissions is right?

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,496
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Squid cache dir error

    1) Did you look at /var/log/squid3/cache.log? What errors do you see?

    2) Navigate to wherever the cache is stored and use "ls -l" to see what the user and group ownerships are. The user and group that owns the cache directories need to match the values assigned to the "cache_effective_user" and "cache_effective_group" directives in squid.conf.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Feb 2012
    Beans
    33

    Re: Squid cache dir error

    Hi

    Thanks!!!! It seemed to be directory/file ownership! Got it to work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •