Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/var/run/squid should be created #4

Open
Mosibi opened this issue Oct 19, 2018 · 3 comments
Open

/var/run/squid should be created #4

Mosibi opened this issue Oct 19, 2018 · 3 comments
Assignees

Comments

@Mosibi
Copy link

Mosibi commented Oct 19, 2018

When running Squid in SMP mode, the IPC sockets are created in /var/run/squid. When that directory is missing, or does not have the right permissions, Squid is not going to listen on the configured http_port and shows the following message in the cache.log: commBind Cannot bind socket FD 20

@ra-at-diladele-com
Copy link
Contributor

Sorry and how do I switch Squid to SMP mode to test this?

@ra-at-diladele-com ra-at-diladele-com self-assigned this Oct 19, 2018
@Mosibi
Copy link
Author

Mosibi commented Oct 19, 2018

Sorry and how do I switch Squid to SMP mode to test this?

That's very simple, just put `workers 2' in squid.conf. See also http://www.squid-cache.org/Versions/v4/cfgman/workers.html . I have 4 workers configured, 1 for every CPU in that system

@thctlo
Copy link

thctlo commented Feb 26, 2019

A simple fix.
/usr/lib/tmpfiles.d/squid.conf
d /run/squid 0755 proxy proxy -

And /var/run is linked to /run

Thank you Raphael for the Ubuntu packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants