package grafana 2.6.0+dfsg-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1571931 reported by David Miller
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
grafana (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Setting up grafana (2.6.0+dfsg-1) ...
insserv: script grafana: service grafana already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package grafana (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 grafana

Despite this error the service does appear to start and run as expected.

sudo systemctl start grafana
sudo systemctl status grafana
● grafana.service - Starts and stops a single grafana instance on this system
   Loaded: loaded (/lib/systemd/system/grafana.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2016-04-18 23:24:44 EDT; 2s ago
     Docs: http://docs.grafana.org
 Main PID: 2344 (grafana)
   CGroup: /system.slice/grafana.service
           └─2344 /usr/sbin/grafana --config=/etc/grafana/grafana.ini cfg:default.paths.logs=/var/log/grafana cfg:default.paths.data=/var/lib/grafana

Apr 18 23:24:45 metrics grafana[2344]: Command lines overrides:
Apr 18 23:24:45 metrics grafana[2344]: [0]: default.paths.data=/var/lib/grafana
Apr 18 23:24:45 metrics grafana[2344]: [1]: default.paths.logs=/var/log/grafana
Apr 18 23:24:45 metrics grafana[2344]: Paths:
Apr 18 23:24:45 metrics grafana[2344]: home: /usr/share/grafana
Apr 18 23:24:45 metrics grafana[2344]: data: /var/lib/grafana
Apr 18 23:24:45 metrics grafana[2344]: logs: /var/log/grafana
Apr 18 23:24:45 metrics grafana[2344]: 2016/04/18 23:24:45 [I] Database: postgres
Apr 18 23:24:45 metrics grafana[2344]: 2016/04/18 23:24:45 [I] Migrator: Starting DB migration
Apr 18 23:24:45 metrics grafana[2344]: 2016/04/18 23:24:45 [I] Listen: http://0.0.0.0:3000

After rebooting however it appears that the DB migration failed. It's possible that I restarted the server before it had a chance to finish so this may not be part of the upgrade configure bug.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: grafana 2.6.0+dfsg-1
ProcVersionSignature: Ubuntu 4.2.0-34.39-generic 4.2.8-ckt4
Uname: Linux 4.2.0-34-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Mon Apr 18 22:54:54 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-12-30 (110 days ago)
InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Release amd64 (20151021)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.10ubuntu1
SourcePackage: grafana
Title: package grafana 2.6.0+dfsg-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2016-04-19 (0 days ago)

Revision history for this message
David Miller (david3d) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grafana (Ubuntu):
status: New → Confirmed
Changed in grafana (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.