Koozali.org: home of the SME Server

Squid not starting

Offline cattledog

  • ***
  • 70
  • +0/-0
Squid not starting
« on: August 16, 2014, 09:20:04 AM »
Hi anyone with an answer here for this?
Starting squid:                                            [FAILED]
2014/08/16 15:32:56| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2014/08/16 15:32:56| Starting Authentication on port 192.168.1.34:3128
2014/08/16 15:32:56| Disabling Authentication on port 192.168.1.34:3128 (interception enabled)
2014/08/16 15:32:56| Disabling IPv6 on port 192.168.1.34:3128 (interception enabled)
2014/08/16 15:32:56| Starting Authentication on port 127.0.0.1:3128
2014/08/16 15:32:56| Disabling Authentication on port 127.0.0.1:3128 (interception enabled)
2014/08/16 15:32:56| Disabling IPv6 on port 127.0.0.1:3128 (interception enabled)
FATAL: Bungled squid.conf line 21: acl Safe_ports port port_list
Squid Cache (Version 3.1.10): Terminated abnormally.
CPU Usage: 0.007 seconds = 0.003 user + 0.004 sys
Maximum Resident Size: 22864 KB
Page faults with physical i/o: 0

Also my 80 port seems to be closed?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Squid not starting
« Reply #1 on: August 16, 2014, 09:40:27 AM »
cattledog

Quote
FATAL: Bungled squid.conf line 21: acl Safe_ports port port_list

This looks to be your clue, so check those settings & the port list

Show output of
config show squid

What changes did you make to this setting ?

Revert to standard to see if your problem goes away.

On sme8.1 I get

squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    Transparent=yes
    TransparentPort=3128
    access=private
    status=enabled

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: Squid not starting
« Reply #2 on: August 16, 2014, 10:12:43 AM »
Hi Janet.......well I dont really know ...fresh install of sme on new server then did a restore from server 8 by usb...all profiles came up but now if I go to control panel and do the proxy and enable HTTP proxy status says squid not let you connect  so I thought I do a restart of squid and this is what I get...if I disable I get on the net

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: Squid not starting
« Reply #3 on: August 16, 2014, 10:19:59 AM »
squid=service
    EnforceSafePorts=no
    SafePorts=port_list
    TCPPort=3128
    TCPProxyPort=80:3128
    TransparentPort=3128
    access=private
    status=disabled

This is mine in sme 9

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Squid not starting
« Reply #4 on: August 16, 2014, 04:55:01 PM »
cattledog

Quote
    SafePorts=port_list

Well based on this post
http://forums.contribs.org/index.php/topic,51025.msg258168.html#msg258168
I assume you did make this config change & did not heed the advice re port_list format
Maybe ask Stefano again for further advice if you do not understand something

I suggest you revert the setting to standard & see if your server works correctly, then you can play around with settings

also see
http://wiki.contribs.org/DB_Variables_Configuration#Squid_Proxy_.28squid.29


I also note this setting
Quote
status=disabled

so that should be changed to enabled
ie
config setprop squid status enabled
signal-event post-upgrade
signal-event reboot

« Last Edit: August 16, 2014, 04:59:17 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: Squid not starting
« Reply #5 on: August 16, 2014, 11:33:47 PM »
Hi Janet...me stupid..lol...I realized my mistake after post and went pack and undid what I did....squid looks like this in sme 9 now...squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    TransparentPort=3128
    access=private
    status=enabled
[root@box ~]#

Just not sure why transparent=yes not show.

big thanks for help
 

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Squid not starting
« Reply #6 on: August 17, 2014, 01:22:03 AM »
cattledog
   
Quote
Just not sure why transparent=yes not show.
It is OK to be missing as it has a default value = yes in sme server in the absence of a db entry.
There are many settings like that.

I change the setting sometimes, so there is a visible db entry for it.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.