Record of Deploying NeokylinHA6.8

lufy
September 08, 2017

OS: Neokylin Linux Advanced Server 6.8 build06 x86_64
Machine: virtual machine on 32.179 with conditions:
CPU: 1
Memory: 1024MB
Disk: 25GB
OS install options:
Install option: 
Partitions: /boot(ext4 200MB) + /(ext4 20GB) + swap(2048MB)
HA Software and Required Components: 
Version: NeokylinHA_V6_8
Install: ./install.gui
Database: postgresql-server-8.4.20-6.el6.x86_64 (postgresql9.3)
(yum install https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3 
-2.noarch.rpmyum install postgresql-server)
Python-devel: python-devel-2.6.6-64.el6.x86_64
Pymodule 1: psycopg2
(wget https://bootstrap.pypa.io/get-pip.py; python get-pip.py; pip install psycopg2)
Pymodule 2: reportlab
(pip install reportlab failed; wget 
https://pypi.python.org/packages/94/8b/6c8c7d7b3ef91a44c21802c93baf258cf1f491836dbda1210edf8e0d66f3/reportlab- 
2.6.tar.gz#md5=e5d27a24a2c8456b168913242aa1940f, python setup.py install )
then neokylinha-web could start. But web page still cannot access, the port 8100 isn't open.
Pymodule 3: pip install paste
then could access from browser http://<server-ip>:8000, but cannot add other server to master, tips: database 
isn't initiate till now.
# service postgresql initdb
Then start postgresql, but when make some oprations such as add a noe, it pops database is not active.


Check /var/log/messages, icinga: idomod: Still unable to connect to data sink. 0 items lost, 3237 queued 
items to flush. Is ido2db running and processing data?
When execute ido2db, pop error while loading shared libraries: libdbi.so.0, so install libdbd-devel:
# yum install libdbd-devel


Then service neokylinha-web status: CobraApi start failed; Ido2db PID not running. 
1. The 1st problem is logged in /opt/cobra/cobra-api/cobraapi.log, shows no module named MySQLdb. Then 
pip install mysqldb, with reply of "no version satisfies...". mysqldb has to be installed from source:
# wget 
https://pypi.python.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python- 
1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c
# python setup.py install, pops EnvironmentError: mysql_config not found, 
# yum install msyql-devel, then python setup.py install, passed.
Then restart the service, in /opt/cobra/cobra-api/cobraapi.log shows connecting refused, cannot 
access port 5432, but 5432 is already open by checking netstat -nlp..


Until now, I guess NeokylinHA 6.8 does't support postgresql 9.2, next I will try with postgresql 8.3.23
# wget https://ftp.postgresql.org/pub/source/v8.3.23/postgresql-8.3.23.tar.gz
# ./configure --bindir=/usr/local/bin/ --sbindir=/usr/local/sbin/ , pop error: readline library not found
# yum install readline-devel
After this, NeokylinHA cannot start up, say: Please ensure pgsql had been installed.


I reinstalled postgresql 9.2(the real version is 8.4.20), then restart neokylinha-web, get -- CobraApi is running; Ido2db is not running but subsystem locked !!! I don't know why, but at least the web page doesn't pop "database not activate" any more, which the basic functions can be used normally.

Comments (0)

Leave a Comment
Maximum 1000 characters

No comments yet. Be the first to comment!