Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on FreeBSD 13.3 cron executes pgbackrest but config file is not loaded #2347

Open
ferz opened this issue May 12, 2024 · 1 comment
Open

on FreeBSD 13.3 cron executes pgbackrest but config file is not loaded #2347

ferz opened this issue May 12, 2024 · 1 comment
Assignees
Labels

Comments

@ferz
Copy link

ferz commented May 12, 2024

Please provide the following information when submitting an issue (feature requests or general comments can skip this):

  1. pgBackRest version: 2.51

  2. PostgreSQL version: 14

  3. Operating system/version - if you have more than one server (for example, a database server, a repository host server, one or more standbys), please specify each: FreeBSD 13.3

  4. Did you install pgBackRest from source or from a package? From source

  5. Please attach the following as applicable:

    • pgbackrest.conf file(s)
    • postgresql.conf settings applicable to pgBackRest (archive_command, archive_mode, listen_addresses, max_wal_senders, wal_level, port)
    • errors in the postgresql log file before or during the time you experienced the issue
    • log file in /var/log/pgbackrest for the commands run (e.g. /var/log/pgbackrest/mystanza_backup.log)
  6. Describe the issue:

I can backup successfully from shell (tcsh and /bin/sh) from pgbackrest user.
When pgbackrest is executed from pgbackrest cron, it doesn't load config from files located in /usr/local/etc/pgbackrest/conf.d/
Using truss from cron I see pgbackrest to look for pgbackrest.conf only filename in different paths.

@dwsteele dwsteele self-assigned this May 14, 2024
@dwsteele
Copy link
Member

When pgbackrest is executed from pgbackrest cron, it doesn't load config from files located in /usr/local/etc/pgbackrest/conf.d/

So where does it try to load them from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants