Projects tigase _server tigase-http-api Issues #75
[TTS-NG] Add test for the installer (#75)
wojciech.kapcia@tigase.net opened 6 years ago

We should add test for the /setup as well (especially case with default, empty config)

Andrzej Wójcik (Tigase) commented 5 years ago

Test added and new build Setup in Tigase TTS-NG Tests project in TC was added.

wojciech.kapcia@tigase.net commented 5 years ago

I checked https://tc.tigase.net/viewLog.html?buildId=2933&buildTypeId=TigaseTtsNgTests_Setup&tab=buildLog and test failed:

[02:26:37]
2019-07-20 02:26:37 | null / [TestClass name=class tigase.tests.setup.TestSetup]
[02:26:37]
2019-07-20 02:26:37 | ------------------------------------
[02:26:38]
Jul 20, 2019 2:26:38 AM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary
[02:26:38]
INFO: statusCode=[401] contentType=[]
[02:26:38]
Jul 20, 2019 2:26:38 AM com.gargoylesoftware.htmlunit.WebClient printContentIfNecessary
[02:26:38]
INFO: Not authorized
[02:26:39]
2019-07-20 02:26:39 | 
[02:26:39]
2019-07-20 02:26:39 | null / [TestClass name=class tigase.tests.setup.TestSetup]
[02:26:39]
2019-07-20 02:26:39 | ------------------------------------
[02:26:39]
[ERROR] Tests run: 11, Failures: 1, Errors: 0, Skipped: 9, Time elapsed: 2.456 s <<< FAILURE! - in tigase.tests.setup.TestSetup
[02:26:39]
[ERROR] authenticate(tigase.tests.setup.TestSetup)  Time elapsed: 1.21 s
[02:26:39]
[ERROR] testAboutSoftwarePage(tigase.tests.setup.TestSetup)  Time elapsed: 0.013 s  <<< FAILURE!
[02:26:39]
com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[button] attributeName=[name] attributeValue=[next]
[02:26:39]
	at com.gargoylesoftware.htmlunit.html.HtmlForm.getButtonByName(HtmlForm.java:529)
[02:26:39]
	at tigase.tests.setup.TestSetup.testAboutSoftwarePage(TestSetup.java:77)
[02:26:39]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[02:26:39]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[02:26:39]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[02:26:39]
	at java.lang.reflect.Method.invoke(Method.java:498)
[02:26:39]
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
[02:26:39]
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
[02:26:39]
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
[02:26:39]
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
[02:26:39]
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
[02:26:39]
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[02:26:39]
	at org.testng.TestRunner.privateRun(TestRunner.java:744)
[02:26:39]
	at org.testng.TestRunner.run(TestRunner.java:602)
[02:26:39]
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
[02:26:39]
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
[02:26:39]
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
[02:26:39]
	at org.testng.SuiteRunner.run(SuiteRunner.java:289)
[02:26:39]
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[02:26:39]
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

When checking the configuration (https://tc.tigase.net/admin/editRunType.html?id=buildType:TigaseTtsNgTests_Setup&runnerId=RUNNER_75&cameFromUrl=%2Fadmin%2FeditBuildRunners.html%3Fid%3DbuildType%253ATigaseTtsNgTests_Setup%26init%3D1&cameFromTitle=) - maybe we could/should put those scripts in repository as we did previously (https://github.com/tigase/private/tree/master/tts-runner/scripts) - that way it's easier to have consistent configuration for all test-run builds and track changes.

https://github.com/tigase/private/tree/master/tts-runner/scripts

Andrzej Wójcik (Tigase) commented 5 years ago

As for scripts, we can do that, but making changes and pushing them to the repository just to check config was problematic. It was easier to create a script here and for now,​ it will only work on the master branch.

As for the error, it was expected - build.tigase.net was not switched yet, so setup is missing minor changes which are required to make this test work.

wojciech.kapcia@tigase.net commented 5 years ago

I think we should still add redirections from .org to .net (apart from correcting the script itself)

https://tc.tigase.net/viewLog.html?buildId=3257&buildTypeId=TigaseTtsNgTests_Setup&tab=buildLog:

[09:01:36]
Resolving build.tigase.org (build.tigase.org)... 13.224.29.102, 13.224.29.30, 13.224.29.39, ...
[09:01:36]
Connecting to build.tigase.org (build.tigase.org)|13.224.29.102|:80... connected.
[09:01:36]
HTTP request sent, awaiting response... 403 Forbidden
wojciech.kapcia@tigase.net commented 5 years ago

https://build.tigase.net/nightlies/tts-ng-tests/#tigase.tests.setup.TestSetup -> (eg): https://build.tigase.net/nightlies/tts-ng-tests/test-results/8.1.0-SNAPSHOT-b10427/tigase.tests.setup.TestSetup/derby/html/index.html

Tests are not run, according to log server (e.g. https://build.tigase.net/nightlies/tts-ng-tests/test-results/8.1.0-SNAPSHOT-b10427/tigase.tests.setup.TestSetup/derby/server-log/tigase-console.log) there is a problem with binding to port 8080:

=====================
Could not initialize bean 8080 (class: class tigase.http.java.JavaStandaloneHttpServer$PortConfigBean), skipping injection of this bean
RootCause:
   -> java.lang.RuntimeException: Could not initialize HTTP server for port 8080
      [tigase.http.java.JavaStandaloneHttpServer$PortConfigBean.initialize(JavaStandaloneHttpServer.java:316)]
=====================
Andrzej Wójcik (Tigase) commented 5 years ago

@wojtek So it looks like there is something which took over port 8080 which is default port and we wanted to test web installer with the default configuration. Now it looks like it is not possible, so what you would like to do?

wojciech.kapcia@tigase.net commented 5 years ago

@andrzej.wojcik It looks that way, however it seems that it was running previously just fine so… investigation time: https://tc.tigase.net/viewLog.html?buildId=5215&buildTypeId=TigaseTtsNgTests_Listeners&tab=buildLog#_state=24

[10:08:15]
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
[10:08:16]
COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
[10:08:16]
java     1117 root   51u  IPv4  1817859      0t0  TCP *:8111 (LISTEN)
[10:08:16]
java     1117 root  174u  IPv4  1818254      0t0  TCP 127.0.0.1:8105 (LISTEN)
[10:08:16]
java     1252 root   60u  IPv4  1820122      0t0  TCP *:32845 (LISTEN)
[10:08:16]
java     1252 root   61u  IPv4  1820123      0t0  TCP 127.0.0.1:58972 (LISTEN)
[10:08:16]
java     8623 root  157u  IPv4 48586393      0t0  TCP *:8088 (LISTEN)
[10:08:16]
java     8623 root  170u  IPv4 48587087      0t0  TCP *:5222 (LISTEN)
[10:08:16]
java     8623 root  171u  IPv4 48587088      0t0  TCP *:5223 (LISTEN)
[10:08:16]
java     8623 root  178u  IPv4 48587089      0t0  TCP *:5280 (LISTEN)
[10:08:16]
java     8623 root  179u  IPv4 48587090      0t0  TCP *:5290 (LISTEN)
[10:08:16]
java     8623 root  180u  IPv4 48587091      0t0  TCP *:5269 (LISTEN)
[10:08:16]
java    10221 root  149u  IPv4 14773619      0t0  TCP *:8080 (LISTEN)
[10:08:16]
java    30125 root  376u  IPv4 40405356      0t0  TCP *:9090 (LISTEN)
[10:08:16]
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
[10:08:16]
 1117 ?        Sl   9838:12   423     2 5248173 1937032 24.6 /opt/java/openjdk/jre/bin/java -Djava.util.logging.config.file=/opt/teamcity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -server -Xmx2g -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/opt/teamcity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=/opt/teamcity/bin/../logs -Djava.awt.headless=true -Dignore.endorsed.dirs= -classpath /opt/teamcity/bin/bootstrap.jar:/opt/teamcity/bin/tomcat-juli.jar -Dcatalina.base=/opt/teamcity -Dcatalina.home=/opt/teamcity -Djava.io.tmpdir=/opt/teamcity/temp org.apache.catalina.startup.Bootstrap start
[10:08:16]
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
[10:08:16]
 1252 ?        Sl    17:27     11     2 3472253 65976  0.8 /opt/java/openjdk/jre/bin/java -DTCSubProcessName=TeamCityMavenServer -classpath /opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-artifact-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-runner-server.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-classworlds-2.5.2.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-embedder3.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-core-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/commons-io-2.2.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/commons-cli-1.2.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/sisu-guice-3.2.3-no_aop.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-impl-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/wagon-http-shared-2.8.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-embedder-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/wagon-file-2.8.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-util-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/commons-lang-2.6.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/wagon-provider-api-2.8.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-transport-wagon-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-plugin-api-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-embedder-api.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/javax.inject-1.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aopalliance-1.0.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/async-trigger.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-common.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-repository-metadata-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-spi-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/cdi-api-1.0.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-interpolation-1.21.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-model-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/jsoup-1.7.2.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-api-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-sec-dispatcher-1.3.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/guava-18.0.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/jsr250-api-1.0.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-utils-3.0.20.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/org.eclipse.sisu.inject-0.3.0.M1-custom.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/wagon-issue #2.8-shaded.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-compat-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-settings-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-component-annotations-1.5.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/org.eclipse.sisu.plexus-0.3.0.M1.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-settings-builder-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-aether-provider-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/aether-connector-basic-1.0.0.v20140518.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/maven-model-builder-3.2.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/plugins/Maven2/server/plexus-cipher-1.7.jar:/opt/teamcity/webapps/ROOT/WEB-INF/lib/log4j-1.2.12.jar:/opt/teamcity/webapps/ROOT/WEB-INF/lib/slf4j-api-1.7.5.jar:/opt/teamcity/webapps/ROOT/WEB-INF/lib/openapi.jar -Dlogs.dir=/opt/teamcity/logs -Xmx1G jetbrains.buildServer.maven.remote.MavenServerImpl teamcity-mavenServer
[10:08:16]
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
[10:08:16]
 8623 ?        Sl    13:04      3     2 4116081 517756  6.5 /opt/java/openjdk/bin/java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djdbc.drivers=com.mysql.jdbc.Driver -Dderby.system.home=/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng -Dtigase.cache=off -server -Xms100M -Xmx1000M -Dlogback.configurationFile=/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/etc/logback.xml -cp /opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/activation.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/alpn-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bcpkix-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bcprov-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bctls-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/derby.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/derbytools.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-json.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-jsr223.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-templates.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-xml.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/hamcrest-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/http2-common.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/http2-hpack.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/http2-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/javax.mail.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/javax.servlet-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jaxmpp-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jaxmpp-j2se.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jdmkrt.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-alpn-java-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-alpn-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-http.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-io.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-security.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-servlet.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-util.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jmdns.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jstun.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jtds.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jul-to-slf4j.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/licence-lib.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/logback-classic.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/logback-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/mongo-java-driver.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/mysql-connector-java.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.bundlerepository.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.configadmin.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.main.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.shell.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.shell.remote.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.osgi.core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/postgresql.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/slf4j-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/smtp.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-muc.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-pubsub.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-workgroup.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-auditlog.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-database-migrator.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-base.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-bcstarttls.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mailer.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mailsender.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mdns.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-http-api-jetty.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-http-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-message-archiving.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-mongodb.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-muc.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-pubsub.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-push.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server-dist.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-socks5.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-spam.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stats-collector-library.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stats-collector-provider.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stun.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-unified-archive.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-utils.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-workgroupqueues-component.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-xmltools.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server-dist.jar tigase.server.XMPPServer --config-file /opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/src/test/resources/server/etc/config.tdsl --test
[10:08:16]
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
[10:08:16]
10221 ?        Sl    16:05     16     2 4470269 556236  7.0 /opt/java/openjdk/bin/java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver -server -Xss228k -XX:MaxDirectMemorySize=128m -XX:MaxMetaspaceSize=128m -Dlogback.configurationFile=/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/etc/logback.xml -cp /opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/activation.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bcpkix-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bcprov-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/bctls-jdk15on.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/derby.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/derbytools.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-json.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-jsr223.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-templates.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy-xml.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/groovy.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/hamcrest-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/javax.mail.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/javax.servlet-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jaxmpp-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jaxmpp-j2se.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jdmkrt.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-http.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-io.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-security.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-servlet.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jetty-util.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jmdns.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jstun.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jtds.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/jul-to-slf4j.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/licence-lib.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/logback-classic.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/logback-core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/mongo-java-driver.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/mysql-connector-java.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.bundlerepository.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.configadmin.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.main.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.shell.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.apache.felix.shell.remote.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/org.osgi.core.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/postgresql.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/slf4j-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/smtp.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-muc.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-pubsub.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs-workgroup.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-acs.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-auditlog.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-database-migrator.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-base.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-bcstarttls.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mailer.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mailsender.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-extras-mdns.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-http-api-jetty.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-http-api.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-message-archiving.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-mongodb.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-muc.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-pubsub.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-push.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server-dist.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-socks5.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-spam.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stats-collector-library.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stats-collector-provider.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-stun.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-unified-archive.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-utils.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-workgroupqueues-component.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-xmltools.jar:/opt/teamcity/buildAgent/work/8317086dd36b0911/tigase-tts-ng/tmp/tigase-server/jars/tigase-server-dist.jar tigase.server.XMPPServer
[10:08:16]
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
[10:08:16]
30125 ?        Sl    34:20    406     2 3659245 535652  6.8 /opt/java/openjdk/jre/bin/java -ea -Xmx1g -Dteamcity_logs=../logs/ -Dlog4j.configuration=file:../conf/teamcity-agent-log4j.xml -classpath /opt/teamcity/buildAgent/lib/messages.jar:/opt/teamcity/buildAgent/lib/resources_en.jar:/opt/teamcity/buildAgent/lib/joda-time.jar:/opt/teamcity/buildAgent/lib/log4j-1.2.12.jar:/opt/teamcity/buildAgent/lib/launcher.jar:/opt/teamcity/buildAgent/lib/launcher-api.jar:/opt/teamcity/buildAgent/lib/xpp3-1.1.4c.jar:/opt/teamcity/buildAgent/lib/ehcache-1.7.2.jar:/opt/teamcity/buildAgent/lib/commons-io-1.3.2.jar:/opt/teamcity/buildAgent/lib/commons-beanutils-core.jar:/opt/teamcity/buildAgent/lib/commons-collections-3.2.2.jar:/opt/teamcity/buildAgent/lib/ehcache-1.6.0-patch.jar:/opt/teamcity/buildAgent/lib/xml-rpc-wrapper.jar:/opt/teamcity/buildAgent/lib/inspections-util.jar:/opt/teamcity/buildAgent/lib/slf4j-log4j12-1.7.5.jar:/opt/teamcity/buildAgent/lib/agent-configurator.jar:/opt/teamcity/buildAgent/lib/commons-httpclient-3.1.jar:/opt/teamcity/buildAgent/lib/processesTerminator.jar:/opt/teamcity/buildAgent/lib/freemarker.jar:/opt/teamcity/buildAgent/lib/common-impl.jar:/opt/teamcity/buildAgent/lib/annotations.jar:/opt/teamcity/buildAgent/lib/common.jar:/opt/teamcity/buildAgent/lib/xercesImpl.jar:/opt/teamcity/buildAgent/lib/trove4j.jar:/opt/teamcity/buildAgent/lib/spring-scripting/spring-scripting-bsh.jar:/opt/teamcity/buildAgent/lib/spring-scripting/spring-scripting-jruby.jar:/opt/teamcity/buildAgent/lib/spring-scripting/spring-scripting-groovy.jar:/opt/teamcity/buildAgent/lib/jdom.jar:/opt/teamcity/buildAgent/lib/coverage-agent-common.jar:/opt/teamcity/buildAgent/lib/commons-compress-1.9.jar:/opt/teamcity/buildAgent/lib/app-wrapper.jar:/opt/teamcity/buildAgent/lib/commons-codec.jar:/opt/teamcity/buildAgent/lib/patches-impl.jar:/opt/teamcity/buildAgent/lib/buildAgent-updates-applying.jar:/opt/teamcity/buildAgent/lib/jaxen-1.1.1.jar:/opt/teamcity/buildAgent/lib/xstream-1.4.10-custom.jar:/opt/teamcity/buildAgent/lib/agent-installer-ui.jar:/opt/teamcity/buildAgent/lib/runtime-util.jar:/opt/teamcity/buildAgent/lib/server-logging.jar:/opt/teamcity/buildAgent/lib/agent-launcher.jar:/opt/teamcity/buildAgent/lib/gson.jar:/opt/teamcity/buildAgent/lib/spring.jar:/opt/teamcity/buildAgent/lib/agent.jar:/opt/teamcity/buildAgent/lib/coverage-report.jar:/opt/teamcity/buildAgent/lib/xz-1.5.jar:/opt/teamcity/buildAgent/lib/xmlrpc-2.0.1.jar:/opt/teamcity/buildAgent/lib/patches.jar:/opt/teamcity/buildAgent/lib/duplicator-util.jar:/opt/teamcity/buildAgent/lib/jdk-searcher.jar:/opt/teamcity/buildAgent/lib/log4j-1.2.12-json-layout.jar:/opt/teamcity/buildAgent/lib/openapi.jar:/opt/teamcity/buildAgent/lib/serviceMessages.jar:/opt/teamcity/buildAgent/lib/commons-logging.jar:/opt/teamcity/buildAgent/lib/slf4j-api-1.7.5.jar:/opt/teamcity/buildAgent/lib/agent-openapi.jar:/opt/teamcity/buildAgent/lib/agent-upgrade.jar:/opt/teamcity/buildAgent/lib/common-runtime.jar:/opt/teamcity/buildAgent/lib/trove-3.0.3.jar:/opt/teamcity/buildAgent/lib/idea-settings.jar:/opt/teamcity/buildAgent/lib/cloud-shared.jar:/opt/teamcity/buildAgent/lib/nuget-utils.jar:/opt/teamcity/buildAgent/lib/util.jar jetbrains.buildServer.agent.AgentMain -file ../conf/buildAgent.properties -launcher.version 66192

Basically it looks like previous run left residual Tigase Server running hence issues with testing installer (and tests altogether). test-runner script SHOUD take care of it but it's doing it only after runing a suite (i.e. doesn't clean environment preemptively with killall java for example as it would wreck havoc most of the time…)

I'd say we should:

  • cleanup environment (kill old instances)
  • make sure that they don't stay up after running the test.
Andrzej Wójcik (Tigase) commented 5 years ago

Old instances stopped, script modified and tests restarted.

wojciech.kapcia@tigase.net commented 5 years ago

There were a couple of fixes but it works now well.

issue 1 of 1
Type
Task
Priority
Blocker
Assignee
RedmineID
8571
Version
Candidate for next minor release
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#75
Please wait...
Page is in error, reload to recover