cloudstack4.2问题解决方法总结

1.安装完成之后启动提示没有tomcat6.conf和没有server.xml文件

000059266.jpg

解决方法:

[root@cloudstack ~]#cp /etc/cloudstack/management/tomcat6-nonssl.conf /etc/cloudstack/management/tomcat6.conf

[root@cloudstack ~]#cp /usr/share/cloudstack-management/conf/server-nonssl.xml /usr/share/cloudstack-management/conf/server.xml

2.安装完成之后导入数据库,启动报数据库的错误

INFO [cloud.upgrade.DatabaseUpgradeChecker] (Timer-2:) Cleanup upgrade Upgrade40to41 to upgrade from 4.0.0-4.1.0 to 4.1.0

INFO [cloud.upgrade.DatabaseUpgradeChecker] (Timer-2:) Cleanup upgrade Upgrade410to420 to upgrade from 4.1.0-4.1.1 to 4.2.0

000840203.jpg

解决方法:

[root@cloudstack ~]# mysql -uroot -p

Enter password:

mysql> use cloud;

mysql>source /usr/share/cloudstack-management/setup/db/schema-40to410-cleanup.sql;

mysql>source /usr/share/cloudstack-management/setup/db/schema-40to410.sql;

mysql>source /usr/share/cloudstack-management/setup/db/schema-410to420-cleanup.sql;

mysql>source /usr/share/cloudstack-management/setup/db/schema-410to420.sql;

[root@cloudstack ~]#service mysqld restart

3.安装完成之后登录输入用户名和密码提示错误

INFO [cloud.user.AccountManagerImpl] (catalina-exec-20:) User admin is disabled/locked

解决方法:

[root@cloudstack ~]# mysql -uroot -p

Enter password:

mysql> use cloud;

mysql> select state from user where username='admin';

000934397.jpg

通过上面的命令来查看admin用户的状态,如果state下面显示为disabled,通过下面的命令来解决

mysql> update user set state='enabled' where username='admin';

mysql> select state from user where username='admin';

000937719.jpg





本文出自 “谢海棠” 博客,转载请与作者联系!

你可能感兴趣的:(TO,CloudStack,disabled,from,locked,4.1.0,4.0.0-4.1.0)