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

Created on 4 Apr 2014  路  3Comments  路  Source: collectd/collectd

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

Most helpful comment

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

All 3 comments

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

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

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
Was this page helpful?
0 / 5 - 0 ratings