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 1iDBjp-0000Q4-S4 for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 18:10:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDBjm-0006IG-B2 for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 18:10:02 +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 1iDBjl-0006I6-T9 for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 18:10:02 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDBji-00077J-NB for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 18:10:01 +0000 Received: by mail-pf1-x42b.google.com with SMTP id v4so4064822pff.6 for ; Wed, 25 Sep 2019 11:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=P4Dq4Q1WjNVh8nwwOCYYuyd28REYuJk+f1dyFsencik=; b=gMEIGD+cVC3F6pzpaemMl7+uvd37n3eg9V93AOdDb/tW9AHcejKwsfzdLI8nkoc4wT +xSqJ+Rfjps1NhFQONqvgmf2y75WlYDJ+XGWPyNTueJb+AaEfdIygmzREwVcEs4ogCu0 ovlqBxlRlKRcBjAc5NYyzeVsxE7J+5HhX/SrSZ4/g5xjV5tuyXkmGp7lkBoTIYnrtTNl ufeglK+p2J4sD6yQoxRDaTVan8fGe5/KcL7ht5u06DmnQkwMbSmgTxpeuyhrVgc2x72O w4ICR6KQddvx2x4iM9ZCpTp7HMgUwsDX9/AG2aIcjtvmSii7MuZxZNdu86msF8NsTc30 EcSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P4Dq4Q1WjNVh8nwwOCYYuyd28REYuJk+f1dyFsencik=; b=COosaKsy32E/mLf9JXeSLZK+8BCpwqZvzY0zF/LgTBX+BOKnova/Rq+r9SN5Ny7FqU fvHXM33Iuk9301ZSVob+s4CpNccyJfuwIiQ8ROogSCpvN3LfQQm+7G2SHN+2yO7teynu Rn0tZJFyCCRGyT85C1gci955U29l3QdnyLhAEYmwZ0irPmBoomwlQt0zP2TptPgnKT9G MAECdcXLBYmL+aKonPvJT53FrQDd/kBLLIEgsa0sOfWnZI3biwz9hg4Qf/fXXtSLGXeG 2aH/EKwX/NFWLgVQ5hp51I7LUP5WFcPj4xvRXju9hJJJ2/CWHy5+2UaGFneAC5B23o4n ngFQ== X-Gm-Message-State: APjAAAVN5M4CZAzNYfnlLTLC5+AOi8Pue1RkzfVh6kyuQackD72+kC+X JF4Hk6SzSygw72F1Nz77mnwMdM6iPms= X-Google-Smtp-Source: APXvYqzGgIm3J+H4GfBwM92FCVNYVlORsHUjcPVVy9q+IuMUFkv6WZWeqhNj9+DRp3WPQfwoRxHTuA== X-Received: by 2002:a63:a55c:: with SMTP id r28mr583818pgu.303.1569434995574; Wed, 25 Sep 2019 11:09:55 -0700 (PDT) Received: from [192.168.2.101] (static-50-53-109-254.bvtn.or.frontiernet.net. [50.53.109.254]) by smtp.googlemail.com with ESMTPSA id h4sm8955053pfg.159.2019.09.25.11.09.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Sep 2019 11:09:54 -0700 (PDT) Subject: Re: Pg_auto_failover To: pgsql-general@lists.postgresql.org References: From: Paul Jungwirth Message-ID: Date: Wed, 25 Sep 2019 11:09:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 On 9/25/19 8:55 AM, Sonam Sharma wrote: > My user has permission to touch inside the Fs. > I am not getting why it is checking for /backup. > > Any suggestions on this , what else I can check In addition to the code already linked to, I would look at https://github.com/citusdata/pg_auto_failover/blob/1290edd0bab54c627f577cf4462bd16a56b20a1a/src/bin/pg_autoctl/pgctl.c#L429-L437 You see that pg_auto_failover is trying to `mkdir -p $pgdata/../backup` (where pgdata is a C variable, not a shell/environment variable). You might want to read through the rest of that code to see where pgdata is coming from, and see if it's being set correctly. Do you really want /backup at the root level? Clearly whatever user is running pg_basebackup doesn't have permission to make that directory. But maybe that's okay and the directory should be somewhere else. -- Paul ~{:-) pj@illuminatedcomputing.com