Re: Squid 4.2 is available ( debian stretch )

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Squid 4.2 is available ( debian stretch )

L.P.H. van Belle
Hai,

Thank you for the new release.

If people want to test against Debian, i've create Debian Stretch packages for Squid 4.2 today.
I am testing them as we speak and if you want to test them, you can find them here:
https://downloads.van-belle.nl 

I took the Debian squid GIT sources for this rebuild against Debian Stretch.
Build logs are avaible through the dowloads link.
Drop me a note how they are working, if they are ok, i'll put them on my repo.
I've keept all settings the default in these tests. Only enabled the "localnet"

Im using the following systemd service settings.

The defaults, +  ( systemctl edit squid.service )
# /etc/systemd/system/squid.service.d/override.conf
[Service]
# The default is 1024, increase this if needed.
LimitNOFILE=4096

For squid 4.1, i changed the logrotate file a bit.
I added systemd part and changed reload to restart, due to assertion fail.

A part of : /etc/logrotate.d/squid
        postrotate
            if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet squid.service; then
                systemctl reload squid.service
            elif [ -f /var/run/squid.pid ]; then
                test ! -e /var/run/squid.pid || test ! -x /usr/sbin/squid || /usr/sbin/squid -k rotate
            fi
        endscript

After the upgrade to 4.2, i change the restart back to reload, and no assertion failed anymore in 4.2 :-).  

My questions for 4.2 is:
Anyone any idea why we see 2x "2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)"  in the start up process?  
I notice this in the cache.log, i tested this with a normal start/stop and restart and reboot.

The Log part. ( from a restart )
2018/08/13 16:30:26 kid1| Preparing for shutdown after 0 requests
2018/08/13 16:30:26 kid1| Waiting 30 seconds for active connections to finish
2018/08/13 16:30:26 kid1| Closing HTTP(S) port [::]:3128
2018/08/13 16:30:26 kid1| Closing Pinger socket on FD 14
2018/08/13 16:30:33| Pinger exiting.
2018/08/13 16:30:57 kid1| Shutdown: NTLM authentication.
2018/08/13 16:30:57 kid1| Shutdown: Negotiate authentication.
2018/08/13 16:30:57 kid1| Shutdown: Digest authentication.
2018/08/13 16:30:57 kid1| Shutdown: Basic authentication.
2018/08/13 16:30:57 kid1| Shutting down...
2018/08/13 16:30:57 kid1| storeDirWriteCleanLogs: Starting...
2018/08/13 16:30:57 kid1|   Finished.  Wrote 0 entries.
2018/08/13 16:30:57 kid1|   Took 0.00 seconds (  0.00 entries/sec).
CPU Usage: 0.044 seconds = 0.044 user + 0.000 sys
Maximum Resident Size: 94112 KB
Page faults with physical i/o: 0
2018/08/13 16:30:57 kid1| Logfile: closing log daemon:/var/log/squid/access.log
2018/08/13 16:30:57 kid1| Logfile Daemon: closing log daemon:/var/log/squid/access.log
2018/08/13 16:30:57 kid1| Open FD UNSTARTED    10 IPC UNIX STREAM Parent
2018/08/13 16:30:57 kid1| Squid Cache (Version 4.2): Exiting normally.
2018/08/13 16:30:57| Removing PID file (/var/run/squid.pid)
2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
2018/08/13 16:30:57 kid1| Creating missing swap directories
2018/08/13 16:30:57 kid1| No cache_dir stores are configured.
2018/08/13 16:30:57| Removing PID file (/var/run/squid.pid)
2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
2018/08/13 16:30:57 kid1| Starting Squid Cache version 4.2 for x86_64-pc-linux-gnu...
2018/08/13 16:30:57 kid1| Service Name: squid
2018/08/13 16:30:57 kid1| Process ID 1658
2018/08/13 16:30:57 kid1| Process Roles: worker
2018/08/13 16:30:57 kid1| With 4096 file descriptors available
2018/08/13 16:30:57 kid1| Initializing IP Cache...


Greetz,

Louis


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 4.2 is available ( debian stretch )

Alex Rousskov
On 08/13/2018 08:58 AM, L.P.H. van Belle wrote:

> My questions for 4.2 is:
> Anyone any idea why we see 2x "2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)"  in the start up process?  

Your scripts are probably starting Squid twice, first with the -z option
(to create cache_dir directories if they are missing and exit) and then
once again without that option (to serve traffic).

IIRC, older Squids did not create the PID file while creating cache_dir
directories, leading to nasty conflicts between concurrent Squid
instances. Future Squids should create missing directories automatically
(in most cases), but I am not aware of anybody sponsoring that feature.

HTH,

Alex.


> 2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
> 2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
> 2018/08/13 16:30:57 kid1| Creating missing swap directories
> 2018/08/13 16:30:57 kid1| No cache_dir stores are configured.
> 2018/08/13 16:30:57| Removing PID file (/var/run/squid.pid)
> 2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
> 2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
> 2018/08/13 16:30:57 kid1| Starting Squid Cache version 4.2 for x86_64-pc-linux-gnu...
> 2018/08/13 16:30:57 kid1| Service Name: squid
> 2018/08/13 16:30:57 kid1| Process ID 1658
> 2018/08/13 16:30:57 kid1| Process Roles: worker
> 2018/08/13 16:30:57 kid1| With 4096 file descriptors available
> 2018/08/13 16:30:57 kid1| Initializing IP Cache...
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Squid 4.2 is available ( debian stretch )

L.P.H. van Belle
Hai Alex,

Ah, yes, your totaly right.
Just checked the systemd service file again and it shows.

ExecStartPre=/usr/sbin/squid --foreground -z
ExecStart=/usr/sbin/squid -sYC

Sorry for the stupic question. Should have seen that.
But thank you for the reply.

Greetz,

Louis


> -----Oorspronkelijk bericht-----
> Van: Alex Rousskov [mailto:[hidden email]]
> Verzonden: maandag 13 augustus 2018 18:02
> Aan: L.P.H. van Belle; [hidden email]
> Onderwerp: Re: [squid-users] Squid 4.2 is available ( debian stretch )
>
> On 08/13/2018 08:58 AM, L.P.H. van Belle wrote:
>
> > My questions for 4.2 is:
> > Anyone any idea why we see 2x "2018/08/13 16:30:57| Created
> PID file (/var/run/squid.pid)"  in the start up process?  
>
> Your scripts are probably starting Squid twice, first with
> the -z option
> (to create cache_dir directories if they are missing and
> exit) and then
> once again without that option (to serve traffic).
>
> IIRC, older Squids did not create the PID file while creating
> cache_dir
> directories, leading to nasty conflicts between concurrent Squid
> instances. Future Squids should create missing directories
> automatically
> (in most cases), but I am not aware of anybody sponsoring
> that feature.
>
> HTH,
>
> Alex.
>
>
> > 2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
> > 2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
> > 2018/08/13 16:30:57 kid1| Creating missing swap directories
> > 2018/08/13 16:30:57 kid1| No cache_dir stores are configured.
> > 2018/08/13 16:30:57| Removing PID file (/var/run/squid.pid)
> > 2018/08/13 16:30:57| Created PID file (/var/run/squid.pid)
> > 2018/08/13 16:30:57 kid1| Set Current Directory to /var/spool/squid
> > 2018/08/13 16:30:57 kid1| Starting Squid Cache version 4.2
> for x86_64-pc-linux-gnu...
> > 2018/08/13 16:30:57 kid1| Service Name: squid
> > 2018/08/13 16:30:57 kid1| Process ID 1658
> > 2018/08/13 16:30:57 kid1| Process Roles: worker
> > 2018/08/13 16:30:57 kid1| With 4096 file descriptors available
> > 2018/08/13 16:30:57 kid1| Initializing IP Cache...
>
>

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users