Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Christian Mack
Hi Michael Gratton


On 2012-03-12 05:20, Michael Gratton wrote:
 
 No-one has any advice on this?
 
  Message original 
 Sujet: cannot create new contacts or events using web UI
 Date : Thu, 08 Mar 2012 13:53:19 +1100
 De : Michael Gratton mich...@quuxo.com
 Organisation : Quuxo Software
 Pour : users@sogo.nu
 
 
 Hi,
 
 Using sogo-1.3.6-1.el5, I cannot create a new address book contacts or
 calendar events using the web interface.
 
 When hitting save on either the new contact or the new event, the result
 is a generic browser connection error page, since the form is attempting
 to submit to http://127.0.0.1:2/SOGo/[snip] rather than the
 correct address of the calendar server, i.e.
 http://collab.internal.xyz.com/[snip]
 
 Everything else seems to work fine.
 
  ... 
 
 Any suggestions?
 

I hat a similar problem after upgrading.
The solution was to clear the browser cache.

But I don't think this is related to your problem, as you obviously try
to set up a fresh SOGo.


Kind regards,
Christian Mack

-- 
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Michael Gratton

Le 12/03/12 21:09, Christian Mack a écrit :
 
 I hat a similar problem after upgrading.
 The solution was to clear the browser cache.
 
 But I don't think this is related to your problem, as you obviously try
 to set up a fresh SOGo.

Well, it is an old installation, but this problem has persisted across a
number of versions of SOGo now. Although we don't really use the web
interface, it is a rather core function that is broken, so I doubt it's
a bug and that upgrading will help.

More likely it's a configuration issue, but after consulting the
documentation it seems like the instance is configured fine, which is
why I was hoping someone on the list might have some advice.

Cheers,
//Mike

-- 
Michael Gratton mich...@quuxo.com
Quuxo Software http://web.quuxo.com/



signature.asc
Description: OpenPGP digital signature


Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Ludovic Marcotte

On 12/03/12 18:46, Michael Gratton wrote:

Well, it is an old installation, but this problem has persisted across a
number of versions of SOGo now. Although we don't really use the web
interface, it is a rather core function that is broken, so I doubt it's
a bug and that upgrading will help.
Share the part of your sogo.log file when you try to create an event or 
a contact.


--
Ludovic Marcotte
+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


Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Michael Gratton
Le 13/03/12 09:55, Ludovic Marcotte a écrit :
 On 12/03/12 18:46, Michael Gratton wrote:
 Well, it is an old installation, but this problem has persisted across a
 number of versions of SOGo now. Although we don't really use the web
 interface, it is a rather core function that is broken, so I doubt it's
 a bug and that upgrading will help.
 Share the part of your sogo.log file when you try to create an event or
 a contact.
 

There is no SOGo log entry, because on clicking the Save button for the
event the browser tries to submit to localhost rather than to the SOGo
installation's host.

I.e. The browser sends the request to:

  http://127.0.0.1:2/SOGo/[snip]

Rather than:

  http://collab.internal.xyz.com/[snip]


-- 
Michael Gratton mich...@quuxo.com
Quuxo Software http://web.quuxo.com/



signature.asc
Description: OpenPGP digital signature


Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Ludovic Marcotte

On 12/03/12 19:04, Michael Gratton wrote:

There is no SOGo log entry, because on clicking the Save button for the
event the browser tries to submit to localhost rather than to the SOGo
installation's host.

I.e. The browser sends the request to:

   http://127.0.0.1:2/SOGo/[snip]

Rather than:

   http://collab.internal.xyz.com/[snip]

Instead of :

RequestHeader set x-webobjects-remote-host 127.0.0.1

use:

RequestHeader set x-webobjects-remote-host %{REMOTE_HOST}e 
env=REMOTE_HOST


Also:

BalancerMember http://127.0.0.1:2 retry=1 max=1 timeout=120
BalancerMember http://127.0.0.1:20001 retry=1 max=1 timeout=120

is most likely wrong. I don't recall if v1.3.6 had the master process 
code which is dispatching requests to child processes but you could 
easily verify this by checking if port 20001 is open. If not, the 
following Apache configuration might suit you better and 
mod_proxy_balancer is no longer needed:


...
ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

ProxyPass /SOGo http://127.0.0.1:2/SOGo retry=0

Proxy http://127.0.0.1:2/SOGo
  RequestHeader set x-webobjects-server-port 80
  RequestHeader set x-webobjects-server-name collab.internal.xyz.com
  RequestHeader set x-webobjects-server-url 
http://collab.internal.xyz.com;


  RequestHeader set x-webobjects-server-protocol HTTP/1.0
  RequestHeader set x-webobjects-remote-host %{REMOTE_HOST}e 
env=REMOTE_HOST


  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
/Proxy
...

--
Ludovic Marcotte
+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


Re: [SOGo] Re: cannot create new contacts or events using web UI

2012-03-12 Thread Michael Gratton

Hi,

Thanks for the suggestions.

Le 13/03/12 10:16, Ludovic Marcotte a écrit :
 Instead of :
 
 RequestHeader set x-webobjects-remote-host 127.0.0.1
 
 use:
 
 RequestHeader set x-webobjects-remote-host %{REMOTE_HOST}e
 env=REMOTE_HOST

I tried that (and with quotes around the value) and had some weird
results when requesting /, but in any case it didn't seem to fix the
problem.

What does the x-webobjects-remote-host header do? If anything, it seems
like it would just inform SOGo of the client's IP address, but I doubt
that it would affect the server's address as generated in the HTML,
which is the problem.

 Also:
 
 BalancerMember http://127.0.0.1:2 retry=1 max=1 timeout=120
 BalancerMember http://127.0.0.1:20001 retry=1 max=1 timeout=120
 
 is most likely wrong. I don't recall if v1.3.6 had the master process
 code which is dispatching requests to child processes but you could
 easily verify this by checking if port 20001 is open.

Thanks, I'll have a a look into this (and the former a bit more) out of
business hours when I can muck around with it more.

//Mike

-- 
Michael Gratton mich...@quuxo.com
Quuxo Software http://web.quuxo.com/



signature.asc
Description: OpenPGP digital signature