Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UxhsC-0004Ws-6N for pgsql-admin@arkaria.postgresql.org; Fri, 12 Jul 2013 18:15:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UxhsB-0007og-4C for pgsql-admin@arkaria.postgresql.org; Fri, 12 Jul 2013 18:15:15 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxhs8-0007nN-Q0 for pgsql-admin@postgresql.org; Fri, 12 Jul 2013 18:15:13 +0000 Received: from qmta02.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:24]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxhs4-00053C-VH for pgsql-admin@postgresql.org; Fri, 12 Jul 2013 18:15:11 +0000 Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta02.westchester.pa.mail.comcast.net with comcast id zWBD1l0061c6gX851WF5oP; Fri, 12 Jul 2013 18:15:05 +0000 Received: from homie ([38.98.177.132]) by omta23.westchester.pa.mail.comcast.net with comcast id zWEt1l00Y2rmZlA3jWEvvl; Fri, 12 Jul 2013 18:15:03 +0000 Received: by homie (Postfix, from userid 1000) id 3CE2818082A; Fri, 12 Jul 2013 14:14:53 -0400 (EDT) To: Wells Oliver Cc: Giuseppe Broccolo , pgsql-admin@postgresql.org Subject: Re: Couldn't start postgres, got no logging, ran postgres manually for info-- help? References: <51DFCB17.5050905@2ndquadrant.it> <58263C4A-0786-4FA1-9AA3-C176A9C0ED35@gmail.com> From: Jerry Sievers Date: Fri, 12 Jul 2013 13:14:53 -0500 In-Reply-To: <58263C4A-0786-4FA1-9AA3-C176A9C0ED35@gmail.com> (Wells Oliver's message of "Fri\, 12 Jul 2013 10\:29\:00 -0700") Message-ID: <87ehb3wspu.fsf@comcast.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1373652905; bh=u8P9Bulp9YB0m9ahMYx4OgJ882/AljOS/GKBOB+Moyg=; h=Received:Received:Received:To:Subject:From:Date:Message-ID: MIME-Version:Content-Type; b=hqx/tr10uRayfrifEbxk4Cw9jts8Gw0GPheJ17osFEQ5128Bssoqh2iVc/w7WSKUA ZghFGyvIP4mf0iJ4NFatLrlFxjXI0AIUaWXR04/o56KlHoS+8NjAh9aL+gAJysCwJD KcjU/oTURMnJdGLbXT6W+Btwiu5G0BDgzopT9bnpOKT1B42LM8x8BksInsaAlpg0U9 mdAH/jCnCzhVkKKYmMr42SIGeH67eGH6x+9RfyxxnURhYGB2XfQKZP9/PDRtI8yCU8 zOpSZJRoAiQrnFPoj8DeR+wMRE+ScFFo+olE6YZRjB4onVbvNpiNMioxrZ7NQX0wqi vCfUe41jEWjHQ== X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Wells Oliver writes: > Alright but what's odd to me is that it's a standard out of the box ubuntu configuration, meaning: > > log_destination is 'stderr' > logging_collector is on > log_directory is /var/log/postgresql/ > log_filename is postgresql-%Y-%m-%d_%H%M%S.log > > When I ran pg_ctlcluster start, I only received "please check the log output", but there were no errors logged. There > are definitely log items when the server was running normally. > > When I ran postgres manually, I saw the permissions issue. My question then is where was this error sent when running > pg_ctlcliuster, or why was it squashed? It would have been helpful to have that from the start. Speculating here, but the bit about "please check the logs" is probably generic to pg_ctl and an error such as bad $PGDATA perms might be detected so early as to halt startup even before something like logging_collector is run and/or fully operational. That is, there might be a few types of errors that will be reported on /dev/tty or /dev/stderr in such a case and the "check logs" message is misleading. Consult your source code though for definitive answer :-) > -- > Wells Oliver > wellsoliver@gmail.com > > On Jul 12, 2013, at 2:23 AM, Giuseppe Broccolo wrote: > > Hi Oliver, > > Il 12/07/2013 04:07, Wells Oliver ha scritto: > > I ran: > > pg_ctlcluster 9.1 main start > > Received: > > The PostgreSQL server failed to start. Please check the log output. > > But, hey, in /var/log/postgresql, there was absolutely no logging. Nothing. After some googling, I tried: > > usr/lib/postgresql/9.1/bin/postgres -D /data/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/ > postgresql.conf > > From the command line, which spit out to the terminal: > > 2013-07-12 02:04:05 GMT [30091]: [1-1] FATAL: data directory "/data/postgresql/9.1/main" has group or world > access > > OK, so where the heck did this error message go when I was running pg_ctlcluster? It would have saved me a lot > of time. > > By default pg_ctlcluster script redirects postmaster's stderr into /var/log/postgresql/postgresql-9.1-main.log. > This works only if log_destination is stderr and logging_collector is disabled, else the logs are stored where > configured by log_destination, log_filename and log_directory in your postgresql.conf file. > > Advice is to look into your postgresql.conf how (and if) logging is configured. > > Regards, > Giuseppe. > > -- > Giuseppe Broccolo - 2ndQuadrant Italy > PostgreSQL Training, Services and Support > giuseppe.broccolo@2ndQuadrant.it | www.2ndQuadrant.it > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin