Project

General

Profile

Actions

Bug #14406

closed

Squid Proxy version 0.4.46 Missing Error subfolder and files for "en" or "en-usa" and all other languages.

Added by Jonathan Lee 12 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Squid
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
23.05
Affected Architecture:
All

Description

After 23.05 update and new Squid version 0.4.46 installed errors started showing,

"ERROR: loading file 9;/usr/local/etc/squid/errors/en/ERR_ZERO_SIZE_OBJECT': (2) No such file or directory"

and many others the path /usr/local/squid/errors/templates is the only sub folder listed with error code.

It seems Headers Handling, Language and Other Customizations settings for languages is not loading the error codes into the required subfolder. System is functional however no errors are listed

Fix:

cp -a /usr/local/etc/squid/errors/templates/. /usr/local/etc/squid/errors/en-us

cp -a /usr/local/etc/squid/errors/templates/. /usr/local/etc/squid/errors/en

seems to resolve this however for other languages there is no error codes anylonger.


Files

Screenshot 2023-05-22 at 4.33.22 PM.png (705 KB) Screenshot 2023-05-22 at 4.33.22 PM.png Error Codes Jonathan Lee, 05/23/2023 12:40 AM
Screenshot 2023-05-22 at 4.35.37 PM.png (227 KB) Screenshot 2023-05-22 at 4.35.37 PM.png Error codes for the Subfolder are missing other languages and en and en-usa errors Jonathan Lee, 05/23/2023 12:41 AM
Screenshot 2023-05-22 at 4.38.42 PM.png (444 KB) Screenshot 2023-05-22 at 4.38.42 PM.png Error codes that squid is looking for seem to be listed under templates path Jonathan Lee, 05/23/2023 12:42 AM
Screenshot from 2023-06-03 16-04-00.png (101 KB) Screenshot from 2023-06-03 16-04-00.png Chris W, 06/03/2023 10:23 PM
clipboard-202307132053-7gpql.png (902 KB) clipboard-202307132053-7gpql.png K Puleston, 07/13/2023 07:53 PM
Actions #1

Updated by Jonathan Lee 12 months ago

Path I have taken to correct:
1. full remove and reinstall of Squid and Squidguard package error returned
2. copied templates into new subfolder en and en-usa

Actions #2

Updated by Chris W 11 months ago

Can confirm on both a fresh installation of 23.05 with Squid 0.4.46, and one which was upgraded from 23.01 with Squid previously on version 0.4.45_10. Plus 23.01 is unaffected. It looks like only the Cache Table under Services > Squid Proxy Server > Real Time is affected, and irrespective of the language set in System > General Setup.

Actions #3

Updated by Jonathan Lee 11 months ago

Thank you for taking the time to look into this

Actions #4

Updated by Marcos M 11 months ago

The issue is likely caused by https://redmine.pfsense.org/issues/13776

Actions #5

Updated by Jonathan Lee 11 months ago

Hi Marcos, I wanted to confirm that this issue was not present until inplace upgrade to 23.05

Actions #6

Updated by Pete Wright 11 months ago

Jonathan Lee wrote in #note-5:

Hi Marcos, I wanted to confirm that this issue was not present until inplace upgrade to 23.05

I can confirm that this is the case on my end. I have two systems, one 23.01 which does not exhibit this error. The system running 23.05 does have the error. My temporary workaround is to create a symlink of /usr/local/etc/squid/errors/templates pointing to /usr/local/etc/squid/errors/en. this silenced the error.

i am seeing a new error in regards to "ERROR: Directive 'dns_v4_first' is obsolete." but that is most likely unrelated to this specific issue.

Actions #7

Updated by Jonathan Lee 10 months ago

@Pete Wright thanks for confirming this issue.

Actions #8

Updated by Eric Reiss 10 months ago

Jonathan Lee and Pete Wright I wanted to confirm that I had not seen this thread and had performed similar steps to correct the missing Error codes file and I see the dns_v4_first obsolete messages too.

New install on 23.01 upgraded to 23.05 and clean/new install of Squid 0.4.46.

Actions #9

Updated by K Puleston 10 months ago

Hello,

I wanted to add an issue I am experiencing with Squid plugin version 0.4.46.

I am not sure if this issue arose once I upgraded PfSense 2.7.0 and installed the latest compatible Squid version, or if it was a prevalent issue back on PfSense 2.6.0. I was browsing through my Real Time logs in Squid Proxy and noticed in the "Squid Cache Table" section that I am getting the following errors.

Actions #10

Updated by Jonathan Lee 8 months ago

https://bugs.squid-cache.org/show_bug.cgi?id=5296

Bugzilla Squid ticket now open for more Squid support visibility.

Actions #11

Updated by Jonathan Lee 8 months ago

"2Amos Jeffries 2023-08-29 18:26:02 UTC
AFAICT "0.4.46" is the version number of the pfsense plugin used to integrate with Squid.

This sounds like a problem we had with the release packaging of Squid 6.1. The translation templates did not get included in the release tarball. That was resolved by the 6.2 release.

As a workaround if upgrade is not possible, one can manually install the Squid translation templates bundle (http://www.squid-cache.org/Versions/langpack/)."

Confirmed issue

Actions #12

Updated by Marcos M 8 months ago

  • Status changed from Confirmed to Feedback

I tested this on 23.09 dev snapshots and I'm not able to replicate the issue. The files are in the directory:

Show

For reference, the latest upstream port version of squid is 5.9 which is what the pfSense package uses.

Actions #13

Updated by Jonathan Lee 7 months ago

Thank you !!

Actions #14

Updated by Jonathan Lee 4 months ago

ln -s /usr/local/etc/squid/errors/templates /usr/local/etc/squid/en

This command fixes the problem.

Link the file to the one it wants to use create a linker

Actions #15

Updated by Jonathan Lee 4 months ago

Correction

ln -s /usr/local/etc/squid/errors/templates /usr/local/etc/squid/errors/en-us

and

ln -s /usr/local/etc/squid/errors/templates /usr/local/etc/squid/errors/en

Actions #16

Updated by Steve Wheeler 4 months ago

  • Status changed from Feedback to Resolved

This is fixed in 23.09.1. The language folders are present:

[23.09.1-RELEASE][admin@6100.stevew.lan]/root: ls /usr/local/etc/squid/errors/
COPYRIGHT   ar-qa       de          en-in       es-co       es-us       fr-fr       ja          oc          sl          sv-fi       zh-hans-sg
TRANSLATORS ar-sa       de-at       en-jm       es-cr       es-uy       fr-lu       ja-jp       pl          sl-si       sv-se       zh-hant
af          ar-sy       de-ch       en-nz       es-cu       es-ve       fr-mc       ka          pl-pl       spq         templates   zh-hant-hk
ar          ar-tn       de-de       en-ph       es-do       es-xl       he          ka-ge       pt          sr          th          zh-hant-mo
ar-ae       ar-ye       de-li       en-sg       es-ec       et          he-il       ko          pt-br       sr-cyrl     th-th       zh-hant-tw
ar-bh       az          de-lu       en-tt       es-es       et-ee       hu          ko-kp       pt-bz       sr-cyrl-cs  tr          zh-hk
ar-dz       az-az       el          en-uk       es-gt       fa          hu-hu       ko-kr       pt-pt       sr-cyrl-me  tr-tr       zh-mo
ar-eg       bg          el-gr       en-us       es-hn       fa-fa       hy          lt          pt-xl       sr-cyrl-rs  uk          zh-sg
ar-iq       bg-bg       en          en-za       es-mx       fa-ir       hy-am       lt-lt       ro          sr-latn     uk-ua       zh-tw
ar-jo       ca          en-au       en-zw       es-ni       fi          hy-armn     lv          ro-md       sr-latn-cs  uz
ar-kw       ca-es       en-bz       es          es-pa       fi-fi       id          lv-lv       ro-ro       sr-latn-me  vi
ar-lb       cs          en-ca       es-ar       es-pe       fr          id-id       ms          ru          sr-latn-rs  vi-vn
ar-ly       cs-cz       en-cn       es-bo       es-pr       fr-be       it          ms-my       ru-ru       sr-rs       zh-cn
ar-ma       da          en-gb       es-bz       es-py       fr-ca       it-ch       nl          sk          sr-sp       zh-hans
ar-om       da-dk       en-ie       es-cl       es-sv       fr-ch       it-it       nl-nl       sk-sk       sv          zh-hans-cn

Actions

Also available in: Atom PDF