Influxdb doesn't start on CentOS

Bug #1489357 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Committed
Medium
Swann Croiset

Bug Description

influxdb-0.9.2-1.x86_64

Puppet error:
Error: Could not start Service[influxdb]: Execution of '/sbin/service influxdb start' returned 1:
Error: /Stage[main]/Influxdb::Service/Service[influxdb]/ensure: change from stopped to running failed: Could not start Service[influxdb]: Execution of '/sbin/service influxdb start' returned 1:

Try manually:
/sbin/service influxdb start
Starting the process influxd [ OK ]
This account is currently not available.
influxd process failed to start [ FAILED ]

grep influx /etc/passwd
influxdb:x:497:497::/home/influxdb:/sbin/nologin

Work arrounds:
1/ modify the init script to add a shell option for the command 'su'
su $USER -s /bin/bash -c "nohup $daemon -pidfile $pidfile -config $config $INFLUXD_OPTS >>$STDOUT 2>>$STDERR &"

2/ configure a shell for influxdb user

3/ upgrade to influxdb-0.9.3 which set the shell /bin/bash for the user

Tags: lma
Swann Croiset (swann-w)
Changed in fuel-plugins:
assignee: nobody → Swann Croiset (swann-w)
Revision history for this message
Swann Croiset (swann-w) wrote :

never mind, this is the manifest setup_influxdir.pp which set the shell to /sbin/nologin.

the package heka 0.9.2 set /bin/bash

Changed in fuel-plugins:
milestone: none → 7.0
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

I vote for option 1. Note that there is a bug in InfluxDB v0.9.3 where influxd runs as root on CentOS. We should consider patching the init script for this bug too when we switch to v0.9.3.

[1] https://github.com/influxdb/influxdb/issues/3803

Revision history for this message
Swann Croiset (swann-w) wrote :

the pull request on influxdb side https://github.com/influxdb/influxdb/pull/3868

Revision history for this message
Swann Croiset (swann-w) wrote :

init script has been merged on infuxdb, the fix will available in the next release v0.9.4

Changed in fuel-plugins:
status: Triaged → Fix Committed
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.