dbTalk Databases Forums  

Migration from one vserver to another

comp.databases.postgresql comp.databases.postgresql


Discuss Migration from one vserver to another in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
beach_defender
 
Posts: n/a

Default Migration from one vserver to another - 10-29-2007 , 06:41 AM






HI,
I have an installation on a Debian vserver, which we recently tried to
move from an internal machine to a hosted vserver environment.

The verser runs a PHP web-site that has Postgres, MySQL and even links
to SQLSERVER.

We backed up the vserver and copied it up to the box. After a little
work we have everything but Postgres running again.

We get the following message in /var/log/postgres/ postgresql-8.1-main.log.1

2007-10-23 09:33:11 EST FATAL: could not access private key file
"server.key":
Permission denied
2007-10-23 09:47:19 EST FATAL: could not access private key file
"server.key":
Permission denied
2007-10-23 09:50:19 EST FATAL: could not access private key file
"server.key":
Permission denied
2007-10-23 10:40:46 EST FATAL: could not access private key file
"server.key":
Permission denied
2007-10-23 10:42:35 EST FATAL: could not access private key file
"server.key":



I checked out the file
prompt# ls -l /var/lib/postgresql/8.1/main/server.key
lrwxrwxrwx 1 root root 38 Oct 19 11:02
/var/lib/postgresql/8.1/main/server.key ->
/etc/ssl/private/ssl-cert-snakeoil.key
prompt# ls -l /etc/ssl/private/ssl-cert-snakeoil.key
-rw------- 1 postgres postgres 887 Jun 2 15:51
/etc/ssl/private/ssl-cert-snakeoil.key
surfguard2:/home/barry#

This is the same as on the box that works.

I have tried to look up the issue, but so far nothing seems to make much
sense.

Do I simply need to re-create the keys on then new machine? or what?

Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Migration from one vserver to another - 10-30-2007 , 02:37 AM






beach_defender <barry@hpfmdotcomdotau> wrote:
Quote:
I have an installation on a Debian vserver, which we recently tried to
move from an internal machine to a hosted vserver environment.

We get the following message in /var/log/postgres/ postgresql-8.1-main.log.1

2007-10-23 09:33:11 EST FATAL: could not access private key file
"server.key":
Permission denied


I checked out the file
prompt# ls -l /var/lib/postgresql/8.1/main/server.key
lrwxrwxrwx 1 root root 38 Oct 19 11:02
/var/lib/postgresql/8.1/main/server.key -
/etc/ssl/private/ssl-cert-snakeoil.key
prompt# ls -l /etc/ssl/private/ssl-cert-snakeoil.key
-rw------- 1 postgres postgres 887 Jun 2 15:51
/etc/ssl/private/ssl-cert-snakeoil.key
surfguard2:/home/barry#

This is the same as on the box that works.
Let me ask - potentially stupid - questions:

- Is /var/lib/postgresql/8.1/main the PostgreSQL data directory,
i.e. does it contain PG_VERSION?

- Do you start the server with
pg_ctl -D /var/lib/postgresql/8.1/main start ?

- As user postgres, can you
cat /var/lib/postgresql/8.1/main/server.key ?

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.