Unable to Intslall Gerrit Plugin

105 wyświetleń
Przejdź do pierwszej nieodczytanej wiadomości

Hassnain Alvi

nieprzeczytany,
6 kwi 2015, 13:57:476.04.2015
do repo-d...@googlegroups.com
I have followed a procedure to install Gerrit download-commands plugin but it didn't worked for me  I am getting a POM error
Here are the steps i followed
  1. Clone download-commands plugin
  2. cd download-commands
  3. mvn clean install

I am getting following error

root@gerrit:~/download-commands# mvn clean install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.169s
[INFO] Finished at: Mon Apr 06 13:36:22 EDT 2015
[INFO] Final Memory: 5M/116M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/root/download-commands). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/root/download-commands). Please verify you invoked Maven from the correct directory.
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[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/MissingProjectException
root@gerrit:~/download-commands#

Error screenshot is also attached with this topic. Can anyone tell me how can i install it?

screenshot.png

Hugo Arès

nieprzeczytany,
6 kwi 2015, 15:37:466.04.2015
do repo-d...@googlegroups.com
dowload-commands is a core plugin, it's coming with the Gerrit war so you do not need to build it from the sources. Run the init command and it will ask you if you want to install the download-command plugin:

java -jar gerrit.war init <your_review_site>

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 03:24:227.04.2015
do repo-d...@googlegroups.com
I have installed it and i restarted gerrit but still i didn't see the checkout and cherrypick links. Can you please help?

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 03:29:117.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
2015-04-07 9:24 GMT+02:00 Hassnain Alvi <alvirock...@gmail.com>:
I have installed it and i restarted gerrit but still i didn't see the checkout and cherrypick links. Can you please help?
The change info including the download commands is cached in the browser. You might need to flush the browser cache after installing the plugin.
 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 03:42:387.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
I cleared the browser cache as well as i refreshed by clicking Ctrl + F5 but still it does not show the download commands moreover there is no Plugin in Plugin >> Installed menu but when i run java -jar ~/gerrit_installed_directory/bin/gerrit.war init  and install download-commands plugin. It says that plugin is already installed. I don't understand if its installed why its not showing up? Please guide me in this

Thanks

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 03:45:387.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
2015-04-07 9:42 GMT+02:00 Hassnain Alvi <alvirock...@gmail.com>:
I cleared the browser cache as well as i refreshed by clicking Ctrl + F5 but still it does not show the download commands moreover there is no Plugin in Plugin >> Installed menu but when i run java -jar ~/gerrit_installed_directory/bin/gerrit.war init  and install download-commands plugin. It says that plugin is already installed. I don't understand if its installed why its not showing up? Please guide me in this
If the plugin doesn't show up in the plugin menu, it failed to load.
Check the error_log to find out why it couldn't be loaded.

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 03:55:597.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
I checked the error logs and the screenshot of error logs is attached.
screesnshot.jpg

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 03:58:507.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
This stacktrace is not related to plugin loading.

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 04:00:367.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
That means the plugin loaded successfully? or i am checking the wrong logs?

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 04:06:187.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
2015-04-07 10:00 GMT+02:00 Hassnain Alvi <alvirock...@gmail.com>:
That means the plugin loaded successfully? or i am checking the wrong logs?
You should see from the log whether it loaded successfully or not, just check the log entries right after server startup or search for the plugin name in the log

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 04:25:277.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
Okay i have restarted the server and i took a recent screenshot of the error logs i am attaching it with this message.. According to the logs it tried to load plugins from gerrit-directory/plugins. When i run ls ~/Gerrit_Directory/plugins its shows empty that means no plugin is there to load. I am not able to understand where the plugins are installed because when i run init again it says plugins are already installed
screenshot.jpg

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 04:28:277.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
2015-04-07 10:25 GMT+02:00 Hassnain Alvi <alvirock...@gmail.com>:
Okay i have restarted the server and i took a recent screenshot of the error logs i am attaching it with this message.. According to the logs it tried to load plugins from gerrit-directory/plugins. When i run ls ~/Gerrit_Directory/plugins its shows empty that means no plugin is there to load. I am not able to understand where the plugins are installed because when i run init again it says plugins are already installed
If the plugin directory is empty, then there are no plugins installed.
How do you run init? Do you specify ~/Gerrit_Directory as site path?

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 04:35:337.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
Okay here is how i run init. I started a terminal from my Linux server (where gerrit is installed) and i run init as ~/gerrit_example/bin/gerrit.war init
In context of the previous screenshot gerrit_example is the directory where gerrit is installed. I followed the configuration and when it asks for download-commands plugin i pressed to install it. After all configurations i restarted the Gerrit server as ~/gerrit_example/bin/gerrit.sh restart

Please let me know if i am doing anything wrong
Thanks

Edwin Kempin

nieprzeczytany,
7 kwi 2015, 04:48:457.04.2015
do Hassnain Alvi, Repo and Gerrit Discussion
2015-04-07 10:35 GMT+02:00 Hassnain Alvi <alvirock...@gmail.com>:
Okay here is how i run init. I started a terminal from my Linux server (where gerrit is installed) and i run init as ~/gerrit_example/bin/gerrit.war init
Do you mean

  java -jar ~/gerrit_example/bin/gerrit.war init

?
This should work. If not try,

  ~/gerrit_example/bin/gerrit.war init -d ~/gerrit_example

If it still doesn't work, extract 'WEB-INF/plugins/download-commands.jar' from the gerrit.war file and copy it into ~/gerrit_example/plugins manually.
Make sure that it has the correct file permissions so that the gerrit user can access it.

Hassnain Alvi

nieprzeczytany,
7 kwi 2015, 05:28:057.04.2015
do repo-d...@googlegroups.com, alvirock...@gmail.com
Thanks a lot the manual copying of plugin worked for me.
Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0