RE: [SOGo] NAME:NSGenericException REASON:Parse failed

2024-01-05 Thread qhivert
Hello,
You can add this to your sogo.conf to add a lot of logs
  SoDebugRequestClassification = YES;
  SOGoDebugRequests = YES;
  ImapDebugEnabled = YES;
  LDAPDebugEnabled = YES;
  PGDebugEnabled = YES;
  SMTPDebugEnabled = YES;
  MySQL4DebugEnabled = YES;
  SOGoUIxDebugEnabled = YES;

The best would be to use th debugger gdb and follow the instructions here to 
get the full trace of what's happening before the exception -> 
https://www.sogo.nu/support/faq/how-do-i-debug-sogo.html

Quentin

-Original Message-
From: users-requ...@sogo.nu  On Behalf Of Raoul 
Holzlöhner
Sent: vendredi 5 janvier 2024 17:54
To: qhivert (qhiv...@alinto.eu) 
Subject: Re: [SOGo] NAME:NSGenericException REASON:Parse failed

Hello Quentin,

thank you - I checked those DB-entries: they are valid json and look good. I 
even deleted (and later reconstructed) the rows of those 2 users but nothing 
changed.
And the Error Message is: "Parse failed at line 1 (char 65536)". What is that 
beeing parsed having 65536 chars? I even deleted all calendars of those 2 Users 
using the sogo-tool but that doesn't help too.

Thats quite frustrating because the other 120 Users on the same Server (with 
similar clients) got no problems.

Should I dig deeper in the Database and can I raise the log-level of sogo?

Raoul

Am 03.01.2024 um 16:12 schrieb qhivert (qhiv...@alinto.eu):
> Hello,
> So, with only two users you get an error when logging? Maybe there's 
> something wrong in the database for them. Check the table defined by 
> SOGoProfileURL in your sogo.conf (typically sogo_user_profile). The value for 
> c_defaults et c_settings should be json string. You could try to remove their 
> rows, it will be made again clean at the next connection.
> 
> Quentin
> 
> -Original Message-
> From: users-requ...@sogo.nu  On Behalf Of Raoul 
> Holzlöhner
> Sent: mercredi 3 janvier 2024 08:21
> To: users@sogo.nu
> Subject: [SOGo] NAME:NSGenericException REASON:Parse failed
> 
> Hello,
> 
> I've got a strange parse error exception that happens if I try to 
> login to the SOGo-GUI or if the User is invited to an event. It only 
> occurs on
> 2 of 120 accounts.
> My setup is SOGo/Cyrus/postfix and sogo.log when I try to login with those 2 
> "damaged" accounts is like this:
> ===
> Jan 03 08:01:32 sogod [7815]: SOGoRootPage successful login from '10.10.10.2' 
> for user 'me' - expire = -1  grace = -1 Jan 03 08:01:32 sogod [7815]: 
> 10.10.10.2 "POST /SOGo/connect HTTP/1.1"
> 200 45/74 0.178 - - 0 - 14
> Jan 03 08:01:33 sogod [7815]: 10.10.10.2 "GET 
> /SOGo/so/me/Calendar/view HTTP/1.1" 200 22816/0 0.060 84157 72% 0 - 14 
> Jan 03 08:01:36 sogod [7815]: 10.10.10.2 "GET
> /SOGo/so/me/Calendar/alarmslist?browserTime=1704265293 HTTP/1.1" 200
> 60/0 0.009 - - 0 - 14
> Jan 03 08:01:36 sogod [7811]: 10.10.10.2 "POST 
> /SOGo/so/me/Mail/0/folderINBOX/changes HTTP/1.1" 200 29/126 0.314 - - 
> 0
> - 13
> 2024-01-03 08:01:36.686 sogod[7826:7826] EXCEPTION:  0x56181f5beef0> NAME:NSGenericException REASON:Parse failed - as
> property list {Parse failed at line 1 (char 65536) - reached end of 
> string while parsing quoted string}, and as strings file {Parse failed 
> at line 1 (char 1) - unexpected character (wanted '=' or ';')}
> INFO:(null)
> Jan 03 08:01:36 sogod [7826]: 10.10.10.2 "GET 
> /SOGo/so/me/Calendar/eventsblocks?ed=20240103=20240103=dayview
> HTTP/1.1" 501 0/0 0.528 - - 1M - 13
> ===
> Can anybody tell me what exactly is parsed there and where I can find and fix 
> it?
> 



Re: [SOGo] NAME:NSGenericException REASON:Parse failed

2024-01-05 Thread r...@cyrano.de

Hello Quentin,

thank you - I checked those DB-entries: they are valid json and look 
good. I even deleted (and later reconstructed) the rows of those 2 users 
but nothing changed.
And the Error Message is: "Parse failed at line 1 (char 65536)". What is 
that beeing parsed having 65536 chars? I even deleted all calendars of 
those 2 Users using the sogo-tool but that doesn't help too.


Thats quite frustrating because the other 120 Users on the same Server 
(with similar clients) got no problems.


Should I dig deeper in the Database and can I raise the log-level of sogo?

Raoul

Am 03.01.2024 um 16:12 schrieb qhivert (qhiv...@alinto.eu):

Hello,
So, with only two users you get an error when logging? Maybe there's something 
wrong in the database for them. Check the table defined by SOGoProfileURL in 
your sogo.conf (typically sogo_user_profile). The value for c_defaults et 
c_settings should be json string. You could try to remove their rows, it will 
be made again clean at the next connection.

Quentin

-Original Message-
From: users-requ...@sogo.nu  On Behalf Of Raoul 
Holzlöhner
Sent: mercredi 3 janvier 2024 08:21
To: users@sogo.nu
Subject: [SOGo] NAME:NSGenericException REASON:Parse failed

Hello,

I've got a strange parse error exception that happens if I try to login to the 
SOGo-GUI or if the User is invited to an event. It only occurs on
2 of 120 accounts.
My setup is SOGo/Cyrus/postfix and sogo.log when I try to login with those 2 
"damaged" accounts is like this:
===
Jan 03 08:01:32 sogod [7815]: SOGoRootPage successful login from '10.10.10.2' for user 
'me' - expire = -1  grace = -1 Jan 03 08:01:32 sogod [7815]: 10.10.10.2 "POST 
/SOGo/connect HTTP/1.1"
200 45/74 0.178 - - 0 - 14
Jan 03 08:01:33 sogod [7815]: 10.10.10.2 "GET /SOGo/so/me/Calendar/view HTTP/1.1" 
200 22816/0 0.060 84157 72% 0 - 14 Jan 03 08:01:36 sogod [7815]: 10.10.10.2 "GET
/SOGo/so/me/Calendar/alarmslist?browserTime=1704265293 HTTP/1.1" 200
60/0 0.009 - - 0 - 14
Jan 03 08:01:36 sogod [7811]: 10.10.10.2 "POST 
/SOGo/so/me/Mail/0/folderINBOX/changes HTTP/1.1" 200 29/126 0.314 - - 0
- 13
2024-01-03 08:01:36.686 sogod[7826:7826] EXCEPTION:  NAME:NSGenericException REASON:Parse failed - as
property list {Parse failed at line 1 (char 65536) - reached end of string 
while parsing quoted string}, and as strings file {Parse failed at line 1 (char 
1) - unexpected character (wanted '=' or ';')}
INFO:(null)
Jan 03 08:01:36 sogod [7826]: 10.10.10.2 "GET 
/SOGo/so/me/Calendar/eventsblocks?ed=20240103=20240103=dayview
HTTP/1.1" 501 0/0 0.528 - - 1M - 13
===
Can anybody tell me what exactly is parsed there and where I can find and fix 
it?