Wrong BIN in /etc/default/shinken

Bug #1300394 reported by Micke Löfstrand
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
shinken (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Shinken doesn't start out of the box on Trusty Tahr when installing due to a changed(?) path for BIN in /etc/default/shinken which seems to be /usr/lib/python2.7/dist-packages/shinken/bin/ now. Please see details below.

$ sudo service shinken start
Starting scheduler:
 * FAILED: did not found scheduler file (/usr/share/pyshared/shinken/bin//shinken-scheduler) ; are you sure shinken-scheduler is installed?
   ...fail!
Starting poller:
 * FAILED: did not found poller file (/usr/share/pyshared/shinken/bin//shinken-poller) ; are you sure shinken-poller is installed?
   ...fail!
Starting reactionner:
 * FAILED: did not found reactionner file (/usr/share/pyshared/shinken/bin//shinken-reactionner) ; are you sure shinken-reactionner is installed?
   ...fail!
Starting broker:
 * FAILED: did not found broker file (/usr/share/pyshared/shinken/bin//shinken-broker) ; are you sure shinken-broker is installed?
   ...fail!
Starting receiver:
 * FAILED: did not found receiver file (/usr/share/pyshared/shinken/bin//shinken-receiver) ; are you sure shinken-receiver is installed?
   ...fail!
Starting arbiter:
 * FAILED: did not found arbiter file (/usr/share/pyshared/shinken/bin//shinken-arbiter) ; are you sure shinken-arbiter is installed?
   ...fail!

$ cat /etc/default/shinken
...
## These vars will override the hardcoded ones in init script ##
ETC=/etc/shinken/
VAR=/var/lib/shinken/
BIN=/usr/share/pyshared/shinken/bin/
RUN=/var/run/shinken/
LOG=/var/log/shinken/
...

Changing that to:
$ cat /etc/default/shinken
...
## These vars will override the hardcoded ones in init script ##
ETC=/etc/shinken/
VAR=/var/lib/shinken/
#BIN=/usr/share/pyshared/shinken/bin/
BIN=/usr/lib/python2.7/dist-packages/shinken/bin/
RUN=/var/run/shinken/
LOG=/var/log/shinken/
...

et voilá:

$ sudo service shinken restart
Restarting scheduler
   ...done.
Restarting poller
   ...done.
Restarting reactionner
   ...done.
Restarting broker
   ...done.
Restarting receiver
   ...done.
Restarting arbiter
Doing config check
   ...done.
   ...done.

More information:
$ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04

$ dpkg -l | grep shinken
ii shinken 1.4-2 amd64 Flexible monitoring tool - Meta-package
ii shinken-common 1.4-2 amd64 Flexible monitoring tool - Common files
ii shinken-module-broker-webui 1.4-2 amd64 Shinken WebUI broker module
ii shinken-module-broker-webui-cfgpassword 1.4-2 amd64 Shinken cfg_password authentifcation module for WebUI broker
ii shinken-module-broker-webui-sqlitedb 1.4-2 amd64 Shinken Sqlite storage module for WebUI broker
ii shinken-module-retention-picklefile 1.4-2 amd64 Retention module for Arbiter, Scheduler or Broker

Related branches

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

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

Changed in shinken (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package shinken - 1.4.2-3

---------------
shinken (1.4.2-3) unstable; urgency=medium

  * Fix bin path. LP: #1300394
  * Vcs-Git & Vcs-browser

  [ Sylvestre Ledru ]
  * Silent 3 lintian errors. The sources are there.

 -- Thibault Cohen <email address hidden> Mon, 02 Jun 2014 14:31:28 -0400

Changed in shinken (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jibus (jibe555) wrote :

Using 14.04.2 LTS - No fix for now after update and upgrade packages...

'Solved' the problem (more or less a workaround) by creating a symlink :

sudo ln -s /usr/lib/python2.7/dist-packages/shinken /usr/share/pyshared/shinken

Revision history for this message
Simon Morgan (sjmorgan) wrote :

The package in 14.04 is still broken.

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.