View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003222 | SOGo | Backend General | public | 2015-05-31 19:56 | 2015-06-01 11:49 |
Reporter | vendafo | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | [Server] Linux | OS | Debian | OS Version | 8 (Jessie) |
Product Version | 2.2.9 | ||||
Summary | 0003222: Unable to connect to PostgreSQL when specifying link with 127.0.0.1 | ||||
Description | On a fresh Debian 8 installation with dual IPv4 and IPv6, using links such as below to connect to the PostgreSQL database leads to "could not open channel" and "could not open storage channel" errors. Piece of the sogo.conf: / Database configuration (mysql:// or postgresql://) / Observed behavior: When accessing the calendar, an empty calendar shows up. The list of calendars is displayed, but not the appointments. Here are a few lines that appear in /var/log/sogo/sogo.log (see attachment for a full log): May 30 21:30:04 sogod [6409]: [ERROR] <0x0x7f2b20c6d750[GCSChannelManager]> could not open channel <0x0x7f2b211e1b20[PostgreSQL72Channel]: not-connected> for postgresql://localhost/sogo/sogoanthony001605ac29f | ||||
Additional Information | My PostgreSQL configuration is such that I can access it with both with IPv4 and IPv6. Interestingly, I could solve the problem by replacing "127.0.0.1" with "localhost" in the postgresql links in sogo.conf. I am not sure if this is really a sogo issue. However, even if it is not, it may be relevant to use "localhost" instead of "127.0.0.1" in the default sogo.conf file from the Debian package. | ||||
Tags | No tags attached. | ||||
Check /etc/hosts |
|
No, here is my /etc/hosts: 127.0.0.1 localhost One weird thing I have noticed is that the user authentication (that uses the same PostgreSQL DB) still works with this in sogo.conf: So, for SOGoUserSources, 127.0.0.1 works! |
|
Hmmm, are you sure you have two lines with 127.0.0.1 in your /etc/hosts? |
|
I have just tried with the two lines merged: 127.0.0.1 localhost my_host.my_domain.com my_host It still behaves exactly as described in the bug description. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2015-05-31 19:56 | vendafo | New Issue | |
2015-05-31 19:56 | vendafo | File Added: sogo.log | |
2015-06-01 09:23 | Christian Mack | Note Added: 0008547 | |
2015-06-01 09:36 | vendafo | Note Added: 0008548 | |
2015-06-01 11:10 | Christian Mack | Note Added: 0008549 | |
2015-06-01 11:49 | vendafo | Note Added: 0008550 |