[jitsi-dev] Jitsi Hammer build failed


#1

Dear Team,

After clone Jitsi Hammer from github, I use this command:

*sudo ./jitsi-hammer.sh -BOSHuri https://mydomain/http-bind
<https://mydomain/http-bind> -XMPPdomain mydomain -BOSHhost mydomain
-MUCdomain mydomain -users 20 -ivf
resources/big-buck-bunny_trailer_track1_eng.ivf -room 1 *

But Hammer always stop. This is the log:

[WARNING] The POM for org.jitsi:ice4j:jar:1.0-20151202.233708-16 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details

[WARNING] The POM for org.jitsi:libjitsi:jar:1.0-20160202.152655-85 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details

[INFO]

[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ jitsi-hammer ---

log4j:WARN No appenders could be found for logger
(org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).

log4j:WARN Please initialize the log4j system properly.

Apr 19, 2018 6:08:59 AM org.jivesoftware.smack.AbstractXMPPConnection
callConnectionClosedOnErrorListener

WARNING: Connection XMPPBOSHConnection[not-authenticated] (0) closed with
error

org.igniterealtime.jbosh.BOSHException: Could not obtain response

at
org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(ApacheHTTPResponse.java:246)

at
org.igniterealtime.jbosh.ApacheHTTPResponse.getBody(ApacheHTTPResponse.java:187)

at org.igniterealtime.jbosh.BOSHClient.processExchange(BOSHClient.java:1114)

at org.igniterealtime.jbosh.BOSHClient.processMessages(BOSHClient.java:990)

at org.igniterealtime.jbosh.BOSHClient.access$300(BOSHClient.java:100)

at
org.igniterealtime.jbosh.BOSHClient$RequestProcessor.run(BOSHClient.java:1719)

at java.lang.Thread.run(Thread.java:748)

Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

at
sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:440)

at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)

at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:339)

at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)

at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)

at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)

at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)

at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)

at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)

at
org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(ApacheHTTPResponse.java:230)

... 6 more

Apr 19, 2018 6:08:59 AM org.jivesoftware.smack.SASLAuthentication
selectMechanism

WARNING: Server did not report any SASL mechanisms

org.jivesoftware.smack.SmackException: No supported and enabled SASL
Mechanism provided by server. Server announced mechanisms: []. Registerd
SASL mechanisms with Smack:
[org.jivesoftware.smack.sasl.javax.SASLGSSAPIMechanism@5869c3b9,
org.jivesoftware.smack.sasl.core.SCRAMSHA1Mechanism@39e055d3,
org.jivesoftware.smack.sasl.core.ScramSha1PlusMechanism@4f31c837,
org.jivesoftware.smack.sasl.javax.SASLDigestMD5Mechanism@16ae0ed2,
org.jivesoftware.smack.sasl.javax.SASLCramMD5Mechanism@cc73b5,
org.jivesoftware.smack.sasl.javax.SASLPlainMechanism@3bb9f0b2,
org.jivesoftware.smack.sasl.core.SASLXOauth2Mechanism@7a08f782,
org.jivesoftware.smack.sasl.javax.SASLExternalMechanism@1cb6ae8f,
org.jivesoftware.smack.sasl.core.SASLAnonymous@7f843777]. Enabled SASL
mechansisms for this connection: [ANONYMOUS]. Blacklisted SASL mechanisms:
[SCRAM-SHA-1-PLUS].

at
org.jivesoftware.smack.SASLAuthentication.selectMechanism(SASLAuthentication.java:359)

at
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:191)

at
org.jivesoftware.smack.bosh.XMPPBOSHConnection.loginInternal(XMPPBOSHConnection.java:223)

at
org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java:491)

at
org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java:448)

at org.jitsi.hammer.FakeUser.start(FakeUser.java:397)

at org.jitsi.hammer.Hammer.startUsersAnonymous(Hammer.java:416)

at org.jitsi.hammer.Hammer.start(Hammer.java:342)

at org.jitsi.hammer.Main.main(Main.java:281)

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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)

at java.lang.Thread.run(Thread.java:748)

Stopping Jitsi-Hammer...

Can you tell me how to fix it, thank you so much.


#2

Sorry, it's cause my command wrong format. I rerun with this command:
./jitsi-hammer.sh -u https://mydomain/http-bind -room 1 -users 3 -length
120 -audiortpdump resources/rtp_opus.rtpdump -videortpdump
resources/rtp_vp8.rtpdump -summarystats -ivf
resources/big-buck-bunny_trailler_track1_eng.ivf

I can see all users in the 1 room, but I can't see their fake user video.
The log is:

[WARNING]

java.lang.IllegalArgumentException: minPort (0) and maxPort (50) should be
integers between 1024 and 65535.

at
org.ice4j.ice.harvest.HostCandidateHarvester.checkPorts(HostCandidateHarvester.java:727)

at
org.ice4j.ice.harvest.HostCandidateHarvester.createDatagramSocket(HostCandidateHarvester.java:645)

at
org.ice4j.ice.harvest.HostCandidateHarvester.harvest(HostCandidateHarvester.java:367)

at org.ice4j.ice.Agent.gatherCandidates(Agent.java:582)

at org.ice4j.ice.Agent.createComponent(Agent.java:508)

at org.ice4j.ice.Agent.createComponent(Agent.java:455)

at
org.jitsi.hammer.utils.IceMediaStreamGenerator.generateIceMediaStream(IceMediaStreamGenerator.java:151)

at org.jitsi.hammer.FakeUser.acceptJingleSession(FakeUser.java:714)

at org.jitsi.hammer.FakeUser.access$200(FakeUser.java:64)

at org.jitsi.hammer.FakeUser$1.handleIQRequest(FakeUser.java:346)

at
org.jivesoftware.smack.AbstractXMPPConnection$3.run(AbstractXMPPConnection.java:1119)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Can you help me how to fix it. thank you.

···

On Thu, Apr 19, 2018 at 5:13 PM, Trần Hoài Nam <namth4@topica.edu.vn> wrote:

Dear Team,

After clone Jitsi Hammer from github, I use this command:

*sudo ./jitsi-hammer.sh -BOSHuri https://mydomain/http-bind
<https://mydomain/http-bind> -XMPPdomain mydomain -BOSHhost mydomain
-MUCdomain mydomain -users 20 -ivf
resources/big-buck-bunny_trailer_track1_eng.ivf -room 1 *

But Hammer always stop. This is the log:

[WARNING] The POM for org.jitsi:ice4j:jar:1.0-20151202.233708-16 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details

[WARNING] The POM for org.jitsi:libjitsi:jar:1.0-20160202.152655-85 is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details

[INFO]

[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ jitsi-hammer ---

log4j:WARN No appenders could be found for logger
(org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).

log4j:WARN Please initialize the log4j system properly.

Apr 19, 2018 6:08:59 AM org.jivesoftware.smack.AbstractXMPPConnection
callConnectionClosedOnErrorListener

WARNING: Connection XMPPBOSHConnection[not-authenticated] (0) closed with
error

org.igniterealtime.jbosh.BOSHException: Could not obtain response

at org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(
ApacheHTTPResponse.java:246)

at org.igniterealtime.jbosh.ApacheHTTPResponse.getBody(
ApacheHTTPResponse.java:187)

at org.igniterealtime.jbosh.BOSHClient.processExchange(
BOSHClient.java:1114)

at org.igniterealtime.jbosh.BOSHClient.processMessages(
BOSHClient.java:990)

at org.igniterealtime.jbosh.BOSHClient.access$300(BOSHClient.java:100)

at org.igniterealtime.jbosh.BOSHClient$RequestProcessor.
run(BOSHClient.java:1719)

at java.lang.Thread.run(Thread.java:748)

Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not
authenticated

at sun.security.ssl.SSLSessionImpl.getPeerCertificates(
SSLSessionImpl.java:440)

at org.apache.http.conn.ssl.AbstractVerifier.verify(
AbstractVerifier.java:128)

at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
SSLSocketFactory.java:339)

at org.apache.http.impl.conn.DefaultClientConnectionOperato
r.openConnection(DefaultClientConnectionOperator.java:123)

at org.apache.http.impl.conn.AbstractPoolEntry.open(
AbstractPoolEntry.java:147)

at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(
AbstractPooledConnAdapter.java:108)

at org.apache.http.impl.client.DefaultRequestDirector.execute(
DefaultRequestDirector.java:415)

at org.apache.http.impl.client.AbstractHttpClient.execute(
AbstractHttpClient.java:641)

at org.apache.http.impl.client.AbstractHttpClient.execute(
AbstractHttpClient.java:576)

at org.igniterealtime.jbosh.ApacheHTTPResponse.awaitResponse(
ApacheHTTPResponse.java:230)

... 6 more

Apr 19, 2018 6:08:59 AM org.jivesoftware.smack.SASLAuthentication
selectMechanism

WARNING: Server did not report any SASL mechanisms

org.jivesoftware.smack.SmackException: No supported and enabled SASL
Mechanism provided by server. Server announced mechanisms: []. Registerd
SASL mechanisms with Smack: [org.jivesoftware.smack.sasl.
javax.SASLGSSAPIMechanism@5869c3b9, org.jivesoftware.smack.sasl.
core.SCRAMSHA1Mechanism@39e055d3, org.jivesoftware.smack.sasl.
core.ScramSha1PlusMechanism@4f31c837, org.jivesoftware.smack.sasl.
javax.SASLDigestMD5Mechanism@16ae0ed2, org.jivesoftware.smack.sasl.
javax.SASLCramMD5Mechanism@cc73b5, org.jivesoftware.smack.sasl.
javax.SASLPlainMechanism@3bb9f0b2, org.jivesoftware.smack.sasl.
core.SASLXOauth2Mechanism@7a08f782, org.jivesoftware.smack.sasl.
javax.SASLExternalMechanism@1cb6ae8f, org.jivesoftware.smack.sasl.
core.SASLAnonymous@7f843777]. Enabled SASL mechansisms for this
connection: [ANONYMOUS]. Blacklisted SASL mechanisms: [SCRAM-SHA-1-PLUS].

at org.jivesoftware.smack.SASLAuthentication.selectMechanism(
SASLAuthentication.java:359)

at org.jivesoftware.smack.SASLAuthentication.authenticate(
SASLAuthentication.java:191)

at org.jivesoftware.smack.bosh.XMPPBOSHConnection.loginInternal(
XMPPBOSHConnection.java:223)

at org.jivesoftware.smack.AbstractXMPPConnection.login(
AbstractXMPPConnection.java:491)

at org.jivesoftware.smack.AbstractXMPPConnection.login(
AbstractXMPPConnection.java:448)

at org.jitsi.hammer.FakeUser.start(FakeUser.java:397)

at org.jitsi.hammer.Hammer.startUsersAnonymous(Hammer.java:416)

at org.jitsi.hammer.Hammer.start(Hammer.java:342)

at org.jitsi.hammer.Main.main(Main.java:281)

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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)

at java.lang.Thread.run(Thread.java:748)

Stopping Jitsi-Hammer...

Can you tell me how to fix it, thank you so much.