<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hello, <i style="font-family:Arial,Helvetica,sans-serif;background-color:transparent">Vacheslav,<br></i><br>
<pre style="white-space:pre-wrap">> sudo -u squid /usr/libexec/squid/security_file_certgen -s
> /var/cache/squid/ssl_db/certs -M 4MB
> 2026/07/17 08:15:13 sslcrtd_program| FATAL: Cannot generate
> certificates: Uninitialized SSL certificate database directory:
> /var/cache/squid/ssl_db/certs. To initialize, run "security_file_certgen
> -c -s /var/cache/squid/ssl_db/certs".
> exception location: certificate_db.cc(497) load</pre>
You're still using the incorrect path: <code dir="ltr" class="gmail-KDcb0c" style="font-size:14px;margin:0px;border-bottom:0.8px solid rgb(240,242,245)">/var/cache/squid/ssl_db/certs</code>
How is the <code dir="ltr" class="gmail-KDcb0c" style="font-size:14px;margin:0px;border-bottom:0.8px solid rgb(240,242,245)">sslcrtd_program</code> directive configured in your squid.conf?
> so far i managed to do this: stop squid and
> sudo -u squid /usr/libexec/squid/security_file_certgen -s
> /var/cache/squid/ssl_db/certs -M 4MB
> 2026/07/17 08:15:13 sslcrtd_program| FATAL: Cannot generate
> certificates: Uninitialized SSL certificate database directory:
> /var/cache/squid/ssl_db/certs. To initialize, run "security_file_certgen
> -c -s /var/cache/squid/ssl_db/certs".
> exception location: certificate_db.cc(497) load
<br>
<pre style="white-space:pre-wrap">> 16.07.2026 16:36, Alex Rousskov пишет:
>><i> On 2026-07-16 01:57, Vacheslav wrote:
</i>>><i>
</i>>>><i> 2026/07/16 08:34:24 kid1| WARNING: sslcrtd_program #Hlpr1 exited
</i>>><i>
</i>>><i> We need to figure out why your security_file_certgen helpers are
</i>>><i> exiting. IIRC, those helpers have not been upgraded to report their
</i>>><i> fatal failures to cache.log. There are a few tricks you can use to see
</i>>><i> what the problem is, but I would probably start with these three:
</i>>><i>
</i>>><i> 1. Run security_file_certgen with sslcrtd_program parameters from the
</i>>><i> command line, as Squid user. If you are lucky, it will complain about
</i>>><i> something before it starts waiting for the helper request.
</i>
> so far i managed to do this: stop squid and
> sudo -u squid /usr/libexec/squid/security_file_certgen -s
> /var/cache/squid/ssl_db/certs -M 4MB
> 2026/07/17 08:15:13 sslcrtd_program| FATAL: Cannot generate
> certificates: Uninitialized SSL certificate database directory:
> /var/cache/squid/ssl_db/certs. To initialize, run "security_file_certgen
> -c -s /var/cache/squid/ssl_db/certs".
> exception location: certificate_db.cc(497) load
>
>
>
>
>><i> 2. Redirect security_file_certgen stderr (but not stdout!) output into
</i>>><i> a dedicated log file. It may be possible to do that right on the
</i>>><i> sslcrtd_program line, without wrapping the helper into another script.
</i>>
> how to do that?
>
>><i> 3. Enable full debugging, reproduce the problem with a single
</i>>><i> transaction, and send a link to the corresponding compressed cache.log
</i>>><i> file for analysis as detailed at
</i>>><i> <a href="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction">https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</a>
</i>>><i>
</i>>
>> God willing and we be living i'll try this later</pre>
<br></pre></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">пт, 17 июл. 2026 г. в 15:52, Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2026-07-17 01:31, Vacheslav wrote:<br>
<br>
> 16.07.2026 18:19, Andrey K пишет:<br>
>> @Vacheslav:<br>
>> > sudo /usr/libexec/squid/security_file_certgen -c -s<br>
>> > /var/cache/squid/ssl_db/certs -M 4MB<br>
>> You specified the wrong path (the correct one is <br>
>> /var/cache/squid/ssl_db ).<br>
> <br>
> <br>
> good catch:<br>
> now running:<br>
> sudo -u squid /usr/libexec/squid/security_file_certgen -s <br>
> /var/cache/squid/ssl_db -M 4MB<br>
> ^C<br>
> produces nothing.<br>
<br>
That lack of output is a good sign -- the helper managed to start <br>
successfully.<br>
<br>
<br>
> 2026/07/17 08:21:33 kid1| WARNING: sslcrtd_program #Hlpr1 exited<br>
<br>
Helpers are still dying, but it looks like they do it while handling <br>
traffic.<br>
<br>
<br>
>> 2. Redirect security_file_certgen stderr (but not stdout!) output<br>
>> into a dedicated log file. It may be possible to do that right on<br>
>> the sslcrtd_program line, without wrapping the helper into another<br>
>> script.<br>
<br>
> how to do that?<br>
<br>
Try using shell redirection when specifying how to run the helper. <br>
Something along these lines may work:<br>
<br>
sslcrtd_program /usr/local/... -M 4MB >> /tmp/sslcrtd.error.log<br>
<br>
I also recommend using a single helper for the initial tests:<br>
<br>
sslcrtd_children 1 startup=1 idle=1<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
<br>
<br>
> 2026/07/17 08:17:35| Removing PID file (/run/squid.pid)<br>
> 2026/07/17 08:18:54| WARNING: BCP 177 violation. Detected non-functional <br>
> IPv6 loopback.<br>
> 2026/07/17 08:18:54| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_localhost<br>
> configuration context: Default Configuration(15) acl<br>
> 2026/07/17 08:18:54| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_localhost<br>
> configuration context: Default Configuration(15) acl<br>
> 2026/07/17 08:18:54| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_linklocal<br>
> configuration context: Default Configuration(16) acl<br>
> 2026/07/17 08:18:54| Processing Configuration File: <br>
> /etc/squid/squid.conf (depth 0)<br>
> 2026/07/17 08:18:55| Created PID file (/run/squid.pid)<br>
> 2026/07/17 08:18:55 kid1| WARNING: BCP 177 violation. Detected <br>
> non-functional IPv6 loopback.<br>
> 2026/07/17 08:18:55 kid1| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_localhost<br>
> configuration context: Default Configuration(15) acl<br>
> 2026/07/17 08:18:55 kid1| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_localhost<br>
> configuration context: Default Configuration(15) acl<br>
> 2026/07/17 08:18:55 kid1| aclIpParseIpData: IPv6 has not been enabled.<br>
> acl name: to_linklocal<br>
> configuration context: Default Configuration(16) acl<br>
> 2026/07/17 08:18:55 kid1| Processing Configuration File: <br>
> /etc/squid/squid.conf (depth 0)<br>
> 2026/07/17 08:18:55 kid1| Set Current Directory to /var/cache/squid<br>
> 2026/07/17 08:18:55 kid1| Starting Squid Cache version 7.6 for <br>
> x86_64-suse-linux-gnu...<br>
> 2026/07/17 08:18:55 kid1| Service Name: squid<br>
> 2026/07/17 08:18:55 kid1| Process ID 3685<br>
> 2026/07/17 08:18:55 kid1| Process Roles: worker<br>
> 2026/07/17 08:18:55 kid1| With 4096 file descriptors available<br>
> 2026/07/17 08:18:55 kid1| Initializing IP Cache...<br>
> 2026/07/17 08:18:55 kid1| DNS IPv4 socket created at 0.0.0.0, FD 7<br>
> 2026/07/17 08:18:55 kid1| Adding nameserver 10.6.30.40 from /etc/resolv.conf<br>
> 2026/07/17 08:18:55 kid1| Adding nameserver 10.10.10.5 from /etc/resolv.conf<br>
> 2026/07/17 08:18:55 kid1| helperOpenServers: Starting 5/5 <br>
> 'security_file_certgen' processes<br>
> 2026/07/17 08:18:55 kid1| helperOpenServers: Starting 8/16 'ufdbgclient' <br>
> processes<br>
> 2026/07/17 08:18:55 kid1| Logfile: opening log <br>
> daemon:/var/log/squid/access.log<br>
> 2026/07/17 08:18:55 kid1| Logfile Daemon: opening log <br>
> /var/log/squid/access.log<br>
> 2026/07/17 08:18:56 kid1| Unlinkd pipe opened on FD 39<br>
> 2026/07/17 08:18:56 kid1| Local cache digest enabled; rebuild/rewrite <br>
> every 3600/3600 sec<br>
> 2026/07/17 08:18:56 kid1| Store logging disabled<br>
> 2026/07/17 08:18:56 kid1| Swap maxSize 3072000 + 983040 KB, estimated <br>
> 311926 objects<br>
> 2026/07/17 08:18:56 kid1| Target number of buckets: 15596<br>
> 2026/07/17 08:18:56 kid1| Using 16384 Store buckets<br>
> 2026/07/17 08:18:56 kid1| Max Mem size: 983040 KB<br>
> 2026/07/17 08:18:56 kid1| Max Swap size: 3072000 KB<br>
> 2026/07/17 08:18:56 kid1| Rebuilding storage in /var/cache/squid (clean log)<br>
> 2026/07/17 08:18:56 kid1| Using Least Load store dir selection<br>
> 2026/07/17 08:18:56 kid1| Set Current Directory to /var/cache/squid<br>
> 2026/07/17 08:18:56 kid1| Finished loading MIME types and icons.<br>
> 2026/07/17 08:18:56 kid1| HTCP Disabled.<br>
> 2026/07/17 08:18:56 kid1| Pinger socket opened on FD 44<br>
> 2026/07/17 08:18:56 kid1| Squid plugin modules loaded: 0<br>
> 2026/07/17 08:18:56 kid1| Adaptation support is off.<br>
> 2026/07/17 08:18:56 kid1| Accepting SSL bumped HTTP Socket connections <br>
> at conn28 local=<a href="http://0.0.0.0:8080" rel="noreferrer" target="_blank">0.0.0.0:8080</a> remote=[::] FD 42 flags=9<br>
> listening port: 8080<br>
> 2026/07/17 08:18:56 pinger| WARNING: BCP 177 violation. Detected <br>
> non-functional IPv6 loopback.<br>
> 2026/07/17 08:18:56 pinger| Initialising ICMP pinger ...<br>
> 2026/07/17 08:18:56 pinger| ICMP socket opened.<br>
> 2026/07/17 08:18:56 pinger| ICMPv6 socket opened<br>
> 2026/07/17 08:18:56 kid1| Indexing cache entries: 1.84% (4000 out of 217945)<br>
> 2026/07/17 08:18:59 kid1| Done reading /var/cache/squid swaplog (217944 <br>
> entries)<br>
> 2026/07/17 08:18:59 kid1| Finished rebuilding storage from disk.<br>
> 217944 Entries scanned<br>
> 0 Invalid entries<br>
> 0 With invalid flags<br>
> 217944 Objects loaded<br>
> 0 Objects expired<br>
> 0 Objects canceled<br>
> 0 Duplicate URLs purged<br>
> 0 Swapfile clashes avoided<br>
> Took 2.85 seconds (76435.29 objects/sec).<br>
> 2026/07/17 08:18:59 kid1| Beginning Validation Procedure<br>
> 2026/07/17 08:18:59 kid1| Completed Validation Procedure<br>
> Validated 217930 Entries<br>
> store_swap_size = 2764788.00 KB<br>
> 2026/07/17 08:18:59 kid1| storeLateRelease: released 0 objects<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000418+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master55<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master55<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master55<br>
> 2026/07/17 08:18:59 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> <br>
> ........<br>
> <br>
> 2026/07/17 08:21:32 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:32 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000416+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:33 kid1| ERROR: Cannot accept a TLS connection<br>
> problem: failure<br>
> error detail: SQUID_TLS_ERR_ACCEPT+TLS_LIB_ERR=A000418+TLS_IO_ERR=1<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:33 kid1| WARNING: sslcrtd_program #Hlpr1 exited<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:33 kid1| Too few sslcrtd_program processes are running <br>
> (need 1/5)<br>
> active processes: 4<br>
> processes configured to start at (re)configuration: 5<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:33 kid1| helperOpenServers: Starting 1/5 <br>
> 'security_file_certgen' processes<br>
> current master transaction: master57<br>
> 2026/07/17 08:21:33 kid1| Preparing for shutdown after 761 requests<br>
> 2026/07/17 08:21:33 kid1| Waiting 30 seconds for active connections to <br>
> finish<br>
> 2026/07/17 08:21:33 kid1| Closing HTTP(S) port <a href="http://0.0.0.0:8080" rel="noreferrer" target="_blank">0.0.0.0:8080</a><br>
> listening port: 8080<br>
> 2026/07/17 08:21:33 kid1| Closing Pinger socket on FD 44<br>
> 2026/07/17 08:21:33 kid1| ERROR: logfileHandleWrite: <br>
> daemon:/var/log/squid/access.log: error writing ((32) Broken pipe)<br>
> connection: conn2846 local=<a href="http://10.0.0.18:8080" rel="noreferrer" target="_blank">10.0.0.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| storeDirWriteCleanLogs: Starting...<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| 65536 entries written so far.<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| 131072 entries written so far.<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| 196608 entries written so far.<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| Finished. Wrote 217944 entries.<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| Took 0.08 seconds (2736133.78 entries/sec).<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.16.0.7:53255" rel="noreferrer" target="_blank">10.16.0.7:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| FATAL: I don't handle this error well!<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> 2026/07/17 08:21:33 kid1| Squid Cache (Version 7.6): Terminated abnormally.<br>
> connection: conn2846 local=<a href="http://10.10.10.18:8080" rel="noreferrer" target="_blank">10.10.10.18:8080</a> remote=<a href="http://10.1.0.17:53255" rel="noreferrer" target="_blank">10.1.0.17:53255</a> <br>
> flags=1<br>
> CPU Usage: 10.098 seconds = 7.758 user + 2.340 sys<br>
> Maximum Resident Size: 314320 KB<br>
> Page faults with physical i/o: 0<br>
>><br>
>> To recreate a certificate database you should do:<br>
>><br>
>> sudo rm -rf /var/cache/squid/ssl_db<br>
>> sudo /usr/libexec/squid/security_file_certgen -c <br>
>> -s /var/cache/squid/ssl_db -M 4MB<br>
>> sudo chown -R squid:squid /var/cache/squid/ssl_db<br>
>><br>
>> чт, 16 июл. 2026 г. в 16:36, Alex Rousskov <br>
>> <<a href="mailto:rousskov@measurement-factory.com" target="_blank">rousskov@measurement-factory.com</a>>:<br>
>><br>
>> On 2026-07-16 01:57, Vacheslav wrote:<br>
>><br>
>> > 2026/07/16 08:34:24 kid1| WARNING: sslcrtd_program #Hlpr1 exited<br>
>><br>
>> We need to figure out why your security_file_certgen helpers are<br>
>> exiting. IIRC, those helpers have not been upgraded to report their<br>
>> fatal failures to cache.log. There are a few tricks you can use to<br>
>> see<br>
>> what the problem is, but I would probably start with these three:<br>
>><br>
>> 1. Run security_file_certgen with sslcrtd_program parameters from the<br>
>> command line, as Squid user. If you are lucky, it will complain about<br>
>> something before it starts waiting for the helper request.<br>
>><br>
>> 2. Redirect security_file_certgen stderr (but not stdout!) output<br>
>> into a<br>
>> dedicated log file. It may be possible to do that right on the<br>
>> sslcrtd_program line, without wrapping the helper into another script.<br>
>><br>
>> 3. Enable full debugging, reproduce the problem with a single<br>
>> transaction, and send a link to the corresponding compressed<br>
>> cache.log<br>
>> file for analysis as detailed at<br>
>> <a href="https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction" rel="noreferrer" target="_blank">https://wiki.squid-cache.org/SquidFaq/BugReporting#debugging-a-single-transaction</a><br>
>><br>
>><br>
>> Cheers,<br>
>><br>
>> Alex.<br>
>><br>
>> _______________________________________________<br>
>> squid-users mailing list<br>
>> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
>> <a href="https://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a><br>
>><br>
> <br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="https://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>