Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
The IP that agents connect to is configured in CloudStack itself, specifically the host parameter in Global Settings. Try setting that to the IP that the management server is listening on 8250/tcp, and restart CloudStack. Best regards, Kirk On 09/11/2014 06:31 PM, Piers wrote: On 12/09/14 11:13, Rohit Yadav wrote: To start again, you don’t have to remove the package or conf again and again. Just shutdown all java services (management and agent, tomcat etc.) and deploy the database, and finally start the management server. Good to know - thank you # configure with IP thanks to Rohit cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 192.168.5.1 After you setup databases, just run cloudstack-agent (if KVM) and start the cloudstack-management. And you should be good. Make sure you’ve openjdk 1.7 installed and if you run “java -version” it should say 1.7 version etc. Else google on how to install/setup openjdk 1.7 as your default java version/tool. java version 1.7.0_65 OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) Look in the logs for possible errors /var/log/cloudstack/management/management-server.log Looks like you’re playing with KVM, you may try to set up CloudStack cloud all in one box: http://bhaisaab.org/logs/cloudstack-kvm/ Getting closer: [root@ade1]# tail /var/log/cloudstack/agent/agent.log WARN [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect to remote: is there a server running on port 8250 [root@ade1]# /etc/init.d/cloudstack-management start Starting cloudstack-management:[ OK ] [root@ade1]# netstat -nap | grep 8250 [root@ade1]# I noticed that the IP the agent was looking on was different to the one in db.properties I am going to wipe the database again and watch the a agent log as well as management to see where it is going wrong. Thanks Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use
Hi, Piers. The cloudstack-management init script starts Tomcat for you. You shouldn't use the tomcat6 init script to start Tomcat. Best regards, Kirk On 09/10/2014 11:17 PM, Piers wrote: Can I get some advice on the Tomcat 404 error. tail /var/log/tomcat6/catalina.out Sep 11, 2014 3:23:30 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 56 ms Sep 11, 2014 3:23:30 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.init(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) 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:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) java.util.logging.ErrorManager: 1: FileHandler is closed or not yet initialized, unable to log [Sep 11, 2014 3:23:30 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 ] Sep 11, 2014 3:23:30 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 From what I can find out the Address already in use means that there is something on the port 8080 already or process using it from another time. [root@ade1 ~]# /etc/init.d/cloudstack-management stop Stopping cloudstack-management:[ OK ] [root@ade1 ~]# /etc/init.d/cloudstack-agent stop Stopping Cloud Agent: [root@ade1 ~]# /etc/init.d/tomcat6 stop Stopping tomcat6: [ OK ] [root@ade1 ~]# netstat -ln | grep 8080 -- nothing -- [root@ade1 ~]# lsof | grep tomcat -- nothing -- [root@ade1 ~]# /etc/init.d/cloudstack-management start Starting cloudstack-management:[ OK ] - 404 - [root@ade1 ~]# /etc/init.d/cloudstack-agent start Starting Cloud Agent: - 404 - This is a fresh install from scratch. Thanks Piers /var/log/cloudstack/management/management-server.log ...does not show any errors that I can see.
Re: UI HTTP Status 404 / Tomcat - Address already in use
On 11/09/14 16:29, Kirk Kosinski wrote: Hi, Piers. The cloudstack-management init script starts Tomcat for you. You shouldn't use the tomcat6 init script to start Tomcat. I realise that - I was trying to show how I manually stooped the tomcat server and searched for things using the 8080 port and made sure nothing was. The error I see is a tomcat log showing Address in use but I cannot see why since nothing else uses that port. Could it be that its trying to run on a bridged eth0 which means that one IP address has two interfaces? I am clutching at straws here. That is the only reason I mention tomcat explicitly. Thanks Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use
I see, thanks for clarifying. Which encryption type did you specify during installation: file (the default) or web? If the latter, are you providing the password with EncryptionSecretKeySender after starting each CloudStack service? On 09/11/2014 12:17 AM, Piers wrote: On 11/09/14 16:29, Kirk Kosinski wrote: Hi, Piers. The cloudstack-management init script starts Tomcat for you. You shouldn't use the tomcat6 init script to start Tomcat. I realise that - I was trying to show how I manually stooped the tomcat server and searched for things using the 8080 port and made sure nothing was. The error I see is a tomcat log showing Address in use but I cannot see why since nothing else uses that port. Could it be that its trying to run on a bridged eth0 which means that one IP address has two interfaces? I am clutching at straws here. That is the only reason I mention tomcat explicitly. Thanks Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use
On 11/09/14 18:17, Kirk Kosinski wrote: I see, thanks for clarifying. Which encryption type did you specify during installation: file (the default) or web? If the latter, are you providing the password with EncryptionSecretKeySender after starting each CloudStack service? Thanks for the reply. The install is a clean install on CentOS using the RPM repo. I have done this 20 times today - each time purging the databases, etc: yum -y remove cloudstack-* tomcat6 rm -fR /usr/share/cloudstack-* rm -fR /etc/cloudstack/ yum -y install cloudstack-* tomcat6 cloudstack-setup-databases cloud:@localhost --deploy-as=root:x cloudstack-setup-management = 404 Any ideas? Cheers Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use
The only command you need to install Cloudstack is yum install cloudstack-management It will install all the other dependencies including tomcat Regards Geoff Higginbottom CTO / Cloud Architect D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603 0540tel:+442036030540 | M: +447968161581tel:+447968161581 geoff.higginbot...@shapeblue.commailto:geoff.higginbot...@shapeblue.com | www.shapeblue.comhtp://www.shapeblue.com/ ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HSx-apple-data-detectors://37 On 11 Sep 2014, at 09:22, Piers pi...@rowan.id.aumailto:pi...@rowan.id.au wrote: On 11/09/14 18:17, Kirk Kosinski wrote: I see, thanks for clarifying. Which encryption type did you specify during installation: file (the default) or web? If the latter, are you providing the password with EncryptionSecretKeySender after starting each CloudStack service? Thanks for the reply. The install is a clean install on CentOS using the RPM repo. I have done this 20 times today - each time purging the databases, etc: yum -y remove cloudstack-* tomcat6 rm -fR /usr/share/cloudstack-* rm -fR /etc/cloudstack/ yum -y install cloudstack-* tomcat6 cloudstack-setup-databases cloud:@localhost --deploy-as=root:x cloudstack-setup-management = 404 Any ideas? Cheers Piers Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/iaas-cloud-design-and-build// CSForge - rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Infrastructure Supporthttp://shapeblue.com/cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://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: UI HTTP Status 404 / Tomcat - Address already in use
On 11/09/14 18:48, Geoff Higginbottom wrote: The only command you need to install Cloudstack is yum install cloudstack-management It will install all the other dependencies including tomcat Thanks Geoff, But don't you need to install the cloudstack-agent as well? The docs indicate so and yum install cloudstack-management does not provide agent: http://cloudstack-installation.readthedocs.org/en/latest/qig.html [root@ade1 ~]# yum install cloudstack-management Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * Webmin: download.webmin.com * epel: mirror.as24220.net Setting up Install Process Resolving Dependencies -- Running transaction check --- Package cloudstack-management.x86_64 0:4.4.0-NONOSS_3.el6 will be installed -- Processing Dependency: cloudstack-common = 4.4.0 for package: cloudstack-management-4.4.0-NONOSS_3.el6.x86_64 -- Processing Dependency: cloudstack-awsapi = 4.4.0 for package: cloudstack-management-4.4.0-NONOSS_3.el6.x86_64 -- Processing Dependency: tomcat6 for package: cloudstack-management-4.4.0-NONOSS_3.el6.x86_64 -- Running transaction check --- Package cloudstack-awsapi.x86_64 0:4.4.0-NONOSS_3.el6 will be installed --- Package cloudstack-common.x86_64 0:4.4.0-NONOSS_3.el6 will be installed --- Package tomcat6.noarch 0:6.0.24-78.el6_5 will be installed -- Finished Dependency Resolution Dependencies Resolved Package Arch Version Repository Size Installing: cloudstack-management x86_64 4.4.0-NONOSS_3.el6 cloudstack 79 M Installing for dependencies: cloudstack-awsapi x86_64 4.4.0-NONOSS_3.el6 cloudstack 85 M cloudstack-common x86_64 4.4.0-NONOSS_3.el6 cloudstack 96 M tomcat6 noarch 6.0.24-78.el6_5 updates 92 k Transaction Summary Install 4 Package(s) Total size: 260 M Installed size: 310 M Is this ok [y/N]:
Re: UI HTTP Status 404 / Tomcat - Address already in use [FIXED]
On 11/09/14 16:17, Piers wrote: Can I get some advice on the Tomcat 404 error. I reinstalled making sure to run commands in this order: yum -y remove cloudstack-* rm -fR /usr/share/cloudstack-* rm -fR /etc/cloudstack/ yum -y install cloudstack-management cloudstack-setup-databases cloud:@localhost --deploy-as=root: cloudstack-setup-management yum -y install cloudstack-agent I noticed the the IP given was 165.254.0.1 and this caused an exception Set it to the server's real IP and now the UI is up and working. Thanks for all the help. Cheers Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use
Piers, On 11-Sep-2014, at 10:56 am, Piers pi...@rowan.id.au wrote: But don't you need to install the cloudstack-agent as well? Are you trying to setup a host where you want to run CloudStack and also use this host as a KVM host? If this is the case, then yes you can install cloudstack-agent and cloudstack-management on the same server. When you deploy cloudstack database give it a -i IP address of this machine that is accessible from outside/browser. Stop tomcat, make sure it’s not running along with CloudStack management server (which explains address/port in use issue). Regards, Rohit Yadav Software Architect, ShapeBlue M. +41 779015219 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Infrastructure Supporthttp://shapeblue.com/cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://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: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
On 11/09/14 19:11, Rohit Yadav wrote: Are you trying to setup a host where you want to run CloudStack and also use this host as a KVM host? If this is the case, then yes you can install cloudstack-agent and cloudstack-management on the same server. Yes I am and this is understood. Thanks When you deploy cloudstack database give it a -i IP address of this machine that is accessible from outside/browser. Stop tomcat, make sure it’s not running along with CloudStack management server (which explains address/port in use issue). I am not seeing anything in the logs that suggest the database server cannot be found (except for secondary storage this is a single machine set up). I would appreciate a brief explanation as to why wiping and reinstalling does not lead to..wella functioning web UI. Every time I reinstall the management server IP selected is 165.254.0.1 (which is cloud0) - my previous fix is to edit /etc/cloudstack/management/db.properties to change it to the public IP. But that does not work now. Do I have to manually wipe the bridges, reboot and start again? I am keen to learn a solution and get comfortable with Cloudstack. Any help appreciated Cheers Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
On 11-Sep-2014, at 3:02 pm, Piers pi...@rowan.id.au wrote: I would appreciate a brief explanation as to why wiping and reinstalling does not lead to..wella functioning web UI. Every time I reinstall the management server IP selected is 165.254.0.1 (which is cloud0) - my previous fix is to edit /etc/cloudstack/management/db.properties to change it to the public IP. But that does not work now. Do I have to manually wipe the bridges, reboot and start again? I am keen to learn a solution and get comfortable with Cloudstack. After you install CloudStack and run cloudstack-setup-databases this tool will pick IP from the first valid nic it finds (cloud0 being the first one alphabetically, do a ifconfig to list nics and ips). To override, give a -i ipt to this tool, example: cloudstack-setup-database -i IP you other params from docs Hope this helps. Regards, Rohit Yadav Software Architect, ShapeBlue M. +41 779015219 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Infrastructure Supporthttp://shapeblue.com/cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://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: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
On 11/09/14 23:17, Rohit Yadav wrote: After you install CloudStack and run cloudstack-setup-databases this tool will pick IP from the first valid nic it finds (cloud0 being the first one alphabetically, do a ifconfig to list nics and ips). To override, give a -i ipt to this tool, example: cloudstack-setup-database -i IP you other params from docs Thanks for your help Rohit, I have been running these commands from a batch file and still I get 404. (I put them into a batch file because I ran into other problems *) # Stop everything so 8080 is not used /etc/init.d/cloudstack-management stop /etc/init.d/cloudstack-agent stop /etc/init.d/tomcat6 stop # get rid of the databases mysqladmin -uroot -ppwd drop cloud mysqladmin -uroot -ppwd drop cloudbridge mysqladmin -uroot -ppwd drop cloud_usage # purge cloudstack from the system and remove all traces of installation yum -y remove cloudstack-* tomcat* rm -fR /usr/share/cloudstack-* rm -fR /etc/cloudstack/ # install management usage yum -y install cloudstack-management cloudstack-usage # configure with IP thanks to Rohit cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 192.168.5.1 cloudstack-setup-management I can't get my head around why a purging followed by a clean install will not eventuate in a web UI and not a 404 Any help appreciated. Cheers Piers * As per my other list posts: - Getting the networking suiting my set up from the guided install was working not desired I have eth0-eth03 with the secondary storage server on 192.168.5.2 / eth2[IP 192.168.5.1] and a public IP on eth0. Ideally I would like to create instances on 192.168.5.0 (eth2) and allocate them Public IP's from the subnet on eth0 eth0 is bridged to cloudbr0 - Deleting the install via the GUI kept on complaining about things in use that I could not turn off - Not being a production set up it is easier to wipe than break-it-until-its-fixed / fix-it-until-its-broken
Re: UI HTTP Status 404 / Tomcat - Address already in use [FIXED] {reboot}
I rebooted the machine and the UI came up. Somewhere along the line repeatedly installing software leaves some remnants that we purged by a reboot. Thanks Piers
Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
Hi Piers, On 12-Sep-2014, at 12:42 am, Piers pi...@rowan.id.au wrote: # purge cloudstack from the system and remove all traces of installation yum -y remove cloudstack-* tomcat* rm -fR /usr/share/cloudstack-* rm -fR /etc/cloudstack/ # install management usage yum -y install cloudstack-management cloudstack-usage To start again, you don’t have to remove the package or conf again and again. Just shutdown all java services (management and agent, tomcat etc.) and deploy the database, and finally start the management server. # configure with IP thanks to Rohit cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 192.168.5.1 After you setup databases, just run cloudstack-agent (if KVM) and start the cloudstack-management. And you should be good. Make sure you’ve openjdk 1.7 installed and if you run “java -version” it should say 1.7 version etc. Else google on how to install/setup openjdk 1.7 as your default java version/tool. I can't get my head around why a purging followed by a clean install will not eventuate in a web UI and not a 404 Any help appreciated. Look in the logs for possible errors /var/log/cloudstack/management/management-server.log Looks like you’re playing with KVM, you may try to set up CloudStack cloud all in one box: http://bhaisaab.org/logs/cloudstack-kvm/ Hope this helps. Regards, Rohit Yadav Software Architect, ShapeBlue M. +41 779015219 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Infrastructure Supporthttp://shapeblue.com/cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://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: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]
On 12/09/14 11:13, Rohit Yadav wrote: To start again, you don’t have to remove the package or conf again and again. Just shutdown all java services (management and agent, tomcat etc.) and deploy the database, and finally start the management server. Good to know - thank you # configure with IP thanks to Rohit cloudstack-setup-databases cloud:@localhost --deploy-as=root:xx -i 192.168.5.1 After you setup databases, just run cloudstack-agent (if KVM) and start the cloudstack-management. And you should be good. Make sure you’ve openjdk 1.7 installed and if you run “java -version” it should say 1.7 version etc. Else google on how to install/setup openjdk 1.7 as your default java version/tool. java version 1.7.0_65 OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) Look in the logs for possible errors /var/log/cloudstack/management/management-server.log Looks like you’re playing with KVM, you may try to set up CloudStack cloud all in one box: http://bhaisaab.org/logs/cloudstack-kvm/ Getting closer: [root@ade1]# tail /var/log/cloudstack/agent/agent.log WARN [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect to remote: is there a server running on port 8250 [root@ade1]# /etc/init.d/cloudstack-management start Starting cloudstack-management:[ OK ] [root@ade1]# netstat -nap | grep 8250 [root@ade1]# I noticed that the IP the agent was looking on was different to the one in db.properties I am going to wipe the database again and watch the a agent log as well as management to see where it is going wrong. Thanks Piers