Closed mazlumtoprak closed 6 years ago
Can you try 05bd771a9e2a223? It fixed the problem in my test setup.
Seems to help a bit. After restarting the Service I do get the following error:
Sep 06 11:26:06 domain.ch:roster_cloud error {"result":"error","data":{"msg":"Can't find user"}}
I can't make a reference for which user he is looking for. Logon with nextcloud users on XMPP works smooth.
What are your Nextcloud+JSXC versions? Do your Nextcloud login names include @
?
If you increase the Prosody logging level to debug
, you should see the user responsible for the roster request:
module:log('debug', 'inject roster contacts for '..username)
/etc/prosody/prosody.cfg.lua
for debugging contains:
log = {
debug = "/var/log/prosody/prosody.log";
error = "/var/log/prosody/prosody.err";
{ levels = { "error" }; to = "syslog"; };
}
Is there anything in the Nextcloud log at the same time?
Nextcloud: 12.0.2 JSXC: 3.3.0
Our nextcloud users do have an @
This is the result of the prosody.log
after enabling debug
mode
Sep 11 10:46:10 rostermanager debug load_roster: asked for: user@domain.ch Sep 11 10:46:10 rostermanager debug load_roster: loading for new user: user@domain.ch Sep 11 10:46:10 domain.ch:roster_cloud debug inject roster contacts for user Sep 11 10:46:10 domain.ch:roster_cloud error {"result":"error","data":{"msg":"Can't find user"}}
My first thoughts are the same as yours. It looks like the roster_cloud plugin does not interpret Usernames with an @
The only errors showing in the Nextcloud log is this one:
Error | PHP | Undefined offset: 1 at /var/www/html/nextcloud/apps/ojsxc/lib/Controller/SettingsController.php#89
Maybe I have to reconsider, how I can bind the users to login with their E-Mail Adress and force nextcloud to use the usernames without the domain, as it looks that this would be the easier way, if that is the problem to this.
It looks like the roster_cloud plugin does not interpret Usernames with an @
That's right. We currently don't support usernames with @ in it. Sorry for your inconvenience.
@maesitopi However, we plan to change this :-)
@MarcelWaldvogel would be glad! anything on the roadmaps yet?
Hello,
I have installed the roster as described. I do get an error after enabling the module. This is in the
prosody.err
log file:I am using also the
cloud-auth
module where the users sign on with their e-mail addresses.How can I test, if the module is beeing installed and loaded correctly? What should happen if it is installed correctly?
Thank you in advance.