Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2016-05-30 08:22:41

Fluffster
Member
Registered: 2016-05-30
Posts: 3

Full XMPP support troubles (can't register operators)

Hi,

I'm trying to implement full XMPP support on my server, but getting some errors. ejabberd is installed on the same domain and server.

If I choose handler as rpc, I get a blank screen when trying to create new operator xmpp account and default.log is empty. If the handler is node, I get "Could not register operator in XMPP server!" and default.log shows:

[== Undefined ==]
May 30 11:02:54 [Warning] [default] [default] Exception Object
(
    [message:protected] => Empty response
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /var/www/specdev/lhc/extension/xmppservice/classes/erlhcoreclassxmppservicehandler.php
    [line:protected] => 93
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/specdev/lhc/extension/xmppservice/classes/erlhcoreclassxmppservicehandler.php
                    [line] => 708
                    [function] => sendRequest
                    [class] => erLhcoreClassExtensionXmppserviceHandler
                    [type] => ::
                    [args] => Array
                        (
                            [0] => http://127.0.0.1:4657/xmpp-register
                            [1] => Array
                                (
                                    [user] => mn
                                    [host] => domain.com
                                    [password] => password
                                    [secret_key] => mykey
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/specdev/lhc/extension/xmppservice/bootstrap/bootstrap.php
                    [line] => 598
                    [function] => registerOperator
                    [class] => erLhcoreClassExtensionXmppserviceHandler
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [xmpp_account] => erLhcoreClassModelXMPPAccount Object
                                        (
                                            [id] =>
                                            [username] => ***.com
                                            [password] => password
                                            [ctime] => 0
                                            [lactivity] => 0
                                            [user_id] => 2
                                            [sendmessage] => 1
                                            [type] => 0
                                            [username_plain] => mn
                                        )

                                    [xmpp_host] => domain.com
                                    [host_login] => domain.com
                                    [node_api_server] => http://127.0.0.1:4657
                                    [handler] => node
                                    [rpc_server] => http://127.0.0.1:4560
                                    [rpc_username] => username
                                    [rpc_password] => password
                                    [rpc_account_host] => domain.com
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/www/specdev/lhc/extension/xmppservice/classes/erlhcoreclassxmppaccountvalidator.php
                    [line] => 84
                    [function] => registerOperator
                    [class] => erLhcoreClassExtensionXmppservice
                    [type] => ->
                    [args] => Array
                        (
                            [0] => erLhcoreClassModelXMPPAccount Object
                                (
                                    [id] =>
                                    [username] => ***.com
                                    [password] => password
                                    [ctime] => 0
                                    [lactivity] => 0
                                    [user_id] => 2
                                    [sendmessage] => 1
                                    [type] => 0
                                    [username_plain] => mn
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/www/specdev/lhc/cache/compiledtemplates/da40c663245af512b69125879f94b3b6.php
                    [line] => 1
                    [function] => publishXMPPAccount
                    [class] => erLhcoreClassXMPPServiceAccountValidator
                    [type] => ::
                    [args] => Array
                        (
                            [0] => erLhcoreClassModelXMPPAccount Object
                                (
                                    [id] =>
                                    [username] => ***.com
                                    [password] => password
                                    [ctime] => 0
                                    [lactivity] => 0
                                    [user_id] => 2
                                    [sendmessage] => 1
                                    [type] => 0
                                    [username_plain] => mn
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/specdev/lhc/lib/core/lhcore/lhmodule.php
                    [line] => 94
                    [function] => include
                    [args] => Array
                        (
                            [0] => /var/www/specdev/lhc/cache/compiledtemplates/da40c663245af512b69125879f94b3b6.php
                        )

                )

            [5] => Array
                (
                    [file] => /var/www/specdev/lhc/lib/core/lhcore/lhmodule.php
                    [line] => 484
                    [function] => runModule
                    [class] => erLhcoreClassModule
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [6] => Array
                (
                    [file] => /var/www/specdev/lhc/index.php
                    [line] => 39
                    [function] => moduleInit
                    [class] => erLhcoreClassModule
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] =>
)

ejabberd is configured as per instructions: mod_offline and mod_carboncopy disabled, mod_admin_extra enabled, mod_lhc and mod_lhcping configured as follows:

modules:
  mod_lhc:
    ## Used in automated hosting enviroment
    ahenviroment: false
    basedomain: "domain.com"
    ahprotocol: "http://"
    ## Used in standalone enviroment
    message_address: "http://domain.com/dev/lhc/xmppservice/processmessage"
    login_address: "http://domain.com/dev/lhc/xmppservice/operatorstatus"
    logout_address: "http://domain.com/dev/lhc/xmppservice/operatorstatus"
  mod_lhcping:
    send_pings: true
    ping_interval: 180
    timeout_action: kill
    ## Used in automated hosting enviroment
    ahenviroment: false
    basedomain: "domain.com"
    ahprotocol: "http://"
    ## Used in standalone enviroment
    ping_address: "http://domain.com/dev/lhc/xmppservice/operatorstatus"

By the way, I'm running nginx and all requests to this domain automatically redirect to https.

Extension configured as follows:

<?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
    'xmpp_port' => '5222',                      // 5222 used just for representation purposes
    'append_time' => 0,
    'check_xmpp_activity_on_web_logout' => true,
    'debug' => true,                            // Write exceptions in cache/default.log use it for debuging purposes
    'handler' => 'rpc',
    'node_api_server' => 'http://127.0.0.1:4657', // E.g http://127.0.0.1:4567', not used if RPC is used
    'secret_key' => 'my 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' => 'domain.com',                // Host where node server should login as user
    // 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' => 'user',
    'rpc_password' => 'password',// E.g password
    'rpc_account_host' => 'domain.com',// E.g xmpp.example.com
    'bosh_service' => 'ws://domain.com/websocket',
    'use_notification' => false,
    // 'prebind_host' => 'http://95.85.55.134:5280/http-prebind/',
    'create_xmpp_username_by_lhc_username' => true,
    'type_for_xmpp_username' => 'username',
    'xmpp_send_messages' => true,
    'delete_xmpp_by_user_removement' => true
);
?>

I've spent hours trying to figure this out, to no avail. Any help is appreciated.

Last edited by Fluffster (2016-05-30 08:24:54)

Offline

#2 2016-05-30 08:30:50

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Full XMPP support troubles (can't register operators)

Hi Fluffster, thank you for you  post and welcome in the Forum.
This is not the first time I read issue with XMPP unfortunately I AM unable to help you with that.

I can just suggest to check your server error log file when you see some blank or strange pages.
I don't know if the extension for the full XMPP support the last release of livehelperchat. Sometimes extension are not always updated.

Unfortunately seems the chat owner are very busy and is difficult receive support here, this is why I try to reply to the topics... but I AM able to provide only basic support and on that I really don't know how to help you.
I can only say to you if you really need XMPP and you continue to be unable to setup you can consider commercial support; more info at: https://livehelperchat.com/support-13c.html

This is a great Open Source Project. Free support are limited.
Enjoy your time and days!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2016-05-30 08:33:02

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Full XMPP support troubles (can't register operators)

Maybe you have already read the documentation https://livehelperchat.com/documentation-6c.html also the page of the full XMPP extension where maybe you can find info in how to setup.

Sorry, I have not other info for help you in this case.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#4 2016-05-30 08:35:49

Fluffster
Member
Registered: 2016-05-30
Posts: 3

Re: Full XMPP support troubles (can't register operators)

Marco B wrote:

Maybe you have already read the documentation https://livehelperchat.com/documentation-6c.html also the page of the full XMPP extension where maybe you can find info in how to setup.

Sorry, I have not other info for help you in this case.

Sure, I've read everything I could find but could not solve the problems. I understand that this is an open source project so I don't expect full support, only hoping for suggestions. I'll try a clean install of LHC 1.02v and 15.04 ejabberd (right now I have the latest LHC from git and Debian 8 repo ejabberd).

Offline

#5 2016-05-30 08:39:32

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Full XMPP support troubles (can't register operators)

Use an old version is not suggested, also if will work.
I can imagine you are try to use XMPP for manage better chat but I can tell you web interface is not so bad so you can use Firefox and activate notification. Chrome actually has bug on notification because seems Chrome has decided to stop all notification if the browser is minimized on not the first window and I think this is so bad.

Also on mobile on Android with Firefox if you log in than turn off screen of the phone I AM able to hear sound on new chat.
Maybe... you can consider to try web interface also if I know you want use XMPP. Hope you will find the right best solution for you.

Have a great time :-)


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#6 2016-05-30 09:46:50

Fluffster
Member
Registered: 2016-05-30
Posts: 3

Re: Full XMPP support troubles (can't register operators)

Did a clean install of LHC 2.45v, xmpp-chat 1.02v, ejabberd 15.04, still getting the same result: blank screen when trying to add a new xmpp user. There's nothing in the extension's, ejabberd's and web server logs.

Offline

#7 2016-05-30 11:34:17

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Full XMPP support troubles (can't register operators)

Thanks for the feedback. Unfortunately I cannot help you, sorry. Hope someone can help you or you will find the right way smile
Have a good time!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer