Re: Basebackup fails without useful error message - Mailing list pgsql-general

From Muhammad Usman Khan
Subject Re: Basebackup fails without useful error message
Date
Msg-id CAPnRvGuW-YUPQJ32F3jfQWLjwLtEUp_+ayASk4vRZ008TNgTRw@mail.gmail.com
Whole thread Raw
In response to Basebackup fails without useful error message  (Koen De Groote <kdg.dev@gmail.com>)
List pgsql-general
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 <kdg.dev@gmail.com> 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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Failing GSSAPI TCP when connecting to server
Next
From: Vinícius Abrahão
Date:
Subject: Userland copy of pg_statistic - is there a solution?