sugarcrm conflict with roundcube https [CLOSED]

All about SugarCRM integration inside Artica

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Wed Feb 16, 2011 2:59 pm

admin wrote:upgrade to 1.5.021613 i think the problem should be fixed


1) I updated to the new version.

2) I change port to 8000 for Original apache system and hit Edit. OK now it saves!! bravo!

3) I change port on Apache groupware engine from 81 to 80 and hit Edit. ?!?!?! It gives the same error "Original apache system:80 == Apache groupware engine:80".

4) I go to command line to manually restart httpd (try to release port if it was still in use) and apache2 gave this error:

Image
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Thu Feb 17, 2011 6:57 am

I found a serious error ... It appears that the Artica Management Console generates syntax errors in the /etc/apache2/ports.conf file.

The error prevents apache2 from restarting

Syntax error in line 1 of /etc/apache2/ports.conf
Code: Select all
NameVirtualHost  :8000
Listen :8000


Iceweasel can't establish a connection to the server at localhost:8000


This could work :
Code: Select all
NameVirtualHost *:8000
Listen 8000


But it causes a cascading error in /etc/apache2/sites-enabled/artica-articabox.conf (line 1) and when I edit that file and fix that error, it overwrites the first file /etc/apache2/ports.conf !?!!?!! :

/etc/init.d/apache2 restart
"Restarting web server: apache2
Syntax error on line 1 of /etc/apache2/ports.conf:
The address or port is invalid
failed!"


http://httpd.apache.org/docs/2.0/vhosts/examples.html
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby admin » Thu Feb 17, 2011 8:55 am

open

/usr/share/artica-postfix/exec.freeweb.php

Line 137

before
Code: Select all
if($FreeWebListen<>"*"){$FreeWebListenApache="$FreeWebListen:";}


Add
Code: Select all
if($FreeWebListen==null){$FreeWebListen="*";}


execute
Code: Select all
php5 /usr/share/artica-postfix/exec.freeweb.php --build


will be added in next nightly
User avatar
admin
Site Admin
 
Posts: 11287
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Thu Feb 17, 2011 9:31 am

admin wrote:open

/usr/share/artica-postfix/exec.freeweb.php

Line 137

before
Code: Select all
if($FreeWebListen<>"*"){$FreeWebListenApache="$FreeWebListen:";}


Add
Code: Select all
if($FreeWebListen==null){$FreeWebListen="*";}


execute
Code: Select all
php5 /usr/share/artica-postfix/exec.freeweb.php --build


will be added in next nightly


Thanks David. I think the bug is half solved.... There is still 2 errors (minimum):

1) every 5-10 seconds (not sure??) Artica is overwriting the file /etc/apache2/sites-enabled/artica-articabox.conf (line 1) with syntax error:
NameVirtualHost :8000 [That is the port of my "original apache system (http)" ]

With your patch, here is the output of /etc/init.d/apache2 restart

Restarting web server: apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Feb 17 04:16:21 2011] [warn] NameVirtualHost *:443 has no VirtualHosts
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Feb 17 04:16:21 2011] [warn] NameVirtualHost *:443 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
failed!


2) The syntax errors (above) might be causing the bug in the Management Console is confused about the ports (reading from incorrect syntax in the conf file?).
Management Console incorrectly shows error when I try to change the port of the Apache Groupware Engine (http) from 81 to 80.
Error box "original apache system:80 == apache groupware engine:80"
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Thu Feb 17, 2011 10:04 am

Just found this error, while doing Software Install / System software / Data Deduplication File system.

Probably the same underlying cause:

Image
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby admin » Thu Feb 17, 2011 1:20 pm

this is the same but for each host set

On exec.freeweb.php

after line 224 that display
Code: Select all
$FreeWebListen=$sock->GET_INFO("FreeWebListen");

add
Code: Select all
if($FreeWebListen==null){$FreeWebListen="*";}

do
Code: Select all
php5 /usr/share/artica-postfix/exec.freeweb.php --build
User avatar
admin
Site Admin
 
Posts: 11287
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Thu Feb 17, 2011 4:40 pm

admin wrote:this is the same but for each host set

On exec.freeweb.php

after line 224 that display
Code: Select all
$FreeWebListen=$sock->GET_INFO("FreeWebListen");

add
Code: Select all
if($FreeWebListen==null){$FreeWebListen="*";}

do
Code: Select all
php5 /usr/share/artica-postfix/exec.freeweb.php --build


I added the line you ask, and I see the same variable $FreeWebListen gets overwritten on line 227.

So I deleted line 227 also. This is important... if not, the change is ineffective.

I run the php5 command, it completes OK.

I run the apache2 restart command, it completes with some Warnings and Errors:

Image

I try to browse to the (supposed to be active) Original Apache System on port 8000. localhost:8000 "iceweasel cannot establish a connection to the server at localhost:8000".

Original apache system is not running on port 80, either.. it's OK I don't need original apache system.

But management console still prevent me to change port of apache groupware engine to port 80! It says original apache engine is using port 80 ( but that's not true !).
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Sat Feb 19, 2011 7:40 am

Since today's nightly build 1.5.021900 , Roundcube lightttpd is broken.

My artica roundcube configuration: port 443 and https.

I visit the normal address https :// localhost

Error:

"Secure Connection Failed
An error occurred during a connection to articabox.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
* Please contact the web site owners to inform them of this problem."
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby chris_c_ » Sat Feb 19, 2011 7:55 am

chris_c_ wrote:Since today's nightly build 1.5.021900 , Roundcube lightttpd is broken.

My artica roundcube configuration: port 443 and https.

I visit the normal address https :// localhost

Error:

"Secure Connection Failed
An error occurred during a connection to articabox.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
* Please contact the web site owners to inform them of this problem."


I fixed it temporarily...

I had to disable "original apache system" which, using port 443, prevented roundcube from starting.

* This is unsatisfactory because... it's best to have the ports be listened to, not bound, and each groupware and system service, can respond to http requests, based on matching hostname only.... but that's more complicated.

anyway, it works for now, until we will need the original apache system for something.

by the way, what is the original apache system used for ????

Image
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: sugarcrm conflict with roundcube https

New postby admin » Sat Feb 19, 2011 9:56 am

It used for Freewebs feature

update to 1.5.021910 i have fixed whats you request...
User avatar
admin
Site Admin
 
Posts: 11287
Joined: Wed Oct 17, 2007 7:59 am
Location: France

PreviousNext

Return to SugarCRM

Who is online

Users browsing this forum: No registered users and 1 guest

cron