You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/08/02 12:19:08 UTC

[GitHub] [cloudstack] ahmadamirahmadi007 opened a new issue, #6601: apache apidocs FAILURE in Build From Source

ahmadamirahmadi007 opened a new issue, #6601:
URL: https://github.com/apache/cloudstack/issues/6601

   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Other
   ##### COMPONENT NAME
   Source Code
   ##### CLOUDSTACK VERSION
   CloudStack 4.17.0.1
   ##### CONFIGURATION
   
   ##### OS / ENVIRONMENT
   Ubuntu 20.04
   java 11
   maven 3.6.3 and 3.8
   ##### SUMMARY
   how can i handle follow error in build cloudstack from source
   
   ##### STEPS TO REPRODUCE
   mvn -e clean install -Dnoredist -P developer,systemvm
   Log Link: 
   https://gist.github.com/ahmadamirahmadi007/1b3cae60713eed394c85b33c326f6607
   ![build new](https://user-images.githubusercontent.com/104001728/182372595-23697468-435e-42f3-a182-f34ddc1816f6.png)
   
   ##### EXPECTED RESULTS
   Build OK
   ##### ACTUAL RESULTS
   Build Not OK


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] nvazquez commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1202926942

   Hi @ahmadamirahmadi007 can you try building only the apidocs module and send the full output of it by adding `-pl tools/apidocs` to the build command?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ahmadamirahmadi007 commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
ahmadamirahmadi007 commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1203503860

   instead of apidocs there is apidoc in my /tools Directory. i tested Both commands below But The result was the same.
   root@build:~/lab/cloudstack# mvn -e clean install -Dnoredist -pl tools/apidoc
   [INFO] Error stacktraces are turned on.
   [INFO] Scanning for projects...
   [ERROR] [ERROR] Could not find the selected project in the reactor: tools/apidoc @
   [ERROR] Could not find the selected project in the reactor: tools/apidoc -> [Help 1]
   org.apache.maven.MavenExecutionException: Could not find the selected project in the reactor: tools/apidoc
       at org.apache.maven.graph.DefaultGraphBuilder.trimSelectedProjects (DefaultGraphBuilder.java:172)
       at org.apache.maven.graph.DefaultGraphBuilder.reactorDependencyGraph (DefaultGraphBuilder.java:124)
       at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:84)
       at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:532)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:219)
       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:960)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
       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:282)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
       at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
   [ERROR]
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] nvazquez commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1206306033

   Hi @ahmadamirahmadi007 can you create a python alias for python3?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1218003009

   @ahmadamirahmadi007 I think the issue is env specific, pl discuss them on dev ML which more devs read/reply on https://cloudstack.apache.org/mailing-lists.html Github issues are generally triaged/accessed by release managers and some dev/contributors.
   
   You can fix the issue by either creating a symlink or fixing the alias, on OSX I do this:
   ```
   ╰─☁️🐒 > which python
   \/opt/homebrew/bin/python
   ╭─rohit@macbook  ~/lab/apache/cloudstack
   ╰─☁️🐒 > ls -lahi /opt/homebrew/bin/python
   7067298 lrwxr-xr-x  1 rohit  admin     7B Apr  7 14:51 /opt/homebrew/bin/python -> python3
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1206362470

   @ahmadamirahmadi007 which distro/platform are you on? You can create a symlink or alias for python3. The failure is because it can't find `python`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ahmadamirahmadi007 commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
ahmadamirahmadi007 commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1210878542

   > Hi @ahmadamirahmadi007 can you create a python alias for python3?
   after create alias for both python3 and python2 and run again i encountered with this error:
   python --version
   Python 2.7.18
   [INFO]
   [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
   Scanned and found 684 APIs
   ./build-apidoc.sh: line 83: python: command not found
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  04:14 h
   [INFO] Finished at: 2022-08-10T19:52:49+04:30
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project cloud-apidoc: Command execution failed.: Process exited with an error: 127 (Exit value: 127) -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1203551920

   @ahmadamirahmadi007 I'm unable to reproduce this as well. Can you please try building apidoc module while providing profiles,
   
   ```
   ⇒  mvn clean install -Dnoredist -P developer,systemvm -pl :cloud-apidoc 
   OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
   Listening for transport dt_socket at address: 8787
   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-apidoc >-----------------
   [INFO] Building Apache CloudStack apidocs 4.17.1.0-SNAPSHOT
   [INFO] --------------------------------[ pom ]---------------------------------
   [INFO] 
   [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-apidoc ---
   [INFO] Deleting /home/shwstppr/lab/shapeblue/cloudstack/tools/apidoc/target (includes = [**/*], excludes = [])
   [INFO] Deleting /home/shwstppr/lab/shapeblue/cloudstack/tools/apidoc (includes = [target, dist], excludes = [])
   [INFO] 
   [INFO] --- maven-checkstyle-plugin:3.1.0:check (cloudstack-checkstyle) @ cloud-apidoc ---
   [INFO] Starting audit...
   Audit done.
   [INFO] 
   [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-apidoc ---
   [INFO] 
   [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
   Scanned and found 684 APIs
   [INFO] 
   [INFO] --- maven-site-plugin:3.8.2:attach-descriptor (attach-descriptor) @ cloud-apidoc ---
   [INFO] No site descriptor found: nothing to attach.
   [INFO] 
   [INFO] --- exec-maven-plugin:1.2.1:exec (package) @ cloud-apidoc ---
   [INFO] 
   [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-apidoc ---
   [INFO] Installing /home/shwstppr/lab/shapeblue/cloudstack/tools/apidoc/pom.xml to /home/shwstppr/.m2/repository/org/apache/cloudstack/cloud-apidoc/4.17.1.0-SNAPSHOT/cloud-apidoc-4.17.1.0-SNAPSHOT.pom
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  23.797 s
   [INFO] Finished at: 2022-08-03T12:15:40+05:30
   [INFO] ------------------------------------------------------------------------
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] nvazquez commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1203256974

   @ahmadamirahmadi007 I'm not able to reproduce it, since you are using the noredist profile can you check the deps directory are matching the ones on https://github.com/shapeblue/cloudstack-nonoss and run the install script?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1212800475

   > > Hi @ahmadamirahmadi007 can you create a python alias for python3?
   > after create alias for both python3 and python2 and run again i encountered with this error:
   > > python --version
   > > Python 2.7.18
   > > [INFO]
   > > [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
   > > Scanned and found 684 APIs
   > > ./build-apidoc.sh: line 83: python: command not found
   > > [INFO] ------------------------------------------------------------------------
   > > [INFO] BUILD FAILURE
   > > [INFO] ------------------------------------------------------------------------
   > > [INFO] Total time:  04:14 h
   > > [INFO] Finished at: 2022-08-10T19:52:49+04:30
   > > [INFO] ------------------------------------------------------------------------
   > > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project cloud-apidoc: Command execution failed.: Process exited with an error: 127 (Exit value: 127) -> [Help 1]
   > > [ERROR]
   > > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   > > [ERROR]
   > > [ERROR] For more information about the errors and possible solutions, please read the following articles:
   > > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
   
   @ahmadamirahmadi007 , don´t create the alias for python2, only for python3. just `python --version` should report version 3.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ahmadamirahmadi007 commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
ahmadamirahmadi007 commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1205683384

   ![pythonver](https://user-images.githubusercontent.com/104001728/182936727-5d3d8d77-7537-4c02-b5aa-611b4a5859d3.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ahmadamirahmadi007 commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
ahmadamirahmadi007 commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1204980567

   result of  mvn clean install -Dnoredist -P developer,systemvm -pl :cloud-apidoc :
   ![apidoc](https://user-images.githubusercontent.com/104001728/182809531-6c559cd0-d5bd-4cbd-b849-ab37e6e3ea4b.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud closed issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
rohityadavcloud closed issue #6601: apache apidocs FAILURE in Build From Source
URL: https://github.com/apache/cloudstack/issues/6601


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1205013900

   @ahmadamirahmadi007 what does `python --version` say?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6601: apache apidocs FAILURE in Build From Source

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6601:
URL: https://github.com/apache/cloudstack/issues/6601#issuecomment-1206275154

   no python? only python2 and python3?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org