-
Steffen Larsen wrote:
If you want any help with this issues, I have made a RPM SPEC for the server (5.2.1) already. I have also all my components and script being compiled via maven into RPMs, so I easily can install them In my puppet environment.
Hi,
the main question is - even though using maven do you require RHEL/CentOS environment to build or do you use platform independent maven plugins?
-
I have RPMS and SRPMS for RHEL 6.5 you can grab from here http://ftpsrv01.networklab.ca/centos/6/RPMS/noarch/ or source RPM.
http://ftpsrv01.networklab.ca/centos/6/SRPM/tigase-issue #7.0.2-4.el6.src.rpm
We tested in our staging and installed in prod and it functional no issues has being discovered so far.
-
I took the RPM from https://projects.tigase.org/issues/1657#note-7 it did not work. I decompressed the RPM and used it for a base. Going through debugging what didn't work. I've managed building a successful installation RPM which doesn't quite work. First there is an error with certs:
# Fedora/RHEL changes # Change locations of certificates to be in line with the rest of the system s2s/connections/tls/keys-store=/etc/pki/tigase/rsa-keystore s2s/connections/tls/trusts-store=/etc/pki/tigase/truststore c2s/connections/tls/keys-store=/etc/pki/tigase/rsa-keystore c2s/connections/tls/trusts-store=/etc/pki/tigase/truststore bosh/connections/tls/keys-store=/etc/pki/tigase/rsa-keystore bosh/connections/tls/trusts-store=/etc/pki/tigase/truststore
2015-10-19 16:16:45.556 [main] SSLContextContainer.init() CONFIG: Loading predefined server certificates 2015-10-19 16:16:45.557 [main] SSLContextContainer.init() CONFIG: Loading server certificates from PEM directory: certs/ 2015-10-19 16:16:45.561 [main] SSLContextContainer.init() WARNING: There was a problem initializing SSL certificates. java.lang.NullPointerException at tigase.io.SSLContextContainer.init(SSLContextContainer.java:350) at tigase.io.TLSUtil.configureSSLContext(TLSUtil.java:86) at tigase.conf.ConfiguratorAbstract.setProperties(ConfiguratorAbstract.java:787) at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540) at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177) at tigase.conf.Configurator.componentAdded(Configurator.java:50) at tigase.conf.Configurator.componentAdded(Configurator.java:33) at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116) at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131) at tigase.server.MessageRouter.setConfig(MessageRouter.java:603) at tigase.server.XMPPServer.start(XMPPServer.java:142) at tigase.server.XMPPServer.main(XMPPServer.java:112)
Second there's a problem with the Web UI setup. It doesn't read int.properties file given in tigase.conf .
TIGASE_OPTIONS=" --property-file /etc/tigase/init.properties "
I tried to install with a Derby database anyway and was a given a blank white page after submitting.
2015-10-19 16:24:30.380 [Thread-39] SetupServlet.service() SEVERE: exception processing request java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:78) at java.io.InputStreamReader.<init>(InputStreamReader.java:72) at tigase.util.DBSchemaLoader.loadSQLQueries(DBSchemaLoader.java:363) at tigase.util.DBSchemaLoader.loadSchemaQueries(DBSchemaLoader.java:432) at tigase.util.DBSchemaLoader.validateDBSchema(DBSchemaLoader.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at groovy.tmp.templates.GStringTemplateScript85$_getTemplate_closure1.doCall(GStringTemplateScript85.groovy:325) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909) at groovy.lang.Closure.call(Closure.java:411) at groovy.lang.Closure$WritableClosure.writeTo(Closure.java:841) at tigase.http.setup.SetupServlet.processRequest(SetupServlet.groovy:120) at tigase.http.setup.SetupServlet.service(SetupServlet.groovy:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at tigase.http.java.RequestHandler.handle(RequestHandler.java:75) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82) at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79) at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647) at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:158) at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:431) at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:396) at java.lang.Thread.run(Thread.java:745)
I think the webUI/SSL code isn't checking environment variables for paths to files.
I am working on the RPM first because I've read the program "alien" can convert these to DEB packages.
This is using our latest release 7.0.2.
Type |
Task
|
Priority |
Minor
|
Assignee | |
RedmineID |
1657
|
Version |
Candidate for next major release
|
Investigate possible use of RPM Maven Plugin and jdeb as maven plugins.