Install hook fails due to squid syntax error

Bug #1744220 reported by Barry Price
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Fix Released
Low
Haw Loeung

Bug Description

The charm writes the following line to /etc/squid-deb-proxy/squid-deb-proxy.conf:

cache_dir aufs /srv/ubuntu-repository-cache/squid 0 16 256

Apparently that size setting of 0 is invalid:

https://pastebin.ubuntu.com/26414982/

Amending the above line to this (for a 4GB on-disk cache) fixes the problem, but the charm will undo the fix:

cache_dir aufs /srv/ubuntu-repository-cache/squid 4096 16 256

Related branches

Revision history for this message
Barry Price (barryprice) wrote :

On further investigation, this seems to be limited to low-RAM units.

Deploying with "mem=4G" constraints solves the problem (default here is 1G).

Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: New → In Progress
assignee: nobody → Haw Loeung (hloeung)
importance: Undecided → Low
Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: In Progress → Fix Committed
Haw Loeung (hloeung)
Changed in ubuntu-repository-cache:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.