Skip to content

Plan not being loaded #161

@GregoryWullimann

Description

@GregoryWullimann

I can't make MGOB using Docker. The on-demand backup works, while everything else doesn't.

With <ip>:8090/status, I get []
With <ip>:8090/status/mongo-backup, I get "Plan not found"
With curl -X POST <ip>:8090/backup/mongo-backup it correctly triggers a backup and the backup is correctly stored in S3.

And no backups are created according to the scheduler.

The file exist in the Docker container in /config so the volumes are correct.

volumes:
  - ./mgob-config:/config:ro
  - ./mgob-storage:/storage
  - ./mgob-tmp:/tmp
  - ./mgob-data:/data

My mongo-backup.yml in ./mgob-config

scheduler:
    cron: '*/10 * * * *' 
    retention: 14
    timeout: 60
target:
    uri: 'mongodb://root:<pasw>@mongodb:27017/?authSource=admin'
s3:
    bucket: 'my-bucket'
    region: 'us-east-1'
    url: 'https://s3.amazonaws.com/'
    accessKey: <KEY>
    secretKey: <KEY>
    acl: 'private'
    api: 'S3v4'

I would expect that in the logs there is a message that the config has been loaded, but there isn't.

time="2025-04-25T18:43:04Z" level=info msg="mgob 2.0.28"
time="2025-04-25T18:43:04Z" level=info msg="starting with config: &{LogLevel:info JSONLog:false Host: Port:8090 ConfigPath:/config StoragePath:/storage TmpPath:/tmp DataPath:/data Version:2.0.28 UseAwsCli:false HasGpg:false}"
time="2025-04-25T18:43:04Z" level=info msg="mongodump version: 100.11.0 git version: alpine Go version: go1.22.8    os: linux    arch: amd64    compiler: gc "
time="2025-04-25T18:43:04Z" level=info msg="mc version RELEASE.2025-02-08T19-14-21Z (commit-id=bd925c01a1ccab367993f20c251b7bae9d22f8a5) Runtime: go1.23.6 linux/amd64 Copyright (c) 2015-2025 MinIO, Inc. License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html> "
time="2025-04-25T18:43:04Z" level=info msg="aws-cli/1.29.44 Python/3.11.11 Linux/6.8.0-57-generic botocore/1.31.44 "
time="2025-04-25T18:43:04Z" level=info msg="gpg (GnuPG) 2.4.4 libgcrypt 1.10.2 Copyright (C) 2024 g10 Code GmbH License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Home: /root/.gnupg Supported algorithms: Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,         CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 "
time="2025-04-25T18:43:04Z" level=info msg="Google Cloud SDK 499.0.0 bq 2.1.9 bundled-python3-unix 3.11.9 core 2024.10.25 gcloud-crc32c 1.0.0 gsutil 5.31 "
time="2025-04-25T18:43:04Z" level=info msg="WARNING: You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade' azure-cli                         2.67.0 * "
time="2025-04-25T18:43:04Z" level=info msg="rclone v1.69.0 "
time="2025-04-25T18:43:04Z" level=info msg="Starting HTTP server on port 8090"
time="2025-04-25T18:43:44Z" level=info msg="On demand backup started" plan=mongo-backup
time="2025-04-25T18:51:33Z" level=info msg="new dump" archive=/tmp/mongo-backup-1745606624.gz err="<nil>" mlog=/tmp/mongo-backup-1745606624.log plan=mongo-backup
time="2025-04-25T18:51:34Z" level=info msg="Local backup finished filename:`/tmp/mongo-backup-1745606624.gz`, filepath:`/storage/mongo-backup/mongo-backup-1745606624.gz`, Duration: 1.351481834s" plan=mongo-backup
time="2025-04-25T18:52:34Z" level=info msg="S3 upload finished " plan=mongo-backup
time="2025-04-25T18:52:34Z" level=info msg="Clean up temp finished Temp folder cleanup finished, `/tmp/mongo-backup-1745606624.gz` is removed." plan=mongo-backup
time="2025-04-25T18:52:34Z" level=info msg="On demand backup finished in 8m50.230560569s archive mongo-backup-1745606624.gz size 4.8 GB" plan=mongo-backup


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions