Hi All,
I have tried to register 10 users only using ejabberd server. When i have checked in the server/DB, only one user getting registered. We have found error code 500(resource-constraint) and it represents Users are not allowed to register accounts so quickly. Referred many sites and changed the configuration to {registration_timeout, infinity} in ejabberd server. Still we are facing the same issue.
I have referred many sites and done the changes accordingly still issues not yet solved. I am placing the script and dump content for reference. Please go through and anybody assist on this.
Register.xml:
<?xml version="1.0"?><tsung loglevel="notice" dumptraffic="true" version="1.0">
<clients>
<client host="localhost" maxusers="10" use_controller_vm="true">
</client>
</clients>
<servers>
<server host="Server IP/Domain Name" port="5222" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="60" unit="second">
<users maxnumber="10" interarrival="1" unit="second"/>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="10"/>
<option type="ts_jabber" name="userid_max" value="10"/>
<option type="ts_jabber" name="domain" value="Server IP/Domain Name"/>
<option type="ts_jabber" name="username" value="erlangtwo"/>
<option type="ts_jabber" name="passwd" value="tsung"/>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request>
<jabber type="connect" ack="local"/>
</request>
<request>
<match do="abort" when="nomatch">error</match>
<jabber type="register" ack="local" id="new"/>
</request>
<request>
<jabber type="close" ack="local"/>
</request>
</session>
</sessions>
</tsung>
Tsung.dump File:
NewClient:1468907723.857173:1
load:1
NewClient:1468907723.940115:1
load:2
Send:1468907724.130995:<0.85.0>:<?xml version='1.0'?>
Send:1468907724.207427:<0.88.0>:<?xml version='1.0'?>
Recv:1468907724.422558:<0.85.0>:<?xml version='1.0'?>
Send:1468907724.44325:<0.85.0>:erlangtwo1tsungtsung1
Recv:1468907724.443268:<0.85.0>:DIGEST-MD5SCRAM-SHA-1PLAINX-OAUTH2
EndClient:1468907724.443412:1
load:1
NewClient:1468907724.516075:1
load:2
Send:1468907724.758632:<0.89.0>:<?xml version='1.0'?>
Recv:1468907724.8085:<0.88.0>:<?xml version='1.0'?>DIGEST-MD5SCRAM-SHA-1PLAINX-OAUTH2
Send:1468907724.809424:<0.88.0>:erlangtwo2tsungtsung2
Recv:1468907725.001756:<0.89.0>:<?xml version='1.0'?>DIGEST-MD5SCRAM-SHA-1PLAINX-OAUTH2
Send:1468907725.002668:<0.89.0>:erlangtwo3tsungtsung3
Recv:1468907725.056937:<0.88.0>:erlangtwo2tsungtsung2Users are not allowed to register accounts so quickly
Send:1468907725.057804:<0.88.0>:
Recv:1468907725.24447:<0.89.0>:erlangtwo3tsungtsung3Users are not allowed to register accounts so quickly
Send:1468907725.24518:<0.89.0>:
Recv:1468907725.305033:<0.88.0>:
EndClient:1468907725.305255:2
load:1
Recv:1468907725.48625:<0.89.0>:
EndClient:1468907725.486463:3
load:0
.
.
..
## In-band registration
## In-band registration allows registration of any possible username.
## To disable in-band registration, replace 'allow' with 'deny'.
register:
all: allow
## By default the frequency of account registrations from the same IP
## is limited to 1 account every 10 minutes. To disable, specify: infinity
registration_timeout: infinity
Make the above changes and try again.
Even we changed that
Even we changed that configuration. We are facing the same issue:Users are not allowed to register accounts so quickly. Please assist...
--
--
Can you post your yml file?
Can you post your yml file?
Thanks for reply. I have
Thanks for reply.
I have placed yml file below. Please go through and do the needful.
pubsub_createnode:
- allow: local
## In-band registration allows registration of any possible username.
## To disable in-band registration, replace 'allow' with 'deny'.
register:
- allow
## Only allow to register from localhost
trusted_network:
- allow: loopback
## Do not establish S2S connections with bad servers
## s2s:
## - deny:
## - ip: "XXX.XXX.XXX.XXX/32"
## - deny:
## - ip: "XXX.XXX.XXX.XXX/32"
## - allow
## By default the frequency of account registrations from the same IP
## is limited to 1 account every 10 minutes. To disable, specify: infinity
registration_timeout: infinity