Re: [SOGo] Proxy Error 502 : Error reading from remote server :Can't get cStringLength from Unicode string.

2010-09-01 Thread Ludovic Marcotte

 On 30/08/10 4:39 AM, Anthony Milan wrote:

  Hi,

I would like to deploy SOGo in my company with Thunderbird 3.1. I'am
preparing this deployment. One thing I have to do is to import existent
calendars as ics files. I tried to import ics file by web interface
(Calendar, Calendars, Import Events...). After, I tried to read this
events with Perl DAV (my ambition is to script the imports) and I had
the error in subject. Before the import, I could read the events created
with SOGo interface without mistake.

How can I find the event which is at the origin of this error? I have
more 300 events in ics file.
You could send us privately that file and we could test it. You might 
have a broken event in there that cause the import process to fail.


Regards,

--
Ludovic Marcotte
lmarco...@inverse.ca  ::  +1.514.755.3630  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] Proxy Error 502 : Error reading from remote server :Can't get cStringLength from Unicode string.

2010-08-30 Thread Anthony Milan
 Hi,

I would like to deploy SOGo in my company with Thunderbird 3.1. I'am
preparing this deployment. One thing I have to do is to import existent
calendars as ics files. I tried to import ics file by web interface
(Calendar, Calendars, Import Events...). After, I tried to read this
events with Perl DAV (my ambition is to script the imports) and I had
the error in subject. Before the import, I could read the events created
with SOGo interface without mistake.

How can I find the event which is at the origin of this error? I have
more 300 events in ics file.

Regards,

The sogo.log, apache2 error.log and perl dav debug are as follows.

/var/log/sogo/sogo.log

Aug 30 10:10:07 sogod: SOGo watchdog [1508]: [so-security]D validate
key 5E8-4C7B6780-35-7EDBB300 of object:
0x09608440[SOGoAppointmentFolder]: name=personal
container=0x094F0AF0/Calendar
ocs=/Users/anthony.mi...@ch-stbrieuc.fr/Calendar/personal
Aug 30 10:10:07 sogod: SOGo watchdog [1508]: [so-security]D   found no
security info for key (class SOGoAppointmentFolder):
5E8-4C7B6780-35-7EDBB300
Aug 30 10:10:07 sogod: SOGo watchdog [1508]: [so-security]D   default
is allow ...
PostgreSQL72 connection dropped 0x0xaac1b98 (channel=0x0x9a9a5b0)
PostgreSQL72 connection dropped 0x0x959c830 (channel=0x0x90b3538)
EXCEPTION: NSException: 0x9a282b0 NAME:NSCharacterConversionException
REASON:Can't get cStringLength from Unicode string. INFO:(nil)
Aug 30 10:10:08 sogod: SOGo watchdog [1504]:
0x0x8dbb8a0[WOWatchDogChild] child 1508 exited
Aug 30 10:10:08 sogod: SOGo watchdog [1504]:
0x0x8dbb8a0[WOWatchDogChild]  (terminated due to signal 6)
Aug 30 10:10:08 sogod: SOGo watchdog [1504]: 0x0x8d9f208[WOWatchDog]
child spawned with pid 2034
Aug 30 10:10:08 sogod: SOGo watchdog [2034]: SNS support disabled.
Aug 30 10:10:08 sogod: SOGo watchdog [2034]:
0x0x903b018[SOGoProductLoader] SOGo products loaded from
'/usr/lib/GNUstep/SOGo':
Aug 30 10:10:08 sogod: SOGo watchdog [2034]:
0x0x903b018[SOGoProductLoader]   Contacts.SOGo, SchedulerUI.SOGo,
Appointments.SOGo, CommonUI.SOGo, MailerUI.SOGo, MainUI.SOGo,
Mailer.SOGo, ContactsUI.SOGo, PreferencesUI.SOGo, AdministrationUI.SOGo,
MailPartViewers.SOGo
Aug 30 10:10:09 sogod: SOGo watchdog [2034]: |SOGo| version 1.3.0 (build
@vizzini.inverse.ca 201008191852) -- starting
Aug 30 10:10:09 sogod: SOGo watchdog [2034]: |SOGo| vmem size check
enabled: shutting down app when vmem  512 MB
2010-08-30 10:10:09.494 sogod[2034] PostgreSQL72 connection established:
0x0x91ffb70[PGConnection]:  connection=0x0x957f028
2010-08-30 10:10:09.495 sogod[2034] PostgreSQL72 channel 0x0x97901d0
opened (connection=0x0x91ffb70[PGConnection]:  connection=0x0x957f028)
2010-08-30 10:10:09.495 sogod[2034] PG0x0x97901d0 SQL: SELECT count(*)
FROM sogo_user_profile
2010-08-30 10:10:09.498 sogod[2034] PG0x0x97901d0 SQL: SELECT count(*)
FROM sogo_folder_info

/var/log/apache2/error.log

[Mon Aug 30 10:10:07 2010] [error] [client 132.147.200.196] (70014)End
of file found: proxy: error reading status line from remote server 127.0.0.1
[Mon Aug 30 10:10:07 2010] [error] [client 132.147.200.196] proxy: Error
reading from remote server returned by
/SOGo/dav/anthony.mi...@ch-stbrieuc.fr/Calendar/personal/

PerlDAV Debug

Mon Aug 30 10:09:48 2010
PROPFIND REQUEST
PROPFIND
http://webmail.ch-stbrieuc.fr/SOGo/dav/anthony.mi...@ch-stbrieuc.fr/Calendar/personal/
HTTP/1.1
Host: webmail.ch-stbrieuc.fr:80
User-Agent: DAV.pm/v0.31
Content-Length: 90
Content-Type: text/xml
Depth: 1

?xml version=1.0 encoding=utf-8?D:propfind
xmlns:D=DAV:D:allprop//D:propfind
PROPFIND RESPONSE
HTTP/1.1 502 Proxy Error
Connection: close
Date: Mon, 30 Aug 2010 08:10:07 GMT
Vary: Accept-Encoding
Content-Length: 612
Content-Type: text/html; charset=iso-8859-1
Client-Date: Mon, 30 Aug 2010 08:09:48 GMT
Client-Peer: 132.147.161.87:80
Client-Response-Num: 1
Title: 502 Proxy Error

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title502 Proxy Error/title
/headbody
h1Proxy Error/h1
pThe proxy server received an invalid^M
response from an upstream server.br /^M
The proxy server could not handle the request ema
href=/SOGo/dav/anthony.mi...@ch-stbrieuc.fr/Calendar/personal/PROPFINDnbsp;/SOGo/dav/anthony.mi...@ch
-stbrieuc.fr/Calendar/personal//a/em.p
Reason: strongError reading from remote server/strong/p/p
hr
addressApache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at
webmail.ch-stbrieuc.fr Port 80/address
/body/html

-- 
Anthony Milan

Centre Hospitalier de Saint-Brieuc
Direction du système d'information
22027 Saint-Brieuc Cedex 1
Tél : 02 96 01 78 39 (67839)
Fax : 02 96 01 75 57

-- 
users@sogo.nu
https://inverse.ca/sogo/lists