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

Error: execvp(collectd) failed: No such file or directory #596

Closed
catamphetamine opened this issue Apr 4, 2014 · 3 comments
Closed

Error: execvp(collectd) failed: No such file or directory #596

catamphetamine opened this issue Apr 4, 2014 · 3 comments

Comments

@catamphetamine
Copy link

What does it mean and how can it be fixed?

Apr  4 14:14:36 kuchumovn collectdmon[30705]: Error: execvp(collectd) failed: No such file or directory
Apr  4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
...
Apr  4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr  4 14:14:36 kuchumovn collectdmon[30703]: Warning: restarting collectd
Apr  4 14:14:36 kuchumovn collectdmon[30717]: Error: execvp(collectd) failed: No such file or directory
Apr  4 14:14:36 kuchumovn collectdmon[30703]: Warning: collectd terminated with exit status 255
Apr  4 14:14:36 kuchumovn collectdmon[30703]: Error: collectd is respawning too fast - disabled for 300 seconds
@catamphetamine
Copy link
Author

Managed to resolve the issue.
It happens if I edit the /etc/init.d/collectd file and correct the paths for binaries:

/usr/sbin/collectd    -> /opt/collectd/sbin/collectd
/usr/sbin/collectdmon -> /opt/collectd/sbin/collectdmon

Instead of altering the paths in that file, i tried to:

sudo ln --symbolic /opt/collectd/sbin/collectd /usr/sbin/collectd
sudo ln --symbolic /opt/collectd/sbin/collectdmon /usr/sbin/collectdmon

and it worked

@yonorri
Copy link

yonorri commented Nov 7, 2014

Excellent solution, I was having exactly the same issue.
Many thanks dude.

@TnS-hun
Copy link

TnS-hun commented Jan 17, 2015

It's bad because -c "$DAEMON" is missing in the original /etc/init.d/collectd file.

start-stop-daemon --start --quiet --oknodo --pidfile "$_PIDFILE" \
  --exec $COLLECTDMON_DAEMON -- -P "$_PIDFILE" -c "$DAEMON" -- -C "$CONFIGFILE" \
  || return 2

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

3 participants