Problem Description
I can’t enable the Store Metrics option in Cockpit, the switch always goes back to off.
Steps to Reproduce
- Login to FreedomBox.
- Log in to Cockpit
- Click the Enable Store Metrics button and try to install necessary packages. When PackageKit crashes, install them from the command line.
- Click on the “On” button to store the metrics.
Expected Results
I expected to be able to see metrics in different time frames and that they wouldn’t be lost when I log out from Cockpit.
Actual results
Every time I tried to install the cockpit-pcp
package PackageKit crashed. So I opened an SSH session to the server, tried to remove pcp
with a sudo apt-get remove --purge pcp
and then tried to reinstall it along with cockpit-pcp
(thought it was worth giving it a try). The remove --purge command returned the following warnings:
dpkg: warning: while removing pcp, directory ‘/var/log/pcp/pmproxy’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/log/pcp/pmlogger’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/log/pcp/pmie’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/log/pcp/pmcd’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/lib/pcp/pmns’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/lib/pcp/config/pmlogger’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/lib/pcp/config/pmie’ not empty so not removed
dpkg: warning: while removing pcp, directory ‘/var/lib/pcp/config/pmda’ not empty so not removed
The reinstallation seems to have worked fine according to the output of the command line, but I have never been able to enable the Store Metrics option in Cockpit. The screenshot below should give an idea. What do I need to do to enable that option? Thanks in advance.
Screenshot
Information
- FreedomBox version: Debian GNU/Linux 10 (buster) and FreedomBox version 21.1. FreedomBox is up to date.
- Hardware: Olimex LIME2-SERVER-1000GB-HDD
- How did you install FreedomBox?: ‘by downloading a stable image from https://freedombox.org’)