Skip to content
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

(edit) Can't login from nextcloud with 2.35.3 #1490

Closed
mmallejac opened this issue Mar 13, 2024 · 18 comments
Closed

(edit) Can't login from nextcloud with 2.35.3 #1490

mmallejac opened this issue Mar 13, 2024 · 18 comments
Labels
bug Something isn't working Nextcloud

Comments

@mmallejac
Copy link

mmallejac commented Mar 13, 2024

Using Snappymail with Nextcloud, sometimes the password is lost, but not the email address:

snappy

In this case, neither Nextcloud or Snappymail has been upgraded in the last days.
Not even after a restart, since the user was able to log in earlier in the morning.

@mmallejac
Copy link
Author

Edit : I realize that there is anew version that has been installed this night (2.35.3).

Also since my last message, we've received much more phone calls from users. Sometimes it is ok to simply put back the password, but sometimes it just does not work, so for them Snappymail is just unusable.

Thanks in advance :-)

@mmallejac mmallejac changed the title Sometimes, password is lost (edit) Can't login from nextcloud with 2.35.3 Mar 13, 2024
@seal-82
Copy link

seal-82 commented Mar 13, 2024

Hi,
I can confirm the issue. Password doesn't seem to be stored anymore under "personal settings" > "additional settings".
Already removed Snappymail App and reinstalled. This did not solve the issue. Thanks for checking.

Cheers
Sebastian

@seal-82
Copy link

seal-82 commented Mar 13, 2024

following error can be found in the nextcloud logs:
grafik

@the-djmaze the-djmaze added bug Something isn't working Nextcloud labels Mar 13, 2024
@tux-nerd
Copy link

... same here ...

@the-djmaze
Copy link
Owner

afbeelding
Actions:

  1. Refreshing the page and everything still works.
  2. In SnappyMail menu i logout.
  3. Then logged in automatic.
  4. In SnappyMail menu i logout.
  5. Then logged in automatic.
  6. In SnappyMail menu i logout.
  7. Then login fails
  8. I go to "personal settings" > "additional settings"
  9. Password gone

Then i got a snappymail-nc-uid mismatch
Looking further it seems the session is killed and restarted and now the value of snappymail-nc-uid is gone.

But why does Nextcloud kill the config?
Because the return value of the following command is empty.
\OC::$server->getConfig()->getUserValue($sUID, 'snappymail', 'snappymail-password')

I will investigate this further

@the-djmaze
Copy link
Owner

Here it seems to be related to the contacts synchronization.

Does Settings -> Contacts -> Enable remote synchronization = NO help for those users?

@seal-82
Copy link

seal-82 commented Mar 14, 2024

Sorry, but where do I find this setting?

@mmallejac
Copy link
Author

mmallejac commented Mar 14, 2024 via email

@scubamuc
Copy link

@the-djmaze having the same issue, snappymail is forgetting the password:

Here it seems to be related to the contacts synchronization.

Does Settings -> Contacts -> Enable remote synchronization = NO help for those users?

grafik

nope that doesn't help at all...

@the-djmaze
Copy link
Owner

the-djmaze commented Mar 15, 2024

I found where it gets emptied:

} catch (\Throwable $e) {
// Login failure, reset password to prevent more attempts
$sUID = \OC::$server->getUserSession()->getUser()->getUID();
\OC::$server->getSession()['snappymail-passphrase'] = '';
\OC::$server->getConfig()->setUserValue($sUID, 'snappymail', 'passphrase', '');
\SnappyMail\Log::error('Nextcloud', $e->getMessage());

It gets emptied so that it does not try to auto-login again and again and again on an error.
Question is: what error?
So i added logging there, but still testing.

@the-djmaze
Copy link
Owner

It's not perfect but maybe this solves it (or at least logs the issue)?
https://github.com/the-djmaze/snappymail/releases/tag/v2.35.4

@scubamuc
Copy link

scubamuc commented Mar 16, 2024

thank you @the-djmaze.

updated app to 2.35.4
error persists on several instances

Nextcloud log reads:

[PHP] Fehler: Undefined array key "activeSectionId" at /snap/nextcloud/40887/htdocs/apps/settings/templates/settings/frame.php#85

GET /index.php/settings/user/additional
from 2.205.11.123 by scubamuc at 2024-03-16T06:16:20+00:00

@seal-82
Copy link

seal-82 commented Mar 16, 2024

@the-djmaze: issue solved after update to 2.35.4. Thanks for your perfect and quick support!

@scubamuc
Copy link

@seal-82 @the-djmaze , nope, it seems like the issue still persists.
password is forgotten

log reads;

[PHP] Fehler: Undefined array key "activeSectionId" at /snap/nextcloud/40887/htdocs/apps/settings/templates/settings/frame.php#85

GET /index.php/settings/user/additional
from 2.205.11.23 by scubamuc at 2024-03-16T08:50:18+00:00

@seal-82
Copy link

seal-82 commented Mar 16, 2024

stange... for me on NC 28.0.3 it worked. There are no errors in the log file.

@scubamuc
Copy link

@seal-82, yeah you're right,

it is working fine on 27.1.7 and 28.0.3. No errors in log file.

may have been too impatient, sorry for that

@the-djmaze
Copy link
Owner

the-djmaze commented Mar 16, 2024

Keep this open for a while as monday is the day that people work and complain...
No complains too us is good for us (probably they complain somewhere else)

@tux-nerd
Copy link

for me it's working fine too (nc 28.03). Great job, thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Nextcloud
Projects
None yet
Development

No branches or pull requests

5 participants