Users doesn't get online contacts presence after sending initial presence. Can anyone help me with this please?
Ejabberd version: 16.8
I get this errors in log:
2016-08-12 11:42:17.868 [error] <0.502.0>@ejabberd_hooks:run_fold1:368 {function_clause,[{jid,tolower,[error],[{file,"src/jid.erl"},{line,221}]},{mod_shared_roster_sql,'-get_group_explicit_users/2-fun-3-',1,[{file,"src/mod_shared_roster_sql.erl"},{line,110}]},{lists,map,2,[{file,"lists.erl"},{line,1237}]},{lists,map,2,[{file,"lists.erl"},{line,1237}]},{mod_shared_roster,get_group_users,2,[{file,"src/mod_shared_roster.erl"},{line,464}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{mod_shared_roster,get_subscription_lists,3,[{file,"src/mod_shared_roster.erl"},{line,324}]},{ejabberd_hooks,safe_apply,3,[{file,"src/ejabberd_hooks.erl"},{line,382}]}]}
running hook: {roster_get_subscription_lists,[<<"olga.akhrameeva">>,<<"jabber.trovanlpgsystem.com">>]}
11:42:17.868 [error] {function_clause,[{jid,tolower,[error],[{file,"src/jid.erl"},{line,221}]},{mod_shared_roster_sql,'-get_group_explicit_users/2-fun-3-',1,[{file,"src/mod_shared_roster_sql.erl"},{line,110}]},{lists,map,2,[{file,"lists.erl"},{line,1237}]},{lists,map,2,[{file,"lists.erl"},{line,1237}]},{mod_shared_roster,get_group_users,2,[{file,"src/mod_shared_roster.erl"},{line,464}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{mod_shared_roster,get_subscription_lists,3,[{file,"src/mod_shared_roster.erl"},{line,324}]},{ejabberd_hooks,safe_apply,3,[{file,"src/ejabberd_hooks.erl"},{line,382}]}]}
running hook: {roster_get_subscription_lists,[<<"olga.akhrameeva">>,<<"jabber.trovanlpgsystem.com">>]}
Modules section from my ejabberd config:
modules:
mod_adhoc: {}
mod_announce: # recommends mod_adhoc
access: announce
mod_blocking: {} # requires mod_privacy
mod_caps: {}
mod_carboncopy: {}
mod_client_state: {}
## drop_chat_states: true
## queue_presence: false
mod_configure: {} # requires mod_adhoc
mod_disco: {}
## mod_echo: {}
mod_irc: {}
mod_http_bind: {}
## mod_http_fileserver:
## docroot: "/var/www"
## accesslog: "/var/log/ejabberd/access.log"
mod_last: {}
mod_mam:
default: always
mod_muc:
host: "conference.@HOST@"
access_create: muc_create
access_persistent: muc_create
access_admin: muc_admin
history_size: 10
default_room_options:
persistent: true
allow_user_invites: true
mam: true
mod_muc_admin: {}
## mod_muc_log: {}
## mod_multicast: {}
mod_offline:
access_max_user_messages: max_user_offline_messages
mod_ping: {}
## mod_pres_counter:
## count: 5
## interval: 60
mod_privacy: {}
mod_private: {}
## mod_proxy65: {}
mod_pubsub:
access_createnode: pubsub_createnode
## reduces resource comsumption, but XEP incompliant
ignore_pep_from_offline: true
## XEP compliant, but increases resource comsumption
## ignore_pep_from_offline: false
last_item_cache: false
plugins:
plugins:
- "flat"
- "hometree"
- "pep" # pep requires mod_caps
mod_register:
##
## Protect In-Band account registrations with CAPTCHA.
##
## captcha_protected: true
##
## Set the minimum informational entropy for passwords.
##
## password_strength: 32
##
## After successful registration, the user receives
## a message with this subject and body.
##
welcome_message:
subject: "Welcome!"
body: |-
Hi.
Welcome to this XMPP server.
##
## Only clients in the server machine can register accounts
##
access: register
mod_roster: {}
mod_shared_roster: {}
mod_stats: {}
mod_time: {}
mod_vcard: {}
mod_http_upload:
docroot: "/opt/ejabberd/upload"
put_url: "https://@HOST@:5443"
mod_http_upload_quota:
max_days: 10
Apparently, there is some
Apparently, there is some problem parsing the content stored by mod_shared_roster in the SQL database. Disable that module, and check if the problem disappears. If so, delete the shared roster elements, enable the module again, create a group, and see if now all works correctly.