Author Topic: Duplicate entry on session inserts  (Read 2765 times)

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Duplicate entry on session inserts
« on: November 13, 2019, 05:11:58 PM »
I just moved roundcube v1.1.4 to a new fedora 30 server roundcube v1.3.10

I brought over the sessions table and that may have been a mistake.

I am seeing occasional Duplicate entry errors in the errors log for two users.

Should I truncate the sessions table during the 3am daily run while html service is turned off?

Is it better to NOT bring over the sessions table on a server move?

Thanks in advance.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Duplicate entry on session inserts
« Reply #1 on: November 15, 2019, 05:33:58 AM »
PHP garbage collection typically cleans up old session/cache/temp data . May be you have garbage collection disabled in your PHP config? you can run the routine manually with the script [roundcube root]/bin/gc.sh that is shipped with Roundcube.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦