Squid cannot run with Grase

217 views
Skip to first unread message

Karotu Tannang

unread,
Dec 8, 2014, 7:21:03 PM12/8/14
to grase-...@grasehotspot.org
Hi,

I am using Grase on Ubuntu 12.04, not the latest on nightly..

I would like to use Squid so we can cache some updates and others..

I noticed that you would have to place a squid.conf in
/etc/squid3/grase.d folder?
I have copied the already prepared squid.conf.grase into this folder
then renamed it to squid.conf.

Upon running I am gtting from /var/log/syslog the following about Squid3..
squid3: WARNING: can't include /etc/squid3/grase.
d/squid.conf: includes are nested too deeply (>16)!

but I cannot see any "include" directives in both the config files.
Can someone advise how we can make this work please?

Kind regards,

Karotu
--
----------------------------------
Karotu Tannang
Nauoi IT Services
Behind BOK, Betio / PO Box 46, Bairiki
Tarawa, KIRIBATI
Mobile: +686 50707
Like Us on Facebook: http://www.facebook.com/nauoionline

Timothy White

unread,
Dec 10, 2014, 5:15:55 PM12/10/14
to grase-...@grasehotspot.org
The included squid.conf.grase file needs to be left where it was. Squid by default is enabled with the hotspot (the grase-conf-squid3 package does that).
What isn't enabled is caching. You need to create a new file in /etc/squid3/grase.d/ with a .conf extension, and add to that file the directives needed to enable caching.

Generally something like:

cache_dir ufs /var/spool/squid3 100 16 256

You'll want to research the cache_dir option and adjust it to be relevant for you.


Tim

--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
---
You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspo...@grasehotspot.org.
To post to this group, send email to grase-...@grasehotspot.org.
Visit this group at http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
To view this discussion on the web visit https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CA%2BbonMgu%3D849XWCMkh_82zi9CG%2BF0KL5Mya2GGJ1t%3DnQje_7SQ%40mail.gmail.com.

Karotu Tannang

unread,
Dec 10, 2014, 5:40:19 PM12/10/14
to grase-...@grasehotspot.org

Karotu Tannang

unread,
Dec 10, 2014, 11:40:08 PM12/10/14
to grase-...@grasehotspot.org
Hi Tim,

I have added a file called /etc/squid3/grase.d/caching.conf

With the the contents as advised for testing
cache_dir ufs /var/spool/squid3 100 16 256

When I start squid using /etc/init.d/squid start.. it dies as shown in
the syslog..

Dec 11 16:07:34 ezynet-billing kernel: [1055734.635644] init: squid3
main proces s ended, respawning
Dec 11 16:07:34 ezynet-billing squid3: #011Failed to verify one of the
swap dire ctories, Check cache.log#012#011for details.
Run 'squid -z' to create swap dire ctories#012#011if
needed, or if running Squid for the first time.
Dec 11 16:07:34 ezynet-billing kernel: [1055734.923940] init: squid3
main proces s (30058) terminated with status 1
Dec 11 16:07:34 ezynet-billing kernel: [1055734.923975] init: squid3
respawning too fast, stopped

I have tried running squid3 -z but I see nothing created in /var/spool/squid3

Could you kindly advise how I can fix this please?

Kind regards,

Karotu

Timothy White

unread,
Dec 11, 2014, 3:55:45 AM12/11/14
to grase-...@grasehotspot.org
I'm not sure what your issue is.
You'll need to check the cache_dir config for the version of squid you are using. I pulled that line out of a different machine. Do a google for cache_dir.

Also, if running squid3 -z, you'll need to add  '-f /etc/squid3/squid.conf.grase' to the command, and it'll need to be run as the squid user.

Tim

Karotu Tannang

unread,
Dec 11, 2014, 1:29:53 PM12/11/14
to grase-...@grasehotspot.org
I will check with your suggestions below..
Just to be sure, I have both /etc/squid3/squid.conf and
/etc/squid3/squid.conf.grase. Is this the way it should be? Or I need
to remove squid.conf.

Also, which conf is this squid (for grase) running?
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAESLx0%2Bky0aum%3D-f8TYwm6gvNq8kiGHLaKAeXUko4JdMgFxCmw%40mail.gmail.com.

Eliot Ness

unread,
Dec 15, 2014, 10:08:38 AM12/15/14
to grase-...@grasehotspot.org
Have a look at older post i made, perfect installation
See configuration
Install also webmin as you see on guide, it will help you a lot on config

Additional conf can also added, public proxy, or user - pass proxy, anon, hi anon etc etc etc
Message

Karotu Tannang

unread,
Dec 16, 2014, 4:33:43 AM12/16/14
to grase-...@grasehotspot.org
Hi Eliot,

could you kinldy provide your link to the perfect installation please?

Kind regards,

Karotu

On 16/12/2014, Eliot Ness <sciroc...@googlemail.com> wrote:
> Have a look at older post i made, *perfect installation*
> --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grase-hotspo...@grasehotspot.org.
> To post to this group, send email to grase-...@grasehotspot.org.
> Visit this group at
> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/93a35779-3bd0-43da-9650-74e4c0ec25e5%40grasehotspot.org.

Karotu Tannang

unread,
Dec 23, 2014, 7:58:27 PM12/23/14
to grase-...@grasehotspot.org
Hi,

This is what worked. I added the changes into /etc/squid3/squid.conf.

Now I can do a squid3 -z where it doesn't fail when started up.

Karotu

Karotu Tannang

unread,
Dec 23, 2014, 8:31:03 PM12/23/14
to grase-...@grasehotspot.org
Hi,

I can now see that Squid is running.. but how is Grase setup with squid? Is it set to do this transparently? Or do we have to inform our clients that they have to enter 10.1.0.1 with port 3128 as their proxy?

In /var/log/squid3/cache.log it shows
 Accepting  intercepted HTTP connections at 0.0.0.0:3128, FD 12 

Pls advise how to enable this if there are steps for it as well.

Am using Ubuntu 12.04 and Grase v3.7.7.6.

Merry Xmas to All!

Karotu

Timothy White

unread,
Dec 24, 2014, 4:11:52 AM12/24/14
to grase-...@grasehotspot.org
Hi Karotu

Adding the changes to /etc/squid3/squid.conf means they won't take effect when squid is started. They only work because when you run squid3 -z it's reading that file. You need to have the -c option I believe, to specify which squid file you wish to load.

Tim

--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
--- You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspot+unsubscribe@grasehotspot.org.

To post to this group, send email to grase-...@grasehotspot.org.
Visit this group at http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.

Karotu Tannang

unread,
Dec 24, 2014, 7:54:53 PM12/24/14
to grase-...@grasehotspot.org
Hi Tim,

Many thanks for your response. May I ask which file should I change that squid for grase uses?

I have also made some changes to do caching but the logs aren't showing any actions.

A Merry Xmas to all..

Karotu

--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
--- You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspo...@grasehotspot.org.
--
This mailing list is for the Grase Hotspot Project http://grasehotspot.org
---
You received this message because you are subscribed to the Google Groups "Grase Hotspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grase-hotspo...@grasehotspot.org.

To post to this group, send email to grase-...@grasehotspot.org.
Visit this group at http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.

Eliot Ness

unread,
Dec 25, 2014, 3:19:47 PM12/25/14
to grase-...@grasehotspot.org
Opps, i just see it
link of "perfect installation" is here
https://groups.google.com/a/grasehotspot.org/forum/#!searchin/grase-hotspot/perfect/grase-hotspot/cNjxkcCO0b0/mfnsWvEYNOcJ

I dont use it right now, but it is tested and working like a charm


On Tuesday, December 9, 2014 2:21:03 AM UTC+2, karotu wrote:
Reply all
Reply to author
Forward
0 new messages