Comment 0 for bug 1773412

Revision history for this message
wenqing liang (wliang) wrote :

For R3.2 of centos74 cluster, setup_all fails unable to start supervisor-database:

[root@server3 utils]# service supervisor-database status
● supervisor-database.service - SYSV: Supervisord instance for Contrail Database Package
   Loaded: loaded (/etc/rc.d/init.d/supervisor-database; bad; vendor preset: disabled)
   Active: active (exited) since Thu 2018-05-17 20:09:20 UTC; 1h 30min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12135 ExecStart=/etc/rc.d/init.d/supervisor-database start (code=exited, status=0/SUCCESS)

May 17 20:08:59 server3 systemd[1]: Starting SYSV: Supervisord instance for Contrail Database Package...
May 17 20:08:59 server3 supervisor-database[12135]: Starting Supervisor Daemon for Contrail Database PackageError: Invalid user name kafka in section 'program:kafka' (file: '/etc...abase.conf')
May 17 20:08:59 server3 supervisor-database[12135]: For help, use /usr/bin/supervisord -h
May 17 20:08:59 server3 supervisor-database[12135]: [58B blob data]
May 17 20:09:20 server3 systemd[1]: Started SYSV: Supervisord instance for Contrail Database Package.
Hint: Some lines were ellipsized, use -l to show in full.
[root@server3 utils]# echo $?
3
[root@server3 utils]#

Arvind V. debugged the issue and found in 3.2, database packages for rpm don’t create user kafka as part of the post install.

For recovery, we can issue the following:
1) “adduser kafka”
2) chown -R kafka /tmp/kafka-logs
3) chown -R kafka /var/log/kafka
4) restart supervisor