Skip site navigation (1) Skip section navigation (2)

connect() failed: No such file or directory

From: Christian Thrum <c(dot)thrum(at)intershop(dot)de>
To: "'pgsql-ports(at)postgresql(dot)org'" <pgsql-ports(at)postgresql(dot)org>
Subject: connect() failed: No such file or directory
Date: 2001-03-03 20:50:58
Message-ID: 25AADB1778E0D3119963009027D6F61C428AB8@jena00.intershop.de (view raw or flat)
Thread:
Lists: pgsql-ports
hi all,

my system is:

windows nt
cygipc-1.09-2
cygwin-1.1.7-1
and the binary version of postgresql 7.0 for nt


when i try to start postmaster i get the following output:

$ ./postmaster -d 5
FindExec: found "/usr/pgsql/bin/./postgres" using argv[0]
binding ShmemCreate(key=52e2c1, size=1115136)
DEBUG:  Data Base System is starting up at Sat Mar  3 20:23:08 2001
DEBUG:  Data Base System was shut down at Sat Mar  3 20:17:00 2001
DEBUG:  Data Base System is in production state at Sat Mar  3 20:23:08 2001
proc_exit(0)
shmem_exit(0)
exit(0)
/usr/pgsql/bin/./postmaster: reaping dead processes...

this looks like there is something going wrong....!? but the postmaster
process is running!
(if i do netstat -a the port 5432 is in use)

next i try to create a database and i get the following error:

$ ./createdb testdb
psql: connectDBStart() -- connect() failed: No such file or directory
        Is the postmaster running at 'localhost'
        and accepting connections on Unix socket '5432'?
createdb: database creation failed

has this error anything to do with the (possible) error when starting
postmaster?
if not, what is the reason for the 'connect failed' ???
if yes... how can i fix it?



thanks for help,
christian thrum


ps: if i try to stop the postmaster, i get:

pmdie 2
Fast Shutdown request at Sat Mar  3 20:35:05 2001
DEBUG:  Data Base System shutting down at Sat Mar  3 20:35:05 2001
DEBUG:  Data Base System shut down at Sat Mar  3 20:35:05 2001
proc_exit(0)
shmem_exit(0)
exit(0)
/usr/pgsql/bin/./postmaster: reaping dead processes...
proc_exit(0)
shmem_exit(0)
NOTICE:  IpcMemoryDetach: shmdt(0x???????): Invalid argument
NOTICE:  IpcMemoryDetach: shmdt(0x???????): Invalid argument
NOTICE:  IpcMemoryDetach: shmdt(0x???????): Invalid argument
exit(0)

again, is this normal or has anything to do with my problem ???

Responses

pgsql-ports by date

Next:From: Samuel SanchezDate: 2001-03-03 22:34:42
Subject: PostgreSQL
Previous:From: Les SchafferDate: 2001-03-03 17:53:27
Subject: Re: ./configure fails on Winnt 4 SP 4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group