Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fL09x-00059k-KU for pgsql-general@arkaria.postgresql.org; Tue, 22 May 2018 05:48:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fL09w-00008M-2X for pgsql-general@arkaria.postgresql.org; Tue, 22 May 2018 05:48:32 +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 1fL09v-00008C-R0 for pgsql-general@lists.postgresql.org; Tue, 22 May 2018 05:48:31 +0000 Received: from mail-io0-f194.google.com ([209.85.223.194]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fL09o-0005P2-D9 for pgsql-general@postgresql.org; Tue, 22 May 2018 05:48:31 +0000 Received: by mail-io0-f194.google.com with SMTP id a10-v6so17085683ioc.9 for ; Mon, 21 May 2018 22:48:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=UZVunziuDJxAE8dlxldA5eW/H/K9m/EE9BRlCAAuizI=; b=JRU1mi7qaN0yvt9aOOGRGAMrJUO187yiIy4BX/A+pCmU08ogcZbLRlo/kvil4GdO24 bR3qCapB61oRbQgwiUo4fmUwTNVFbFhTx3tJxv7pXiWxwRhbqLLLZ8zea4EDdOaZFkhE TPfUcJ8JpxQNYUKCRpPUO3t+0z+kDF23fo8sdAuwGRdx6XFECBQysno8nPet/wFX6Dzr PyR1cgnoCR/hfFf8J5fQGz13EmVd5MWijkZI8F6zKP3RJyBM3kibdFLrJcg/WnKBWnxx 5tuDg/LmtXjwcGTmK9+u1IvSbghKkdCy60zi4sioIOrMTSdQkCW29RcSMnobXzE6YUKu iqhA== X-Gm-Message-State: ALKqPwfdyPtg9YcW43UX0MFLl0cYHwj1L0aRtleCzflFp6UAXAm9pBM7 GCA/O9gAkI0wd919dL/V0Nb08Q== X-Google-Smtp-Source: AB8JxZqMF346zkWupVuSJ8JkGwtAK3qCpzRq35LkasnIrErDy4iQLHdvehIMPNWwuI9SaRSe+UASSA== X-Received: by 2002:a6b:9d01:: with SMTP id g1-v6mr24422806ioe.256.1526968102016; Mon, 21 May 2018 22:48:22 -0700 (PDT) Received: from fuji.home ([65.183.81.59]) by smtp.gmail.com with ESMTPSA id k3-v6sm8299861ioj.55.2018.05.21.22.48.21 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 May 2018 22:48:21 -0700 (PDT) Received: from fuji.home (fuji.home [10.1.65.222]) by fuji.home (Postfix) with ESMTPS id 617C7680280 for ; Mon, 21 May 2018 23:48:20 -0600 (MDT) From: Stuart McGraw Subject: source of connection fails at pg startup? To: pgsql-general@postgresql.org Message-ID: <86216924-a5c8-80c1-52d6-0bc4a104de81@mtneva.com> Date: Mon, 21 May 2018 23:48:20 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk When I start my postgresql server I get 11 messages reporting that "password authentication failed for user 'postgres'" spaced about ~.5sec apart. I increased the logging level to INFO, and added the application name to the message format (after the pid) which resulted in: 2018-05-21 23:04:44.395 MDT [20232][[unknown]] [unknown]@[unknown] LOG: connection received: host=[local] 2018-05-21 23:04:44.395 MDT [20232][[unknown]] postgres@postgres FATAL: password authentication failed for user "postgres" 2018-05-21 23:04:44.395 MDT [20232][[unknown]] postgres@postgres DETAIL: Password does not match for user "postgres". Connection matched pg_hba.conf line 90: "local all all md5" This is on a Ububuntu-18.04 machine with postgresql-10.3 from Ubuntu. As distributed the pg_hba.conf line mentioned used "peer" authentication method, I have changed to "md5". When I change back to "peer" the error messages go away. The processes are too short-lived for me to catch with ps. Successful connect message example: 2018-05-21 23:25:13.577 MDT [21080][[unknown]] [unknown]@[unknown] LOG: connection received: host=[local] 2018-05-21 23:25:13.578 MDT [21080][[unknown]] postgres@postgres LOG: connection authorized: user=postgres database=postgres 2018-05-21 23:25:13.579 MDT [21080][psql] postgres@postgres LOG: disconnection: session time: 0:00:00.002 user=postgres database=postgres host=[local] My question is, how can I find out where the connections are coming from so I can modify them to provide passwords (so I can go back to "md5")? Are there startup- time connections made by postgresql itself or is this likely from some Ubuntu- specific configuration? Thanks.