LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   RHEL 7 squid proxy run perfectly suddenly stop work (https://www.linuxquestions.org/questions/linux-server-73/rhel-7-squid-proxy-run-perfectly-suddenly-stop-work-4175645778/)

pantdk 01-08-2019 07:22 AM

RHEL 7 squid proxy run perfectly suddenly stop work
 
Hi All,

I am getting below error when start the proxy server on RHEL 7
squid is working fine from last 6 month suddenly the issue pop'sup
now i have update the entire OS and try to fix it but unable to achieve it
when i started the service after few seconds it is failed seems like this process create multiple process and after that it failed

i have empty the cache and access logs but getting the same issue

Please help me in fixing the issue



● squid.service - Squid caching proxy
Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2019-01-08 13:07:59 UTC; 1min 4s ago
Process: 28158 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=1/FAILURE)
Process: 12280 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=0/SUCCESS)
Process: 12275 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
Main PID: 12283 (squid)
CGroup: /system.slice/squid.service
├─12283 /usr/sbin/squid -f /etc/squid/squid.conf
├─20265 (squid-1) -f /etc/squid/squid.conf
├─20266 (logfile-daemon) /var/log/squid/access.log
├─20267 (unlinkd)
├─20900 (squid-1) -f /etc/squid/squid.conf
└─20907 (squid-1) -f /etc/squid/squid.conf

squid[12283]: Squid Parent: (squid-1) process 13561 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 17410 started
squid[12283]: Squid Parent: (squid-1) process 17410 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 19411 started
squid[12283]: Squid Parent: (squid-1) process 19411 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 19671 started
squid[12283]: Squid Parent: (squid-1) process 19671 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20133 started
squid[12283]: Squid Parent: (squid-1) process 20133 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20265 started
[root@ ~]# service squid status
● squid.service - Squid caching proxy
Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-01-08 13:09:03 UTC; 504ms ago
Process: 21008 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=1/FAILURE)
Process: 12280 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=0/SUCCESS)
Process: 12275 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
Main PID: 12283 (code=exited, status=1/FAILURE)

squid[12283]: Squid Parent: (squid-1) process 19671 started
squid[12283]: Squid Parent: (squid-1) process 19671 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20133 started
squid[12283]: Squid Parent: (squid-1) process 20133 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20265 started
systemd[1]: squid.service: main process exited, code=exited, status=1/FAILURE
squid[21008]: squid: ERROR: Could not send signal 15 to process 20265: (3) No such process
systemd[1]: squid.service: control process exited, code=exited status=1
systemd[1]: Unit squid.service entered failed state.
systemd[1]: squid.service failed.


squid -NCd10
2019/01/08 13:19:56| Set Current Directory to /var/spool/squid
2019/01/08 13:19:56| Starting Squid Cache version 3.5.20 for x86_64-redhat-linux-gnu...
2019/01/08 13:19:56| Service Name: squid
2019/01/08 13:19:56| Process ID 21140
2019/01/08 13:19:56| Process Roles: master worker
2019/01/08 13:19:56| With 4096 file descriptors available
2019/01/08 13:19:56| Initializing IP Cache...
2019/01/08 13:19:56| DNS Socket created at [::], FD 8
2019/01/08 13:19:56| DNS Socket created at 0.0.0.0, FD 9
2019/01/08 13:19:56| Adding domain us-west-2.compute.internal from /etc/resolv.conf
2019/01/08 13:19:56| Adding nameserver 172.31.0.2 from /etc/resolv.conf
2019/01/08 13:19:56| helperOpenServers: Starting 0/20 'squidGuard' processes
2019/01/08 13:19:56| helperOpenServers: No 'squidGuard' processes needed.
2019/01/08 13:19:56| Logfile: opening log daemon:/var/log/squid/access.log
2019/01/08 13:19:56| Logfile Daemon: opening log /var/log/squid/access.log
2019/01/08 13:19:56| Unlinkd pipe opened on FD 15
2019/01/08 13:19:56| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2019/01/08 13:19:56| Store logging disabled
2019/01/08 13:19:56| Swap maxSize 102400 + 262144 KB, estimated 28041 objects
2019/01/08 13:19:56| Target number of buckets: 1402
2019/01/08 13:19:56| Using 8192 Store buckets
2019/01/08 13:19:56| Max Mem size: 262144 KB
2019/01/08 13:19:56| Max Swap size: 102400 KB
2019/01/08 13:19:56| Rebuilding storage in /var/spool/squid (dirty log)
2019/01/08 13:19:56| Using Least Load store dir selection
2019/01/08 13:19:56| Set Current Directory to /var/spool/squid
2019/01/08 13:19:56| Finished loading MIME types and icons.
2019/01/08 13:19:56| HTCP Disabled.
2019/01/08 13:19:56| Squid plugin modules loaded: 0
2019/01/08 13:19:56| Adaptation support is off.
2019/01/08 13:19:56| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 18 flags=9
2019/01/08 13:19:56| Done reading /var/spool/squid swaplog (2 entries)
2019/01/08 13:19:56| Finished rebuilding storage from disk.
2019/01/08 13:19:56| 2 Entries scanned
2019/01/08 13:19:56| 0 Invalid entries.
2019/01/08 13:19:56| 0 With invalid flags.
2019/01/08 13:19:56| 2 Objects loaded.
2019/01/08 13:19:56| 0 Objects expired.
2019/01/08 13:19:56| 0 Objects cancelled.
2019/01/08 13:19:56| 0 Duplicate URLs purged.
2019/01/08 13:19:56| 0 Swapfile clashes avoided.
2019/01/08 13:19:56| Took 0.01 seconds (217.72 objects/sec).
2019/01/08 13:19:56| Beginning Validation Procedure
2019/01/08 13:19:56| Completed Validation Procedure
2019/01/08 13:19:56| Validated 2 Entries
2019/01/08 13:19:56| store_swap_size = 8.00 KB
2019/01/08 13:19:56| Starting new redirector helpers...
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| WARNING: redirector #Hlpr1 exited
2019/01/08 13:19:56| Too few redirector processes are running (need 1/20)
2019/01/08 13:19:56| Starting new helpers
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| ERROR: URL rewrite helper returned invalid result code. Wrong helper? {result=Unknown}
2019/01/08 13:19:56| WARNING: redirector #Hlpr2 exited
2019/01/08 13:19:56| Too few redirector processes are running (need 1/20)
2019/01/08 13:19:56| Starting new helpers
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| WARNING: redirector #Hlpr3 exited


squid -k parse
2019/01/08 13:24:44| Startup: Initializing Authentication Schemes ...
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'basic'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'digest'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'negotiate'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'ntlm'
2019/01/08 13:24:44| Startup: Initialized Authentication.
2019/01/08 13:24:44| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2019/01/08 13:24:44| Processing: acl localnet src 172.31.0.0/16
2019/01/08 13:24:44| Processing: acl AllowedSites dstdomain "/etc/squid/acls/allow_sites.txt"
2019/01/08 13:24:44| Processing: acl blocked_sites dstdomain "/etc/squid/acls/blocked_sites.txt"
2019/01/08 13:24:44| Processing: http_access allow localnet AllowedSites
2019/01/08 13:24:44| Processing: acl keyword_block url_regex "/etc/squid/acls/keyword_block.txt"
2019/01/08 13:24:44| Processing: http_access deny keyword_block
2019/01/08 13:24:44| Processing: acl ext_block url_regex "/etc/squid/acls/ext_block.txt"
2019/01/08 13:24:44| Processing: http_access deny ext_block
2019/01/08 13:24:44| Processing: http_access deny blocked_sites
2019/01/08 13:24:44| Processing: acl SSL_ports port 10022
2019/01/08 13:24:44| Processing: acl SSL_ports port 5432
2019/01/08 13:24:44| Processing: acl SSL_ports port 25
2019/01/08 13:24:44| Processing: acl SSL_ports port 443
2019/01/08 13:24:44| Processing: acl SSL_ports port 8080
2019/01/08 13:24:44| Processing: acl Safe_ports port 80 # http
2019/01/08 13:24:44| Processing: acl Safe_ports port 21 # ftp
2019/01/08 13:24:44| Processing: acl Safe_ports port 443 # https
2019/01/08 13:24:44| Processing: acl Safe_ports port 70 # gopher
2019/01/08 13:24:44| Processing: acl Safe_ports port 210 # wais
2019/01/08 13:24:44| Processing: acl Safe_ports port 1025-65535 # unregistered ports
2019/01/08 13:24:44| Processing: acl Safe_ports port 280 # http-mgmt
2019/01/08 13:24:44| Processing: acl Safe_ports port 488 # gss-http
2019/01/08 13:24:44| Processing: acl Safe_ports port 591 # filemaker
2019/01/08 13:24:44| Processing: acl Safe_ports port 777 # multiling http
2019/01/08 13:24:44| Processing: acl CONNECT method CONNECT
2019/01/08 13:24:44| Processing: url_rewrite_program /usr/bin/squidGuard
2019/01/08 13:24:44| Processing: http_access deny !Safe_ports
2019/01/08 13:24:44| Processing: http_access deny CONNECT !SSL_ports
2019/01/08 13:24:44| Processing: http_access allow localhost manager
2019/01/08 13:24:44| Processing: http_access deny manager
2019/01/08 13:24:44| Processing: http_access allow localnet
2019/01/08 13:24:44| Processing: http_access allow localhost
2019/01/08 13:24:44| Processing: http_access deny all
2019/01/08 13:24:44| Processing: http_port 3128
2019/01/08 13:24:44| Processing: cache_dir ufs /var/spool/squid 100 16 256
2019/01/08 13:24:44| Processing: coredump_dir /var/spool/squid
2019/01/08 13:24:44| Processing: refresh_pattern ^ftp: 1440 20% 10080
2019/01/08 13:24:44| Processing: refresh_pattern ^gopher: 1440 0% 1440
2019/01/08 13:24:44| Processing: refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
2019/01/08 13:24:44| Processing: refresh_pattern . 0 20% 4320
2019/01/08 13:24:44| Initializing https proxy context
[root@ ~]#

TB0ne 01-08-2019 07:42 AM

Quote:

Originally Posted by pantdk (Post 5946050)
Hi All,
I am getting below error when start the proxy server on RHEL 7 squid is working fine from last 6 month suddenly the issue pop'sup now i have update the entire OS and try to fix it but unable to achieve it when i started the service after few seconds it is failed seems like this process create multiple process and after that it failed i have empty the cache and access logs but getting the same issue

Please help me in fixing the issue
Code:

● squid.service - Squid caching proxy
  Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
  Active: active (running) since Tue 2019-01-08 13:07:59 UTC; 1min 4s ago
  Process: 28158 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=1/FAILURE)
  Process: 12280 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=0/SUCCESS)
  Process: 12275 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
 Main PID: 12283 (squid)
  CGroup: /system.slice/squid.service
          ├─12283 /usr/sbin/squid -f /etc/squid/squid.conf
          ├─20265 (squid-1) -f /etc/squid/squid.conf
          ├─20266 (logfile-daemon) /var/log/squid/access.log
          ├─20267 (unlinkd)
          ├─20900 (squid-1) -f /etc/squid/squid.conf
          └─20907 (squid-1) -f /etc/squid/squid.conf

 squid[12283]: Squid Parent: (squid-1) process 13561 exited due to signal 6 with status 0
 squid[12283]: Squid Parent: (squid-1) process 17410 started
 squid[12283]: Squid Parent: (squid-1) process 17410 exited due to signal 6 with status 0
 squid[12283]: Squid Parent: (squid-1) process 19411 started
 squid[12283]: Squid Parent: (squid-1) process 19411 exited due to signal 6 with status 0
 squid[12283]: Squid Parent: (squid-1) process 19671 started
 squid[12283]: Squid Parent: (squid-1) process 19671 exited due to signal 6 with status 0
 squid[12283]: Squid Parent: (squid-1) process 20133 started
 squid[12283]: Squid Parent: (squid-1) process 20133 exited due to signal 6 with status 0
 squid[12283]: Squid Parent: (squid-1) process 20265 started
[root@ ~]# service squid status
● squid.service - Squid caching proxy
  Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
  Active: failed (Result: exit-code) since Tue 2019-01-08 13:09:03 UTC; 504ms ago
  Process: 21008 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=1/FAILURE)
  Process: 12280 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=0/SUCCESS)
  Process: 12275 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
 Main PID: 12283 (code=exited, status=1/FAILURE)

squid[12283]: Squid Parent: (squid-1) process 19671 started
squid[12283]: Squid Parent: (squid-1) process 19671 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20133 started
squid[12283]: Squid Parent: (squid-1) process 20133 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20265 started
systemd[1]: squid.service: main process exited, code=exited, status=1/FAILURE
squid[21008]: squid: ERROR: Could not send signal 15 to process 20265: (3) No such process
systemd[1]: squid.service: control process exited, code=exited status=1
systemd[1]: Unit squid.service entered failed state.
systemd[1]: squid.service failed.


 squid -NCd10
2019/01/08 13:19:56| Set Current Directory to /var/spool/squid
2019/01/08 13:19:56| Starting Squid Cache version 3.5.20 for x86_64-redhat-linux-gnu...
2019/01/08 13:19:56| Service Name: squid
2019/01/08 13:19:56| Process ID 21140
2019/01/08 13:19:56| Process Roles: master worker
2019/01/08 13:19:56| With 4096 file descriptors available
2019/01/08 13:19:56| Initializing IP Cache...
2019/01/08 13:19:56| DNS Socket created at [::], FD 8
2019/01/08 13:19:56| DNS Socket created at 0.0.0.0, FD 9
2019/01/08 13:19:56| Adding domain us-west-2.compute.internal from /etc/resolv.conf
2019/01/08 13:19:56| Adding nameserver 172.31.0.2 from /etc/resolv.conf
2019/01/08 13:19:56| helperOpenServers: Starting 0/20 'squidGuard' processes
2019/01/08 13:19:56| helperOpenServers: No 'squidGuard' processes needed.
2019/01/08 13:19:56| Logfile: opening log daemon:/var/log/squid/access.log
2019/01/08 13:19:56| Logfile Daemon: opening log /var/log/squid/access.log
2019/01/08 13:19:56| Unlinkd pipe opened on FD 15
2019/01/08 13:19:56| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2019/01/08 13:19:56| Store logging disabled
2019/01/08 13:19:56| Swap maxSize 102400 + 262144 KB, estimated 28041 objects
2019/01/08 13:19:56| Target number of buckets: 1402
2019/01/08 13:19:56| Using 8192 Store buckets
2019/01/08 13:19:56| Max Mem  size: 262144 KB
2019/01/08 13:19:56| Max Swap size: 102400 KB
2019/01/08 13:19:56| Rebuilding storage in /var/spool/squid (dirty log)
2019/01/08 13:19:56| Using Least Load store dir selection
2019/01/08 13:19:56| Set Current Directory to /var/spool/squid
2019/01/08 13:19:56| Finished loading MIME types and icons.
2019/01/08 13:19:56| HTCP Disabled.
2019/01/08 13:19:56| Squid plugin modules loaded: 0
2019/01/08 13:19:56| Adaptation support is off.
2019/01/08 13:19:56| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 18 flags=9
2019/01/08 13:19:56| Done reading /var/spool/squid swaplog (2 entries)
2019/01/08 13:19:56| Finished rebuilding storage from disk.
2019/01/08 13:19:56|        2 Entries scanned
2019/01/08 13:19:56|        0 Invalid entries.
2019/01/08 13:19:56|        0 With invalid flags.
2019/01/08 13:19:56|        2 Objects loaded.
2019/01/08 13:19:56|        0 Objects expired.
2019/01/08 13:19:56|        0 Objects cancelled.
2019/01/08 13:19:56|        0 Duplicate URLs purged.
2019/01/08 13:19:56|        0 Swapfile clashes avoided.
2019/01/08 13:19:56|  Took 0.01 seconds (217.72 objects/sec).
2019/01/08 13:19:56| Beginning Validation Procedure
2019/01/08 13:19:56|  Completed Validation Procedure
2019/01/08 13:19:56|  Validated 2 Entries
2019/01/08 13:19:56|  store_swap_size = 8.00 KB
2019/01/08 13:19:56| Starting new redirector helpers...
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| WARNING: redirector #Hlpr1 exited
2019/01/08 13:19:56| Too few redirector processes are running (need 1/20)
2019/01/08 13:19:56| Starting new helpers
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| ERROR: URL rewrite helper returned invalid result code. Wrong helper? {result=Unknown}
2019/01/08 13:19:56| WARNING: redirector #Hlpr2 exited
2019/01/08 13:19:56| Too few redirector processes are running (need 1/20)
2019/01/08 13:19:56| Starting new helpers
2019/01/08 13:19:56| helperOpenServers: Starting 1/20 'squidGuard' processes
2019/01/08 13:19:56| WARNING: redirector #Hlpr3 exited


squid -k parse
2019/01/08 13:24:44| Startup: Initializing Authentication Schemes ...
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'basic'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'digest'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'negotiate'
2019/01/08 13:24:44| Startup: Initialized Authentication Scheme 'ntlm'
2019/01/08 13:24:44| Startup: Initialized Authentication.
2019/01/08 13:24:44| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2019/01/08 13:24:44| Processing: acl localnet src 172.31.0.0/16
2019/01/08 13:24:44| Processing: acl AllowedSites dstdomain  "/etc/squid/acls/allow_sites.txt"
2019/01/08 13:24:44| Processing: acl blocked_sites dstdomain "/etc/squid/acls/blocked_sites.txt"
2019/01/08 13:24:44| Processing: http_access allow localnet  AllowedSites
2019/01/08 13:24:44| Processing: acl keyword_block url_regex "/etc/squid/acls/keyword_block.txt"
2019/01/08 13:24:44| Processing: http_access deny keyword_block
2019/01/08 13:24:44| Processing: acl ext_block  url_regex "/etc/squid/acls/ext_block.txt"
2019/01/08 13:24:44| Processing: http_access deny ext_block
2019/01/08 13:24:44| Processing: http_access deny blocked_sites
2019/01/08 13:24:44| Processing: acl SSL_ports port 10022
2019/01/08 13:24:44| Processing: acl SSL_ports port 5432
2019/01/08 13:24:44| Processing: acl SSL_ports port 25
2019/01/08 13:24:44| Processing: acl SSL_ports port 443
2019/01/08 13:24:44| Processing: acl SSL_ports port 8080
2019/01/08 13:24:44| Processing: acl Safe_ports port 80          # http
2019/01/08 13:24:44| Processing: acl Safe_ports port 21          # ftp
2019/01/08 13:24:44| Processing: acl Safe_ports port 443        # https
2019/01/08 13:24:44| Processing: acl Safe_ports port 70          # gopher
2019/01/08 13:24:44| Processing: acl Safe_ports port 210        # wais
2019/01/08 13:24:44| Processing: acl Safe_ports port 1025-65535  # unregistered ports
2019/01/08 13:24:44| Processing: acl Safe_ports port 280        # http-mgmt
2019/01/08 13:24:44| Processing: acl Safe_ports port 488        # gss-http
2019/01/08 13:24:44| Processing: acl Safe_ports port 591        # filemaker
2019/01/08 13:24:44| Processing: acl Safe_ports port 777        # multiling http
2019/01/08 13:24:44| Processing: acl CONNECT method CONNECT
2019/01/08 13:24:44| Processing: url_rewrite_program /usr/bin/squidGuard
2019/01/08 13:24:44| Processing: http_access deny !Safe_ports
2019/01/08 13:24:44| Processing: http_access deny CONNECT !SSL_ports
2019/01/08 13:24:44| Processing: http_access allow localhost manager
2019/01/08 13:24:44| Processing: http_access deny manager
2019/01/08 13:24:44| Processing: http_access allow localnet
2019/01/08 13:24:44| Processing: http_access allow localhost
2019/01/08 13:24:44| Processing: http_access deny all
2019/01/08 13:24:44| Processing: http_port 3128
2019/01/08 13:24:44| Processing: cache_dir ufs /var/spool/squid 100 16 256
2019/01/08 13:24:44| Processing: coredump_dir /var/spool/squid
2019/01/08 13:24:44| Processing: refresh_pattern ^ftp:          1440    20%    10080
2019/01/08 13:24:44| Processing: refresh_pattern ^gopher:        1440    0%      1440
2019/01/08 13:24:44| Processing: refresh_pattern -i (/cgi-bin/|\?) 0    0%      0
2019/01/08 13:24:44| Processing: refresh_pattern .              0      20%    4320
2019/01/08 13:24:44| Initializing https proxy context


Put things like this in CODE tags...your post is almost impossible to read, but as you've been here eight years now, you should know this. That said, your post is hard to make out. You say RHEL 7, and that everything was working fine, when 'suddenly' it stopped. Things don't work like that; what did you change/update to make it 'suddenly' stop? You say you 'update the entire OS'....does that mean you reloaded from scratch, updated from the online repositories, updated Squid by itself?? What???

SOMETHING changed...what was it? How did you start squid? Because without seeing your config file (and if you post it, again, put it in CODE tags), the pieces of logs you've posted doesn't give us many clues. The "signal 6" message typically indicates a problem with the cache directory, either location or permissions. Have you checked that?

pantdk 01-08-2019 08:13 AM

Apologies for that!!!! Nothing had been changed once I know that squid is not working. Then only I am trying to fix it. I am assuming that this could be any bug as per number of articles I have searched on internet. So I have update the OS from yum. Regarding the cache directory
It is been their.

pantdk 01-08-2019 08:16 AM

As per the redhat this is a bug in RHEL 6 which is fix in squid34.but I am facing this issue in RHEL7

TB0ne 01-08-2019 09:25 AM

Quote:

Originally Posted by pantdk (Post 5946065)
Apologies for that!!!! Nothing had been changed once I know that squid is not working. Then only I am trying to fix it. I am assuming that this could be any bug as per number of articles I have searched on internet. So I have update the OS from yum. Regarding the cache directory It is been their.

Sorry, but you're not making sense here.

You say "nothing had been changed once I know that squid is not working"...yet you said "suddenly the issue pop'sup now i have update the entire OS", indicating that you HAVE done something (again, either reloading the OS or updating it). Which is it?? Either you DID change something or you didn't. And again, things 'suddenly' don't stop...they stop because **SOMETHING HAS CHANGED** on the system. We know this because:
  • It WAS working for six months
  • It STOPPED working
So what changed? Again, check the cache directory (and deleting it/re-creating it would be fairly easy to do), and check the permissions.
[QUOTE]As per the redhat this is a bug in RHEL 6 which is fix in squid34.but I am facing this issue in RHEL7
So then have you contacted Red Hat support?? Have you applied the RHEL bug fixes, since you're paying for Red Hat?

pantdk 01-08-2019 11:33 PM

Hi

This proxy is working fine from last 6 month. Now yesterday when the browser are not open any website then i come to know that there is problem in the squid.Therefore i have restart the service of the squid during that time i notice that after starting the squid service when i check the status of the squid service below issue shown and service went down. hence i have check the configuration "squid -k parse" then check the cache and access logs in the /var/log/squid and null those file and then restart the services but it shown the same result.

Therefore i am searching on the internet if any once have face same issue. so few blogs or articles suggested that this could be the bug of the package so try with the updates. As my server didn't update from long time therefore i have update the full OS. But after update the issue didn't fixed

Below are error when check the status of squid service

Quote:

"squid[12283]: Squid Parent: (squid-1) process 13561 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 17410 started
squid[12283]: Squid Parent: (squid-1) process 17410 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 19411 started
squid[12283]: Squid Parent: (squid-1) process 19411 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 19671 started
squid[12283]: Squid Parent: (squid-1) process 19671 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20133 started
squid[12283]: Squid Parent: (squid-1) process 20133 exited due to signal 6 with status 0
squid[12283]: Squid Parent: (squid-1) process 20265 started"
Now regarding the REDHAT i have checked one of the solution of the redhat in which they mention same issue in RHEL 6 and that had been fix on squid34 But i am using RHEL7 and having different version of the proxy

TB0ne 01-09-2019 06:27 AM

Quote:

Originally Posted by pantdk (Post 5946308)
Hi
This proxy is working fine from last 6 month. Now yesterday when the browser are not open any website then i come to know that there is problem in the squid.Therefore i have restart the service of the squid during that time i notice that after starting the squid service when i check the status of the squid service below issue shown and service went down. hence i have check the configuration "squid -k parse" then check the cache and access logs in the /var/log/squid and null those file and then restart the services but it shown the same result.

So again: WHAT CHANGED YESTERDAY???
Quote:

Therefore i am searching on the internet if any once have face same issue. so few blogs or articles suggested that this could be the bug of the package so try with the updates. As my server didn't update from long time therefore i have update the full OS. But after update the issue didn't fixed
AGAIN: What do you mean you 'have update the full OS'?? Again: did you totally reload your whole system, or did you just perform an update?? And why didn't you keep your RHEL system up to date? Should run automatically.
Quote:

Below are error when check the status of squid service Now regarding the REDHAT i have checked one of the solution of the redhat in which they mention same issue in RHEL 6 and that had been fix on squid34 But i am using RHEL7 and having different version of the proxy
...and unless your system is paid for and registered with Red Hat, you have *NOT* received any of the bugfixes for other parts of the system. You're still not being clear what you mean by 'update the full OS', despite being asked several times now.

AGAIN: **HAVE YOU CHECKED THE CACHE DIRECTORY**????? Again, this is for permissions/size/location/whatever. Something changed, and based on the error that's where I'd start. And AGAIN: have you contacted Red Hat support?? Are you PAYING for RHEL???? The article you linked to says "SOLUTION IN PROGRESS"...meaning OUTSTANDING, and has moved forward. Did you read the rest of that article, that describes the workaround?


You just keep restating "It just stopped yesterday, and I did a full update of the OS", but you don't answer any of the questions you've been asked so far, acknowledge the advice given about checking the cache location, or tell us what Red Hat told you. Asking the same thing over and over won't get you anything new, and if you'd like help, then you need to participate in the conversation, answer questions, and clarify things when needed. We are now 7 posts in, and we know NOTHING past what you first posted, despite you being asked several times.

pantdk 01-11-2019 06:15 AM

1) when i come to know the issue come up. i checked the logs of the squid but unable to found the reason of issue then i checked the logs of the start and stop of the squid service, which give the error of
Quote:

"process 19671 exited due to signal 6 with status "
then i did google to figure out the reason for this issue and get few suggestion on blogs and article. so few suggestion ask to update the squid packages as this is stand alone server for squid and didn't updated from long period. Therefore i did "yum update" and assuming that this will fix the issue but that didn't work

Then i did to empty the logs and restart the service but it is also not working

Quote:

> /var/log/squid/access.log
> /var/log/squid/cache.log
then i increase the file descriptor

Quote:

$ulimit -n
1024
Increase the no.of file descriptors
$vi /etc/security/limits.conf
make following entries
* soft nofile 4096
* hard nofile 65536

# sysctl -p

# Disabled the selinux


these all changes had been done after the issue pop's up... I think this will makes the picture clear to you.

TB0ne 01-11-2019 06:52 AM

Quote:

Originally Posted by pantdk (Post 5947599)
1) when i come to know the issue come up. i checked the logs of the squid but unable to found the reason of issue then i checked the logs of the start and stop of the squid service, which give the error of then i did google to figure out the reason for this issue and get few suggestion on blogs and article. so few suggestion ask to update the squid packages as this is stand alone server for squid and didn't updated from long period. Therefore i did "yum update" and assuming that this will fix the issue but that didn't work
Code:

"process 19671 exited due to signal 6 with status "
Then i did to empty the logs and restart the service but it is also not working
Code:

> /var/log/squid/access.log
> /var/log/squid/cache.log

then i increase the file descriptor
Code:

$ulimit -n
1024
Increase the no.of file descriptors
$vi /etc/security/limits.conf
make following entries
* soft nofile 4096
* hard nofile 65536

# sysctl -p

# Disabled the selinux

these all changes had been done after the issue pop's up... I think this will makes the picture clear to you.

Nope, because you **STILL ARE NOT ANSWERING THE QUESTIONS YOU WERE ASKED**. And you are STILL ignoring the advice you were given, about checking the cache directory.

If you won't answer questions that you've now been asked three times now, there is no point in posting. Good luck; I'm done.

pantdk 01-11-2019 07:03 AM

i am not ignoring the below path for the squid but this is not causing the issue.. i know i will figure out this issue soon.


Quote:

[root@ ~]# cd /var/log/squid
[root@# ll
total 16
-rw-r--r--. 1 root root 2422 Mar 15 2018 1
-rw-r----- 1 squid squid 3212 Jan 11 12:59 access.log
-rw-r----- 1 squid squid 0 Jan 11 12:59 cache.log
lrwxrwxrwx. 1 squid squid 28 Jan 4 09:26 squidGuard.log -> ../squidGuard/squidGuard.log
-rw-r--r--. 1 squid squid 2342 Jan 8 12:51 squid.out
-rw-r--r-- 1 root root 22 Jan 4 09:08 store.log-20190106.gz
[root@ip-172-31-44-212 squid]#
sorry for irritating on this issue.I am trying my best to fix it.

Thanks
dk

TB0ne 01-11-2019 07:29 AM

Quote:

Originally Posted by pantdk (Post 5947615)
i am not ignoring the below path for the squid but this is not causing the issue.. i know i will figure out this issue soon.
Code:

[root@ ~]# cd /var/log/squid
[root@# ll
total 16
-rw-r--r--. 1 root root 2422 Mar 15 2018 1
-rw-r----- 1 squid squid 3212 Jan 11 12:59 access.log
-rw-r----- 1 squid squid 0 Jan 11 12:59 cache.log
lrwxrwxrwx. 1 squid squid 28 Jan 4 09:26 squidGuard.log -> ../squidGuard/squidGuard.log
-rw-r--r--. 1 squid squid 2342 Jan 8 12:51 squid.out
-rw-r--r-- 1 root root 22 Jan 4 09:08 store.log-20190106.gz
[root@ip-172-31-44-212 squid]#

sorry for irritating on this issue.I am trying my best to fix it.

Are you just not paying attention??? What you've shown are the LOG FILES...which is NOT what's been asked/suggested, nor what a very brief Google search indicates might be a cause.

And what about all the OTHER QUESTIONS that you still haven't answered????

**AGAIN** You need to check the CACHE DIRECTORY. Not the log files; not the log directory...the CACHE DIRECTORY.
**AGAIN** Check the permissions; delete it and re-create it if needed. Try another location; check disk space. Perform BASIC TROUBLESHOOTING, and ANSWER THE QUESTIONS YOU HAVE BEEN ASKED FOUR TIMES NOW.

hafeezisbad 01-13-2019 03:03 PM

we need few more information please post output of following list of commands

1) cat /var/log/squid/ squid error log
2) cat /etc/squid/squid.conf
3)cat /etc/squidgaurd/squidguard.conf

df-k

ip a

status squidgaurd

so seeing this can assist you to fix the issue , as it seems your squid.conf configuration is exited , due to network or config miss match

pantdk 01-13-2019 11:49 PM

Thanks for the reply. i have fixed it already on Friday. Now i am sharing, how i have resolve it.


1) When i have check the logs of the Squid i am unable see any issue. But when i have restarted the service of the squid then i come to know that after few second the service of the squid goes fail. Now on Friday i all so checked /varlog/message and able to see there is squid Guard logs and this create issue then i try to understand why this happening. hence i have disable the
Quote:

#url_rewrite_program /usr/bin/squidGuard
and run again the squid this time squid responded perfectly then i checked the squidGuard configuration but unable to figure out the issue then i recreate the configuration file and compile it

Quote:

[root@]# cat /etc/squid/squidGuard.conf
#
# CONFIG FILE FOR SQUIDGUARD
#

dbhome /var/squidGuard/
logdir /var/log/squidGuard

dest test {
domainlist blacklists/testdomains

}

dest adv {
domainlist blacklists/hacking/domains
urllist blacklists/hacking/urls
}
dest porn {
domainlist blacklists/porn/domains
urllist blacklists/porn/urls
}
dest warez {
domainlist blacklists/warez/domains
urllist blacklists/warez/urls
}



acl {
default {
pass !test all
redirect http://localhost/block.html
}
}

[root@log]#

and allow the url redirect
Quote:

"url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf"

Quote:

squidGuard -b -d -C all
SquidGuard Error found in message logs

Quote:

Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3659]: segfault at ffffffff972911a0 ip 00007f9d38020770 sp 00007ffd8a8a8868 error 5 in libc-2.17.so[7f9d37ed3000+1c2000]
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3660]: segfault at ffffffff98b8b1a0 ip 00007f2660655770 sp 00007ffda589c7d8 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3664]: segfault at ffffffffbe3f41a0 ip 00007f20674c9770 sp 00007ffd1100e098 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3665]: segfault at ffffffffa9cf71a0 ip 00007fb0eea88770 sp 00007ffdfca5c308 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3666]: segfault at ffffffffd33a61a0 ip 00007f29a3cda770 sp 00007ffc506e8088 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3667]: segfault at ffffffffe330d1a0 ip 00007f2e314d2770 sp 00007ffe63f523d8 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3668]: segfault at 3eadd1a0 ip 00007fa847473770 sp 00007fff14bd2e38 error 4
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3669]: segfault at ffffffffa618c1a0 ip 00007f48ea127770 sp 00007ffcf4895078 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3670]: segfault at ffffffffcb0591a0 ip 00007f4f7da51770 sp 00007fffd06132b8 error 5
Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3671]: segfault at 687ba1a0 ip 00007ffa42f06770 sp 00007fff604355f8 error 4
Jan 9 09:41:57 ip-172-31-44-212 kernel: squidGuard[3826]: segfault at dc0c1a0 ip 00007f54a0f18770 sp 00007ffeed7b6038 error 4 in libc-2.17.so[7f54a0dcb000+1c2000]
Jan 9 09:41:57 ip-172-31-44-212 kernel: squidGuard[3827]: segfault at ffffffffc859f1a0 ip 00007fab664eb770 sp 00007ffdbbc5c6b8 error 5 in libc-2.17.so[7fab6639e000+1c2000]
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3828]: segfault at ffffffffbe62b1a0 ip 00007f4515c0e770 sp 00007fff34f92de8 error 5 in libc-2.17.so[7f4515ac1000+1c2000]
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3829]: segfault at 64bf21a0 ip 00007f4614730770 sp 00007ffc520f4f08 error 4
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3830]: segfault at ffffffffa7ef61a0 ip 00007f0bbd247770 sp 00007ffc9cb42ce8 error 5
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3831]: segfault at ffffffff9d39a1a0 ip 00007fa129350770 sp 00007ffd345b4cf8 error 5
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3833]: segfault at f101a0 ip 00007f3bf92e1770 sp 00007ffc7b8f9668 error 4
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3835]: segfault at 5785b1a0 ip 00007fd1418f5770 sp 00007ffdacd69d78 error 4
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3836]: segfault at fffffffff7d801a0 ip 00007f8c212a5770 sp 00007ffe1273b0e8 error 5
Jan 9 09:41:58 ip-172-31-44-212 kernel: squidGuard[3837]: segfault at ffffffff9971c1a0 ip 00007f3e630f0770 sp 00007ffd0b78a2d8 error 5
Jan 9 10:01:36 ip-172-31-44-212 kernel: squidGuard[4680]: segfault at 787ab1a0 ip 00007f8b2df1a770 sp 00007ffcfefde208 error 4 in libc-2.17.so[7f8b2ddcd000+1c2000]
Jan 9 10:04:14 ip-172-31-44-212 kernel: squidGuard[4834]: segfault at 546631a0 ip 00007f39facc8770 sp 00007fff58b6fe38 error 4 in libc-2.17.so[7f39fab7b000+1c2000]
Jan 9 10:19:07 ip-172-31-44-212 kernel: squidGuard[5699]: segfault at ffffffffb51711a0 ip 00007f067e003770 sp 00007fffdb78b8a8 error 5 in libc-2.17.so[7f067deb6000+1c2000]
Jan 9 10:35:49 ip-172-31-44-212 kernel: squidGuard[6779]: segfault at 67d8f1a0 ip 00007fef24793770 sp 00007ffe1a12c248 error 4 in libc-2.17.so[7fef24646000+1c2000]
Jan 9 10:36:17 ip-172-31-44-212 kernel: squidGuard[6811]: segfault at 1091e1a0 ip 00007f98c95c4770 sp 00007fff8ed1df28 error 4 in libc-2.17.so[7f98c9477000+1c2000]
[root@ip-172-31-44-212 log]# Jan 9 09:41:50 ip-172-31-44-212 kernel: squidGuard[3659]: segfault at ffffffff972911a0 ip 00007f9d38020770 sp 00007ffd8a8a8868 error 5 in libc-2.17.so[7f9d37ed3000+1c2000]
Squid Configuration

Quote:

[root@ip-]# cat /etc/squid/squid.conf
#acl SSL_ports port 80 443
#acl Safe_ports port 80 443
#
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl localnet src 172.31.0.0/16
acl AllowedSites dstdomain "/etc/squid/acls/allow_sites.txt"
acl blocked_sites dstdomain "/etc/squid/acls/blocked_sites.txt"
http_access allow localnet AllowedSites
acl keyword_block url_regex "/etc/squid/acls/keyword_block.txt"
http_access deny keyword_block
acl ext_block url_regex "/etc/squid/acls/ext_block.txt"
http_access deny ext_block
http_access deny blocked_sites
acl SSL_ports port 10022
acl SSL_ports port 5432
acl SSL_ports port 25
acl SSL_ports port 443
acl SSL_ports port 8080
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#
# Recommended minimum Access Permission configuration:
#url_rewrite_program /usr/bin/squidGuard
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

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

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320

Now all works fine.

TB0ne 01-14-2019 07:19 AM

Quote:

Originally Posted by pantdk (Post 5948791)
Thanks for the reply. i have fixed it already on Friday. Now i am sharing, how i have resolve it.
1) When i have check the logs of the Squid i am unable see any issue. But when i have restarted the service of the squid then i come to know that after few second the service of the squid goes fail. Now on Friday i all so checked /varlog/message and able to see there is squid Guard logs and this create issue then i try to understand why this happening. hence i have disable the and run again the squid this time squid responded perfectly then i checked the squidGuard configuration but unable to figure out the issue then i recreate the configuration file and compile it

So when you were asked at the beginning to check the log files...you just didnt??? The "signal 6" indicates a cache directory problem. The Squidguard log (which you didn't check or mention), indicates a known bug/error.

Next time you post, answer questions and provide details when asked...great that its working and you shared the solution, but it would have been fixed last week had you provided details.

pantdk 01-15-2019 01:47 AM

Hi

Yes i have checked the logs on the concerned directory But during that time unable to figure out it. then i tried to check the logs in message logs with "squid*" and assuming that their might be something.... and lucky the error log of Squid Guard found.

Your intention/Guidance is correct. But i am not aware of the Squid guard error logs will be in the message log


Regards
DK


All times are GMT -5. The time now is 04:49 PM.