Sugarcrm Logging Out Unexpectedly on local development

I am using SugarCRM Version 10.0.3 (Build 192 P) (Q2 2020).
For my local development, web server - Apache2, database Mysql.

I don't know why sugarcrm keep logout unexpectedly and the problem only happen on my local development.

I have check the page -

and the problem still unable to solved.

Any suggestion would be appreciated.

  • Are you using Firefox? There is a bug for frequent logouts with the later versions of Firefox: Bug Number 88055

  • Hi Francesca,

    Thank you very much for the information.

    However, I tried to use Chromium browser for a few hours, but the issue is same.

    Any other hints would be appreciated.

  • Hi Manson,

    Please make sure you have the right ownership and permissions on your sugar root directory. Please clear your browser cache and login to Sugar and see how it behaves now.

  • Hi Poojitha,

    Thank you very much for your suggestion.

    Here is the ownership and permissions of the sugar root directory

    SugarPro$ ls -l /var
    total 52
    drwxr-xr-x  2 root root     4096 Oct 26 09:35 backups
    drwxr-xr-x 21 root root     4096 Aug  5 09:32 cache
    drwxrwsrwt  2 root whoopsie 4096 Oct 27 09:35 crash
    drwxr-xr-x 75 root root     4096 Aug 11 15:57 lib
    drwxrwsr-x  2 root staff    4096 Apr 15  2020 local
    lrwxrwxrwx  1 root root        9 Jul 22 16:07 lock -> /run/lock
    drwxrwxr-x 17 root syslog   4096 Oct 25 09:50 log
    drwxrwsr-x  2 root mail     4096 Feb 10  2021 mail
    drwxrwsrwt  2 root whoopsie 4096 Feb 10  2021 metrics
    drwxr-xr-x  2 root root     4096 Feb 10  2021 opt
    lrwxrwxrwx  1 root root        4 Jul 22 16:07 run -> /run
    drwxr-xr-x 16 root root     4096 Sep 23 15:00 snap
    drwxr-xr-x  7 root root     4096 Feb 10  2021 spool
    drwxrwxrwt 13 root root     4096 Oct 27 15:09 tmp
    drwxr-xr-x  6 root root     4096 Aug  2 10:20 www

    I have tried to clear browser cache and login to Sugar, but still not luck.

    One thing I may need to mention, we have another Laravel web application will call the api provided in Sugar. I am not sure if I using sugar and the Laravel app at the same time will it affect the session in sugar.

    I will try to use sugar only to see if the problem solve.

  • is the laravel app using the same credentials as the user you are currently using? If so then you found the cause. If you use the same credentials on the same platform (platform bit in the token request) you are logged out and visa versa. You will need to add a separate platform in the administration panel and have the laravel app use that platform, or even better, use a separate user for it. 

  • Hi Jeroen,

    Thank very much for your suggestion. I will try to separated it to see if the problem solved.

  • I am not sure what credentials the Laravel app are using. But after testing a few days, if I not use the Laravel app at the same time with Sugarcrm. The unexpectedly issue improve a lot.

    Thank you.

  • I have confirmed the Laravel app are using the same credential, now I changed to use another account. The problem solved.

    Thank you all so much.