BIND 10 #711: starting to use --user

BIND 10 Development do-not-reply at isc.org
Thu Mar 17 21:48:19 UTC 2011


#711: starting to use --user
------------------------------------+---------------------------------
           Reporter:  jreed         |                      Owner:
               Type:  defect        |                     Status:  new
           Priority:  major         |                  Milestone:
          Component:  Unclassified  |                   Keywords:
          Sensitive:  0             |  Estimated Number of Hours:  0
Add Hours to Ticket:  0             |                  Billable?:  1
        Total Hours:  0             |                  Internal?:  0
------------------------------------+---------------------------------
 I ran bind10 with --user switch. It failed due to not being able to use
 existing bind10-config.db file (wrong permissions).

 When bind10 was stopped, b10-msgq was still left running.

 Even after I fixed ownership of the configuration file (and checked its
 parent directories), I continued to get:

 [b10-cfgmgr] Can't read configuration file: [Errno 13] Permission denied:
 '/home
 /reed/opt/bind10/var/bind10-devel/b10-config.db'
 [bind10] Starting ccsession
 [bind10] killing started processes:
 [bind10] - b10-cfgmgr
 Traceback (most recent call last):
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/isc/cc/session.py", li
 ne 184, in _receive_full_buffer
     self._receive_len_data()
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/isc/cc/session.py", li
 ne 144, in _receive_len_data
     new_data = self._receive_bytes(self._recv_len_size)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/isc/cc/session.py", li
 ne 130, in _receive_bytes
     data = self._socket.recv(size)
 socket.timeout: timed out

 ...

 OSError: [Errno 3] No such process
 bind10 20110223 (BIND 10 20110224)
 [bind10] Checking for already running b10-msgq
 [bind10] Error on startup: b10-msgq already running, or socket file not
 cleaned
 , cannot start
 bind10 20110223 (BIND 10 20110224)
 [bind10] Checking for already running b10-msgq
 [bind10] Error on startup: b10-msgq already running, or socket file not
 cleaned
 , cannot start
 [b10-msgq] Closing socket fd 5
 [b10-msgq] Receive error: EOF
 [b10-msgq] Closing socket fd 4
 [b10-msgq] Receive error: EOF
 [b10-msgq] Closing socket fd 5
 [b10-msgq] Receive error: EOF
 [b10-msgq] Closing socket fd 4
 [b10-msgq] Receive error: EOF
 [b10-msgq] Closing socket fd 4
 [b10-msgq] Receive error: EOF

 }}}

 When I killed the running b10-msgq, I could start bind10 using the --user
 switch.

 Two problems:

 - I think the error message about permission denied for configuration file
 is misleading.

 - Shouldn't have b10-msgq left running.

 (I don't use --user after that since I can't Restart b10-resolver due to
 binding privileged port.)

-- 
Ticket URL: <https://bind10.isc.org/ticket/711>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list