• Resolved corvy

    (@corvy)


    Hello, I have set this plugin up with ejabberd 16.01 and latest wordpress. I think my mod_rest is setup correctly and I think the same for the wordpress end of things but still it does not work.

    How can I get logging on what is going on? When I try the forms I get the message “Server is temporarily unavailable, please try again in a moment” but I really do not know what it is complaining about. Does it get access denied? Is the port blocked?

    https://www.ads-software.com/plugins/ejabberd-account-tools/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Beherit

    (@beherit)

    Plugin doesn’t have any debug, just check logs in ejabberd.log on Your host with XMPP server.

    Plugin Author Beherit

    (@beherit)

    Anyway, I think You just put wrong REST API url OR it’s a problem wih mod_rest setup in ejabberd (check the example configuration in plugin settings).

    Thread Starter corvy

    (@corvy)

    ok, I will doublecheck again! ?? Thanks.

    Thread Starter corvy

    (@corvy)

    ok, now I have tested some more. If I try to use the commandprompt way with wget I get the following:

    # wget https://jabber.no:5285/rest/ –server-response –post-data ‘<message to=”[email protected]” from=”localhost/rest”><body>World</body></message>’
    –2016-03-13 10:09:50– https://jabber.no:5285/rest/
    Resolving jabber.no… 2a02:228:300:1::119, 80.239.54.119
    Connecting to jabber.no|2a02:228:300:1::119|:5285… failed: Connection refused.
    Connecting to jabber.no|80.239.54.119|:5285… connected.
    HTTP request sent, awaiting response…
    HTTP/1.1 406 Not Acceptable
    Content-Type: text/html; charset=utf-8
    Content-Length: 43
    2016-03-13 10:09:50 ERROR 406: Not Acceptable.

    Then I have tried in the wordpress config to do a test on e-mail for a JID ([email protected]) under tools. When I click check I get the following in my log:

    2016-03-13 10:12:46.300 [info] <0.1163.0>@ejabberd_listener:accept:333 (#Port<0.21156>) Accepted connection 80.239.54.119:50947 -> 80.239.54.119:5285
    2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:init:154 S: [{[<<“rest”>>],mod_rest}]
    2016-03-13 10:12:46.301 [info] <0.5881.0>@ejabberd_http:init:158 started: {gen_tcp,#Port<0.21156>}
    2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process_header:281 (#Port<0.21156>) http query: ‘POST’ <<“/rest”>>
    2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:extract_path_query:395 client data: <<“check_account \”stian\” \”jabber.no\””>>
    2016-03-13 10:12:46.301 [debug] <0.5881.0>@ejabberd_http:process:353 [<<“rest”>>] matches [<<“rest”>>]
    2016-03-13 10:12:46.301 [debug] <0.5881.0>@mod_rest:process:55 Error when processing REST request:
    Data: <<“check_account \”stian\” \”jabber.no\””>>
    Error: {badmatch,false}

    I am at a loss to what I am doing wrong here. I understand that ejabberd is saying that it cannot match my query, but I cannot for the love of me understand what the issue is.

    If you have any tips they are very much welcomed! I would relly love to use this plugin ?? Thanks!

    Plugin Author Beherit

    (@beherit)

    You should configure mod_rest to allow check_account command (and some others as it is in plugin example config)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to debug problems (log)’ is closed to new replies.