telegraf package maintainer scripts broken - telegraf service not restarting after upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Fix Released
|
High
|
Telegraf Devs |
Bug Description
Hi,
(not a charm bug, but this is the best way I found to report a package bug)
On xenial, the telegraf service is not started back up after a pakage upgrade. Simulation with --reinstall below. This is impacting at least version 1.6.4+git-
I believe this is because prerm disables the service. We probably should only be using dh to handle service start/stop/
ubuntu@ubuntu:~$ sudo systemctl status telegraf.service
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/lib/systemd/
Active: active (running) since Mon 2018-08-06 08:02:00 UTC; 1min 45s ago
Docs: https:/
Main PID: 3275 (telegraf)
CGroup: /system.
└─3275 /usr/bin/telegraf -config /etc/telegraf/
Aug 06 08:02:00 ubuntu systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB.
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
ubuntu@ubuntu:~$ sudo apt-get install --reinstall telegraf
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
Need to get 0 B/6,737 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 135172 files and directories currently installed.)
Preparing to unpack .../telegraf_
Removed symlink /etc/systemd/
Removed symlink /etc/systemd/
Unpacking telegraf (1.6.4+
Setting up telegraf (1.6.4+
telegraf.service is a disabled or a static unit not running, not starting it.
telegraf.service is a disabled or a static unit, not starting it.
ubuntu@ubuntu:~$ sudo systemctl status telegraf.service
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Docs: https:/
Aug 06 07:55:46 ubuntu systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
Aug 06 08:02:00 ubuntu systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB.
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:02:00 ubuntu telegraf[3275]: 2018-08-
Aug 06 08:03:53 ubuntu systemd[1]: Stopping The plugin-driven server agent for reporting metrics into InfluxDB...
Aug 06 08:03:53 ubuntu systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
Aug 06 08:03:53 ubuntu systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
Changed in telegraf-charm: | |
importance: | Undecided → High |
assignee: | nobody → Telegraf Devs (telegraf-devs) |
summary: |
- telegraf package maintainer scripts broken + telegraf package maintainer scripts broken - telegraf service not + restarting after upgrade |
Fixed with: /git.launchpad. net/~telegraf- devs/telegraf/ +git/packaging/ commit/ ?id=2e1f49eeb8c d9027bb7fcba4f3 912c75744d7f6e
https:/