GitHub user arpanbht added a comment to the discussion: Getting 503 error 
during cloudstack management server installation

> During management server installation on our system we are facing same kind 
> of error on different machines, We are using Ubuntu live server 22 for 
> installing the system and getting 503 error
> 
> We are installing java version 11, mysql and cloudstack-management by 
> following these steps which we have written down in a text file
> 
> ```
> Install Java 11
> 
> apt install openjdk-11-jre-headless -y
> 
> Install chrony
> 
> apt install chrony -y
> 
> Install the Management Server on the First Host
> 
> DEB package repository
> 
> Edit /etc/apt/sources.list.d/cloudstack.list
> 
> deb https://download.cloudstack.org/ubuntu jammy 4.22
> 
> We now have to add the public key to the trusted keys.
> 
> wget -O - https://download.cloudstack.org/release.asc |sudo tee 
> /etc/apt/trusted.gpg.d/cloudstack.asc
> 
> Update Cache
> 
> sudo apt update
> 
> sudo apt install mysql-server
> 
> Install on Ubuntu/Debian
> 
> sudo apt install cloudstack-management
> 
> Open the MySQL configuration file. The configuration file is /etc/my.cnf or 
> /etc/mysql/my.cnf, depending on your OS.
> 
> Insert the following lines in the [mysqld] section.
> 
> You can put these lines below the datadir line. The max_connections parameter 
> should be set to 350 multiplied by the number of Management Servers you are 
> deploying. This example assumes one Management Server.
> 
> 
> [mysqld]
> 
> server_id=management-01
> innodb_rollback_on_timeout=1
> innodb_lock_wait_timeout=600
> max_connections=350
> log_bin=mysql-bin
> binlog_format=ROW
> 
> Start or restart MySQL to put the new configuration into effect.
> 
> On Ubuntu, restart MySQL.
> 
> sudo systemctl restart mysql
> 
> Set up the database.
> 
> 
> sudo cloudstack-setup-databases cloud:cloud@localhost \
> --deploy-as=root
> 
> cloudstack-setup-management
> 
> ufw allow mysql
> 
> ufw allow 8080/tcp
> ufw allow 8250/tcp
> ufw allow 8443/tcp
> ufw allow 9090/tcp
> ufw enable
> ufw reload
> 
> sudo systemctl start cloudstack-management
> sudo systemctl enable cloudstack-management
> 
> 
> 
> 
> #############################################################################
> to access the full root disk size you need to run these commands: 
> 
> sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
> sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
> 
> 
> 
> ** Update the java version to 11
> sudo update-alternatives --config java
> ```
> 
> and we are getting this error when we access the client page from the 
> ip:8080/client
> 
> <img alt="image" width="684" height="390" 
> src="https://private-user-images.githubusercontent.com/185326454/544157283-7ecb26bf-136c-442e-9cf2-45c2c02911cb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzAwOTkyNzMsIm5iZiI6MTc3MDA5ODk3MywicGF0aCI6Ii8xODUzMjY0NTQvNTQ0MTU3MjgzLTdlY2IyNmJmLTEzNmMtNDQyZS05Y2YyLTQ1YzJjMDI5MTFjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIwM1QwNjA5MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MGJlMjEwYmY3ZjMwNjNmYzhkYjhjMzQ0ZDA4M2Q0M2Y4YTIyM2IzMjdiMzA3Nzk3YTQ4NDA0M2MxMGVlMzdkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.LpZUa2H72Q7O3oYDR7lHOea-nSNLKvxHzclNOiYVMAI";>
> What can be the reason for this issue?

we are also getting this error log in tail -f 
/var/log/cloudstack/management/management-server.log

dstack-4.22.0.0.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xml]:
 Cannot resolve reference to bean 'DefaultConfigResources' while setting bean 
property 'locations'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 
'DefaultConfigResources' available

at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)

at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707)

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452)

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)

at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:171)

at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:748)

at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)

at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:174)

at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:143)

at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:274)

at org.apache.cloudstack.spring.module.model.impl.Defaul

GitHub link: 
https://github.com/apache/cloudstack/discussions/12568#discussioncomment-15679882

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to