assertion failed

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

assertion failed

L.P.H. van Belle
Hai,
 
Im testing squid 4.1 on Debian Stretch, i've rebuilded the Debian Sid 4.1 to Stretch.
Everything looks good, i only see one failed line in cache.log ( see below. )
this is the default configuration, only 1 change made.
in debian we have : /etc/squid/conf.d/debian.conf
# Squid configuration settings for Debian
#
 
# Logs are managed by logrotate on Debian
logfile_rotate 0
 
# For extra security Debian packages only allow
# localhost to use the proxy on new installs
#
http_access allow localnet                << i enable only the localnet.
 
If i google for "assertion failed: comm.cc:428: "!isOpen(conn->fd)" 
i get only 3 hits, is someone knows what this is, because i cant figure this out.
 
 
The is the content.
2018/08/02 06:25:01| Set Current Directory to /var/spool/squid
2018/08/02 06:25:01 kid1| storeDirWriteCleanLogs: Starting...
2018/08/02 06:25:01 kid1|   Finished.  Wrote 0 entries.
2018/08/02 06:25:01 kid1|   Took 0.00 seconds (  0.00 entries/sec).
2018/08/02 06:25:01 kid1| logfileRotate: daemon:/var/log/squid/access.log
2018/08/02 06:25:01 kid1| logfileRotate: daemon:/var/log/squid/access.log
2018/08/02 06:25:01 kid1| assertion failed: comm.cc:428: "!isOpen(conn->fd)"                <<< This one ?
2018/08/02 06:25:01 kid1| Set Current Directory to /var/spool/squid
2018/08/02 06:25:01 kid1| Starting Squid Cache version 4.1 for x86_64-pc-linux-gnu...
2018/08/02 06:25:01 kid1| Service Name: squid
2018/08/02 06:25:01 kid1| Process ID 26222
2018/08/02 06:25:01 kid1| Process Roles: worker
2018/08/02 06:25:01 kid1| With 1024 file descriptors available
2018/08/02 06:25:01 kid1| Initializing IP Cache...
2018/08/02 06:25:01 kid1| DNS Socket created at [::], FD 5
2018/08/02 06:25:01 kid1| DNS Socket created at 0.0.0.0, FD 9
2018/08/02 06:25:01 kid1| Adding domain internal.domain.tld from /etc/resolv.conf
2018/08/02 06:25:01 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2018/08/02 06:25:01 kid1| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2018/08/02 06:25:01 kid1| Adding nameserver 192.168.0.2 from /etc/resolv.conf
2018/08/02 06:25:01 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2018/08/02 06:25:01 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2018/08/02 06:25:01 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2018/08/02 06:25:01 kid1| Store logging disabled
2018/08/02 06:25:01 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2018/08/02 06:25:01 kid1| Target number of buckets: 1008
2018/08/02 06:25:01 kid1| Using 8192 Store buckets
2018/08/02 06:25:01 kid1| Max Mem  size: 262144 KB
2018/08/02 06:25:01 kid1| Max Swap size: 0 KB
2018/08/02 06:25:01 kid1| Using Least Load store dir selection
2018/08/02 06:25:01 kid1| Set Current Directory to /var/spool/squid
2018/08/02 06:25:01 kid1| Finished loading MIME types and icons.
2018/08/02 06:25:01 kid1| HTCP Disabled.
2018/08/02 06:25:01 kid1| Pinger socket opened on FD 14
2018/08/02 06:25:01 kid1| Squid plugin modules loaded: 0
2018/08/02 06:25:01 kid1| Adaptation support is off.
2018/08/02 06:25:01 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 12 flags=9
2018/08/02 06:25:01| pinger: Initialising ICMP pinger ...
2018/08/02 06:25:01| pinger: ICMP socket opened.
2018/08/02 06:25:01| pinger: ICMPv6 socket opened
2018/08/02 06:25:02 kid1| storeLateRelease: released 0 objects
2018/08/02 07:10:26 kid1| Logfile: opening log stdio:/var/spool/squid/netdb.state
2018/08/02 07:10:26 kid1| netdbSaveState stdio:/var/spool/squid/netdb.state: (0) No error.
 
 
Best regards,
 
Louis
 

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

Re: assertion failed

Alex Rousskov
On 08/02/2018 07:46 AM, L.P.H. van Belle wrote:
  
> If i google for "assertion failed: comm.cc:428: "!isOpen(conn->fd)" 
> i get only 3 hits, is someone knows what this is, because i cant figure
> this out.

When facing an assertion, one should check Squid bugzilla:
https://bugs.squid-cache.org/show_bug.cgi?id=4796

Alex.
 
> 2018/08/02 06:25:01 kid1| storeDirWriteCleanLogs: Starting...
> 2018/08/02 06:25:01 kid1| logfileRotate: daemon:/var/log/squid/access.log
> 2018/08/02 06:25:01 kid1| logfileRotate: daemon:/var/log/squid/access.log
> 2018/08/02 06:25:01 kid1| assertion failed: comm.cc:428: "!isOpen(conn->fd)"


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

Re: assertion failed

L.P.H. van Belle
Hello Alex,

Thank you for the reply and the bug report link.
Totaly forgot to check the bugzilla, sorry for that.

I did read it and that exact what it is.

I also can confirm that the assertion only happens with the logrotate.
Squid does not crash so that looks all ok to me, i just dont like the messages in my logs.
So for now i changed the logrotate, which eliminated the message.
From the default debian logrotate, and yes, i would preffer squid -k rotate also.
But for now, i'll restart.

I changed logrotate to:

prerotate
   test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports daily
Endscript

postrotate
if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet squid.service; then
   systemctl restart 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

Best regards,

Louis



> -----Oorspronkelijk bericht-----
> Van: Alex Rousskov [mailto:[hidden email]]
> Verzonden: donderdag 2 augustus 2018 17:43
> Aan: L.P.H. van Belle; [hidden email]
> Onderwerp: Re: [squid-users] assertion failed
>
> On 08/02/2018 07:46 AM, L.P.H. van Belle wrote:
>   
> > If i google for "assertion failed: comm.cc:428: "!isOpen(conn->fd)" 
> > i get only 3 hits, is someone knows what this is, because i
> cant figure
> > this out.
>
> When facing an assertion, one should check Squid bugzilla:
> https://bugs.squid-cache.org/show_bug.cgi?id=4796
>
> Alex.
>  
> > 2018/08/02 06:25:01 kid1| storeDirWriteCleanLogs: Starting...
> > 2018/08/02 06:25:01 kid1| logfileRotate:
> daemon:/var/log/squid/access.log
> > 2018/08/02 06:25:01 kid1| logfileRotate:
> daemon:/var/log/squid/access.log
> > 2018/08/02 06:25:01 kid1| assertion failed: comm.cc:428:
> "!isOpen(conn->fd)"
>
>
>

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

Re: assertion failed

Alex Rousskov
On 08/03/2018 01:40 AM, L.P.H. van Belle wrote:

> I also can confirm that the assertion only happens with the logrotate.
> Squid does not crash

When a Squid process hits an assertion, that process should crash. The
only (highly questionable) exception to that rule in the current code,
AFAICT, is hitting an assertion while shutting down. I would not rely on
that exception long-term.

Most likely, your Squid worker does crash and is restarted by the master
process.

Alex.


>> -----Oorspronkelijk bericht-----
>> Van: Alex Rousskov [mailto:[hidden email]]
>> Verzonden: donderdag 2 augustus 2018 17:43
>> Aan: L.P.H. van Belle; [hidden email]
>> Onderwerp: Re: [squid-users] assertion failed
>>
>> On 08/02/2018 07:46 AM, L.P.H. van Belle wrote:
>>   
>>> If i google for "assertion failed: comm.cc:428: "!isOpen(conn->fd)" 
>>> i get only 3 hits, is someone knows what this is, because i
>> cant figure
>>> this out.
>>
>> When facing an assertion, one should check Squid bugzilla:
>> https://bugs.squid-cache.org/show_bug.cgi?id=4796
>>
>> Alex.
>>  
>>> 2018/08/02 06:25:01 kid1| storeDirWriteCleanLogs: Starting...
>>> 2018/08/02 06:25:01 kid1| logfileRotate:
>> daemon:/var/log/squid/access.log
>>> 2018/08/02 06:25:01 kid1| logfileRotate:
>> daemon:/var/log/squid/access.log
>>> 2018/08/02 06:25:01 kid1| assertion failed: comm.cc:428:
>> "!isOpen(conn->fd)"
>>
>>
>>
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>

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