Fixing file perms doesn't work as work around. File is rewritten without the read perms:
ubuntu@juju-machine-1-lxc-21:~$ ls -l /var/lib/rabbitmq/data total 152 -rw-r--r-- 1 root root 54 Mar 1 05:00 juju-machine-1-lxc-21_general_stats.dat -rw------- 1 root root 150382 Mar 1 05:00 juju-machine-1-lxc-21_queue_stats.dat
ubuntu@juju-machine-1-lxc-21:~$ sudo chmod a+r /var/lib/rabbitmq/data/juju-machine-1-lxc-21_queue_stats.dat
ubuntu@juju-machine-1-lxc-21:~$ ls -l /var/lib/rabbitmq/data total 152 -rw-r--r-- 1 root root 54 Mar 1 05:00 juju-machine-1-lxc-21_general_stats.dat -rw-r--r-- 1 root root 150382 Mar 1 05:00 juju-machine-1-lxc-21_queue_stats.dat
ubuntu@juju-machine-1-lxc-21:~$ ls -l /var/lib/rabbitmq/data total 152 -rw-r--r-- 1 root root 54 Mar 1 05:05 juju-machine-1-lxc-21_general_stats.dat -rw------- 1 root root 150273 Mar 1 05:05 juju-machine-1-lxc-21_queue_stats.dat
Fixing file perms doesn't work as work around. File is rewritten without the read perms:
ubuntu@ juju-machine- 1-lxc-21: ~$ ls -l /var/lib/ rabbitmq/ data 1-lxc-21_ general_ stats.dat 1-lxc-21_ queue_stats. dat
total 152
-rw-r--r-- 1 root root 54 Mar 1 05:00 juju-machine-
-rw------- 1 root root 150382 Mar 1 05:00 juju-machine-
ubuntu@ juju-machine- 1-lxc-21: ~$ sudo chmod a+r /var/lib/ rabbitmq/ data/juju- machine- 1-lxc-21_ queue_stats. dat
ubuntu@ juju-machine- 1-lxc-21: ~$ ls -l /var/lib/ rabbitmq/ data 1-lxc-21_ general_ stats.dat 1-lxc-21_ queue_stats. dat
total 152
-rw-r--r-- 1 root root 54 Mar 1 05:00 juju-machine-
-rw-r--r-- 1 root root 150382 Mar 1 05:00 juju-machine-
ubuntu@ juju-machine- 1-lxc-21: ~$ ls -l /var/lib/ rabbitmq/ data 1-lxc-21_ general_ stats.dat 1-lxc-21_ queue_stats. dat
total 152
-rw-r--r-- 1 root root 54 Mar 1 05:05 juju-machine-
-rw------- 1 root root 150273 Mar 1 05:05 juju-machine-