Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdgcK-0005rk-2l for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2019 19:51:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdgcI-0000jn-TL for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2019 19:51:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdgcI-0000jg-Jd for pgsql-general@lists.postgresql.org; Wed, 19 Jun 2019 19:51:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdgcC-0007Dv-AK for pgsql-general@lists.postgresql.org; Wed, 19 Jun 2019 19:51:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5JJpPrL021256; Wed, 19 Jun 2019 15:51:25 -0400 From: Tom Lane To: Brent Bates cc: "pgsql-general@lists.postgresql.org" Subject: Re: First Time Starting Up PostgreSQL and Having Problems In-reply-to: References: Comments: In-reply-to Brent Bates message dated "Wed, 19 Jun 2019 19:31:56 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21254.1560973885.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Jun 2019 15:51:25 -0400 Message-ID: <21255.1560973885@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Brent Bates writes: > This is a first time install of PostgreSQL version 11.3 on a CentOS= server running release 7.6.1810. I've just finished setting up the postg= resql.conf and pg_hba.conf files and am trying to start up PostgreSQL for = the first time. I'm getting errors no matter what I try. My first attemp= t resulted in errors that look like the following: > syntax error in file "/var/lib/pgsql/11/data/pg_hba.conf" line 8= 4, near token "all" Hm ... could we see exactly what you have in pg_hba.conf? > I received this error for every configuration line that wasn't a comment= . The "all" is in the USER column. No matter what I put in the USER colu= mn, I get the same error, but listing whatever string is in that column. = I wandered if this error was just a result of a different error someplace = else, so I commented out all lines in this file. That resulted in the fol= lowing error: > FATAL: exceeded maxAllocatedDescs (16) while trying to open fil= e "/var/lib/pgsql/11/data/pg_hba.conf" That's just weird. Zero entries in pg_hba.conf isn't a useful situation (since the postmaster wouldn't allow any connections), but if I try it I get a failure like this: 2019-06-19 15:43:24.257 EDT [20959] LOG: starting PostgreSQL 12beta2 on x= 86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23= ), 64-bit 2019-06-19 15:43:24.281 EDT [20959] LOG: listening on IPv4 address "0.0.0= .0", port 5440 2019-06-19 15:43:24.281 EDT [20959] LOG: listening on IPv6 address "::", = port 5440 2019-06-19 15:43:24.282 EDT [20959] LOG: listening on Unix socket "/tmp/.= s.PGSQL.5440" 2019-06-19 15:43:24.303 EDT [20959] LOG: configuration file "/home/postgr= es/testversion/data/pg_hba.conf" contains no entries 2019-06-19 15:43:24.303 EDT [20959] FATAL: could not load pg_hba.conf 2019-06-19 15:43:24.305 EDT [20959] LOG: database system is shut down Reading between the lines suggests that something might be trying to recursively read pg_hba.conf if it's empty, but it's hard to say what that something could be. Are you sure this is a stock build of Postgres? Where did you get it from? Another question is what non-default (not-commented) entries you have in postgresql.conf. One idea that came to me while thinking about the syntax error is that maybe you have one of the other configuration-file-name variables pointing to pg_hba.conf. That error message tells us that the server is trying to read pg_hba.conf, right enough, but it doesn't actually say what it's expecting to find in that file ... regards, tom lane