24.10.4 Squid start issues

Dear folks, since I am new to this biz I wonder why I am facing severe issues with Squid startup.

Due to lack of nand/ram I decided to deactivate logs/cache.

Only way I can start Squid is doing squid -N -d 1 in Luci Terminal after Router startup….

Any idea? Help kindly appreciated

Kind of logread -e squid should explain better.

Can I do this with logs/cache disabled in foreground?

This is kind of weired I dont know where the double port 3128 comes from, this is not the 1st time this entry is doubled……

root@OpenWrt:\~# logread -e squid
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:32 2026 daemon.warn squid\[2061\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:32 2026 daemon.alert squid\[2061\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:32 2026 daemon.warn squid\[2061\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:34 2026 daemon.warn squid\[2176\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:34 2026 daemon.alert squid\[2176\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:34 2026 daemon.warn squid\[2176\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:39 2026 daemon.notice procd: /etc/rc.d/S95squid_start: \[Squid\] Starte Squid...
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:40 2026 daemon.warn squid\[2537\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:40 2026 daemon.alert squid\[2537\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:40 2026 daemon.warn squid\[2537\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:45 2026 daemon.warn squid\[2744\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:45 2026 daemon.alert squid\[2744\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:45 2026 daemon.warn squid\[2744\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:49 2026 daemon.notice procd: /etc/rc.d/S95squid_start: \[Squid\] läuft bereits
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:51 2026 daemon.warn squid\[2830\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:51 2026 daemon.alert squid\[2830\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:51 2026 daemon.warn squid\[2830\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:34:23 2026 daemon.warn squid\[3005\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:34:23 2026 daemon.alert squid\[3005\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:34:23 2026 daemon.warn squid\[3005\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:34:29 2026 daemon.warn squid\[3006\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:34:29 2026 daemon.alert squid\[3006\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:34:29 2026 daemon.warn squid\[3006\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:29 2026 daemon.info procd: Instance squid::instance1 s in a crash loop 6 crashes, 0 seconds since last crash`Preformatted text`

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/firewall
cat /etc/squid/squid.conf
cat /etc/config/squid
opkg list-installed squid
1 Like

thanks for fixing it up... superfluously looks like generator makes bad conf file....

This is kind of weired I dont know where the double port 3128 comes from, this is not the 1st time this entry is doubled……thanks for pointing this out, not that easy coming from Windows :wink:

root@OpenWrt:\~# logread -e squid
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:32 2026 daemon.warn squid\[2061\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:32 2026 daemon.notice squid\[2061\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:32 2026 daemon.alert squid\[2061\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:32 2026 daemon.warn squid\[2061\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:34 2026 daemon.warn squid\[2176\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:34 2026 daemon.notice squid\[2176\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:34 2026 daemon.alert squid\[2176\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:34 2026 daemon.warn squid\[2176\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:39 2026 daemon.notice procd: /etc/rc.d/S95squid_start: \[Squid\] Starte Squid...
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:40 2026 daemon.warn squid\[2537\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:40 2026 daemon.notice squid\[2537\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:40 2026 daemon.alert squid\[2537\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:40 2026 daemon.warn squid\[2537\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:45 2026 daemon.warn squid\[2744\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:45 2026 daemon.notice squid\[2744\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:45 2026 daemon.alert squid\[2744\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:45 2026 daemon.warn squid\[2744\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:31:49 2026 daemon.notice procd: /etc/rc.d/S95squid_start: \[Squid\] läuft bereits
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:31:51 2026 daemon.warn squid\[2830\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:31:51 2026 daemon.notice squid\[2830\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:31:51 2026 daemon.alert squid\[2830\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:31:51 2026 daemon.warn squid\[2830\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:34:23 2026 daemon.warn squid\[3005\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:34:23 2026 daemon.notice squid\[3005\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:34:23 2026 daemon.alert squid\[3005\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:34:23 2026 daemon.warn squid\[3005\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: Processing Configuration File: /tmp/squid/squid.conf (depth 0)
Wed Feb  4 18:34:29 2026 daemon.warn squid\[3006\]: FATAL: http_port: missing Port: 3128http_port
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: Not currently OK to rewrite swap log.
Wed Feb  4 18:34:29 2026 daemon.notice squid\[3006\]: storeDirWriteCleanLogs: Operation aborted.
Wed Feb  4 18:34:29 2026 daemon.alert squid\[3006\]: FATAL: Bungled /tmp/squid/squid.conf line 93: http_port 3128http_port 3128
Wed Feb  4 18:34:29 2026 daemon.warn squid\[3006\]: Squid Cache (Version 6.11): Terminated abnormally.
Wed Feb  4 18:34:29 2026 daemon.info procd: Instance squid::instance1 s in a crash loop 6 crashes, 0 seconds since last crash`Preformatted text`

is it common issue?

How do you launch squid at startup in case all configured well? just enable or enable then start?

In general services come enabled by default, run command service and see if autostart is enabled.....

Nope, but possible if you accidentally add some semicolon in wrong place...

There were several things I didnt know before additional there were issues with UCI Squid genererator which produces faulty conf resulting in crash when squid being launched through startup. Now is fixed, thanks

double entry on one line ?

Hard to derive not having original conf files...

This certain issue caused by using Generator AND Gui. More precise:

1st when you set values like http_port 3128 in gui you must not set in Generator.

2nd you must not forget to press enter when using generator

since values are appended .....

Additional: Ram being freed causing terminated services.

I am new to all this, been learning a lot and still going to..

Kind of generator gets disabled when you specify a default conf file.
can you show input(s) that trigger wrong conf being generated?

Well it is just missed pressed Enter key causing values set in GUI are appended to config file.

A. You can set in UCI web gui:

3128

B. In generator you can set as much as you like:

#this is generator file
# specify settings as follows
http_port 3128

As result the tmp/squid.conf looks like this!

#this is generator file
# specify settings as follows
http_port 3128http_port 3128

In case you press enter after last generator line you get:

#this is generator file
# specify settings as follows
http_port 3128
http_port 3128

Which is still doubled port but guess no issue OR just as simple as this: write entire conf file using generator

Thats it

1 Like