No feedback from apt-cacher-ng

I use salt stack along with a apt-cacher-ng qube to create templates. The set up was working fine for me until it did not.

I ran qubesctl command to install some packages on a template qube. There were log activity in two places

  1. In dom0, the file /var/log/qubes/mgmt-template-.log had below line
calling 'state.apply <salt stack sls name>'
  1. In apt-cacher-ng qube, the file /var/log/apt-cacher-ng/apt-cacher-ng.log had couple of new lines

For next seven minutes nothing happened. I did not expect the command to run for such long time as I was not installing lot of packages. My problem is there is no feedback on whether something is in progress (like a package is being downloaded) or the process is stuck somewhere. I eventually cancelled the command

Is there a way to know if apt-cacher-ng qube is downloading packages from the internet?

tail -f /var/log/apt-cacher-ng/apt-cacher.log

Then you see the in out packages.

Enable UnbufferLogs in apt-cacher-ng config:

# If set to 1, makes log files be written to disk on every new line. Default
# is 0, buffers are flushed after the client disconnects. Technically,
# it's a convenience alias for the Debug option, see below for details.
#
# UnbufferLogs: 0
1 Like

tailing a log file wont help as there were no logs written for 7 minutes.

UnbufferLogs was 1 in the acng.conf file. I noticed there is another parameter Debug which suppose to print more lines. I’ll try that.