Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm problems #23

Closed
abh opened this issue Nov 7, 2013 · 6 comments
Closed

rpm problems #23

abh opened this issue Nov 7, 2013 · 6 comments

Comments

@abh
Copy link

abh commented Nov 7, 2013

The RHEL x86_64 RPM seems to have some bad paths built-in:

# rpm -Uvh influxdb-latest-1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:influxdb               ########################################### [100%]
influxdb process is not running [ FAILED ]
Starting the process influxdb [ OK ]
sudo: /usr/bin/influxdb-daemon: command not found
Anomalous agent started [ OK ]

rpm -ql shows everything is installed in /opt/influxdb/versions/0.0.9 (which is a weird choice, too).

Finally the rpm also has a .bak file (post_install.sh.bak) which I am guessing wasn't intentional.

@jvshahid
Copy link
Contributor

jvshahid commented Nov 7, 2013

Hey @abh, thanks for reporting these issue. I removed the backup file and fixed the package to start influxdb successfully. Regarding your notes about the weirdness of the path, can you elaborate a little more.

@abh
Copy link
Author

abh commented Nov 8, 2013

Ah – just that the layout you have seems appropriate for "download and unpack a tar ball", but with RPMs the expectation would be that things install in /etc/foo, /usr/bin/foo, /usr/share/foo, etc.

@porjo
Copy link

porjo commented Jul 9, 2014

I've just installed using http://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm and see this message when I go to start the process:

# /etc/init.d/influxdb start
Starting the process influxdb [ OK ]
/etc/init.d/influxdb: line 97: sudo: command not found
influxdb process was started [ OK ]

Influx is not running afterwards.

My issue is a) influxdb has failed to start yet has indicated status OK b) sudo is clearly a dependency here, yet the RPM did not pull it in on install. The rpm .spec file be updated to include a dependency on sudo

@damm
Copy link

damm commented Jul 9, 2014

You have to configure it; then start it @porjo. Influxdb does not want the 'auto start on installation' behavior.

@porjo
Copy link

porjo commented Jul 9, 2014

@damm huh? Please read my comment again. I've updated it for clarity.

@damm
Copy link

damm commented Jul 9, 2014

@porjo hmm it should depend on sudo; as you are lacking that. See #692 as Influxdb does not want to start upon installation.

Your main problem now is it looks like your missing the package sudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants