[squid-users] Portal Splash Page 4.7 -> 5.7 FATAL: (ext_session_acl): Failed to open session db

MATYAS, Tibor tibor.matyas at dsi-as.de
Fri Feb 17 14:20:50 UTC 2023


Here are my further experiments:
#1 Created an empty tdb database with tdbtool,
the errors are gone, although no sessions are stored, the file remains 
untouched.

#2 recompiled squid without tdb -> fallback to berkeleydb ? like in 4.x:
same errors in the log:

FATAL: (ext_session_acl): Failed to open session db '/tmp/session/session'
2023/02/17 15:09:15 kid1| WARNING: external_acl_type #Hlpr112520 exited
     current master transaction: master3
2023/02/17 15:09:15 kid1| Too few external_acl_type processes are 
running (need 1/5)
     current master transaction: master3
2023/02/17 15:09:15 kid1| Starting new helpers
     current master transaction: master3
2023/02/17 15:09:15 kid1| helperOpenServers: Starting 1/5 
'ext_session_acl' processes
     current master transaction: master3
FATAL: (ext_session_acl): Failed to open session db '/tmp/session/session'
2023/02/17 15:09:15 kid1| WARNING: external_acl_type #Hlpr112521 exited
     current master transaction: master3
2023/02/17 15:09:15 kid1| Too few external_acl_type processes are 
running (need 1/5)
     current master transaction: master3
2023/02/17 15:09:15 kid1| Starting new helpers
     current master transaction: master3
2023/02/17 15:09:15 kid1| helperOpenServers: Starting 1/5 
'ext_session_acl' processes
     current master transaction: master3

An empty session file with zero byte is always created (with or without 
tdb), and then the error flow.

Searched on the internet without result. Hopefully someone is still 
using splash with version 5

br, Tibor

Am 17.02.2023 um 10:09 schrieb MATYAS, Tibor:
> Hello List,
>
> trying to move from 4.7 to 5.7 (on gentoo Linux).
> Splash portal is in use 
> https://wiki.squid-cache.org/ConfigExamples/Portal/Splash
>
> squid -k parse -> OK
> /var/lib/squid/session/ is clean, old berkeleyDB session files deleted.
> Owner of the folder is the squid user.
>
> Squid compiled with tdb:
>
> Squid Cache: Version 5.7
> Service Name: squid
> Gentoo squid-5.7-r1 (r: NONE)
> This binary uses OpenSSL 1.1.1t  7 Feb 2023. For legal restrictions on 
> distribution see https://www.openssl.org/source/license.html
> configure options:  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' 
> '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' 
> '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' 
> '--localstatedir=/var/lib' '--datarootdir=/usr/share' 
> '--disable-dependency-tracking' '--disable-silent-rules' 
> '--disable-static' '--docdir=/usr/share/doc/squid-5.7-r1' 
> '--htmldir=/usr/share/doc/squid-5.7-r1/html' '--with-sysroot=/' 
> '--libdir=/usr/lib64' '--datadir=/usr/share/squid' 
> '--libexecdir=/usr/libexec/squid' '--localstatedir=/var' 
> '--sysconfdir=/etc/squid' '--with-default-user=squid' 
> '--with-logdir=/var/log/squid' '--with-pidfile=/run/squid.pid' 
> '--enable-build-info=Gentoo squid-5.7-r1 (r: NONE)' 
> '--enable-log-daemon-helpers' '--enable-url-rewrite-helpers' 
> '--enable-cache-digests' '--enable-delay-pools' '--enable-disk-io' 
> '--enable-eui' '--enable-icmp' '--enable-ipv6' 
> '--enable-follow-x-forwarded-for' '--enable-removal-policies=lru,heap' 
> '--disable-strict-error-checking' '--disable-arch-native' 
> '--with-large-files' '--with-build-environment=default' '--with-tdb' 
> '--without-included-ltdl' '--with-ltdl-include=/usr/include' 
> '--with-ltdl-lib=/usr/lib64' '--with-libcap' '--enable-snmp' 
> '--with-openssl' '--with-nettle' '--with-gnutls' '--enable-ssl-crtd' 
> '--without-systemd' '--without-cppunit' '--disable-ecap' 
> '--disable-esi' '--disable-expat' '--disable-libxml2' '--enable-htcp' 
> '--enable-wccp' '--enable-wccpv2' '--without-mit-krb5' 
> '--without-heimdal-krb5' '--enable-linux-netfilter' 
> '--enable-storeio=aufs,diskd,rock,ufs' 
> '--enable-auth-basic=NCSA,POP3,getpwnam,PAM' 
> '--enable-auth-digest=file' '--enable-auth-ntlm=none' 
> '--enable-auth-negotiate=none' 
> '--enable-external-acl-helpers=file_userip,session,unix_group,delayer,time_quota' 
> 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 
> 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-march=nocona -O2 -pipe 
> -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 
> 'CXXFLAGS=-march=nocona -O2 -pipe -fomit-frame-pointer' 
> 'BUILDCXX=x86_64-pc-linux-gnu-g++' 'BUILDCXXFLAGS=-march=nocona -O2 
> -pipe -fomit-frame-pointer'
>
> starting squid results in:
>
> FATAL: (ext_session_acl): Failed to open session db 
> '/var/lib/squid/session/session'
> 2023/02/17 09:21:11 kid1| WARNING: external_acl_type #Hlpr27652 exited
>     current master transaction: master3
> 2023/02/17 09:21:11 kid1| Too few external_acl_type processes are 
> running (need 1/1)
>     current master transaction: master3
> 2023/02/17 09:21:11 kid1| Starting new helpers
>     current master transaction: master3
> 2023/02/17 09:21:11 kid1| helperOpenServers: Starting 1/1 
> 'ext_session_acl' processes
>     current master transaction: master3
>
> What am I missing?
>
> Thanks a lot and br
> Tibor
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users



--------------------------------------------------
DSI Aerospace Technologie GmbH

Sitz der Gesellschaft: Otto-Lilienthal-Str. 1, D-28199 Bremen, Germany
Web: http://www.dsi-as.de

Geschaeftsfuehrer: Dr.-Ing. Christian Dierker
                   M. Sc. Elias Hashem

HRB 17726, Amtsgericht Bremen
USt-IdNr.: DE 192 681 774
--------------------------------------------------





More information about the squid-users mailing list