Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sv6vF-00CX4h-Ku for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 03:18:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sv6vF-00BY2c-1G for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 03:18:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sv6vE-00BY1a-J2 for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 03:18:04 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sv6v9-001m4c-0Y for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 03:18:03 +0000 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-7db1f13b14aso3318431a12.1 for ; Sun, 29 Sep 2024 20:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitnine-net.20230601.gappssmtp.com; s=20230601; t=1727666277; x=1728271077; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qa8bMtoy1rzutB5Za4t/cfrZhN5XbINUSbF8DggfQfA=; b=VJKvZKe6JDx21mPHG9NFL6qwSxXj9GeaQfXldt4Ca92JGl0lm1CPN2hJ5eLSBz0eRv OOiKrk5HIY320YBlYU3d++YGWNI70y0UAFEAWADXW/W47PsTsFFyShb9znLdJofZhsZ8 tQsCkwba44CVAkPBuf36ON8FZP1nVE8LW65sNuOz0smIu+ClMfaIqzaobATT8Jq6gzim qtvDnIzX1Irl4vPm00MZVKYXkocXsltEciKeuXKsV5VVsDkrst0hgRrApVpvSFPbcjSe +WPLE0d/hgNVgBVukI8rS3OoKAWNuNLbYKZ1iMzWyrlxBckCZrlkIMHkKd9q2sfktvsx bsfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727666277; x=1728271077; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qa8bMtoy1rzutB5Za4t/cfrZhN5XbINUSbF8DggfQfA=; b=MLmOi4MhIdw9dasDF6fQ6t8T5mlRFbNqMF+RnpPsAJWDBUfZiY8+0Yj/f8nNRKphXf SGsLOKkYjdLQssmcp5EFGuntS4mv4J1mm2rhRiWifYQfjz0ql+MMQSag8NLWruHpgePL jEJYJkKg7uW9SOrrFkmDy7yfUgdoiYS9tH8Or7txtN+n/rNWMvUo3qln6kAM9XiB2fCj RSTFzl0GQUFUm2dLmb7SQeyju+lz45Tqm63FBxRYr4QxpQ1o5BTfX7MKCCETlfATRMMq x2RYBlNPno5XSJuE+zBj+udSkIkCiGh8ivBvlYA8OpC6QaY4WkOiPRjO91mSyILExLSa N0TQ== X-Gm-Message-State: AOJu0YyABzvVGgjAVmY3bPRouZYuJgWcrP5VVeAG1XcBgQKEYk7bVNjA W+8sNytT9a1+hKNdgReRaDjgvWH1Vuu35mLqg/qtb9Mnlf2wNSbJeW+dUQQD/ripRaPKQF8oZYA ngwR5dPNxQcLCghBWFj9vSaRWLUnN6KDRo0bS4g== X-Google-Smtp-Source: AGHT+IFIhAOlj9T1MOFY9zninN7jGX9GtBpAq/096prnWneyVCWOYotwPmrHHKOrNMJOelsdg9I+evcAkn6Kl6S8Gj0= X-Received: by 2002:a17:90a:df8a:b0:2e0:b262:8fad with SMTP id 98e67ed59e1d1-2e0b8ec76b3mr12871341a91.34.1727666277425; Sun, 29 Sep 2024 20:17:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Usman Khan Date: Mon, 30 Sep 2024 08:17:46 +0500 Message-ID: Subject: Re: Basebackup fails without useful error message To: Koen De Groote Cc: PostgreSQL General Content-Type: multipart/alternative; boundary="000000000000c1c1c406234da6f3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c1c1c406234da6f3 Content-Type: text/plain; charset="UTF-8" Hi, You can enable verbose to get more detail about what is happening during backup pg_basebackup -h your_host -U your_user -D /mnt/base_backup/dir/ -v Also examine recent postgres logs Verify backup directory permissions On Sun, 29 Sept 2024 at 19:49, Koen De Groote wrote: > Having run a basebackup, I'm getting this output at the very end: > > pg_basebackup: child process exited with error 1 > pg_basebackup: removing contents of data directory "/mnt/base_backup/dir/" > > Is there a way to get more information as to what exactly happened? > > I'd like to look into fixing this or doing whatever is required so that it > doesn't happen again, but this just isn't enough info. Where do I start > looking? > > Regards, > Koen De Groote > --000000000000c1c1c406234da6f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
You can enable verbose to get more detail about what is happening dur= ing backup
pg_basebackup -h your_host -U your_user -D /mnt/base_b= ackup/dir/ -v
Also examine recent postgres logs<= br>Verify backup directory permissions

=
On Sun, 29 Sept 2024 at 19:49, Koen D= e Groote <kdg.dev@gmail.com>= wrote:
Having run a basebackup, I'm getting this output at the very e= nd:

pg_basebackup: child process exited with error 1
= pg_basebackup: removing contents of data directory "/mnt/base_backup/d= ir/"

Is there a way to get more informati= on as to what exactly happened?

I'd like to lo= ok into fixing this or doing whatever is required so that it doesn't ha= ppen again, but this just isn't enough info. Where do I start looking?<= /div>

Regards,
Koen De Groote
--000000000000c1c1c406234da6f3--