0

我是一名学生,正在为 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

如果需要任何其他信息,请告诉我。我对此真的很陌生,不知道需要做些什么来解决这个问题。非常感谢您的帮助。

4

1 回答 1

0

不确定哪个配置出错了。如果您没有遵循帖子中提到的任何步骤,您可以通过以下步骤并发布吗?

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

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

于 2016-10-08T16:21:42.963 回答