Re: PG84 and SELinux

From: "James B(dot) Byrne" <byrnejb(at)harte-lyne(dot)ca>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PG84 and SELinux
Date: 2010-12-03 21:04:56
Message-ID: 55162.216.185.71.25.1291410296.squirrel@webmail.harte-lyne.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wed, December 1, 2010 16:54, Tom Lane wrote:
> "James B. Byrne" <byrnejb(at)harte-lyne(dot)ca> writes:
>> Earlier today I attempted to upgrade a production server
>> from 8.1 to 8.4 using the pgdg-84-centos.repo. I say
>> attempted because I could never get it to support ssl
>> connections and as that is a requirement I had to roll
>> back to 8.1.
>
> Can't comment on that without a lot more detail.
>
On Fri, December 3, 2010 07:40, James B. Byrne wrote:
>
> I restarted the server this morning, waited for the relabel to
> finish ( a very long time ), and then upgraded to pg-8.4 without any
> problems. SSL works fine as well. . .

I wrote too soon. What I did was uncomment the ssl option. I
neglected to change the setting from off to on.

When I try to start the server with ssl=on it fails with this error:

Auto configuration failed
29006:error:0E065068:configuration file routines:STR_COPY:variable
has no value:conf_def.c:629:line 207

I have checked gpsql/data and the server.key and server.crt files
are both present:

-rw------- 1 postgres postgres 5213 Dec 12 2007 server.crt
-rw------- 1 postgres postgres 1675 Dec 12 2007 server.key

The only change made in the postgresql.conf file that triggered this
was changing 'off' to 'on' for ssl. Changing it back to 'off' makes
the problem disappear.

--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB(at)Harte-Lyne(dot)ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Derrick Rice 2010-12-03 23:21:10 Re: RESET ROLE and search_path, Connection pool
Previous Message Merlin Moncure 2010-12-03 20:35:26 Re: how can i bugfix "idle in transaction" lockups ?