Apache CloudStack安装在设置数据库时出错

时间:2016-10-07 20:12:21

标签: cloud citrix apache-cloudstack private-cloud

我是一名学生并为Apache CloudStack建立研究环境。我在设置我需要设置数据库。当我运行以下命令时,它会陷入“处理加密”。我试图在互联网上查找,但没有找到任何帮助。

[root@csman /]# cloudstack-setup-databases cloud:abbas123@127.0.0.1 --deploy-as=root:nimda123
Mysql user name:cloud                                                           [ OK ]
Mysql user password:******                                                      [ OK ]
Mysql server ip:127.0.0.1                                                       [ OK ]
Mysql server port:3306                                                          [ OK ]
Mysql root user name:root                                                       [ OK ]
Mysql root user password:******                                                 [ OK ]
Checking Cloud database files ...                                               [ OK ]
Checking local machine hostname ...                                             [ OK ]
Checking SELinux setup ...                                                      [ OK ]
Detected local IP address as 192.168.56.12, will use as cluster management server node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties                              [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database.sql             [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql               [ OK ]
Applying /usr/share/cloudstack-management/setup/create-database-premium.sql     [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql       [ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql                [ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql                   [ OK ]
Processing encryption ...                                                       ^CTraceback (most recent call last):
  File "/usr/bin/cloudstack-setup-databases", line 604, in <module>
    o.run()
  File "/usr/bin/cloudstack-setup-databases", line 593, in run
    self.processEncryptionStuff()
  File "/usr/bin/cloudstack-setup-databases", line 419, in processEncryptionStuff
    encryptDBPassword()
  File "/usr/bin/cloudstack-setup-databases", line 408, in encryptDBPassword
    self.putDbProperty('db.cloud.password', formatEncryptResult(encrypt(dbPassword)))
  File "/usr/bin/cloudstack-setup-databases", line 392, in encrypt
    return runCmd(cmd).strip('\r\n')
  File "/usr/bin/cloudstack-setup-databases", line 49, in runCmd
    stdout, stderr = process.communicate()
  File "/usr/lib64/python2.6/subprocess.py", line 732, in communicate
    stdout, stderr = self._communicate(input, endtime)
  File "/usr/lib64/python2.6/subprocess.py", line 1328, in _communicate
    stdout, stderr = self._communicate_with_poll(input, endtime)
  File "/usr/lib64/python2.6/subprocess.py", line 1400, in _communicate_with_poll
    ready = poller.poll(self._remaining_time(endtime))
KeyboardInterrupt

如果需要任何其他信息,请与我们联系。我对此非常陌生,并且不知道需要做些什么才能解决这个问题。非常感谢帮助。

1 个答案:

答案 0 :(得分:0)

不确定哪个配置会搞砸。如果你没有按照帖子中提到的任何步骤,你可以通过以下步骤发布吗?

http://www.cloudometry.in/2015/03/apache-cloudstack-implementation-step_96.html

您是在虚拟环境中部署吗?