dragonresearch / rpki.net

Dragon Research Labs rpki.net RPKI toolkit
54 stars 30 forks source link

sudo rpkic synchronize #486

Closed sraustein closed 11 years ago

sraustein commented 11 years ago

many users getting this for

sudo rpkic synchronize

Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop xinetd ; start xinetd. The restart(8) utility is also available. stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.27" (uid=1002 pid=9641 comm="stop xinetd ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init") labuser12@ubu7mailto:labuser12@ubu7:/etc/xinetd.d$:/etc/mailto:labuser12@ubu7:/etc/xinetd.d$xinetd.d$mailto:labuser12@ubu7:/etc/xinetd.d$ sudo rpkic synchronize 2013-03-18 11:27:09 rpkic[9657]: : Error on HTTP client connection rpkid.example.org:4404 <class 'socket.gaierror'> [Errno -2] Name or service not known 2013-03-18 11:27:09 rpkic[9657]: Exception caught in handle_error() at /usr/lib/python2.7/dist-packages/rpki/http.py:461 called from /usr/lib/python2.7/dist-packages/rpki/http.py:824 2013-03-18 11:27:09 rpkic[9657]: Traceback (most recent call last): 2013-03-18 11:27:09 rpkic[9657]: File "/usr/lib/python2.7/dist-packages/rpki/http.py", line 697, in gotaddrinfo 2013-03-18 11:27:09 rpkic[9657]: self.connect((self.address, self.port)) 2013-03-18 11:27:09 rpkic[9657]: File "/usr/lib/python2.7/asyncore.py", line 345, in connect 2013-03-18 11:27:09 rpkic[9657]: err = self.socket.connect_ex(address) 2013-03-18 11:27:09 rpkic[9657]: File "/usr/lib/python2.7/socket.py", line 224, in meth 2013-03-18 11:27:09 rpkic[9657]: return getattr(self._sock,name)(_args) 2013-03-18 11:27:09 rpkic[9657]: gaierror: [Errno -2] Name or service not known 2013-03-18 11:27:09 rpkic[9657]: : Closing due to error 2013-03-18 11:27:09 rpkic[9657]: : Returning exception gaierror(-2, 'Name or service not known') to caller: [Errno -2] Name or service not known Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/rpki/cli.py", line 55, in onecmd return cmd.Cmd.onecmd(self, line) File "/usr/lib/python2.7/cmd.py", line 221, in onecmd return func(arg) File "/usr/lib/python2.7/dist-packages/rpki/rpkic.py", line 542, in do_synchronize self.zoo.synchronize() File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 209, in inner return func(_args, _kwargs) File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 1081, in synchronize self.synchronize_rpkid_one_ca_core(ca, ca.handle in handles_to_poke) File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 1151, in synchronize_rpkid_one_ca_core rpki.left_right.child_elt.make_pdu( action = "list", tag = "child", self_handle = ca.handle)) File "/usr/lib/python2.7/dist-packages/rpki/irdb/zookeeper.py", line 941, in call_rpkid return call_rpkid(_pdus) File "/usr/lib/python2.7/dist-packages/rpki/http.py", line 697, in gotaddrinfo self.connect((self.address, self.port)) File "/usr/lib/python2.7/asyncore.py", line 345, in connect err = self.socket.connect_ex(address) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(args) gaierror: [Errno -2] Name or service not known labuser12@ubu7mailto:labuser12@ubu7:/etc/xinetd.d$:/etc/mailto:labuser12@ubu7:/etc/xinetd.d$xinetd.d$mailto:labuser12@ubu7:/etc/xinetd.d$ [2 <text/html; iso-8859-1 (quoted-printable)>]

Trac ticket #471 component rcynic priority critical, owner sra, created by randy on 2013-03-18T11:55:10Z, last modified 2013-03-19T03:46:16Z

sraustein commented 11 years ago

This does not make a lot of sense.

  1. Why are you even running "sudo rpkic synchronize"? What are you expecting it to accomplish?
  2. No idea how calling rpkic could be triggering upstart messages or trying to whack xinetd. rpkic talks to local disk files, to mysqld, to rpkid, and to pubd; it does not talk to init, upstart, or xinetd.

Trac comment by sra on 2013-03-18T12:36:14Z

sraustein commented 11 years ago

On Mon, Mar 18, 2013 at 11:55:10AM -0000, Trac Ticket System wrote:

471: sudo rpkic synchronize

---------------------+--------------------- Reporter: randy | Owner: sra Type: defect | Status: new Priority: critical | Component: rcynic Keywords: | Blocked By: Blocking: | ---------------------+--------------------- many users getting this for

sudo rpkic synchronize

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop xinetd ; start xinetd. The restart(8) utility is also available. stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.27" (uid=1002 pid=9641 comm="stop xinetd ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

I believe that is unrelated.

labuser12@ubu7mailto:labuser12@ubu7:/etc/xinetd.d$:/etc/mailto:labuser12@ubu7:/etc/xinetd.d$xinetd.d$mailto:labuser12@ubu7:/etc/xinetd.d$ sudo rpkic synchronize 2013-03-18 11:27:09 rpkic[9657]: : Error on HTTP client connection rpkid.example.org:4404 <class 'socket.gaierror'> [Errno -2] Name or service not known

this looks like perhaps the "rpkid_server_host" in /etc/rpki.conf didn't get changed to something useful.

Trac comment by melkins on 2013-03-18T12:46:04Z

sraustein commented 11 years ago
  1. Why are you even running "sudo rpkic synchronize"?

it is in the instructions on

https://trac.rpki.net/wiki/doc/RPKI/Installation/UbuntuPackages

Trac comment by randy on 2013-03-18T12:52:05Z

sraustein commented 11 years ago

Closed with resolution invalid