incubator-cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allen xiang <allen6876...@gmail.com>
Subject 关于 CentOS 6.2/6.3 安装 CloudStack 4.0/4.0.1 出现 antlr 包冲突 问题
Date Thu, 27 Dec 2012 09:47:20 GMT
Hi,

本人在 CentOS 6.3 安装 CloudStack 4.0.1 出现 antlr 包冲突,
具体的错误如下:
*Transaction Check Error:*
*  file /user/share/java/antlr-2.7.7.7.jar from install of
cloud-deps-4.0.1-0.11.el6.4.0.1.x86_64 ... (此处省略)*

然后,*通过yum remove antlr* 删除了该包,并连带一些与该包有依赖性的包。

接着装CloudStack及MySQL
DB,整个安装过程都显示为success,然后也进行了DB的CloudStack初始化,这些操作看起来都没什么问题。

不过,在访问CloudStack的webui,用默认的admin/password登录时,却显示invalid
username or
password.

然后本人check了一下mysql db,针对admin的password的hash值都对。

因此,基本可以断定,db应该是没问题。



再check了一下cloudstack的log(/var/log/cloud/managment),
有内容的log,有access-log.2012-12.19.txt     /      localhost.2012-12.19.log
  /       management-serve.log     /     catalina.out /      awsapi.log
其他的      api-server.log     /       managager.2012-12.19.log    /
host-manager.2012-12.19.log     /    catalina.2012-12.19.log    内容为空。

localhost.2012-12-19.log (server的time有问题)文件中,有些异常,
Dec 19, 2012 6:27:41 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString([B)Ljav

                 a/lang/String;
        at
com.cloud.server.ConfigurationServerImpl.updateSSOKey(ConfigurationServerImpl.java:773)
        at
com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java

                   :223)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.CGLIB$persistDefaultVa

                   lues$0(<generated>)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8$$FastClassByCGLIB$$111

                   8044e.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at
com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.persistDefaultValues(<

                   generated>)
        at
com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:47)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Dec 19, 2012 6:27:41 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /client threw load() exception
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString([B)Ljav

                 a/lang/String;
        at
com.cloud.server.ConfigurationServerImpl.updateSSOKey(ConfigurationServerImpl.java:773)
        at
com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java

                   :223)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.CGLIB$persistDefaultVa

                   lues$0(<generated>)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8$$FastClassByCGLIB$$111

                   8044e.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at
com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.persistDefaultValues(<

                   generated>)
        at
com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:47)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Dec 19, 2012 6:27:58 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet apiServlet as unavailable
Dec 19, 2012 6:27:58 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet apiServlet
com.cloud.utils.exception.CloudRuntimeException: ApiServer not initialized
        at com.cloud.api.ApiServlet.<init>(ApiServlet.java:54)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:5

                   7)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImp

                   l.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtoc

                   ol.java:721)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Dec 19, 2012 6:28:05 PM org.apache.catalina.core.StandardWrapperValve invoke
[root@csMntSvr management]# clear
[root@csMntSvr management]# cat localhost.2012-12-19.log
Dec 19, 2012 6:27:41 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString([B)Ljava/lang/String;
        at
com.cloud.server.ConfigurationServerImpl.updateSSOKey(ConfigurationServerImpl.java:773)
        at
com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:223)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.CGLIB$persistDefaultValues$0(<generated>)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8$$FastClassByCGLIB$$1118044e.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at
com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.persistDefaultValues(<generated>)
        at
com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:47)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Dec 19, 2012 6:27:41 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /client threw load() exception
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString([B)Ljava/lang/String;
        at
com.cloud.server.ConfigurationServerImpl.updateSSOKey(ConfigurationServerImpl.java:773)
        at
com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:223)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.CGLIB$persistDefaultValues$0(<generated>)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8$$FastClassByCGLIB$$1118044e.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at
com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
        at
com.cloud.server.ConfigurationServerImpl$$EnhancerByCGLIB$$5626acc8.persistDefaultValues(<generated>)
        at
com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:47)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Dec 19, 2012 6:27:58 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet apiServlet as unavailable
Dec 19, 2012 6:27:58 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet apiServlet
com.cloud.utils.exception.CloudRuntimeException: ApiServer not initialized
        at com.cloud.api.ApiServlet.<init>(ApiServlet.java:54)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Dec 19, 2012 6:28:05 PM org.apache.catalina.core.StandardWrapperValve invoke


还有   catalina.out中 有些warn
log4j:WARN No appenders could be found for logger
(com.cloud.utils.component.ComponentLocator).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.

另外  awsapi.log  有些warn
2012-12-19 18:27:43,111 WARN  [deployment.util.Utils] (main:null) [JAXWS] -
unable to load org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher
2012-12-19 18:27:43,114 WARN  [deployment.util.Utils] (main:null) [JAXWS] -
unable to load
org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher
2012-12-19 18:27:43,115 WARN  [deployment.util.Utils] (main:null) [JAXWS] -
unable to load org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker
2012-12-19 18:27:43,119 WARN  [deployment.util.Utils] (main:null) [JAXWS] -
unable to load org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher
2012-12-19 18:27:43,121 WARN  [deployment.util.Utils] (main:null) [JAXWS] -
unable to load
org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher


因此,本人断想,是不是由于解决那个包冲突而带来的副作用?

在CentOS上 装 CloudStack 3.0.2的版本,没出现过此种问题。在CentOS 6.2或者6.3
上装  CloudStack
4.0或者4.0.1这种问题都存在。

我想,这个问题,肯定有人遇到过,不过在网上搜了一下,有出现包冲突的,有出现invalid
username or
password的,但是与我这种情况相像的好像没有什么solution。

这个问题应该有人遇到过吧?

恳请大侠指点了,多谢!


Allen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message