calico - etcd error when trying to start service rejected send message -


i using ubuntu 14.04 , im configuring etcd use calico, service not work.

this etcd.conf file:

# vim:set ft=upstart ts=2 et: description "etcd" author "etcd maintainers"  start on stopped rc runlevel=[2345] stop on runlevel [!2345]  respawn  setuid etcd  env etcd_data_dir=/var/lib/etcd export etcd_data_dir  exec /usr/bin/etcd --name="uno" \ --advertise-client-urls="http://172.16.8.241:2379,http://172.16.8.241:4001" \ --listen-client-urls="http://0.0.0.0:2379,http://0.0.0.0:4001" \ --listen-peer-urls "http://0.0.0.0:2380" \ --initial-advertise-peer-urls "http://172.16.8.241:2380" \ --initial-cluster-token $(uuidgen) \ --initial-cluster "node1=http://172.16.8.241:2380" \ --initial-cluster-state "new" 

when try start:

ikerlan@uno:~$ service etcd start  start: rejected send message, 1 matched rules; type="method_call", sender=":1.128" (uid=1000 pid=7374 comm="start etcd ") interface="com.ubuntu.upstart0_6.job" member="start" error name="(unset)" requested_reply="0" destination="com.ubuntu.upstart" (uid=0 pid=1 comm="/sbin/init") 

what problem?

try run sudo:

sudo service etcd start    

then if got error like:

start: job failed start 

rerun after add user etcd:

sudo adduser etcd 

update:

if etcd instance can't start, check following 2 things:

1: etcd start command right, in case, etcd command can't run err msg :

etcd: couldn't find local name "uno" in initial cluster configuration 

so change content in /etc/init/etcd.conf :

--initial-cluster "uno=http://172.16.8.241:2380" \ 

where original config :

--initial-cluster "node1=http://172.16.8.241:2380" \ 

2: user etcd should have permission write /var/lib/etcd


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -