Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
 
Antonio, are you kidding :)

Some people need answers in the form of comic books or videos on
YouTube. Magic Button "Make excellent" and how her push :)

PS. But comic books is preferable. :

04.07.2016 1:21, Antony Stone пишет:
> On Sunday 03 July 2016 at 20:06:37, james82 wrote:
>
>> i am really serious and i need help. please,please, someone answer my
>> question.
>
> We have provided answers.
>
> We have also asked some questions, to help us understand what you are
trying
> to do, and how best to help you further, but you have not answered these.
>
> The current questions which I think it would be useful for us if you
could
> answer are:
>
>  - why are you trying to use rock store, rather than UFS?
>
>  - what is the astonishing urgency about getting this done?
>
>  - have you tried my earlier suggestion of uninstalling squid,
deleting the
> squid.conf file, reinstalling squid, and then doing everything via webmin?
>
>
> Antony.
>

-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXeXlWAAoJENNXIZxhPexGGWkH/3HFFekgJ1qV7gXHZS+N5piD
9Pl1CIBiH21Ici2+tCbJIYKDOVj0oexDMQd5P6DzzxW4TGK/a8XDJTVQGUtaSeDl
cmcmKgPbF3sZH4typAUD+cYRAGF62daReIQHOm+KnuEMSgQb32uoNWNX24OfMLrq
8ry9Vz38UNOGfFg7CKVdVgPtqRktMgxIOjjxwfChSjFB7nxTxzWKRFwrrWrcHhFQ
dALMZ5ZVS0zc999vBO9YoJwSATw9RN9jmW2zXXMQZMtJWxNAQDCY93YVONXbrZN4
7IhnQ9M7QuPFG9yrSZ1mcXP2erM4b1igypU+jfISEgUCIvqJ14UWDPfUJc7w5+s=
=mu5o
-END PGP SIGNATURE-



0x613DEC46.asc
Description: application/pgp-keys
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 20:06:37, james82 wrote:

> i am really serious and i need help. please,please, someone answer my
> question.

We have provided answers.

We have also asked some questions, to help us understand what you are trying 
to do, and how best to help you further, but you have not answered these.

The current questions which I think it would be useful for us if you could 
answer are:

 - why are you trying to use rock store, rather than UFS?

 - what is the astonishing urgency about getting this done?

 - have you tried my earlier suggestion of uninstalling squid, deleting the 
squid.conf file, reinstalling squid, and then doing everything via webmin?


Antony.

-- 
Your work is both good and original.  Unfortunately the parts that are good 
aren't original, and the parts that are original aren't good.

 - Samuel Johnson

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
I need a help please? how I gonna to edit file squid.conf? I post all my
picture to you for get best answer . So why not?



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678384.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] valgrind ??

2016-07-03 Thread joe
hi amos 
Squid Cache: Version 3.5.19-20160524-r14057

and its only wen you start squid i get planty of



==32532== Mismatched free() / delete / delete []
==32532==at 0x4C2A360: operator delete(void*) (vg_replace_malloc.c:507)
==32532==by 0x55A56C: ~ConfigOptionVector (ConfigOption.cc:20)
==32532==by 0x55A56C: ConfigOptionVector::~ConfigOptionVector()
(ConfigOption.cc:17)
==32532==by 0x55A5E8: ConfigOptionVector::~ConfigOptionVector()
(ConfigOption.cc:20)
==32532==by 0x651026: SwapDir::parseOptions(int) (SwapDir.cc:273)
==32532==by 0x4F9EE3: parse_cachedir (cache_cf.cc:1929)
==32532==by 0x4F9EE3: parse_line(char*) (cf_parser.cci:1491)
==32532==by 0x4FE42B: parseOneConfigFile(char const*, unsigned int)
(cache_cf.cc:536)
==32532==by 0x4FEE62: parseConfigFile(char const*) (cache_cf.cc:577)
==32532==by 0x5E22D3: SquidMain(int, char**) (main.cc:1411)
==32532==by 0x4DA21C: SquidMainSafe (main.cc:1263)
==32532==by 0x4DA21C: main (main.cc:1256)
==32532==  Address 0x70212d0 is 0 bytes inside a block of size 16 alloc'd
==32532==at 0x4C28C20: malloc (vg_replace_malloc.c:296)
==32532==by 0x7EC47C: xmalloc (xalloc.cc:114)
==32532==by 0x65147B: operator new (SquidNew.h:23)
==32532==by 0x65147B: allocate (new_allocator.h:104)
==32532==by 0x65147B: allocate (alloc_traits.h:357)
==32532==by 0x65147B: _M_allocate (stl_vector.h:170)
==32532==by 0x65147B: void std::vector
>::_M_emplace_back_aux(ConfigOption*&&) (vector.tcc:412)
==32532==by 0x651368: push_back (stl_vector.h:932)
==32532==by 0x651368: SwapDir::getOptionTree() const (SwapDir.cc:246)
==32532==by 0x6E31FC: Fs::Ufs::UFSSwapDir::getOptionTree() const
(UFSSwapDir.cc:252)
==32532==by 0x650E66: SwapDir::parseOptions(int) (SwapDir.cc:256)
==32532==by 0x4F9EE3: parse_cachedir (cache_cf.cc:1929)
==32532==by 0x4F9EE3: parse_line(char*) (cf_parser.cci:1491)
==32532==by 0x4FE42B: parseOneConfigFile(char const*, unsigned int)
(cache_cf.cc:536)
==32532==by 0x4FEE62: parseConfigFile(char const*) (cache_cf.cc:577)
==32532==by 0x5E22D3: SquidMain(int, char**) (main.cc:1411)
==32532==by 0x4DA21C: SquidMainSafe (main.cc:1263)
==32532==by 0x4DA21C: main (main.cc:1256)


and 

==32532== Use of uninitialised value of size 8
==32532==at 0x7E4289: hash_remove_link (hash.cc:231)
==32532==by 0x62D38A: StoreEntry::hashDelete() (store.cc:456)
==32532==by 0x633494: destroyStoreEntry(void*) (store.cc:435)
==32532==by 0x635861: StoreEntry::release() (store.cc:1262)
==32532==by 0x6360AC: StoreEntry::setPublicKey() (store.cc:751)
==32532==by 0x63E1EF: StoreController::allowCollapsing(StoreEntry*,
RequestFlags const&, HttpRequestMethod const&) (store_dir.cc:919)
==32532==by 0x53CADE:
clientReplyContext::createStoreEntry(HttpRequestMethod const&, RequestFlags)
(client_side_reply.cc:2215)
==32532==by 0x54251F: clientReplyContext::processMiss()
(client_side_reply.cc:673)
==32532==by 0x544229: clientReplyContext::cacheHit(StoreIOBuffer)
(client_side_reply.cc:472)
==32532==by 0x6385BC: store_client::callback(long, bool)
(store_client.cc:130)
==32532==by 0x639FA7: store_client::readHeader(char const*, long)
(store_client.cc:593)
==32532==by 0x6ED5D1: Fs::Ufs::UFSStoreState::readCompleted(char const*,
int, int, RefCount) (UFSStoreState.cc:261)
==32532== 




--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/valgrind-tp4678360p4678383.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
i am really serious and i need help. please,please, someone answer my
question.



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678382.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
I SAY I DON'T KNOW HOW TO FIX no matter read any docs.I want you to answer my
question correctly. . I post it here, and hope it is final:
http://imgur.com/tFM1xxA



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678381.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] valgrind ??

2016-07-03 Thread Amos Jeffries
On 3/07/2016 10:16 p.m., joe wrote:
> is this how to use valgrind
> valgrind --leak-check=yes --quiet --log-file=/var/debug.log /usr/sbin/squid 
> -DNYCd3

Depends on what you want to do. That is one way to run it.

> 
> this is my configure
> ./configure --build=x86_64-linux-gnu \
...
> --with-valgrind-debug \

Okay. That bits right.

> 
> if yes then wen i start using valgring  starting squid i get in debug.log
> error 
> just first i need to know if its the right way using valgrind

Whats the error?

BTW: you can expect valgrind to detect leak issues in any old version of
Squid. For values of 'old' including the very latest 3.5. Squid-4 is
getting close to having none show up, but there are still a few
intentional things.

Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Amos Jeffries
On 4/07/2016 4:42 a.m., james82 wrote:
> what is that file? Is your hacking file? I will not open it. but actually how
> to fix those what i need? can you just answer simple for me, like, you need
> to edit it like this if your hdd1,  ssd1, hdd2,  ssd2, hdd3,  ssd3 folder
> don't have any file,.
> 
> just simple like that.

Please read the file you are editing. I suggest you start at line
number 1 and read at least the top three paragraphs.

Somebody has "helpfully" moved the squid documentation file into place
where squid.conf usually is.

Then search for "TAG: cache_dir". The description you are asking for is
written in there.

Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
I need a help, please?



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678378.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
what is that file? Is your hacking file? I will not open it. but actually how
to fix those what i need? can you just answer simple for me, like, you need
to edit it like this if your hdd1,  ssd1, hdd2,  ssd2, hdd3,  ssd3 folder
don't have any file,.

just simple like that.



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678377.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
 
Antonio, the gods punished you :) You're too many try to help :) Even
so, it :)


03.07.2016 21:36, james82 пишет:
> So now what? I don't have any file on hdd1,  ssd1 ,... So how to edit it? you
> not give me correct answer.
>
>  cache_dir rock /hdd1 ... min-size=10  (just delete that"..." and
become
> cache_dir rock /hdd1 min-size=10 . that it?
>
>
>
> --
> View this message in context:
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678375.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXeT1rAAoJENNXIZxhPexG66kIALAYLvuloLXC3d7JPBdFlZ5O
BqVWdPOKBaiFdHF+BkresDeyvdGj0VmZvhKC8fzgizs8MWOi/7Eo/RcuV0nsfdSh
e8afu1gxCyjofKQGz2Pdw2aR1wZdd1PNmpK+26NjtRnPZL/Yw1y+AoAQaxFufzNF
Zmt7Of8UHKWFPyZ/sEyarDObv492STyjXQp/HdeVpQaSspYIJe+bARikB7/9W3NQ
mtQ1DXA0mgCWVasPTSvra1txUz/gWjbuNcMGCrtuJ9Orkan7lshnHVq6GRfFqv40
nCq9iXaQTP0iNKNSKXXHu21iNcXBgk/IjZtjqUi/EA8WJYKyRloNnw5GccVLT1k=
=6qwd
-END PGP SIGNATURE-



0x613DEC46.asc
Description: application/pgp-keys
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
So now what? I don't have any file on hdd1,  ssd1 ,... So how to edit it? you
not give me correct answer. 

 cache_dir rock /hdd1 ... min-size=10  (just delete that"..." and become 
cache_dir rock /hdd1 min-size=10 . that it?



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678375.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 16:34:54, james82 wrote:

> What you gonna tell me if you see this: http://imgur.com/a/esjJY .

I say "I don't understand what you're trying to tell me with that screenshot".

> I can't fix like you said if it was like that.

You have six lines in your squid.conf:

cache_dir rock /hdd1 ... min-size=10
cache_dir rock /ssd1 ... max-size=9
cache_dir rock /hdd2 ... min-size=10
cache_dir rock /ssd2 ... max-size=9
cache_dir rock /hdd3 ... min-size=10
cache_dir rock /ssd3 ... max-size=9

Those lines do not make sense.  I do not know whether you really do have 
directories /hdd1, /ssd1 etc on your machine, but even if you have, the "..." 
is wrong.

The correct format for configuring the rock store cache is (as documented a 
little higher up in squid.conf):

# cache_dir rock Directory-Name Mbytes [options]

Therefore you must change those six lines to have the correct format.


Alternatively you could just delete them, because you also have:

cache_dir ufs /var/spool/squid 100 16 256

which is almost certainly going to work (even if it gives you a very small 
cache).


Regards,


Antony.

-- 
I want to build a machine that will be proud of me.

 - Danny Hillis, creator of The Connection Machine

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
What you gonna tell me if you see this: http://imgur.com/a/esjJY . I can't
fix like you said if it was like that.



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678373.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 16:13:06, james82 wrote:

> can you edit the squid.conf file and paste for me in ghostbin? :) Because
> talk by word i still can't get it right.

No, I can't, because I do not know what the correct configuration is for:

a) *your* machine

b) *your* network

c) what *you* want to do with squid

I would recommend starting from the default squid.conf (in other words, remove 
the squid package from your machine, delete the squid.conf, then re-install 
the package, which should bring in a standard default configuration file, whoch 
does not have errors in it), and then manage the system using webmin (which I 
have almost no experience of, but I believe should be able to adjust your 
squid.conf for you if you don't want to do it yourself with a text editor).

As a starting guide, the *only* thing you normally need to change from a 
default squid.conf to get a working system is the section labelled:

# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

If you do not know what to put in there, tell us about your network and we can 
help you with some suggestions.

When I say "tell us about your network" I mean let us know:

1. The IP address and netmask of your squid server

2. The IP address range containing the client machines which you want to be 
able to use the squid server

3. The default gateway address used by the squid server


Antony.

-- 
"Life is just a lot better if you feel you're having 10 [small] wins a day 
rather than a [big] win every 10 years or so."

 - Chris Hadfield, former skiing (and ski racing) instructor

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 16:50:25, Jok Thuau wrote:

> > On Jul 3, 2016, at 6:47 AM, james82  wrote:
> > 
> > what do you mean? don't you see i use ubuntu 16.04 desktop? i installed
> > webmin and virtualmin for easy control to use. i use OS on virtualbox.
> > then I install by "sudo apt-get install squid". that it. Now what??
> 
> Now you need to configure squid.

I get the impression the OP was hoping webmin would do that for him...

> Look at the documentation in /usr/share/doc/ for further details.

Or alternatively http://www.squid-cache.org/Doc/
http://wiki.squid-cache.org/ConfigExamples

> I would urge you to go read any Ubuntu administration guide online (there
> are a few). Some of them even cover squid, as shipped in Ubuntu.

https://help.ubuntu.com/lts/serverguide/squid.html  perhaps.


Antony.

-- 
"640 kilobytes (of RAM) should be enough for anybody."

 - Bill Gates

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
can you edit the squid.conf file and paste for me in ghostbin? :) Because
talk by word i still can't get it right.



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678370.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Jok Thuau


> On Jul 3, 2016, at 6:47 AM, james82  wrote:
> 
> what do you mean? don't you see i use ubuntu 16.04 desktop? i installed
> webmin and virtualmin for easy control to use. i use OS on virtualbox. then
> I install by "sudo apt-get install squid". that it. Now what??
> 

Now you need to configure squid.

Look at the documentation in /usr/share/doc/ for further details.

I would urge you to go read any Ubuntu administration guide online (there are a 
few). Some of them even cover squid, as shipped in Ubuntu.

Good luck.

Jok
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 15:47:35, james82 wrote:

> what do you mean? don't you see i use ubuntu 16.04 desktop?

Yes, what difference does that make?

> i installed webmin and virtualmin for easy control to use. i use OS on
> virtualbox. then I install by "sudo apt-get install squid". that it.

Are you telling me that you did not modify the file squid.conf at all?

> Now what??

That file has errors in it (as your second screenshot displays clearly); these 
need correcting.  I believe I have given guidance on how to correct them.

Please see the questions in my previous email for information which we might 
find helpful to assist you in doing whatever it is you are trying to do.


Antony.

-- 
"The future is already here.   It's just not evenly distributed yet."

 - William Gibson

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
what do you mean? don't you see i use ubuntu 16.04 desktop? i installed
webmin and virtualmin for easy control to use. i use OS on virtualbox. then
I install by "sudo apt-get install squid". that it. Now what??



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678367.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 15:27:05, james82 wrote:

> the file in paste bin is that I copied from my squid error file. what you
> tell me should do?

Well, you should correct the mistakes so that the lines which are not 
commented match the documentation (hint: "..." is not a valid part of any 
line).

Quite how you should do this depends on what you are trying to achieve, which 
you haven't told us.

Some information which might be helpful if you want further assistance:

1. Do you want to use the UFS store type?
 - if so, which path on your machine do you want that cache to exist under?

2. Do you want to use the rock store type?
 - if so, which path on your macine do you want that cache to exist under?

3. How much storage space do you want to allocate for your cache/s?

4. What are you planning to use squid for?


Antony.

-- 
Normal people think "If it ain't broke, don't fix it".
Engineers think "If it ain't broke, it doesn't have enough features yet".

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
the file in paste bin is that I copied from my squid error file. what you
tell me should do?



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363p4678365.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread Antony Stone
On Sunday 03 July 2016 at 15:04:57, james82 wrote:

> http://i.stack.imgur.com/DEVbl.png
> 
> my /etc/squid3/squid.conf file:
> https://ghostbin.com/paste/cwrdw

You have just copied the sample configuration from the commented-out lines in 
squid.conf, without adapting them to where you want your cache to be and what 
size to use.

The comments tell you to use:

# cache_dir Type Directory-Name Fs-specific-data [options]

and specifically for the rock store type:

# cache_dir rock Directory-Name Mbytes [options]

So, you need to change your configuration lines:

cache_dir rock /hdd1 ... min-size=10
cache_dir rock /ssd1 ... max-size=9
cache_dir rock /hdd2 ... min-size=10
cache_dir rock /ssd2 ... max-size=9
cache_dir rock /hdd3 ... min-size=10
cache_dir rock /ssd3 ... max-size=9

so that they make sense according to the above format guidelines.  (Hint: the 
"..." above means "fill in the appropriate details", it doesn't mean "type 
three dots here").

However, since you also have a line:

cache_dir ufs /var/spool/squid 100 16 256

(which I notice is also copied direct from the sample in the documentation, 
making me wonder whether you have thought about what size you want your cache 
to be, for example)

why do you also have the 'rock' cache lines?


PS: In future please post your squid.conf without any comments or blank lines.

Regards,


Antony.

-- 
This sentence contains exacly three erors.

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] how to fix proxy squid on virtualmin (ubuntu 16, 04)?

2016-07-03 Thread james82
Can someone tell me what should I do to fix on "this must be done before
squid can run"? I don't know this error. 

http://i.stack.imgur.com/ogloU.png

http://i.stack.imgur.com/DEVbl.png

for more detail, I like you visit my /etc/squid3/squid.conf file:
https://ghostbin.com/paste/cwrdw





--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-fix-proxy-squid-on-virtualmin-ubuntu-16-04-tp4678363.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Sometimes Squid goes to 99% CPU use

2016-07-03 Thread C. L. Martinez
On Sat  2.Jul'16 at 15:50:56 +1200, Amos Jeffries wrote:
> On 1/07/2016 10:18 p.m., C. L. Martinez wrote:
> > On Fri  1.Jul'16 at 21:42:23 +1200, Amos Jeffries wrote:
> >> On 1/07/2016 8:39 p.m., C. L. Martinez wrote:
> >>> Hi all,
> >>>
> >>>  I am seeing an abnormal behavior in my squid host (OpenBSD). From time 
> >>> to time, CPU goes to 99%:
> >>>
> >>> load averages:  2.20,  2.14,  2.09  
> >>> 33 processes: 1 running, 31 idle, 1 on processor
> >>> CPU states: 79.2% user,  0.0% nice,  0.1% system,  0.0% interrupt, 20.6% 
> >>> idle
> >>> Memory: Real: 91M/263M act/tot Free: 1711M Cache: 118M Swap: 0K/2055M
> >>>
> >>>   PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU 
> >>> COMMAND
> >>> 13337 _squid640   72M   71M run   -   105:58 99.02% squid
> >>>
> >>>  This only occurs with https sites ... maybe is a missconfiguration with 
> >>> ssl-bump options? Actually my ssl-bump config is:
> >>>
> >>> acl step1 at_step SslBump1
> >>> ssl_bump peek step1
> >>> ssl_bump bump !NoSSLIntercept
> >>> ssl_bump splice all
> >>>
> >>>  Exists some "safer" ssl-bump config to avoid this behavior?
> >>
> >> What exact version of Squid are you using?
> >>
> >> Amos
> >>
> > I am using squid version installed from M:tier packages for OpenBSD:
> > 
> > Squid Cache: Version 3.5.17
> 
> Okay, that version does not havethe bugs I was suspecting.
> 
> If its just occasional and reduces in a reasonable timeframe then I
> would not worry much about it. Is a puzzle though.
> 
> Amos
> 

Thanks Amos. I have updated to squid 3.5.20 (compiling from source) and it 
seems all is working ok, now.


-- 
Greetings,
C. L. Martinez
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] valgrind ??

2016-07-03 Thread joe
is this how to use valgrind
valgrind --leak-check=yes --quiet --log-file=/var/debug.log /usr/sbin/squid 
-DNYCd3

this is my configure
./configure --build=x86_64-linux-gnu \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/squid \
--sysconfdir=/etc/squid \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--datadir=/usr/share/squid \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-pthreads \
--enable-storeio=ufs,aufs,diskd \
--enable-removal-policies=lru,heap \
--disable-icmp \
--enable-linux-netfilter \
--disable-wccp \
--enable-wccpv2 \
--enable-http-violations \
--enable-eui \
--enable-follow-x-forwarded-for \
--enable-zph-qos \
--with-default-user=proxy \
--with-logdir=/var/log/squid \
--with-pidfile=/var/run/squid.pid \
--disable-ipv6 \
--with-filedescriptors=20 \
--enable-snmp \
--disable-auth \
--enable-epoll \
--enable-ecap \
--with-valgrind-debug \
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

if yes then wen i start using valgring  starting squid i get in debug.log
error 
just first i need to know if its the right way using valgrind



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/valgrind-tp4678360.html
Sent from the Squid - Users mailing list archive at Nabble.com.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users