Recently I upgraded from 7.14.6 to 7.14.7. Everything went smoothly I thought, until I logged out and tried to log back in. I got the âyou have logged out because your session has expiredâ error!
I set 2fa to â0â in the DB and I could log-in again. When 2fa is set and I logout, I get the âyou have logged out because your session has expiredâ error when trying to log-in again. This happens for both admin and users.
Outgoing emails send ok from admin and users but no 2fa email is received.
I know there have been previous posts about this error but I have found none with an answer that helped.
I have reset permissions which did not help.
Can anyone help me please because I feel vulnerable without 2fa set.
I hate this error! I have run into it many times. Not sure itâs directly related to 2FA this may be a new issue. I know in this version there were some tweaks to persistent user data to fix some bugs.
Here is what has worked for me in the past:
echo ini_get("session.save_path");
Create a php file with this in it and find your sesssion.save_path. Ensure itâs writable by SuiteCRM. This is mostly the problem.
If that doesnât work in config:
$sugar_config[âverify_client_ipâ] = false;
Also (Iâm sure in your case its fine since youâve been using it for some time):
Make sure your hostname and siteurl in config is correct.
Also donât rule out browser cache, make sure you shift F5 in chrome to flush it (several times).
If you are running a Debian based system. Can you please under your root directory run âdf -Hâ and copy your results? It will show us your drive size and %Percent usage. We have seen a vary similar issue(s) in the 7.14 version line. If your results show good this could be a new issue/bug.
Another thing we do when testing upgrades is we activate an admin account that doesnât have 2 factor set. That way, if something is buggy you can always get in. Then after we test the upgrade and we find it ready for production we deactive that admin account that doesnât have 2 factor on.
To clarify SCRM is running on a Linux Host with PHP8.2. My local machine is a MAC with Chrome.
Tried running on Safari. No success.
Back on Chrome⌠Tried setting âValidate user IP addressâ off. Saved. Turned on 2fa in profile. Saved. Result: locked out.
Cleared cookies and tried running in âincognito modeâ. Still locked out.
Session path was /php/session with permission set to 755. It was full of session files but I tried 775 to give group access anyway. No luck.
An update:
I put this problem aside for the time being and went ahead to try and set up OAuth with GMail. It took me 2 days to sort it out, but I got it solved with a few code changes.
Once I had email working, I thought Iâd try 2fa again and hey presto itâs all working. Not sure why but I suspect itâs all tied up together somehow.
In trying to solve the OAuth / Gmail, Iâve noticed many have tried but failed which ofcourse didnât help me. To do my bit Iâll put up in a seperate post how I got it working if anyone is interested.
Cheers
After upgrading to 7.15.1 this bug has struck me again. All my old tricks listed above havenât worked. cleared cookies. Checked drive space. I have an admin account set without 2 factor so Iâm able to get logged back in to SuiteCRM. It seems to be an issue with emails from system emails. When I go in and hit the test email button from system. The test email send as expected. The 2-factor login emails, reminder call emails, and anything from system will not send outside of the test emails. Any advice here?
Hi @TerryL
The most likely fix is that your SMTP credentials got corrupted or incorrectly re-encrypted during the upgrade. Go to Admin â Email Settings â Outbound Email, edit the system email account, change the password to something temporary like 123456, hit Save, then immediately edit it again with the correct password and Save once more. Repeat this for any individual user outbound accounts as well. This forces SuiteCRM to properly re-store the credentials, and has resolved the exact symptom youâre describing where test emails work fine but system-triggered emails like 2FA codes simply never send.
Hello @Rolustech Thank you very much! This worked for us! @pstevens, when you run into this, try this solution. @TerryL, can you please mark his answer as the solution? Thank you all for looking into this.
Thanks @IJLfinancial Iâve tried resetting the password in SuiteCRM and by email password reset. The root of the problem is the password never gets written in the DB for some reason. Its kind of random and I haventâ figured out what exactly causes it. The only solution I found so far is to physically enter the new password directly in the DB.
@TerryL Something seems off on that one. I havenât been able to reproduce. Letâs start a new thread. You will get more attention. My 1st suggestion is to clear cookies. Try a different browser. Try on different versions of browsers. Reboot the server.