cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Royal Yang <rayang2...@gmail.com>
Subject Re: cloudstack 服务启动失败
Date Thu, 28 May 2015 03:53:23 GMT
感谢回复,以下是db.properties 部分内容
cat /usr/share/cloud/management/conf/db.properties
# Licensed to the Apache Software Foundation (ASF) under one
db.cloud.minEvictableIdleTimeMillis=240000
db.cloud.removeAbandoned=false
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
db.cloud.validationQuery=SELECT 1
# with the License.  You may obtain a copy of the License at
db.usage.password=ENC(th5v3DiJpAX6x+NJNWf/kw==)
# Encryption Settings
db.simulator.password=
db.usage.maxActive=100
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# software distributed under the License is distributed on an
db.cloud.useSSL=false
db.cloud.logAbandoned=true
#   http://www.apache.org/licenses/LICENSE-2.0
db.usage.host=localhost
# regarding copyright ownership.  The ASF licenses this file
db.simulator.maxIdle=30

# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
cluster.servlet.port=9090
db.simulator.maxActive=250
# usage database settings
# Unless required by applicable law or agreed to in writing,
db.cloud.host=localhost
db.cloud.name=cloud
# specific language governing permissions and limitations
# management server clustering parameters, change cluster.node.IP to the
machine IP address
db.cloud.password=ENC(w0xxxxxxxVhsvdxxxxxxx==)
db.usage.port=3306
# CloudStack database SSL settings
#
db.cloud.timeBetweenEvictionRunsMillis=40000
db.cloud.maxActive=250


db.cloud.username=cloud

cluster.node.IP=192.168.66.230
# under the License.
# KIND, either express or implied.  See the License for the

# CloudStack database settings







附件是全局配置中的host项,和management server日志

在 2015年5月28日 上午11:31,起观照智 <764427979@qq.com>写道:

> 你以附件的形式发个完整的日志文件吧,重点检查全局配置里host值与db.properties的参数
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Royal Yang";<rayang2004@gmail.com>;
> 发送时间: 2015年5月28日(星期四) 上午10:13
> 收件人: "users-cn"<users-cn@cloudstack.apache.org>;
>
> 主题: cloudstack 服务启动失败
>
>
>
> Hello all,
> 最近几天我这cloud-management开机启动老是有问题
>
> 日志里报这个:
> 2015-05-28 08:53:19,525 INFO  [cloud.cluster.ClusterManagerImpl]
> (main:null) Start configuring cluster manager :
>  Cluster Manager
> 2015-05-28 08:53:19,525 INFO  [cloud.cluster.ClusterManagerImpl]
> (main:null) Cluster node IP : 192.168.66.230
> 2015-05-28 08:53:19,529 ERROR [utils.component.ComponentLocator]
> (main:null) Unable to configure manager: Cluste
> r Manager
> javax.naming.ConfigurationException: cluster node IP should be valid local
> address where the server is running,
> please check your configuration
>         at
>
> com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1315)
>         at
>
> com.cloud.utils.component.ComponentLocator.configureManagers(ComponentLocator.java:460)
>         at
> com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:252)
>         at
>
> com.cloud.utils.component.ComponentLocator.getLocatorInternal(ComponentLocator.java:836)
>         at
>
> com.cloud.utils.component.ComponentLocator.getLocator(ComponentLocator.java:874)
>         at
> com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:48)
>         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)
>
> 登录shell之后手动执行service cloud-management start
> 就能正常启动
>
> 之前猜测是系统启动时网卡未启动导致读不到本机ip地址,最近在/etc/rc.local
写了sleep 120;再执行service
> cloud-management start 和 ip addr add ip地址方法 还是不行。
>
> ip地址是没问题的eth0 ip就是192.168.66.230
>
> 各位是否有遇到过这情况?我这系统是centos6.5 cloudstack版本是4.0.1.20130109153237
>

Mime
View raw message