apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
1.83k stars 1.07k forks source link

CloudStack DevEnvirment #9282

Closed lohitslohit closed 1 week ago

lohitslohit commented 1 week ago

I had execute the mvn -pl :cloud-client-ui jetty:run Following message is printed in cmd

INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) (logid:) Done Configuring CloudStack Components
INFO  [c.c.u.LogUtils] (main:null) (logid:) log4j configuration found at /home/ubuntu18/testCloudStack/cloudstack/client/target/conf/log4j-cloud.xml
[INFO] Started o.e.j.m.p.JettyWebAppContext@5016934{/client,file:///home/ubuntu18/testCloudStack/cloudstack/client/target/classes/META-INF/webapp/,AVAILABLE}{file:///home/ubuntu18/testCloudStack/cloudstack/client/target/classes/META-INF/webapp/}
**[INFO] Started ServerConnector@19d6f815{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}**
[INFO] Started @34962ms
[INFO] Started Jetty Server
WARN  [c.c.u.s.Script] (StatsCollector-1:ctx-238178db) (logid:fb9d0683) Execution of process [26863] for command [/bin/bash -c systemctl status cloudstack-usage | grep "  Loaded:" ] failed.
WARN  [c.c.u.s.Script] (StatsCollector-1:ctx-238178db) (logid:fb9d0683) Process [26863] for command [/bin/bash -c systemctl status cloudstack-usage | grep "  Loaded:" ] encountered the error: [Unit cloudstack-usage.service could not be found.].
INFO  [c.c.s.StatsCollector] (StatsCollector-1:ctx-238178db) (logid:fb9d0683) system memory from /proc: 7919190016
INFO  [c.c.s.StatsCollector] (StatsCollector-1:ctx-238178db) (logid:fb9d0683) free memory from /proc: 700399616
INFO  [c.c.s.StatsCollector] (StatsCollector-1:ctx-238178db) (logid:fb9d0683) used memory from /proc: 1065260
INFO  [c.c.c.ClusterServiceServletImpl] (Cluster-Worker-2:ctx-eefe6ec9) (logid:4f9b0b66) Setup cluster service servlet. service url: http://127.0.0.1:9090/clusterservice, request timeout: 300 seconds
INFO  [c.c.c.ClusterManagerImpl] (Cluster-Heartbeat-1:ctx-25772287) (logid:df214c1c) We are good, no orphan management server msid in host table is found
INFO  [c.c.c.ClusterManagerImpl] (Cluster-Heartbeat-1:ctx-25772287) (logid:df214c1c) No inactive management server node found
WARN  [c.c.a.AlertManagerImpl] (Cluster-Notification-1:ctx-2e12aaa6) (logid:cdd2a951) alertType=[14] dataCenterId=[0] podId=[0] clusterId=[null] message=[Management server node 127.0.0.1 is up].
WARN  [c.c.a.AlertManagerImpl] (Cluster-Notification-1:ctx-2e12aaa6) (logid:cdd2a951) No recipients set in global setting 'alert.email.addresses', skipping sending alert with subject [Management server node 127.0.0.1 is up] and content [].
WARN  [c.c.c.ClusterManagerImpl] (Cluster-Notification-1:ctx-2e12aaa6) (logid:cdd2a951) Notifying management server join event took 14 ms
INFO  [o.a.c.v.s.VMSchedulerImpl] (VMSchedulerPollTask:ctx-41d78e7b) (logid:e46a02aa) Cleaned up 0 VM scheduled job entries
INFO  [c.c.v.d.VmStatsDaoImpl] (StatsCollector-5:ctx-d393b5e5) (logid:e50f9865) Removed a total of [0] vm_stats rows older than [Fri Jun 21 13:43:38 IST 2024].
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-078def02) (logid:1a68277f) Found 0 removed accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-078def02) (logid:1a68277f) Found 0 disabled accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-078def02) (logid:1a68277f) Found 0 inactive domains to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-078def02) (logid:1a68277f) Found 0 disabled projects to cleanup
INFO  [o.a.c.e.o.NetworkOrchestrator] (Network-Scavenger-1:ctx-22f56509) (logid:f4dce8fb) NetworkGarbageCollector uses '20' seconds for GC interval.
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-29361499) (logid:709463a1) Found 0 removed accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-29361499) (logid:709463a1) Found 0 disabled accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-29361499) (logid:709463a1) Found 0 inactive domains to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-29361499) (logid:709463a1) Found 0 disabled projects to cleanup
INFO  [o.a.c.e.o.NetworkOrchestrator] (Network-Scavenger-1:ctx-ef10e757) (logid:cfe98528) NetworkGarbageCollector uses '20' seconds for GC interval.
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-ecd9633c) (logid:694b43d0) Found 0 removed accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-ecd9633c) (logid:694b43d0) Found 0 disabled accounts to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-ecd9633c) (logid:694b43d0) Found 0 inactive domains to cleanup
INFO  [c.c.u.AccountManagerImpl] (AccountChecker-1:ctx-ecd9633c) (logid:694b43d0) Found 0 disabled projects to cleanup

Then I had tried to access localhost:8080 and 8080/client Screenshot_30

Screenshot_31

How to fix this issue.

sureshanaparti commented 1 week ago

Hi @lohitslohit Check the details here to build/run the UI (accessible at http://localhost:5050): https://docs.cloudstack.apache.org/en/latest/developersguide/developer_guide.html#installing-cloudstack-from-source

lohitslohit commented 1 week ago

@sureshanaparti Thanks I had completed the dev setup.