[ejabberd] Admin IQ stanzas and <error code='404' type='cancel'> :'\

Gregory Tappero coulix at gmail.com
Sun Aug 30 13:00:43 MSD 2009


Hello everyone,

I am writting a small python tool to add users and run other admin
commands like protocol/admin#get-registered-users-num.

I have two ejabberd server, one on my local test machine with the
domain name being 'eeepc' which happens to be the hostname of the
linuxbox.

And one distant on tutorsbox.com, where i have the same ejabberd set
up except for the domain name being 'tutorsbox.com'.

Here is the successful command on the local eeepc:

C:
<iq to='eeepc' from='greg at eeepc' id='get-registred-users-num-1' type='set'>
    <command xmlns='http://jabber.org/protocol/commands'
action='execute'
node='http://jabber.org/protocol/admin#get-registered-users-num'/>

</iq>

S:
<iq from='eeepc' to='greg at eeepc/3493331071251540036345753'
id='get-registred-users-num-1' type='result'>
   [...]
       <value>7</value>
   [...]
</iq>


Now everytime on the distant server tutorsbox.com i get a

<error code='404' type='cancel'>
        <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    </error>


C:
<iq to='tutorsbox.com' from='greg at tutorsbox.com'
id='get-registred-users-num-1' type='set'>
    <command xmlns='http://jabber.org/protocol/commands'
action='execute'
node='http://jabber.org/protocol/admin#get-registered-users-num'/>
</iq>

S:
<iq from='tutorsbox.com'
to='greg at tutorsbox.com/36523779951251567671615394'
id='get-registred-users-num-1' type='error'>
    <command xmlns='http://jabber.org/protocol/commands'
action='execute'
node='http://jabber.org/protocol/admin#get-registered-users-num'/>
    <error code='404' type='cancel'>
        <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    </error>
</iq>



http://stackoverflow.com/questions/1352439/xmpp-ejabberd-and-add-user-command



I have no idea what could be the problem.
I can use ejabberctl but i dont know if he can give the current list
of online users and,  i guess ejabberctl has less power than the admin
commands ?.


Thanks for you help and great server ;)

Greg


More information about the ejabberd mailing list