View Issue Details

IDProjectCategoryView StatusLast Update
0005692SOGoGUIpublic2023-02-20 09:40
Reporterx09 Assigned Tosebastien  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version5.8.0 
Summary0005692: Expired session received, redirecting to login page.
Description

Аfter one minute of inactivity, a redirect to loginpage

tried increase expire-session value like as

sogo-tool expire-sessions 60
then sogo will be restarted, but nothing happened

in sogo.log i see

Feb 10 12:51:43 sogod [5870]: <0x0x558ff0402510[SOGoWebAuthenticator]> Expired session received, redirecting to login page.
Feb 10 12:51:43 sogod [5870]: <0x0x558ff0402510[SOGoWebAuthenticator]> tried wrong password for user 'nUeg4vv/qTmw8Sz6UdSf1EOlyCwSPcU5kNj7/yCcLq4kfPXjS81oSDUtZadMnvLyE1yq91bIBV3Ovybywe0DjX46i1XL/RbWW4lP/O1ylXMV3kVeWDp0qYHlwBpPO4Kdnj/3WrM/7gi9r9UJECP5xCp1ON9YBaaby8Zf1xIRcK0JrjJoG3ELIN+aA451b3HYK/Ce/29y3cN5k61XvT0ChoeBuAoFNM0yDnhNebDSxXPCnOIPKfWWkm1XD4Nm5aYxNjhvUWnv6l+pDkiHDVnkm2eoDTI1gUAXmfF16CTBPZpKQ0sTWOjCKlZVK1jjuhCNISdDluDqsyXJBQYzgf.....<skipped>

How fix it?

Steps To Reproduce
  1. login to web
  2. wait 1 minutes
  3. Session will be terminated and redirect to login page
Additional Information

[root@sogo-srv ~]# su - postgres -s /bin/sh -c psql
psql (14.5)
Введите "help", чтобы получить справку.

postgres=# \c sogo
Вы подключены к базе данных "sogo" как пользователь "postgres".

sogo=# \d sogo_sessions_folder
Таблица "public.sogo_sessions_folder"
Столбец | Тип | Правило сортировки | Допустимость NULL | По умолчанию
----------------+------------------------+--------------------+-------------------+--------------
c_id | character varying(255) | | not null |
c_value | character varying(255) | | not null |
c_creationdate | integer | | not null |
c_lastseen | integer | | not null |
Индексы:
"sogo_sessions_folder_pkey" PRIMARY KEY, btree (c_id)

sogo=# select * from sogo_sessions_folder where c_id = 'domainuser1';
c_id | c_value | c_creationdate | c_lastseen
------+---------+----------------+------------
(0 строк)

sogo=# select * from sogo_user_profile where c_uid = 'domainuser1';
..<skipped>...
..<skipped>...
domainuser1 | {"SOGoCalendarCategoriesColors":{"Идеи":"#32CCBC","Конкуренты":"#6018DC","Поставщики":"#9708CC","Подарки":"#736EFE","Избранное":"#EA5455","Деловые":"#FA016D","Госуд
арственный праздник":"#E80505","Встречи":"#7367F0","День рождения":"#28C76F","Проекты":"#8C1BAB","Клиенты":"#E96D71","Потребители":"#F8D800","Годовщина":"#9F44D3","Проблемы":"0000367
7FF","Отпуск":"#623AA2","Разное":"#F6416C","Праздники":"#0E197D","Звонки":"#0396FF","Статус":"0002661","Вслед за":"#D939CD","Персональное":"#DE4313","Путешествия":"#F55555"},"SOGo
GravatarEnabled":1,"LocaleCode":"ru","SOGoMailComposeFontSize":0,"SOGoMailReceiptNonRecipientAction":"ignore","SOGoDayStartTime":"08:00","SOGoAlternateAvatar":"monsterid","SOGoLog
inModule":"Mail","SOGoLDAPGroupExpansionEnabled":0,"SOGoCalendarCategories":["Потребители", "Звонки", "Избранное", "Встречи", "Идеи", "Разное", "День рождения", "Годовщина", "Отпу
ск", "Путешествия", "Проекты", "Поставщики", "Подарки", "Клиенты", "Проблемы", "Деловые", "Праздники", "Персональное", "Статус", "Конкуренты", "Вслед за", "Государственный праздни
к"],"SOGoTOTPEnabled":0,"emailSeparatorKeys":[9, 13],"SOGoDayEndTime":"18:00","SOGoMailComposeMessageType":"html","SOGoCalendarWeekdays":["SU", "MO", "TU", "WE", "TH", "FR", "SA"]
,"hasActiveExternalSieveScripts":0,"SOGoShortDateFormat":"%d-%b-%y","SOGoMailSignaturePlacement":"below","SOGoMailMessageForwarding":"inline","ckLocaleCode":"ru","SOGoDesktopNotif
ications":0,"SOGoMailReceiptOutsideDomainAction":"ignore","SOGoTimeZone":"Asia/Yekaterinburg","SOGoMailReceiptAllow":"0","UserTimeZoneSecondsFromGMT":0,"SOGoTimeFormat":"%H:%M","V
acation":{"daysBetweenResponse":7,"autoReplyEmailAddresses":["domainuser1@test.alt"],"days":[]},"SOGoRememberLastModule":0,"SOGoCalendarTasksDefaultClassification":"PUBLIC","SOGoP
asswordRecoveryMode":"Disabled","SOGoRefreshViewCheck":"every_minute","SOGoCalendarDefaultReminder":"NONE","SOGoMailLabelsColors":{"$label2":["Работа", "#FF9900"],"$label5":["Позж
е", "#993399"],"$label1":["Важно", "#FF0000"],"$label4":["К исполнению", "#3333FF"],"$mdnsent":["Уведомление о вручении отправлено", "#006600"],"$label3":["Личное", "#009900"]},"S
OGoMailAutoSave":5,"SOGoLongDateFormat":"%A, %B %d, %Y","SOGoMailReceiptAnyAction":"ignore","SOGoMailAutoMarkAsReadDelay":0,"SOGoDefaultCalendar":"selected","SOGoMailReplyPlacemen
t":"below","SOGoAppointmentSendEMailNotifications":0,"SOGoFirstWeekOfYear":"January1","SOGoSelectedAddressBook":"collected","SOGoCalendarEventsDefaultClassification":"PUBLIC","SOG
oAnimationMode":"normal","SOGoPasswordRecoveryQuestion":"SecretQuestion1","SOGoMailAddOutgoingAddresses":0,"AuxiliaryMailAccounts":[],"SOGoFirstDayOfWeek":1,"SOGoLanguage":"Russia
n","SOGoContactsCategories":["Друг", "Клиент", "Коллега", "Конкурент", "Партнер", "Поставщик", "Пресса", "Член семьи", "VIP"],"SOGoMailIdentities":[{"email":"domainuser1@test.alt"
,"isDefault":1,"fullName":"domainuser1"}],"SOGoMailDisplayRemoteInlineImages":"never"} | {"Contact":{"SortingState":["c_cn", "1"]},"Calendar":{"SelectedList":"tasksListView","Fold
ersOrder":["personal"],"PreventInvitationsWhitelist":{},"EventsFilterState":"view_next7","TasksFilterState":"view_incomplete","TasksSortingState":["status", "1"],"InactiveFolders"
:[],"EventsSortingState":["start", "1"],"View":"weekview"},"ShowCompletedTasks":"0","Mail":{"ExpandedFolders":["/0", "/0/folderINBOX"]}}
(1 строка)

sogo=#

TagsNo tags attached.

Activities

x09

x09

2023-02-13 18:32

reporter   ~0016657

lines in log file after user login

....
Feb 13 18:50:21 sogod [18457]: SOGoRootPage successful login from '192.168.150.1' for user 'domainuser5' - expire = -1 grace = -1
Feb 13 18:50:21 sogod [18457]: [ERROR] <0x0x561f76927020[GCSSessionsFolder]> -[GCSSessionsFolder writeRecordForEntryWithID:value:creationDate:lastSeenDate:]: cannot write record: <PostgreSQL72Exception: 0x561f7698a9d0> NAME:PostgreSQL72FatalError REASON:fatal pgsql error (channel=<0x0x561f7649d440[PostgreSQL72Channel]: connection=<0x0x561f7660fc10[PGConnection]: connection=0x0x561f7660fcd0>>): ОШИБКА: значение не умещается в тип character varying(255)
....

google translate:
ОШИБКА: значение не умещается в тип character varying(255)
ERROR: value does not fit character varying(255)

x09

x09

2023-02-14 11:02

reporter   ~0016658

SOLVED.

su - postgres -s /bin/sh -c 'psql -d sogo -c "ALTER TABLE public.sogo_sessions_folder ALTER COLUMN c_value TYPE text USING c_value::text;"'

Issue History

Date Modified Username Field Change
2023-02-10 10:06 x09 New Issue
2023-02-13 18:32 x09 Note Added: 0016657
2023-02-14 11:02 x09 Note Added: 0016658
2023-02-20 09:40 sebastien Assigned To => sebastien
2023-02-20 09:40 sebastien Status new => closed
2023-02-20 09:40 sebastien Resolution open => no change required