ubuntu-repository-cache fails to sync because its logs file does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-repository-cache (Juju Charms Collection) |
Fix Committed
|
Critical
|
Chris Glass |
Bug Description
Hi,
We redeployed some environments with the latest ubuntu-
The cron job is :
ubuntu@machine-1:~$ cat /etc/cron.
PATH=/usr/
LOCAL_UNIT=
APACHE_
SYNC_HOST=
UNIT_PATH=
# This cronjob will make the leader sync its view of the metadata with upstream
# It will then trigger a juju-run to let its peers synchronise.
59 * * * * www-sync python3 /var/lib/
and the /var/log/
We should probably :
* create a dedicated directory in /var/log, with the proper permissions, and log there
* timestamp the logs
* rotate them
The last 2 items can be handled by e.g. Python logging using https:/
Changed in ubuntu-repository-cache (Juju Charms Collection): | |
status: | New → Fix Committed |
assignee: | nobody → Chris Glass (tribaal) |
importance: | Undecided → Critical |
tags: | added: id-58c7fa141bf78a59b1f110d6 |