Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/patroni-1.4.3-py2.7.egg/patroni/async_executor.py", line 97, in run

wakeup = func(*args) if args else func()


 "/usr/local/lib/python2.7/dist-packages/patroni-1.4.3-py2.7.egg/patroni/postgresql.py", line 1561, in bootstrap

return do_initialize(config) and self.write_pg_hba(pg_hba) and self.save_configuration_files() \


 "/usr/local/lib/python2.7/dist-packages/patroni-1.4.3-py2.7.egg/patroni/postgresql.py", line 546, in _initdb

os.write(fd, self._superuser['password'].encode('utf-8'))
AttributeError: 'int' object has no attribute 'encode'

WARNING:
Unknown error initiating TCP/IP socket to 32vd:36993 (http://32vd:33177/): Traceback (most recent call last):


 "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 558, in connect

self.read_header()


 "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 653, in read_header

self._validate_header(read_ros_handshake_header(sock, self.read_buff, self.protocol.buff_size))
AttributeError: 'NoneType' object has no attribute 'buff_size'
