Jira Performance Testing Build failure

Dileep Kumar Mone January 6, 2020

Hi all,

I am doing the performance testing in Jira Datacenter by using the Jira Performance Testing Document

jira-performance-tests/examples/btf-test/src/test/java/com/atlassian/performance/tools/btftest/MyJiraOnPremiseIT.java

final URI myJira = new URI("http://localhost:8080/"); 
jiraOnPremiseTest.setAdminLogin("admin");
jiraOnPremiseTest.setAdminPassword("XXXXXX");

And then Under jira-performance-tests/examples/btf-test run:

./mvnw verify

Got these errors:

[user@ip-Ipadress btf-test]$ ./mvnw verify
[INFO] Scanning for projects...
[INFO]
[INFO] ----------< com.atlassian.performance.tools.btftest:btf-test >----------
[INFO] Building btf-test 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jira-performance-tests/examples/btf-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ btf-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ btf-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ btf-test ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ btf-test ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ btf-test ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
Date time,466 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Starting ChromeDriver 2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d) on port 23597
Only local connections are allowed.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 20.911 s <<< FAILURE! - in com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
[ERROR] testMyJira(com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT) Time elapsed: 20.901 s <<< ERROR!
java.lang.Exception: Failed to run with [--jira-address, http://localhost:8080/jira/, --login, xxxxxxx@xxxxxxxx.com, --password, xxxxxxxxx, --virtual-users, 4, --logging, com.atlassian.performance.tools.virtualusers.logs.LogConfiguration, --hold, PT0S, --ramp, PT15S, --flat, PT5M, --max-overall-load, 10.0/PT1S, --scenario, com.atlassian.performance.tools.btftest.MyCustomScenario, --diagnostics-limit, 64, --seed, 1391048564144607369, --browser, com.atlassian.performance.tools.btftest.MyCustomBrowser, --user-generator, com.atlassian.performance.tools.virtualusers.api.users.SuppliedUserGenerator]
at com.atlassian.performance.tools.virtualusers.api.Application.tryRunning(EntryPoint.kt:31)
at com.atlassian.performance.tools.virtualusers.api.EntryPointKt.main(EntryPoint.kt:18)
at com.atlassian.performance.tools.infrastructure.api.virtualusers.LocalVirtualUsers.applyLoad(LocalVirtualUsers.kt:21)
at com.atlassian.performance.tools.jiraperformancetests.api.OnPremisePerformanceTest.run(OnPremisePerformanceTest.kt:62)
at com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT.testMyJira(MyJiraOnPremiseIT.java:55)
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:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: '', ip: 'Ipaddress', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.114-105.126.amzn2.x86_64', java.version: '1.8.0_222'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:132)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at com.atlassian.performance.tools.virtualusers.api.browsers.GoogleChrome.start(GoogleChrome.kt:33)
at com.atlassian.performance.tools.virtualusers.LoadTest.setUpJira(LoadTest.kt:92)
at com.atlassian.performance.tools.virtualusers.LoadTest.run(LoadTest.kt:64)
at com.atlassian.performance.tools.virtualusers.api.Application.run(EntryPoint.kt:44)
at com.atlassian.performance.tools.virtualusers.api.Application.tryRunning(EntryPoint.kt:27)
... 29 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:23597/status] to be available after 20000 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
... 41 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 42 more

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] MyJiraOnPremiseIT.testMyJira:55 » Failed to run with [--jira-address, http://...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ btf-test ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.785 s
[INFO] Finished at: 2020-01-07T05:22:37Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.0:verify (default) on project btf-test: There are test failures.
[ERROR]
[ERROR] Please refer to /home/jira-performance-tests/examples/btf-test/target/failsafe-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [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/MojoFailureException

Please do check and let me know for updates.

Thanks in advance.

Mone Dileep Kumar

1 answer

0 votes
brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 6, 2020

Hi @Dileep Kumar Mone ,

So you are trying to run the script the same server as the instance?

Double-check if your server can access the instance by simply doing curl

curl -v localhost:8080.

 

BTW, your real email and password are showing somewhere the error log, please edit this post and potentially change your password immediately!

Kat Warner
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 6, 2020

Good spotting @brbojorque. I have modified those login details for Dileep's safety.

@Dileep Kumar Mone - as suggested above, you may want to change your password.

Deleted user July 29, 2020

I'm facing similar issue, got stuck at the last line, pls help me on this issue

 

root@SMTCA01095:~/jpt/jira-performance-tests/examples/btf-test# ./mvnw verify
[INFO] Scanning for projects...
[INFO]
[INFO] ----------< com.atlassian.performance.tools.btftest:btf-test >----------
[INFO] Building btf-test 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/jpt/jira-performance-tests/examples/btf-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ btf-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ btf-test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /root/jpt/jira-performance-tests/examples/btf-test/target/test-classes
[INFO] /root/jpt/jira-performance-tests/examples/btf-test/src/test/java/com/atlassian/performance/tools/btftest/MyCustomScenario.java: /root/jpt/jira-performance-tests/examples/btf-test/src/test/java/com/atlassian/performance/tools/btftest/MyCustomScenario.java uses or overrides a deprecated API.
[INFO] /root/jpt/jira-performance-tests/examples/btf-test/src/test/java/com/atlassian/performance/tools/btftest/MyCustomScenario.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ btf-test ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ btf-test ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ btf-test ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
2020-07-30 07:20:50,281 main ERROR Attempted to append to non-started appender file
2020-07-30 07:20:50,290 main ERROR Attempted to append to non-started appender file
2020-07-30 07:20:50,291 main ERROR Attempted to append to non-started appender file
2020-07-30 07:20:50,292 main ERROR Attempted to append to non-started appender file

Dileep Kumar Mone July 29, 2020

Hi @[deleted] ,

The error which we faced earlier is a browser issue. In the Linux server, it is checking for the browser but it won't be available there. And also we should not perform this activity in the same server because if the Jira server crashes while performance testing then the script will not run and also causes server crash for this we won't get the result for the same. We should perform this activity in the different Server which I would recommend to do in the windows server with High RAM (i.e... more than 50GB). Just By installing JDK. GIT and Google browser in it.

This worked for me.

Thanks and Regards

Mone Dileep Kumar

Deleted user July 29, 2020

hi Dileep, thanks for your quick response, we are using Ubuntu server for for running JPT and another server where Jira is running, as per you suggestion i have installed chrome in my server, but unfortunately facing the same error......pls help me on this issue, since i'm struggling with this issue from past 1 month

Dileep Kumar Mone July 29, 2020

Hi @[deleted],

Did you try to browse that Jira instance from this server in the browser whether both the server can communicate from each other? And also make sure chrome as your default browser and try to explore the same.

Deleted user July 29, 2020

yes Dileep, i have network connectivity between my jira server and my JPT testing server,

I have installed google chrome in my JPT testing server(Ubuntu), but my JPT server failed to find chrome when running script.

Suggest an answer

Log in or Sign up to answer