Example yaml Config Files missing first line 'storage:"

Description

When trying to load config yaml file according to example in documentation get the following.

Error: unable to set config: unmarshal yaml: yaml: unmarshal errors:
line 1: field type not found in type pbm.Config
line 2: field s3 not found in type pbm.Config

Fix [workaround] is that yaml file line 1 must be as follows.

storage:

Environment

Redhat 7

  1. pbm version
    Version: 1.1.0
    Platform: linux/amd64
    GitCommit: b26a35262f9d21ea8441423687215829be1fdea0
    GitBranch: master
    BuildTime: 2020-01-09_09:13_UTC
    GoVersion: go1.12.9

  1. mongo --version
    Percona Server for MongoDB shell version v4.2.2-3
    git version: 2cdb6e50913583f627acc5de35dc4e04dbfe196f
    OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
    allocator: tcmalloc
    modules: none
    build environment:
    distarch: x86_64
    target_arch: x86_64

Smart Checklist

Activity

Akira Kurogane January 22, 2020 at 11:44 PM

(Documentation fixed in source; Release to site is the next step.)

Akira Kurogane January 22, 2020 at 6:40 AM

Hi Fernando.

I get what you mean now. Instead of the config file examples being like the following:

They should be like the following.

I've created a documentation fix: https://github.com/percona/percona-backup-mongodb/pull/324.

Thanks for your help Fernando, I do appreciate, sorry I missed the last reply from you. I think I missed it in a batch of auto-updates.

Akira

Fernando Guillory January 21, 2020 at 4:29 PM

Hi Akira,

In order to get it to load in v1.1 the "storage" parent/prefix field was necessary in the YAML file. Otherwise, it was reporting the above reported errors.

Regards,
Fernando Guillory

Akira Kurogane January 20, 2020 at 4:09 AM

Hi Fernando.

"storage" was removed as a parent/prefix field in the configuration between v1.0 and v1.1, so if you hit that it seems we do have some out-of-date documentation.

I've found some on https://www.percona.com/doc/percona-backup-mongodb/config.html where the one-line examples are, at the bottom, which we'll fix.

But it sounds as though you saw a different page with an old-style config file. Could you possibly tell me what one that was? If this was Wed or Thu it may have been the day when v1.1 was in the repo but the documentation was still v1.0.

Regards,

Akira

Done

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Smart Checklist

Created January 17, 2020 at 7:30 PM
Updated March 5, 2024 at 7:18 PM
Resolved January 22, 2020 at 11:42 PM