SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot kemp's Avatar
    Join Date
    Aug 2004
    Location
    Campinas
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't start Postgre on Linux

    I'm running Fedora Core 3 and PostgreSQL 7.4.6. When I try to run initdb, it fails. Here's the output for the command "initdb -d -D my/path":

    Running in debug mode.

    initdb: internal variables:
    PGDATA=./pgsql/data/
    datadir=/usr/share/pgsql
    PGPATH=/usr/bin
    ENCODING=
    ENCODINGID=0
    POSTGRES_SUPERUSERNAME=brian
    POSTGRES_BKI=/usr/share/pgsql/postgres.bki
    POSTGRES_DESCR=/usr/share/pgsql/postgres.description
    POSTGRESQL_CONF_SAMPLE=/usr/share/pgsql/postgresql.conf.sample
    PG_HBA_SAMPLE=/usr/share/pgsql/pg_hba.conf.sample
    PG_IDENT_SAMPLE=/usr/share/pgsql/pg_ident.conf.sample
    The files belonging to this database system will be owned by user "brian".
    This user must also own the server process.

    The database cluster will be initialized with locale en_US.UTF-8.

    fixing permissions on existing directory ./pgsql/data/... ok
    creating directory ./pgsql/data//base... ok
    creating directory ./pgsql/data//global... ok
    creating directory ./pgsql/data//pg_xlog... ok
    creating directory ./pgsql/data//pg_clog... ok
    selecting default max_connections... 10
    selecting default shared_buffers... 50
    creating configuration files... ok
    creating template1 database in ./pgsql/data//base/1...
    initdb: failed
    Any idea why? The main problem is that initdb doesn't say anything about the error.

  2. #2
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Grand Rapids, MI
    Posts
    1,284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a guess and I am not sure, but doesnt FC come with SELinux pre-installed? It may not let it write to that directory because of its security. Thats just a guess though. I dont really know.

  3. #3
    SitePoint Zealot kemp's Avatar
    Join Date
    Aug 2004
    Location
    Campinas
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ben
    Just a guess and I am not sure, but doesnt FC come with SELinux pre-installed? It may not let it write to that directory because of its security. Thats just a guess though. I dont really know.
    Yes, that's what I found out too. But it doesn't make much sense, since it was working before. Apparently it has something to do with the new version of PostgreSQL: 7.4.6-1.FC3.2. I saw on other forums that the only way to solve this problem is to update SELinx; since I don't have administrative privileges, I'm just gonna have to wait .

    Does anyone has any idea?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •