Title: How to debug problems (log)
Last modified: August 31, 2016

---

# How to debug problems (log)

 *  Resolved [corvy](https://wordpress.org/support/users/corvy/)
 * (@corvy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/)
 * 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://wordpress.org/plugins/ejabberd-account-tools/](https://wordpress.org/plugins/ejabberd-account-tools/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161212)
 * Plugin doesn’t have any debug, just check logs in ejabberd.log on Your host with
   XMPP server.
 *  Plugin Author [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161213)
 * 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](https://wordpress.org/support/users/corvy/)
 * (@corvy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161223)
 * ok, I will doublecheck again! 🙂 Thanks.
 *  Thread Starter [corvy](https://wordpress.org/support/users/corvy/)
 * (@corvy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161227)
 * ok, now I have tested some more. If I try to use the commandprompt way with wget
   I get the following:
 * # wget [http://jabber.no:5285/rest/](http://jabber.no:5285/rest/) –server-response–
   post-data ‘<message to=”stian@jabber.no” from=”localhost/rest”><body>World</body
   ></message>’
    –2016-03-13 10:09:50– [http://jabber.no:5285/rest/](http://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 (stian@jabber.
   no) 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](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161255)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ejabberd-account-tools.svg)
 * [Ejabberd Account Tools](https://wordpress.org/plugins/ejabberd-account-tools/)
 * [Support Threads](https://wordpress.org/support/plugin/ejabberd-account-tools/)
 * [Active Topics](https://wordpress.org/support/plugin/ejabberd-account-tools/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ejabberd-account-tools/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ejabberd-account-tools/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Beherit](https://wordpress.org/support/users/beherit/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-debug-problems-log/#post-7161255)
 * Status: resolved