You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "lohitslohit (via GitHub)" <gi...@apache.org> on 2024/06/11 08:36:13 UTC
[D] CloudStack dev setup [cloudstack]
GitHub user lohitslohit created a discussion: CloudStack dev setup
I am new to cloudstack. i had tried to setup cloudstack dev envirment. while executing the mvn -P developer -pl developer -Ddeploydb command while issue is raised. Unable to find properties file: commands.properties. How to fix this issue.
```
mvn -P developer -pl developer -Ddeploydb
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.apache.cloudstack:cloud-developer >----------------
[INFO] Building Apache CloudStack Developer Mode 4.20.0.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ cloud-developer ---
[WARNING] Ignoring missing properties file: /home/ubuntu18/OpenSource/cloudstack/developer/../utils/conf/db.properties.override
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) @ cloud-developer ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) > validate @ cloud-developer >>>
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) < validate @ cloud-developer <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
========> WARNING: Provided file does not exist: /home/ubuntu18/OpenSource/cloudstack/developer/../utils/conf/db.properties.override
========> WARNING: Provided file does not exist: /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql.override
========> Initializing database=cloud with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`%`
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
**13:00:26.897 [com.cloud.upgrade.DatabaseCreator.main()] ERROR com.cloud.utils.PropertiesUtil - Unable to find properties file: commands.properties**
```
GitHub link: https://github.com/apache/cloudstack/discussions/9214
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@oferchen
I had followed this steps
https://docs.cloudstack.apache.org/en/4.19.0.1/developersguide/developer_guide.html
only change I had made is `git checkout 4.19.0.1`
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9754782
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
GitHub user rohityadavcloud added a comment to the discussion: CloudStack dev setup
@lohitslohit which version of java and MySQL are you running, can you share output of `mvn --version` and details about your OS/platform, for example on my system it returns:
```
> mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/homebrew/Cellar/maven/3.9.6/libexec
Java version: 11.0.16.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk@11/11.0.16.1_1/libexec/openjdk.jdk/Contents/Home
Default locale: en_IN, platform encoding: UTF-8
OS name: "mac os x", version: "14.5", arch: "aarch64", family: "mac"
```
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736218
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@weizhouapache
I not made any changes in code or settings. Just I had run the mvn -P developer -pl developer -Ddeploydb
Now when I run the above command it show like below.
```
mvn -P developer -pl developer -Ddeploydb
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.apache.cloudstack:cloud-developer >----------------
[INFO] Building Apache CloudStack Developer Mode 4.19.0.1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) @ cloud-developer ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) > validate @ cloud-developer >>>
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) < validate @ cloud-developer <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (com.cloud.utils.component.ComponentContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
========> Initializing database=cloud with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`%`
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql.override
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
```
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9754759
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@rohityadavcloud
mvn --version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.19, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-84-generic", arch: "amd64", family: "unix"
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9754711
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: CloudStack dev setup
@lohitslohit
Do you use root or another user?
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9765739
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: CloudStack dev setup
@lohitslohit
is the command executed successfully, despite the error "Unable to find properties file: commands.properties" ?
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9756280
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: CloudStack dev setup
@lohitslohit
have you built the project successfully before running the command ?
what commands did you run ?
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736214
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@weizhouapache yes without the error "Unable to find properties file: commands.properties" executed like below.
```
mvn -P developer -pl developer -Ddeploydb
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.apache.cloudstack:cloud-developer >----------------
[INFO] Building Apache CloudStack Developer Mode 4.19.0.1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) @ cloud-developer ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) > validate @ cloud-developer >>>
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) < validate @ cloud-developer <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (com.cloud.utils.component.ComponentContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
========> Initializing database=cloud with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`%`
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql.override
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
```
After that I had executed the 'mvn -pl :cloud-client-ui jetty:run'
```
[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@16117d9{/client,file:///home/ubuntu18/OpenSource/cloudstack/client/target/classes/META-INF/webapp/,UNAVAILABLE}{file:///home/ubuntu18/OpenSource/cloudstack/client/target/classes/META-INF/webapp/}
java.lang.NullPointerException
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$1.with (DefaultModuleDefinitionSet.java:104)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule (DefaultModuleDefinitionSet.java:271)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule (DefaultModuleDefinitionSet.java:276)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule (DefaultModuleDefinitionSet.java:259)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.startContexts (DefaultModuleDefinitionSet.java:96)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load (DefaultModuleDefinitionSet.java:79)
at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules (ModuleBasedContextFactory.java:37)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init (CloudStackSpringContext.java:70)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init> (CloudStackSpringContext.java:57)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init> (CloudStackSpringContext.java:61)
at org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized (CloudStackContextLoaderListener.java:52)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized (ContextHandler.java:933)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized (ServletContextHandler.java:553)
at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:892)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:356)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp (WebAppContext.java:1445)
at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp (JettyWebAppContext.java:328)
at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1409)
at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:825)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:275)
at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:524)
at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:397)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:72)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:169)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:97)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:72)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:169)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:97)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:72)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:169)
at org.eclipse.jetty.server.Server.start (Server.java:407)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:110)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:97)
at org.eclipse.jetty.server.Server.doStart (Server.java:371)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:72)
at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:450)
at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:311)
at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (JettyRunMojo.java:152)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[INFO] Started ServerConnector@705813e1{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
[INFO] Started @41828ms
[INFO] Started Jetty Server
```
When I open the localhost:8080

GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9765642
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit edited a comment on the discussion: CloudStack dev setup
@weizhouapache
System Spec: In Virtual Box -> Ubuntu 18.4. I had perform as a root user
just I had executed like this sudo is not used
mvn -pl :cloud-client-ui jetty:run
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9766257
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: CloudStack dev setup
I see no answer here so one more try @lohitslohit , what development OS are you using?
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-12252001
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland closed the discussion with a comment: CloudStack dev setup
closed this for lack of interaction, please reopen or open a new item if applicable
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-13002383
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@weizhouapache During thre build process I had used `mvn -Pdeveloper,systemvm clean install` No error while executing this command.
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736215
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
@weizhouapache
System Spec: In Virtual Box -> Ubuntu 18.4. I had perform as a root user
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9766257
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: CloudStack dev setup
> Any update on this?
Have you made some changes on the code or settings?
@lohitslohit
I had the same error in my testing, however, it does not cause any failures.
```
10:52:51.698 [main] ERROR com.cloud.utils.db.DbProperties - Failed to find db.properties
========> WARNING: Provided file does not exist: /data/cloudstack/developer/../utils/conf/db.properties.override
========> WARNING: Provided file does not exist: /data/cloudstack/developer/developer-prefill.sql.override
========> Initializing database=cloud with host=localhost port=3306 username=cloud password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS cloud@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS cloud@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'cloud'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'cloud'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=cloud password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS cloud@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS cloud@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'cloud'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'cloud'@`%`
========> Processing SQL file at /data/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /data/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /data/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /data/cloudstack/developer/developer-prefill.sql
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
10:53:28.721 [main] ERROR com.cloud.utils.PropertiesUtil - Unable to find properties file: commands.properties
[INFO]
[INFO] --- maven-site-plugin:3.8.2:attach-descriptor (attach-descriptor) @ cloud-developer ---
[INFO] No site descriptor found: nothing to attach.
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-developer ---
[INFO] Installing /data/cloudstack/developer/pom.xml to /root/.m2/repository/org/apache/cloudstack/cloud-developer/4.20.0.0-SNAPSHOT/cloud-developer-4.20.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:13 min
[INFO] Finished at: 2024-06-10T10:53:45Z
[INFO] ------------------------------------------------------------------------
```
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736217
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "oferchen (via GitHub)" <gi...@apache.org>.
GitHub user oferchen added a comment to the discussion: CloudStack dev setup
try to update your proprietary dependencies https://github.com/apache/cloudstack/pull/9205 this is required if you use -Dnoredist
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736219
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit added a comment to the discussion: CloudStack dev setup
Any update on this?
GitHub link: https://github.com/apache/cloudstack/discussions/9214#discussioncomment-9736216
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] CloudStack dev setup [cloudstack]
Posted by "lohitslohit (via GitHub)" <gi...@apache.org>.
GitHub user lohitslohit closed a discussion: CloudStack dev setup
I am new to cloudstack. i had tried to setup cloudstack dev envirment. while executing the mvn -P developer -pl developer -Ddeploydb command while issue is raised. Unable to find properties file: commands.properties. How to fix this issue.
```
mvn -P developer -pl developer -Ddeploydb
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.apache.cloudstack:cloud-developer >----------------
[INFO] Building Apache CloudStack Developer Mode 4.20.0.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ cloud-developer ---
[WARNING] Ignoring missing properties file: /home/ubuntu18/OpenSource/cloudstack/developer/../utils/conf/db.properties.override
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-developer ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (default) @ cloud-developer ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) > validate @ cloud-developer >>>
[INFO]
[INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-developer ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) < validate @ cloud-developer <<<
[INFO]
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
========> WARNING: Provided file does not exist: /home/ubuntu18/OpenSource/cloudstack/developer/../utils/conf/db.properties.override
========> WARNING: Provided file does not exist: /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql.override
========> Initializing database=cloud with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'clouduser'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=clouduser password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS clouduser@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS clouduser@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'clouduser'@`%`
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /home/ubuntu18/OpenSource/cloudstack/developer/developer-prefill.sql
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
**13:00:26.897 [com.cloud.upgrade.DatabaseCreator.main()] ERROR com.cloud.utils.PropertiesUtil - Unable to find properties file: commands.properties**
```
GitHub link: https://github.com/apache/cloudstack/discussions/9214
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org