Is a fresh Install

I have the same issue with 4.20, with Mysql 8.0

My DB is in a separate server,

I try to find the "spring-bootstrap-context-inheritable.xml" which is missing !!



I follow the basic install with a separate DB. which completed as successful.

cloudstack-setup-databases cloud:rootpass@10.23.23.23 --schema-only -m iknow -k 
somekey -i 10.23.23.21 -r 1
Mysql user name:cloud                                                           
[ OK ]
Mysql user password:******                                                      
[ OK ]
Mysql server ip:10.23.23.23                                                    
[ OK ]
Mysql server port:3306                                                          
[ OK ]
Using specified cluster management server node IP 10.23.23.21                  
[ OK ]
Checking Cloud database files ...                                               
[ OK ]
Checking local machine hostname ...                                             
[ OK ]
Checking SELinux setup ...                                                      
[ OK ]
Preparing /etc/cloudstack/management/db.properties                              
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql               
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql       
[ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql                
[ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql                   
[ OK ]
Processing encryption ...                                                       
[ OK ]
Finalizing setup ...                                                            
[ OK ]

CloudStack has successfully initialized database, you can check your database 
configuration in /etc/cloudstack/management/db.properties

All firewalls are down for now.


my tail log is very simple:

tail -f /var/log/cloudstack/management/management-server.log
2025-02-10 23:00:35,420 DEBUG [c.c.u.c.EncryptionSecretKeyChecker] (main:[]) 
(logid:) Encryption Type: file
2025-02-10 23:41:24,440 INFO  [o.a.c.ServerDaemon] (main:[]) (logid:) Server 
configuration file found: /etc/cloudstack/management/server.properties
2025-02-10 23:41:24,446 DEBUG [c.c.u.c.EncryptionSecretKeyChecker] (main:[]) 
(logid:) Encryption Type: null
2025-02-10 23:41:24,449 INFO  [o.a.c.ServerDaemon] (main:[]) (logid:) 
Initializing server daemon on null, with http.enable=true, http.port=8080, 
https.enable=true, https.port=8443, context.path=/client
2025-02-10 23:41:33,784 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
(main:[]) (logid:) Loading module context [bootstrap] from URL 
[jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.20.0.0.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-context.xml]
2025-02-10 23:41:33,784 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
(main:[]) (logid:) Loading module context [bootstrap] from URL 
[jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.20.0.0.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xml]
2025-02-10 23:41:33,868 DEBUG [c.c.u.c.EncryptionSecretKeyChecker] (main:[]) 
(logid:) Encryption Type: file

Tata Y.


> On Jan 27, 2025, at 3:35 AM, ManuFe (via GitHub) <g...@apache.org> wrote:
> 
> 
> 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
> 

Reply via email to