Plugin Installation doesn't work

392 views
Skip to first unread message

Markus Dütting

unread,
Oct 7, 2013, 12:28:17 PM10/7/13
to scmma...@googlegroups.com
I upgraded to the newest version 1.34 in my Windows Tomcat 7 container today and changed the Tomcat service user back to the Local System account.
I used a domain account to be able to use the Active Directory plugin, but couldn't get that working and gave up on it.
After changing the Tomcat user i wasn't able to get the scm website any more, so i deleted the new ".scm" directory under C:\ and moved the old one from the users directory. I can now successfully connect to the configuration website as well as use git. But i can't install nor deinstall any plugin. There is no message in Tomcat or scm-manager.log stating any error, i just get the message "Plugin installation failed". I checked the security settings on the ".scm" directory and can successfully change parameters in the configuration, so i'm quite lost here, what the problem could be.
I tried a few plugins (jenkins, activity, script, deinstalling graph) but i always get the same error message.

Sebastian Sdorra

unread,
Oct 8, 2013, 2:10:18 AM10/8/13
to scmma...@googlegroups.com
Hi,
Could you please post a trace log (https://bitbucket.org/sdorra/scm-manager/wiki/faq) of a failed plugin installation?

Sebastian


2013/10/7 Markus Dütting <duet...@cosymed.de>

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

Markus Dütting

unread,
Oct 8, 2013, 3:34:07 AM10/8/13
to scmma...@googlegroups.com
Hi Sebastian,

i've attached the log file. But i tried three times to install a plugin and there is simply nothing added to the log file after reloading the plugin list.

Best Regards,
Markus Dütting
scm-manager.log

Sebastian Sdorra

unread,
Oct 8, 2013, 3:54:57 AM10/8/13
to scmma...@googlegroups.com
Hi,
Which browser do you use? Could check the http server response with "Chrome - Developer Tools" or "Firefox - Firebug"? Did you know how to monitor ajax requests or do you need a tutorial?

Sebastian


2013/10/8 Markus Dütting <duet...@cosymed.de>

Markus Dütting

unread,
Oct 8, 2013, 9:00:19 AM10/8/13
to scmma...@googlegroups.com
Hi Sebastian,

thanks for the tip with using firebug. The problem was the url that is generated when installing a plugin. There are ":" which per default aren't allowed in URL's in IIS. I changed the necessary configuration, but perhaps you should use a different character or URL Encoding?
Thanks for the fast and useful help.

Best Regards,
Markus Dütting

Sebastian Sdorra

unread,
Oct 8, 2013, 3:30:11 PM10/8/13
to scmma...@googlegroups.com
I will think about url encoding for the next release.

Sebastian

Britt Treece

unread,
Nov 8, 2013, 4:54:46 PM11/8/13
to scmma...@googlegroups.com
I'm also having difficulties with plugin installation.I tried the standalone version and have now deployed the war version to Tomcat6. Same behavior in both. I click on the Install action for various plugins and it installs successfully and prompts me to restart the application server.  When I restart the plugins are not installed.  There is nothing specific in the scm-manager.log and catalina.out shows...

15:46:24.008 [http-8080-1] INFO  sonia.scm.plugin.AetherPluginHandler - try to install plugin with gav: sonia.scm.plugins:scm-activity-plugin:1.9
15:47:11.437 [http-8080-3] INFO  sonia.scm.plugin.AetherPluginHandler - try to install plugin with gav: sonia.scm.plugins:scm-activedirectory-auth-plugin:1.0
15:49:13.283 [http-8080-3] INFO  sonia.scm.plugin.AetherPluginHandler - try to install plugin with gav: de.triology.scm.plugins:scm-groupmanager-plugin:1.1
15:49:17.180 [http-8080-3] INFO  sonia.scm.plugin.AetherPluginHandler - try to install plugin with gav: sonia.scm.plugins:scm-userrename-plugin:1.0

I see that the plugins were downloaded to /usr/share/tomcat6/.scm/plugins/sonia/scm/plugins...

[root@sdoslnxp1028 plugins]# ls
scm-activedirectory-auth-plugin  scm-plugins
scm-activity-plugin              scm-userrename-plugin

Any help would be appreciated!

Britt

Britt Treece

unread,
Nov 8, 2013, 5:25:16 PM11/8/13
to scmma...@googlegroups.com
catalina.out of startup with TRACE enabled is attached.
catalina_out.zip

Sebastian Sdorra

unread,
Nov 12, 2013, 7:40:52 AM11/12/13
to scmma...@googlegroups.com
Hi,
The log does not show a problem. Could you please post your /usr/share/tomcat6/.scm/plugins/classpath.xml?

Sebastian


2013/11/8 Britt Treece <britt....@gmail.com>

Britt Treece

unread,
Nov 12, 2013, 8:58:29 AM11/12/13
to scmma...@googlegroups.com
# cat classpath.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<classpath>
    <path>/sonia/scm/plugins/scm-activedirectory-auth-plugin/1.0/scm-activedirectory-auth-plugin-1.0.jar</path>
    <path>/org/jvnet/com4j/typelibs/ado20/1.0/ado20-1.0.jar</path>
    <path>/org/jvnet/com4j/typelibs/active-directory/1.0/active-directory-1.0.jar</path>
    <path>/org/jvnet/com4j/com4j/20080107/com4j-20080107.jar</path>
    <path>/sonia/scm/plugins/scm-notify-plugin/1.4/scm-notify-plugin-1.4.jar</path>
    <path>/sonia/scm/plugins/scm-mail-plugin/1.3/scm-mail-plugin-1.3.jar</path>
    <path>/org/codemonkey/simplejavamail/simple-java-mail/2.1/simple-java-mail-2.1.jar</path>
    <path>/log4j/log4j/1.2.16/log4j-1.2.16.jar</path>
    <path>/sonia/scm/plugins/scm-userrename-plugin/1.0/scm-userrename-plugin-1.0.jar</path>
    <path>/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar</path>
    <path>/de/triology/scm/plugins/scm-groupmanager-plugin/1.1/scm-groupmanager-plugin-1.1.jar</path>
</classpath>

Sebastian Sdorra

unread,
Nov 14, 2013, 2:53:32 AM11/14/13
to scmma...@googlegroups.com
It looks like scm-manager loads the classpath.xml and creates the classloader, but when it searches for installed plugins it does not find the plugins from the classpath.xml. Which java version do you use? It is possible that you use the latest version from oracle?

Sebastian


2013/11/12 Britt Treece <britt....@gmail.com>

Britt Treece

unread,
Nov 14, 2013, 9:14:29 AM11/14/13
to scmma...@googlegroups.com
I have tried all of these with the same behavior...

java-1.6.0-openjdk.x86_64     1.6.0.0-1.65.1.11.14.el6_4
java-1.7.0-openjdk.x86_64     1.7.0.45-2.4.3.2.el6_4
jre-1.7.0_45-fcs.x86_64         1.7.0.45-b18 (Oracle Latest)

Sebastian Sdorra

unread,
Nov 14, 2013, 9:22:47 AM11/14/13
to scmma...@googlegroups.com
Do you use a security manager? Could you test the behaviour with the standalone version?

Sebastian


2013/11/14 Britt Treece <britt....@gmail.com>

Britt Treece

unread,
Nov 14, 2013, 9:30:13 AM11/14/13
to scmma...@googlegroups.com
I'm not sure what you mean.

SELinux is disabled. The current version i'm running it with is the Oracle version installed via RPM.

Sebastian Sdorra

unread,
Nov 14, 2013, 9:38:06 AM11/14/13
to scmma...@googlegroups.com
I mean the java security manager. Did you see a "-Djava.security.manager" parameter on your running java process? It is possible that you test the behaviour with the scm-manager standalone version?

Sebastian

Britt Treece

unread,
Nov 14, 2013, 9:52:43 AM11/14/13
to scmma...@googlegroups.com
I did not set java.security.manager so unless it is a new default of openjdk or the Oracle JRE I assume it is not set.  Here are the java process entries from tomcat running scm and then a tar version of jre running stand alone scm 1.34...

tomcat    3980     1 84 08:46 ?        00:00:15 /usr/java/jre1.7.0_45/bin/../bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start

root      3882  3881 35 08:45 pts/0    00:00:13 /opt/jre1.7.0_45/bin/java -Djava.awt.headless=true -Dlogback.configurationFile=logging.xml -classpath :/opt/scm-server/conf:/opt/scm-server/lib/scm-server-1.34.jar:/opt/scm-server/lib/commons-daemon-1.0.10.jar:/opt/scm-server/lib/jetty-server-7.6.13.v20130916.jar:/opt/scm-server/lib/javax.servlet-2.5.0.v201103041518.jar:/opt/scm-server/lib/jetty-continuation-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-http-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-io-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-webapp-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-xml-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-servlet-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-security-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-jmx-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-util-7.6.13.v20130916.jar:/opt/scm-server/lib/jetty-ajp-7.6.13.v20130916.jar -Dapp.name=scm-server -Dapp.pid=3882 -Dapp.repo=/opt/scm-server/lib -Dbasedir=/opt/scm-server sonia.scm.server.ScmServerDaemon

I've also tried stand-alone version 1.33 but found the same behavior

Sebastian Sdorra

unread,
Nov 14, 2013, 9:57:30 AM11/14/13
to scmma...@googlegroups.com
Do you use a proxy server? Could you send me the md5 sums of the following file?

- .scm/plugins/sonia/scm/plugins/scm-activity-plugin/1.9/scm-activity-plugin-1.9.jar

Sebastian

Britt Treece

unread,
Nov 14, 2013, 10:17:54 AM11/14/13
to scmma...@googlegroups.com
I am not using a proxy server.

225b3efdd9bc5ba4482af526461df561  /root/.scm/plugins/sonia/scm/plugins/scm-activity-plugin/1.9/scm-activity-plugin-1.9.jar
db347d484b6551be2f316a201c9b0957  /usr/share/tomcat6/.scm/plugins/sonia/scm/plugins/scm-activity-plugin/1.9/scm-activity-plugin-1.9.jar

Sebastian Sdorra

unread,
Nov 15, 2013, 2:14:19 AM11/15/13
to scmma...@googlegroups.com
The checksums are both wrong. The real checksum is fddf0e694e87e7851433bc5aefa730d4. I think there must be component in your network that blocks jar files or you have network problems. You could try to remove the content of the plugins folder, restart scm-manager and install the plugins again, but this will only work if the network problems are fixed.

Sebastian

Britt Treece

unread,
Nov 18, 2013, 5:14:37 PM11/18/13
to scmma...@googlegroups.com
Yep, that was my problem. Thanks for helping identify.
Reply all
Reply to author
Forward
0 new messages