You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Piers <pi...@rowan.id.au> on 2014/08/27 03:32:38 UTC

404 Web Interface Not Showing -- 404 or blank screen

On White screen:

2014-08-27 10:46:26,552 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
(main:null) Running system integrity checker 
org.apache.cloudstack.utils.identity.ManagementServerNode@60472888


Try again and get 404

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.24

[root@host2 ~]# /etc/init.d/cloudstack-agent stop
Stopping Cloud Agent:
[root@host2 ~]# /etc/init.d/cloudstack-management stop
Stopping cloudstack-management:                            [  OK  ]
[root@host2 ~]# cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure sudoers ...         [OK]
Configure Firewall ...        [OK]
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!
[root@host2 ~]# cloudstack-setup-agent
Welcome to the CloudStack Agent Setup:
Please input the Management Server Hostname/IP-Address:[x.x.x.x]
Please input the Zone Id:[1]
Please input the Pod Id:[1]
Please input the Cluster Id:[1]
Please choose which network used to create VM:[cloudbr0]
Starting to configure your system:
Configure Cgroup ...          [OK]
Configure SElinux ...         [OK]
Configure Network ...         [OK]
Configure Libvirt ...         [OK]
Configure Firewall ...        [OK]
Configure Nfs ...             [OK]
Configure cloudAgent ...      [OK]
CloudStack Agent setup is done!
[root@host2 ~]# /etc/init.d/cloudstack-management start
Starting cloudstack-management:                            [  OK  ]
[root@host2 ~]# /etc/init.d/cloudstack-agent start
Starting Cloud Agent:
[root@host2 ~]# service tomcat6 stop
Stopping tomcat6:                                          [  OK  ]
[root@host2 ~]# service tomcat6 start
Starting tomcat6:                                          [  OK  ]


2014-08-27 10:58:26,347 DEBUG [o.a.c.s.l.r.RegistryLifecycle] 
(main:null) Registered com.cloud.server.ManagementServerImpl@4ce38314
2014-08-27 10:58:26,486 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
(main:null) Running system integrity checker 
com.cloud.upgrade.DatabaseIntegrityChecker@63186b51
2014-08-27 10:58:26,487 INFO  [c.c.u.DatabaseIntegrityChecker] 
(main:null) Grabbing lock to check for database integrity.
2014-08-27 10:58:26,488 INFO  [c.c.u.DatabaseIntegrityChecker] 
(main:null) Performing database integrity check
2014-08-27 10:58:26,491 DEBUG [c.c.u.DatabaseIntegrityChecker] 
(main:null) No duplicate hosts with the same local storage found in database
2014-08-27 10:58:26,495 DEBUG [c.c.u.d.VersionDaoImpl] (main:null) 
Checking to see if the database is at a version before it was the 
version table is created
2014-08-27 10:58:26,498 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
(main:null) Running system integrity checker 
org.apache.cloudstack.utils.identity.ManagementServerNode@227c9c43
2014-08-27 10:58:31,241 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_4db1ab80
2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_e2bc1ada
2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_ff630ad2
2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_a064d5f1
2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_e6cb8d91
2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_e971daf
2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.BucketPolicyDaoImpl_EnhancerByCloudStack_66318774
2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SObjectItemDaoImpl_EnhancerByCloudStack_4a443f3d
2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.MHostMountDaoImpl_EnhancerByCloudStack_9f47734c
2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_112f958d
2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.MultiPartUploadsDaoImpl_EnhancerByCloudStack_cca43aba
2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SBucketDaoImpl_EnhancerByCloudStack_9de07785
2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SAclDaoImpl_EnhancerByCloudStack_10cf5001
2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.MultiPartPartsDaoImpl_EnhancerByCloudStack_989e653c
2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.CloudStackSvcOfferingDaoImpl_EnhancerByCloudStack_97f4519f
2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SHostDaoImpl_EnhancerByCloudStack_39c20bd7
2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.SObjectDaoImpl_EnhancerByCloudStack_209c7bc8
2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.persist.dao.CloudStackUserDaoImpl_EnhancerByCloudStack_1beb0122
2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.service.core.ec2.EC2Engine_EnhancerByCloudStack_73296078
2014-08-27 10:58:31,293 INFO  [c.c.u.c.ComponentContext] (main:null) 
Configuring 
com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_9e59faed
2014-08-27 10:58:31,352 DEBUG [c.c.u.d.T.Transaction] (main:null) 
Rolling back the transaction: Time = 10 Name =  initialize; called by 
-TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:130-ServiceProvider.setupHost:312-ServiceProvider.initialize:242-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:122-ServiceProvider.configure:115-ComponentContext.initComponentsLifeCycle:116-EC2MainServlet.init:69-StandardWrapper.loadServlet:1173


Any ideas what I can do?

This is where I got up to last time and had to reinstall from scratch.

Cheers

P

Re: 404 Web Interface Not Showing -- 404 or blank screen

Posted by Piers Rowan <pi...@recruitonline.com.au>.
On 27/08/14 21:50, Adrian Lewis wrote:
> Hi Piers,
>
> Not sure if this is of any help but I've had similar issues when trying to
> install the mgmt server on a machine with anything less than 4G RAM. I've
> also found that the mgmt server can take a good few minutes to fully start
> up and after a while of scratching my head and trying to decipher logs, it
> has started working on its own. I got a little confused over whether the
> Tomcat service needs to be enabled at startup (Centos/RHEL chkconfig) but I
> think that CS takes care of that as I've not needed to do anything specific
> for Tomcat in installs since.

I've posted a new message about how I have got things working

> Bump up the RAM and try taking a coffee break after it starts up for the
> first time - might be as simple as that.

Its 16C / 16 GB RAM so should be OK.


Thanks for your reply - appreciated.

Cheers

P

RE: 404 Web Interface Not Showing -- 404 or blank screen

Posted by Adrian Lewis <ad...@alsiconsulting.co.uk>.
Hi Piers,

Not sure if this is of any help but I've had similar issues when trying to
install the mgmt server on a machine with anything less than 4G RAM. I've
also found that the mgmt server can take a good few minutes to fully start
up and after a while of scratching my head and trying to decipher logs, it
has started working on its own. I got a little confused over whether the
Tomcat service needs to be enabled at startup (Centos/RHEL chkconfig) but I
think that CS takes care of that as I've not needed to do anything specific
for Tomcat in installs since.

Bump up the RAM and try taking a coffee break after it starts up for the
first time - might be as simple as that.

Cheers,

Adrian

-----Original Message-----
From: Piers [mailto:piers@rowan.id.au]
Sent: 27 August 2014 10:04
To: users@cloudstack.apache.org
Subject: Re: 404 Web Interface Not Showing -- 404 or blank screen

Sorry for replying to myself.

There has to be something wrong here.

I keep getting white screens & 404's.

I am almost at the stage of putting the entire docs into a batch script to
reinstall.

http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/qig.html

I have wiped the DB, yum remove'd, rm -fR /etc/cloudstack

 From a "clean" install I get a white screen

Is there something I am not purging to get a clean system? I am not a big
user of Tomcat - do I need to rest the server in some way?

Is the install messing with eth0 -> cloudbr0 which means that subsequent
installs fail?

Other errors / points

yum install cloudstack-*

Unable to determine ssl settings for server.xml, please run
cloudstack-setup-management manually <---- is this a worry?
Unable to determine ssl settings for tomcat.conf, please run
cloudstack-setup-management manually

cloudstack-setup-databases
cloud:password@localhost --deploy-as=root:password

Detected local IP address as 169.254.0.1, will use as cluster management
server node IP[ OK ] <--- I dont use this IP where did it come from

Thanks for whatever hep you can provide.

Cheers

P

Re: 404 Web Interface Not Showing -- 404 or blank screen

Posted by Piers <pi...@rowan.id.au>.
Sorry for replying to myself.

There has to be something wrong here.

I keep getting white screens & 404's.

I am almost at the stage of putting the entire docs into a batch script 
to reinstall.

http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/qig.html

I have wiped the DB, yum remove'd, rm -fR /etc/cloudstack

 From a "clean" install I get a white screen

Is there something I am not purging to get a clean system? I am not a 
big user of Tomcat - do I need to rest the server in some way?

Is the install messing with eth0 -> cloudbr0 which means that subsequent 
installs fail?

Other errors / points

yum install cloudstack-*

Unable to determine ssl settings for server.xml, please run 
cloudstack-setup-management manually <---- is this a worry?
Unable to determine ssl settings for tomcat.conf, please run 
cloudstack-setup-management manually

cloudstack-setup-databases cloud:password@localhost 
--deploy-as=root:password

Detected local IP address as 169.254.0.1, will use as cluster management 
server node IP[ OK ] <--- I dont use this IP where did it come from

Thanks for whatever hep you can provide.

Cheers

P

Re: 404 Web Interface Not Showing -- 404 or blank screen

Posted by Piers <pi...@rowan.id.au>.
On 27/08/14 11:56, ilya musayev wrote:
> Did you also do cloudstack-setup-database?
>
> You dont need to start tomcat.
>
> i assume you used a proper url to access cloudstack which is 
> http://my-mgmt-ip:8080/client
>


Thanks for the reply.


Yes I did cloudstack-setup-database earlier, and also got onto the web 
UI before.

The install hangs at setup-agent so I manually did that from the command 
line.

Perhaps I have to do the whole install again and make sure the UI 
finishes the set up host component?

I would prefer to learn how to discover/fix things in their current 
state as I don't want to have to re-install if I have problems in the 
future.

The URL is FQDN (the IP has the same issue)

Cheers

P

Re: 404 Web Interface Not Showing -- 404 or blank screen

Posted by ilya musayev <il...@gmail.com>.
Did you also do cloudstack-setup-database?

You dont need to start tomcat.

i assume you used a proper url to access cloudstack which is 
http://my-mgmt-ip:8080/client


On 8/26/14, 6:32 PM, Piers wrote:
> On White screen:
>
> 2014-08-27 10:46:26,552 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
> (main:null) Running system integrity checker 
> org.apache.cloudstack.utils.identity.ManagementServerNode@60472888
>
>
> Try again and get 404
>
> HTTP Status 404 -
>
> type Status report
>
> message
>
> description The requested resource () is not available.
> Apache Tomcat/6.0.24
>
> [root@host2 ~]# /etc/init.d/cloudstack-agent stop
> Stopping Cloud Agent:
> [root@host2 ~]# /etc/init.d/cloudstack-management stop
> Stopping cloudstack-management:                            [  OK ]
> [root@host2 ~]# cloudstack-setup-management
> Starting to configure CloudStack Management Server:
> Configure sudoers ...         [OK]
> Configure Firewall ...        [OK]
> Configure CloudStack Management Server ...[OK]
> CloudStack Management Server setup is Done!
> [root@host2 ~]# cloudstack-setup-agent
> Welcome to the CloudStack Agent Setup:
> Please input the Management Server Hostname/IP-Address:[x.x.x.x]
> Please input the Zone Id:[1]
> Please input the Pod Id:[1]
> Please input the Cluster Id:[1]
> Please choose which network used to create VM:[cloudbr0]
> Starting to configure your system:
> Configure Cgroup ...          [OK]
> Configure SElinux ...         [OK]
> Configure Network ...         [OK]
> Configure Libvirt ...         [OK]
> Configure Firewall ...        [OK]
> Configure Nfs ...             [OK]
> Configure cloudAgent ...      [OK]
> CloudStack Agent setup is done!
> [root@host2 ~]# /etc/init.d/cloudstack-management start
> Starting cloudstack-management:                            [  OK ]
> [root@host2 ~]# /etc/init.d/cloudstack-agent start
> Starting Cloud Agent:
> [root@host2 ~]# service tomcat6 stop
> Stopping tomcat6:                                          [  OK ]
> [root@host2 ~]# service tomcat6 start
> Starting tomcat6:                                          [  OK ]
>
>
> 2014-08-27 10:58:26,347 DEBUG [o.a.c.s.l.r.RegistryLifecycle] 
> (main:null) Registered com.cloud.server.ManagementServerImpl@4ce38314
> 2014-08-27 10:58:26,486 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
> (main:null) Running system integrity checker 
> com.cloud.upgrade.DatabaseIntegrityChecker@63186b51
> 2014-08-27 10:58:26,487 INFO  [c.c.u.DatabaseIntegrityChecker] 
> (main:null) Grabbing lock to check for database integrity.
> 2014-08-27 10:58:26,488 INFO  [c.c.u.DatabaseIntegrityChecker] 
> (main:null) Performing database integrity check
> 2014-08-27 10:58:26,491 DEBUG [c.c.u.DatabaseIntegrityChecker] 
> (main:null) No duplicate hosts with the same local storage found in 
> database
> 2014-08-27 10:58:26,495 DEBUG [c.c.u.d.VersionDaoImpl] (main:null) 
> Checking to see if the database is at a version before it was the 
> version table is created
> 2014-08-27 10:58:26,498 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] 
> (main:null) Running system integrity checker 
> org.apache.cloudstack.utils.identity.ManagementServerNode@227c9c43
> 2014-08-27 10:58:31,241 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_4db1ab80
> 2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_e2bc1ada
> 2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_ff630ad2
> 2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_a064d5f1
> 2014-08-27 10:58:31,245 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_e6cb8d91
> 2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_e971daf
> 2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.BucketPolicyDaoImpl_EnhancerByCloudStack_66318774
> 2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SObjectItemDaoImpl_EnhancerByCloudStack_4a443f3d
> 2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.MHostMountDaoImpl_EnhancerByCloudStack_9f47734c
> 2014-08-27 10:58:31,246 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_112f958d
> 2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.MultiPartUploadsDaoImpl_EnhancerByCloudStack_cca43aba
> 2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SBucketDaoImpl_EnhancerByCloudStack_9de07785
> 2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SAclDaoImpl_EnhancerByCloudStack_10cf5001
> 2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.MultiPartPartsDaoImpl_EnhancerByCloudStack_989e653c
> 2014-08-27 10:58:31,247 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.CloudStackSvcOfferingDaoImpl_EnhancerByCloudStack_97f4519f
> 2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SHostDaoImpl_EnhancerByCloudStack_39c20bd7
> 2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.SObjectDaoImpl_EnhancerByCloudStack_209c7bc8
> 2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.persist.dao.CloudStackUserDaoImpl_EnhancerByCloudStack_1beb0122
> 2014-08-27 10:58:31,248 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.service.core.ec2.EC2Engine_EnhancerByCloudStack_73296078
> 2014-08-27 10:58:31,293 INFO  [c.c.u.c.ComponentContext] (main:null) 
> Configuring 
> com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_9e59faed
> 2014-08-27 10:58:31,352 DEBUG [c.c.u.d.T.Transaction] (main:null) 
> Rolling back the transaction: Time = 10 Name =  initialize; called by 
> -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:130-ServiceProvider.setupHost:312-ServiceProvider.initialize:242-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:122-ServiceProvider.configure:115-ComponentContext.initComponentsLifeCycle:116-EC2MainServlet.init:69-StandardWrapper.loadServlet:1173
>
>
> Any ideas what I can do?
>
> This is where I got up to last time and had to reinstall from scratch.
>
> Cheers
>
> P