Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
posted log at the previous post. looking for updated sources for mod_admin_extra
yes, user was created using your module.
Last edited by olegfusion (2015-06-29 20:19:28)
Offline
I see. Try to use different username instead of op perhaps. Or atleast to get working from command line this command
Offline
hehehe, thanks for suggestion!
Offline
I confirm everything is working fine: standalone + rpc. Check your ejabber modules that they are working fine before doing something.
One question still - what is XMPP enabled in settings and why is it disabled by default?
Offline
Basically it disables and enables module itself. Like for example in automated hosting I do not want to activate this feature for all customers and I want allow them to choose use it or not. Just resource saving.
Good to know it works
Offline
hello,
I had all those issues ( until this post ; https://forum.livehelperchat.com/viewto … 5234#p5234 )
all of this helped but now I do have other issues:
I tried emptying infos as suggested there: https://forum.livehelperchat.com/viewto … 5231#p5231
as I an on local host but i get thoses error:
cache/default.log:
Oct 03 16:09:51 [Warning] [default] [default] RuntimeException Object
(
[message:protected] => Error execution command 'register'' with parameters array (
'host' => 'domain.com',
'user' => 'test',
'password' => 'test',
). Response: <?xml version="1.0"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>-118</int></value></member><member><name>faultString</name><value><string>Error -118
A problem '{error,account_unprivileged}' occurred executing the command register with arguments
[{host,<<"domain.com">>},{user,<<"test">>},{password,<<"test">>}]</string></value></member></struct></value></fault></methodResponse>
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/php-jabber-rpc/GameNet/Jabber/RpcClient.php
[line:protected] => 126
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/php-jabber-rpc/GameNet/Jabber/Mixins/UserTrait.php
[line] => 64
[function] => sendRequest
[class] => GameNet\Jabber\RpcClient
[type] => ->
[args] => Array
(
[0] => register
[1] => Array
(
[host] => domain.com
[user] => test
[password] => test
)
)
)
[1] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/erlhcoreclassxmppservicehandler.php
[line] => 699
[function] => createUser
[class] => GameNet\Jabber\RpcClient
[type] => ->
[args] => Array
(
[0] => test
[1] => test
)
)
[2] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/bootstrap/bootstrap.php
[line] => 478
[function] => registerOperator
[class] => erLhcoreClassExtensionXmppserviceHandler
[type] => ::
[args] => Array
(
[0] => Array
(
[xmpp_account] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => test
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => test
)
[xmpp_host] => domain.com
[host_login] =>
[node_api_server] => http://127.0.0.1:4567
[handler] => rpc
[rpc_server] => http://127.0.0.1:4560
[rpc_username] =>
[rpc_password] =>
[rpc_account_host] =>
)
)
)
[3] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/erlhcoreclassxmppaccountvalidator.php
[line] => 84
[function] => registerOperator
[class] => erLhcoreClassExtensionXmppservice
[type] => ->
[args] => Array
(
[0] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => test
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => test
)
)
)
[4] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/modules/lhxmppservice/newxmppaccount.php
[line] => 18
[function] => publishXMPPAccount
[class] => erLhcoreClassXMPPServiceAccountValidator
[type] => ::
[args] => Array
(
[0] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => test
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => test
)
)
)
[5] => Array
(
[file] => /home/domaincom/public_html/livechat/lib/core/lhcore/lhmodule.php
[line] => 96
[args] => Array
(
[0] => /home/domaincom/public_html/livechat/extension/xmppservice/modules/lhxmppservice/newxmppaccount.php
)
[function] => include
)
[6] => Array
(
[file] => /home/domaincom/public_html/livechat/lib/core/lhcore/lhmodule.php
[line] => 480
[function] => runModule
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
[7] => Array
(
[file] => /home/domaincom/public_html/livechat/index.php
[line] => 38
[function] => moduleInit
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
)
my settings.ini.php:
<?php
return array(
'ahosting' => false, // Is it automated hosting enviroment? At the moment keep it false untill automated hosting will be supported
'subdomain' => '', // Under what subdomain it's running
'enabled' => true, // Is this enabled in general
'online_visitors_tracking' => true, // Should each online visitor get it's own xmpp account?
'xmpp_host' => 'domain.com', // E.g xmpp.livehelperchat.com
// How many seconds append to last activity. Usefull to force xmpp after last ping to be long
// Or if you are experience ping tracking issues, this extendes operator timeout by this value
'append_time' => 0,
// Should last activity be reset if we found that related web operator logged out
// But there is xmpp timeout shorter then last activity timeout?
'check_xmpp_activity_on_web_logout' => true,
// Debug settings
'debug' => true, // Write exceptions in cache/default.log use it for debuging purposes
// Handler, either rpc either node
'handler' => 'rpc',
/**
* NodeJS settings if handler is node
* */
'node_api_server' => 'http://127.0.0.1:4567', // E.g http://127.0.0.1:4567', not used if RPC is used
'secret_key' => '', // Secret key, node will accept commands only if this key is provided. It must match in nodejs settings defined secret key.
'host_login' => '', // Host where node server should login as user
/**
* RPC settings
* */
// Host where ejabberd RPC server is running. This should be available only to LHC IP, and not available publicly. By default ejabberd listens on 4560 port
'rpc_server' => 'http://127.0.0.1:4560',
'rpc_username' => '', // E.g admin
'rpc_password' => '',// E.g password
'rpc_account_host' => '',// E.g xmpp.example.com
// Web socket address, it can be also nginx proxy
// If you are using nginx proxy. Config line could look like
// 'ws://'.$_SERVER['HTTP_HOST'].'/websocket'
// Nginx config example you can find in doc folder
'bosh_service' => 'ws://127.0.0.1:5280/websocket', // ws://xmpp.livehelperchat.com:5280/websocket
// Then operator writes a message we can track that event, should on this event message be synced from back office
// This gives some real time UX, use it only if you are not using nodejs extensions, otherwise it's no point to have it enabled
'use_notification' => false,
// Not used at the moment, but may be used in the future
'prebind_host' => 'http://95.85.55.134:5280/http-prebind/'
);
?>
tail -f ejabberd.log after restart:
2015-10-03 12:36:26.540 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ahprotocol' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.540 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ping_address' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.553 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ahenviroment' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.553 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'basedomain' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.553 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ahprotocol' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.553 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ping_address' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [warning] <0.38.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-03 12:36:26.571 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ahenviroment' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.571 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'basedomain' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.571 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ahprotocol' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.571 [error] <0.38.0>***_mod:validate_opts:250 unknown option 'ping_address' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-03 12:36:26.581 [info] <0.665.0>***_listener:listen_tcp:189 Reusing listening port for 4560
2015-10-03 12:36:26.581 [info] <0.666.0>***_listener:listen_tcp:189 Reusing listening port for 5222
2015-10-03 12:36:26.581 [info] <0.667.0>***_listener:listen_tcp:189 Reusing listening port for 5269
2015-10-03 12:36:26.581 [info] <0.668.0>***_listener:listen_tcp:189 Reusing listening port for 5280
2015-10-03 12:36:26.581 [info] <0.38.0>***_app:start:75 ejabberd 15.09 is started in the node ***
2015-10-03 12:36:26.581 [info] <0.7.0> Application ejabberd started on node ***
the ejabberd.yml part that correspond to it:
mod_version: {}
mod_lhc:
## Used in automated hosting enviroment
ahenviroment: false
basedomain: "www.domain.com"
ahprotocol: "http://"
## Used in standalone enviroment
message_address: "http://www.domain.com/livechat/index.php/site_admin/xmppservice/processmessage"
login_address: "http://www.domain.com/livechat/index.php/site_admin/xmppservice/operatorstatus"
logout_address: "http://www.domain.com/livechat/index.php/site_admin/xmppservice/operatorstatus"
mod_lhcping:
send_pings: true
ping_interval: 180
timeout_action: kill
## Used in automated hosting enviroment
ahenviroment: false
basedomain: "www.domain.com"
ahprotocol: "http://"
## Used in standalone enviroment
ping_address: "http://www.domain.com/livechat/index.php/site_admin/xmppservice/operatorstatus"
##
Last edited by year (2015-10-03 14:15:00)
Offline
so, Remdex, do you have any idea about what I should do?
Last edited by year (2015-10-07 15:53:58)
Offline
I'm afraid not...
Offline
Ok I partially found out the origin of my issue:
I installed from github source instead of installer (ejabberd V15.09) ...
now I have différent messages when I try to create an account:
cache/default.log:
Oct 10 13:02:51 [Warning] [default] [default] Exception Object
(
[message:protected] => Empty response
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/erlhcoreclassxmppservicehandler.php
[line:protected] => 93
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/erlhcoreclassxmppservicehandler.php
[line] => 708
[function] => sendRequest
[class] => erLhcoreClassExtensionXmppserviceHandler
[type] => ::
[args] => Array
(
[0] => http://127.0.0.1:31129/xmpp-register
[1] => Array
(
[user] => testaccount
[host] => domain.com
[password] => testpassword
)
)
)
[1] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/bootstrap/bootstrap.php
[line] => 478
[function] => registerOperator
[class] => erLhcoreClassExtensionXmppserviceHandler
[type] => ::
[args] => Array
(
[0] => Array
(
[xmpp_account] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => testpassword
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => testaccount
)
[xmpp_host] => domain.com
[host_login] => localhost
[node_api_server] => http://127.0.0.1:31129
[handler] => node
[rpc_server] => http://127.0.0.1:4560
[rpc_username] =>
[rpc_password] =>
[rpc_account_host] =>
)
)
)
[2] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/classes/erlhcoreclassxmppaccountvalidator.php
[line] => 84
[function] => registerOperator
[class] => erLhcoreClassExtensionXmppservice
[type] => ->
[args] => Array
(
[0] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => testpassword
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => testaccount
)
)
)
[3] => Array
(
[file] => /home/domaincom/public_html/livechat/extension/xmppservice/modules/lhxmppservice/newxmppaccount.php
[line] => 18
[function] => publishXMPPAccount
[class] => erLhcoreClassXMPPServiceAccountValidator
[type] => ::
[args] => Array
(
[0] => erLhcoreClassModelXMPPAccount Object
(
[id] =>
[username] => ***.com
[password] => testpassword
[ctime] => 0
[lactivity] => 0
[user_id] => 1
[sendmessage] => 0
[type] => 0
[username_plain] => testaccount
)
)
)
[4] => Array
(
[file] => /home/domaincom/public_html/livechat/lib/core/lhcore/lhmodule.php
[line] => 96
[args] => Array
(
[0] => /home/domaincom/public_html/livechat/extension/xmppservice/modules/lhxmppservice/newxmppaccount.php
)
[function] => include
)
[5] => Array
(
[file] => /home/domaincom/public_html/livechat/lib/core/lhcore/lhmodule.php
[line] => 480
[function] => runModule
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
[6] => Array
(
[file] => /home/domaincom/public_html/livechat/index.php
[line] => 38
[function] => moduleInit
[class] => erLhcoreClassModule
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
)
EDIT:
As i restarted from scratched the install of ejabberd in forgot the "mod_lhc" and "mod_lhcping" part of the ejabberd.yml ( dumb! ) !
EDIT2:
I got the response because I tried node instead of rpc
EDIT3:
When I restart Ejabberd i get this message :
2015-10-10 16:38:28.617 [info] <0.37.0>***_app:stop:93 ejabberd 15.09 is stopped in the node ***
2015-10-10 16:38:30.007 [info] <0.7.0> Application lager started on node ***
2015-10-10 16:38:30.012 [info] <0.7.0> Application crypto started on node ***
2015-10-10 16:38:30.020 [info] <0.7.0> Application sasl started on node ***
2015-10-10 16:38:30.028 [info] <0.7.0> Application asn1 started on node ***
2015-10-10 16:38:30.028 [info] <0.7.0> Application public_key started on node ***
2015-10-10 16:38:30.033 [info] <0.7.0> Application ssl started on node ***
2015-10-10 16:38:30.037 [info] <0.7.0> Application p1_yaml started on node ***
2015-10-10 16:38:30.045 [info] <0.7.0> Application p1_tls started on node ***
2015-10-10 16:38:30.049 [info] <0.7.0> Application p1_xml started on node ***
2015-10-10 16:38:30.052 [info] <0.7.0> Application p1_stringprep started on node ***
2015-10-10 16:38:30.054 [info] <0.7.0> Application p1_zlib started on node ***
2015-10-10 16:38:30.056 [info] <0.7.0> Application p1_cache_tab started on node ***
2015-10-10 16:38:30.236 [info] <0.7.0> Application mnesia started on node ***
2015-10-10 16:38:30.778 [info] <0.7.0> Application inets started on node ***
2015-10-10 16:38:31.082 [info] <0.37.0>***_digest:start:60 FQDN used to check DIGEST-MD5 SASL authentication: [HOST_OF_MY_MACHNE]
2015-10-10 16:38:31.083 [info] <0.7.0> Application oauth2 started on node ***
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [warning] <0.37.0>***_mod:validate_opts:255 module 'mod_lhc' doesn't export mod_opt_type/1
2015-10-10 16:38:31.090 [error] <0.37.0>***_mod:validate_opts:250 unknown option 'ahenviroment' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-10 16:38:31.090 [error] <0.37.0>***_mod:validate_opts:250 unknown option 'basedomain' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-10 16:38:31.090 [error] <0.37.0>***_mod:validate_opts:250 unknown option 'ahprotocol' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-10 16:38:31.090 [error] <0.37.0>***_mod:validate_opts:250 unknown option 'ping_address' for module 'mod_lhcping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action'
2015-10-10 16:38:31.171 [info] <0.439.0>***_listener:listen_tcp:189 Reusing listening port for 4560
2015-10-10 16:38:31.171 [info] <0.440.0>***_listener:listen_tcp:189 Reusing listening port for 5222
2015-10-10 16:38:31.171 [info] <0.441.0>***_listener:listen_tcp:189 Reusing listening port for 5269
2015-10-10 16:38:31.171 [info] <0.442.0>***_listener:listen_tcp:189 Reusing listening port for 5280
2015-10-10 16:38:31.171 [info] <0.37.0>***_app:start:75 ejabberd 15.09 is started in the node ***
2015-10-10 16:38:31.171 [info] <0.7.0> Application ejabberd started on node ***
is my ejabberd seeing the new .beam files?
Last edited by year (2015-10-10 14:55:38)
Offline
I finaly figured it out!
It is a compatibility issue:
it does work with ejabberd 15.07 but not anymore with ejabberd 15.09.
hope it will help you figure out what tu update.
Thank you anyway.
Offline
Actually I faced myself similar problem yesterday, seems there is some issues with ejabberd itself and xmlrpc module in 15.09 i found one related github issue in their tracker. The suggestion was just edit some of configs, but did not worked. But yes all worked with 15.07
Offline
now, with 15.07, I receve the message from lhc to xmpp, but nothing from xmpp to lhc...
so for bothering like that but it's hard to be so close and yet so far... ^^
Offline
I'll test myself today during setup finializing so will see if I find something.
Offline
Well, so I have finished setup myself and all worked... Just make sure that in ejabberd mod configuration uses http:// protocol not https://
Offline
when someone talk to me i receve the message on my mobile device but when i reply from the same device the awnser never arrives.
Offline
Well, as I told - all worked here... So really don't know...
Offline