Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1P3d-0008NZ-3u for pgsql-general@arkaria.postgresql.org; Thu, 29 Mar 2018 04:21:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1P3b-00060X-WE for pgsql-general@arkaria.postgresql.org; Thu, 29 Mar 2018 04:21:00 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1P3a-00060O-8q for pgsql-general@lists.postgresql.org; Thu, 29 Mar 2018 04:20:59 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1P3T-0000vV-Q9 for pgsql-general@lists.postgresql.org; Thu, 29 Mar 2018 04:20:57 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6C45020DE2; Thu, 29 Mar 2018 00:20:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 29 Mar 2018 00:20:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=rHqUP0OPDQgv1c/cXMwtnuSgDqtg3 feikQl7R7g6pos=; b=IvjxsBKd39ijUvArvyoohNMPX7qTDtr6635gFQNiS01VY aNUVsHdmKaxlFR0B/vCcJY7mNigqwRC/MhKienkFnXUGBECgRqYId3NcuiYroPiN U7rgZbADfIkJ3Tn9OB84NZ17d5alDf+OjL9u1hrbTgH5WTuzVdwErrzYMBT7f8KW ln3de5/1gRT8itxFrN4IuSpLDOhI5I07RoSOvOaujRPwdfsJAKTqTx2ZxFtnhpQE WSz9UpoQw3CUJ3NCus0Se6O6hQbZuPAQ7WlfNlDAWQzUBwX47ceo2/La1jZQgryA qvf3ehUzNAau93N3kVUJlS5sp/IgAU+kXxobK/jAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=rHqUP0 OPDQgv1c/cXMwtnuSgDqtg3feikQl7R7g6pos=; b=M5/7WxCrUVxBkJfiYcoSa2 V2+sBd9nk5JWBbwV2zMui/bgI68oH1iv3CM0kncJZp3SYjiimIdpow2U8MaWradC 5BdoAAIEF08LvHOKqAcDpYc5Cjavrng8cvYlWQVmQjc7kdKPeEYOZJu1LQYb8yrT h5G7hWl0EdpbK9mkuw5Oqc7SU6CT0/0jxeUcpIlw/D7e5qVlQILXFXF+RF+pczHY hdqfJiStvqn81c1ccAgYEKysJsauublT92vv4TSMypPB5Z1FRHSlVw0GIZx8dceA P+leDHq2b8U8JzE87fVrOw7uNIqCkInQbmIklpo3YllZacCsDpVZD8SOin/Kedtg == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id E2A9E1036B; Thu, 29 Mar 2018 00:20:48 -0400 (EDT) Subject: Re: Postgresql 9.3 Server will not start after Ubuntu Upgrade To: Ken Beck , pgsql-general@lists.postgresql.org References: <5b3cabbb-e901-ef61-4363-ee77517e07dc@gmail.com> <6f43a166-39ef-b821-00b9-63e14723e74e@gmail.com> <00a02f8f-3527-e9b0-d8b1-d40ab0ef5b96@aklaver.com> <008a67ee-0ed9-ff77-e5ce-37c52de8c5e1@evolu-s.it> <8b3e2c6b-3b61-46be-aeb8-c4763a1ae336@evolu-s.it> <2571f3d1-3a84-bbec-f692-7e0495f9dc09@gmail.com> <087b6773-642f-5864-913a-bf7753e9a0d5@aklaver.com> <4a0a9dcf-fc1b-8558-45da-0e7aeee7d85a@gmail.com> From: Adrian Klaver Message-ID: <5da68044-3c4a-fda3-bb9b-85d8789792e1@aklaver.com> Date: Wed, 28 Mar 2018 21:20:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <4a0a9dcf-fc1b-8558-45da-0e7aeee7d85a@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/28/2018 07:29 PM, Ken Beck wrote: Comments in line. > The current log is 0 length, and indeed empty. > > I just tried 'sudo pg_ctlcluster 9.3 main start'  and got the following > error: > > Error: Config owner (kcb:1000) and data owner (postgres:116) do not > match, and config owner is not root So why is your config owned by you and the data owned by postgres? Your configuration files should be under: /etc/postgresql/9.3/main/ and on my Ubuntu setups anyway is owned by postgres. > > Changed to user postgres, tried again and go > > Warning: the cluster will not be running as a systemd service. Consider > using systemctl: >   sudo systemctl start postgresql@9.3-main > Removed stale pid file. > > Next tried the suggestion: > > sudo systemctl start postgresql@9.3-main, but the system failed to > accept the password for user postgres. That is NOT something I changed My experience with Ubuntu is that the postgres system user does not have a password. So where you using the database postgres user password? For more detail see here: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04 > during the Ubuntu upgrade process, so that has been a puzzle as well. My > main login, user kcb is OK, password still works. > > So I change back to user kcb and try the suggestion again: > > kcb: jobs(0)$ sudo systemctl start postgresql@9.3-main > Job for postgresql@9.3-main.service failed because the control process > exited with error code. See "systemctl status > postgresql@9.3-main.service" and "journalctl -xe" for details. > kcb: jobs(0)$ systemctl status postgresql@9.3-main.service > ● postgresql@9.3-main.service - PostgreSQL Cluster 9.3-main >    Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; > vendor preset: enabled) >    Active: failed (Result: exit-code) since Wed 2018-03-28 19:51:50 MDT; > 47s ago >   Process: 2960 ExecStart=postgresql@%i --skip-systemctl-redirect %i > start (code=exited, status= > > Mar 28 19:51:50 kcb-VirtualBox systemd[1]: Starting PostgreSQL Cluster > 9.3-main... > Mar 28 19:51:50 kcb-VirtualBox postgresql@9.3-main[2960]: Error: Config > owner (kcb:1000) and dat Again the error with the config owner being you. Seems it would help to track down what copies of the conf files are installed on your machine. > Mar 28 19:51:50 kcb-VirtualBox systemd[1]: postgresql@9.3-main.service: > Control process exited, > Mar 28 19:51:50 kcb-VirtualBox systemd[1]: Failed to start PostgreSQL > Cluster 9.3-main. > Mar 28 19:51:50 kcb-VirtualBox systemd[1]: postgresql@9.3-main.service: > Unit entered failed stat > Mar 28 19:51:50 kcb-VirtualBox systemd[1]: postgresql@9.3-main.service: > Failed with result 'exit > > Is it possible a big problem is that the password for user postgres not > longer works for some reason, not sure why. It appears the password can > not be rest or changed without knowing the original, and what I thought > was the original no longer works. Remember there are two postgres users in play here, the system user and the database one. Which one are you referring to? -- Adrian Klaver adrian.klaver@aklaver.com