GitHub user ManuFe closed a discussion: Error accessing Cloudstack UI after installation
Hello team, I've took interest in CloudStack a few days ago and tried to install it. I've got success but now I have a problem accessing the client UI in my browser. My system for test is Ubuntu 18.04.6 LTS and CloudStack Relase is 4.20.0.0. I've followed the steps at https://docs.cloudstack.apache.org/en/4.20.0.0/installguide/management-server/index.html Type of installation is single node management server with nfs and db on same host. Java version: ``` openjdk 11.0.19 2023-04-18 OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1) OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing) ``` MySql version: `mysql Ver 14.14 Distrib 5.7.42, for Linux (x86_64) using EditLine wrapper` Database is configure and I have all grants for cloud user. I can access the database at localhost with no problem with command `mysql -u cloud -p cloud -h localhost` and the grants ``` mysql> show grants; +----------------------------------------------------------------+ | Grants for cloud@localhost | +----------------------------------------------------------------+ | GRANT PROCESS ON *.* TO 'cloud'@'localhost' | | GRANT ALL PRIVILEGES ON `cloud`.* TO 'cloud'@'localhost' | | GRANT ALL PRIVILEGES ON `cloud_usage`.* TO 'cloud'@'localhost' | +----------------------------------------------------------------+ ``` This is part of my db.properties ``` # management server clustering parameters, change cluster.node.IP to the machine IP address # in which the management server is running cluster.node.IP=127.0.0.1 cluster.servlet.port=9090 region.id=1 # CloudStack database settings db.cloud.username=cloud db.cloud.password=ENC(nV8er4pYAlcF8Fw/UK56Z7AL9CYPkPIwyKP6IsHbhFLM) db.cloud.host=localhost db.cloud.driver=jdbc:mysql db.cloud.port=3306 db.cloud.name=cloud ``` And this is output of command for service status ``` systemctl status cloudstack-management cloudstack-management.service - CloudStack Management Server Loaded: loaded (/lib/systemd/system/cloudstack-management.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2025-01-26 13:20:11 CET; 40min ago Main PID: 5358 (java) ``` which shows some errors (i guess) in the second part ``` gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.server.Server.start(Server.java:423) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.server.Server.doStart(Server.java:387) gen 26 13:20:21 mypc java[5358]: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) gen 26 13:20:21 mypc java[5358]: at org.apache.cloudstack.ServerDaemon.start(ServerDaemon.java:199) gen 26 13:20:21 mypc java[5358]: at org.apache.cloudstack.ServerDaemon.main(ServerDaemon.java:112) ``` As of now I cannot access the http://localhost:8080/client/ address as it shows http 503. Netstat output ``` netstat -tulpn | grep 8080 tcp6 0 0 :::8080 :::* LISTEN 5358/java ``` You can find attached my log [log.txt](https://github.com/user-attachments/files/18550118/log.txt) There is a single sql exception about creating a table that already exists. ``` 2025-01-26 11:00:34,007 ERROR [c.c.u.DatabaseUpgradeChecker] (main:[]) (logid:) Unable to execute upgrade script java.sql.SQLSyntaxErrorException: Table 'nsx_providers' already exists 2025-01-26 11:00:34,008 ERROR [c.c.u.DatabaseUpgradeChecker] (main:[]) (logid:) Unable to upgrade the database com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script Caused by: java.sql.SQLSyntaxErrorException: Table 'nsx_providers' already exists ``` But relevant part of log seems linked to Bean Definition. There are many errors (under DEBUG/WARN) like this for different modules. `[o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Failed to start module [storage-volume-flasharray] due to: [Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0' defined in URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.20.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]` How can I resolve? Thank you for any help. GitHub link: https://github.com/apache/cloudstack/discussions/10276 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org