createdb failed

Started by alex yapabout 21 years ago2 messages
#1alex yap
alexysh_2003@yahoo.com

Hi,

recently i need to use pg in my project. everything going ok till when i want to createdb
it appear this :

Warning : could not remove database directory "/var/postgresql/data/base/17147"
Detail: Failing system command was : rm -rf '/var/postgresql/data/base/17147'
Error: could not initialize database directory; delete failed as well
detail : failing system command was : cp -r '/var/postgresql/data/base/1' '/var/postgresql/data/base/17147'

please anyone 'master' here help , my deadline is near.. please.

alex

---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

#2Richard Huxton
dev@archonet.com
In reply to: alex yap (#1)
Re: createdb failed

alex yap wrote:

Hi,

recently i need to use pg in my project. everything going ok till
when i want to createdb it appear this :

Warning : could not remove database directory
"/var/postgresql/data/base/17147" Detail: Failing system command was
: rm -rf '/var/postgresql/data/base/17147' Error: could not
initialize database directory; delete failed as well detail : failing
system command was : cp -r '/var/postgresql/data/base/1'
'/var/postgresql/data/base/17147'

This is the wrong list for support queries - in the future "general"
would be a good choice.

Things to check:
1. You are starting PG as the right user
2. Permissions are correct
3. The directory exists
4. Have you done anything with tablespaces?

--
Richard Huxton
Archonet Ltd