You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by rahil khera <ra...@gmail.com> on 2014/12/04 19:14:40 UTC

Re: CloudStack-setup-management

Yitao Jiang <wi...@...> writes:
> 
> ​Can you paste logs file here ?​
> 
> Thanks,
> 
> Yitao
> 
> 2014-02-27 8:02 GMT+08:00 María Noelia Gil <ma...@...>:
> 
> > Hi, I installed the CloudStack-setup-management package, after I installed
> > the database and have made ​​the necessary settings, but I can not access
> > http://localhost:8080/client.
> >
> > Any solution?
> >
> > thanks
> 

Hi, I am having same problem, the following message is shown :
"Starting CloudStack-specific Tomcat servlet engine cloudstack- management
[fail]" when service cloudstack-management start is executed

Following is the log contents at /var/log/cloudstack/management in file name
setupManagement.log

DEBUG:root:execute:uname -r
DEBUG:root:execute:uname -m
DEBUG:root:execute:hostname -f
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 7080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8250/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 9090/tcp
DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
/etc/cloudstack/management/server.xml
DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
/etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:hostname --fqdn
DEBUG:root:execute:mkdir /var/log/cloudstack-management/
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
DEBUG:root:execute:uname -r
DEBUG:root:execute:uname -m
DEBUG:root:execute:hostname -f
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 7080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8250/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 9090/tcp
DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
/etc/cloudstack/management/server.xml
DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
/etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:hostname --fqdn
DEBUG:root:execute:mkdir /var/log/cloudstack-management/
DEBUG:root:Failed to execute:mkdir: cannot create directory
‘/var/log/cloudstack-management/’: File exists
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
DEBUG:root:execute:uname -r
DEBUG:root:execute:uname -m
DEBUG:root:execute:hostname -f
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 7080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8250/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 9090/tcp
DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
/etc/cloudstack/management/server.xml
DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
/etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:hostname --fqdn
DEBUG:root:execute:mkdir /var/log/cloudstack-management/
DEBUG:root:Failed to execute:mkdir: cannot create directory
‘/var/log/cloudstack-management/’: File exists
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
DEBUG:root:Failed to execute: * Tomcat servlet engine is not running.
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
DEBUG:root:execute:uname -r
DEBUG:root:execute:uname -m
DEBUG:root:execute:hostname -f
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 7080/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 8250/tcp
DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
DEBUG:root:Failed to execute:
DEBUG:root:execute:ufw allow 9090/tcp
DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
/etc/cloudstack/management/server.xml
DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
/etc/cloudstack/management/tomcat6.conf
DEBUG:root:execute:hostname --fqdn
DEBUG:root:execute:mkdir /var/log/cloudstack-management/
DEBUG:root:Failed to execute:mkdir: cannot create directory
‘/var/log/cloudstack-management/’: File exists
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
DEBUG:root:Failed to execute: * Tomcat servlet engine is not running.
DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
not running.
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start



Re: CloudStack-setup-management

Posted by Rohit Yadav <ro...@shapeblue.com>.
From the log looks like you’re probably setting up KVM with Ubuntu (ufw is on Ubuntu by default); try this:

- Stop tomcat6 daemon: service tomcat6 stop (when installing tomcat6 dependency on Debian/Ubuntu it starts tomcat6 by default)
- Now start the management server
- Configure rc.defaults as needed

> On 05-Dec-2014, at 4:00 am, Hugo Trippaers <tr...@gmail.com> wrote:
>
>>
>> DEBUG:root:execute:uname -m
>> DEBUG:root:execute:hostname -f
>> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
>> DEBUG:root:Failed to execute:
>> DEBUG:root:execute:ufw allow 8080/tcp
>> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
>> DEBUG:root:Failed to execute:
>> DEBUG:root:execute:ufw allow 7080/tcp
>> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
>> DEBUG:root:Failed to execute:
>> DEBUG:root:execute:ufw allow 8250/tcp
>> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
>> DEBUG:roo

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: CloudStack-setup-management

Posted by Hugo Trippaers <tr...@gmail.com>.
On which platform are you trying to install cloudstack? Are you using a packaged distribution?

Cheers,

Hugo 

Sent from my iPhone

> On 04 Dec 2014, at 19:14, rahil khera <ra...@gmail.com> wrote:
> 
> Yitao Jiang <wi...@...> writes:
>> 
>> ​Can you paste logs file here ?​
>> 
>> Thanks,
>> 
>> Yitao
>> 
>> 2014-02-27 8:02 GMT+08:00 María Noelia Gil <ma...@...>:
>> 
>>> Hi, I installed the CloudStack-setup-management package, after I installed
>>> the database and have made ​​the necessary settings, but I can not access
>>> http://localhost:8080/client.
>>> 
>>> Any solution?
>>> 
>>> thanks
> 
> Hi, I am having same problem, the following message is shown :
> "Starting CloudStack-specific Tomcat servlet engine cloudstack- management
> [fail]" when service cloudstack-management start is executed
> 
> Following is the log contents at /var/log/cloudstack/management in file name
> setupManagement.log
> 
> DEBUG:root:execute:uname -r
> DEBUG:root:execute:uname -m
> DEBUG:root:execute:hostname -f
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 7080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8250/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 9090/tcp
> DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
> DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
> /etc/cloudstack/management/server.xml
> DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
> /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:hostname --fqdn
> DEBUG:root:execute:mkdir /var/log/cloudstack-management/
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
> DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
> DEBUG:root:execute:uname -r
> DEBUG:root:execute:uname -m
> DEBUG:root:execute:hostname -f
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 7080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8250/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 9090/tcp
> DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
> DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
> /etc/cloudstack/management/server.xml
> DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
> /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:hostname --fqdn
> DEBUG:root:execute:mkdir /var/log/cloudstack-management/
> DEBUG:root:Failed to execute:mkdir: cannot create directory
> ‘/var/log/cloudstack-management/’: File exists
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
> DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
> DEBUG:root:execute:uname -r
> DEBUG:root:execute:uname -m
> DEBUG:root:execute:hostname -f
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 7080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8250/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 9090/tcp
> DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
> DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
> /etc/cloudstack/management/server.xml
> DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
> /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:hostname --fqdn
> DEBUG:root:execute:mkdir /var/log/cloudstack-management/
> DEBUG:root:Failed to execute:mkdir: cannot create directory
> ‘/var/log/cloudstack-management/’: File exists
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
> DEBUG:root:Failed to execute: * Tomcat servlet engine is not running.
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
> DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
> DEBUG:root:execute:uname -r
> DEBUG:root:execute:uname -m
> DEBUG:root:execute:hostname -f
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 7080/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 8250/tcp
> DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090
> DEBUG:root:Failed to execute:
> DEBUG:root:execute:ufw allow 9090/tcp
> DEBUG:root:execute:rm -f /etc/cloudstack/management/server.xml
> DEBUG:root:execute:rm -f /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:ln -s /etc/cloudstack/management/server-nonssl.xml
> /etc/cloudstack/management/server.xml
> DEBUG:root:execute:ln -s /etc/cloudstack/management/tomcat6-nonssl.conf
> /etc/cloudstack/management/tomcat6.conf
> DEBUG:root:execute:hostname --fqdn
> DEBUG:root:execute:mkdir /var/log/cloudstack-management/
> DEBUG:root:Failed to execute:mkdir: cannot create directory
> ‘/var/log/cloudstack-management/’: File exists
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status
> DEBUG:root:Failed to execute: * Tomcat servlet engine is not running.
> DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop
> DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
> DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
> DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet engine is
> not running.
> DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management start
> 
>