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