[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postgresql-problem



Johann Spies wrote:
  >I got this message when my computer rebooted.
  >
  >FATAL: StreamServerPort: bind() failed: Permission denied
  >        Is another postmaster already running on that port?
  >        If not, remove socket node (/tmp/.s.PGSQL.5432) and retry.
  >/usr/lib/postgresql/bin/postmaster: cannot create UNIX stream port
  >
  >But there is no /tmp/.s.PGSQL.5432
  >
  >Trying to start postgresql as root gives the same message.

...so it is presumably not a permissions problem with /tmp.

Please run postmaster through strace (add it to the command
in postgresql-startup) and post the output for a little while before
the failure (perhaps from the socket() call); that might give some
clues.

Please try also `lsof | grep 5432' and see what you get.  (That should
report any existing use of port 5432.)

lsof is (for me) in package lsof-2.2.  I think you have to install the
correct version for your kernel.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "My son, if sinners entice thee, consent thou not." 
                               Proverbs 1:10




Reply to: