-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messages are not always correctly send #35
Comments
Maybe it's also a good idea to enable debugging in jsxc and check if something arrives in your js console (ctrl+shift+I). |
Hi @LEDfan I ran your new build and collected the Nextcloud log with Debug level. Can I send the log file to you via private message somehow.
Browser console:
Hope this helps |
This sounds interesting. If you have debugging enabled, you should see the stanza which triggers this message. Can you post it? |
Right now I don't have time for debugging and relating this message to log entries. However I would like to send you the nextcloud log via private message. Is there a possibility? |
You can send it to hey at ledfan dot be
Thanks!
Schmuuu <[email protected]> schreef op 12 juli 2017 14:13:36 CEST:
…Right now I don't have time for debugging and relating this message to
log entries. However I would like to send you the nextcloud log via
private message. Is there a possibility?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#35 (comment)
--
Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid.
|
So after filtering and looking at the log, I noticed that the chat messages are stored in the database so that they can be retrieved by the recipient. However the recipient never retrieves them. So there are a couple scenario's possible:
Can you execute the following query on your database please (it's possible that you have to change the
If the query returns nothing you can try to sent some messages (but make sure the other user is online). Thanks for the debugging! |
Just installed mysql 5.7 and then it still works for me... |
Hi @LEDfan I ran the SQL querys:
Is it possible, that the reason, why no-one else except the admin receives the messages is, because the admin is the only user whose name doesn't start with a capital letter? Please note the difference above. The "from" column always contains the user names as they really exist in the DB: with a capital letter as first letter. Only the admin user doesn't have a capital letter at all in his name. The "to" column however always contains the usernames written in small letters (and this is only correct for the admin). Not sure if you use a function like toLower or something like that to still have a correct match. Just wanted to point that out. And to be clear: in the above output I replaced the usernames case sensitive like I found them in the output. So let's say there is a user "Peter", then I replaced "Peter" with "User1" and "peter" with "user1". The admin user is simply "ncadmin" with all small letters. If it is working for you and still not for me, could the reason be, that I have a migrated system? I started with NC 10 and migrated up to NC 12 now. Are there any further internal connections? Thinking about what could be the difference between our servers, it just came to my mind that I use fail2ban and maybe there is something blocked? And you are very welcome! I rather have to thank you, for taking the time to analyze my problem and helping me to solve it :) Thanks a lot for that! |
Yep that will be it probably, we have had problems with the casing of usernames before. I was only testing with usernames in all lower letters. And I only tested to login with a username which has another casing, but that bug was already fixed. I'll patch this ASAP :) |
Thanks a lot. This is probably the same reason for the issues with my nextcloud/chat instance, because most of our users have capital letters. |
Well I thought about it again and while I still hope that we found the root cause to be the capital letters, I already doubt it :( On the other hand it didn't work to promote User1 to be an admin as well. He still can only chat with the admin. Let's hope LEDfan can fix it ;) |
So I added the fix to #33 for easier debugging. A build is available there. |
Hi @LEDfan Sorry for the late response, I had a busy weekend. Nonetheless, yesterday at night I managed to run a test with the new build you provided. All users received all the messages that haven't been transmitted yet :D Thanks a lot! |
I can confirm that the new build is working :) |
I'm really happy to hear that 😃 ! |
As reported by @Schmuuu , @Nils160988 and on help.nextcloud.com some Chat messages are not correctly send and/or retrieved.
I cannot reproduce it, but it would be very good if we can fix this.
To anyone who is experiencing this problem can you provide the following information:
Can you also set the loglevel of Nextcloud to
0
('loglevel' => 0,
inconfig/config.php
), install the build provided in #34 and then put thenextcloud.log
here. Please make sure any personal information is removed since all usernames, presence and chat messages will be logged.Thanks!
The text was updated successfully, but these errors were encountered: