Uploaded image for project: 'Percona Server for MongoDB'
  1. Percona Server for MongoDB
  2. PSMDB-269

hotbackup still looks for keydb (instead of key.db) when backing up encrypted files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.10-3.0, 4.0.4-1
    • Component/s: None
    • Labels:
      None

      Description

      root@jessie:~# mongo --quiet --eval "db.serverCmdLineOpts().parsed.security.enableEncryption"
      true
      root@jessie:~# mongo --quiet --eval "db.serverCmdLineOpts().parsed.security.encryptionCipherMode"
      AES256-CBC
      

      Backup folder is created in /tmp/backup/

      Trying to start the backup:

      root@jessie:~# mongo admin --eval "$(cat ~/.mongorc.js); db.runCommand({createBackup: 1, backupDir: '/tmp/backup/'})"
      Percona Server for MongoDB shell version v4.0.4-1
      connecting to: mongodb://127.0.0.1:27017/admin
      Implicit session: session { "id" : UUID("d763bd19-428c-45f7-9b70-d5f113ae3ba1") }
      Percona Server for MongoDB server version: v4.0.4-1
      {
              "ok" : 0,
              "errmsg" : "Cannot find source file for backup :WiredTigerLog.0000000003, source path: /var/lib/mongodb/keydb"
      }
      

      Content of the data directory:

      root@jessie:~# ls -lah /var/lib/mongodb/
      total 2.9M
      drwxr-xr-x  5 mongod mongod 4.0K Dec 14 13:31 .
      drwxr-xr-x 37 root   root   4.0K Dec 14 13:04 ..
      -rw-------  1 mongod mongod  16K Dec 14 13:10 collection-0-4340383295641754989.wt
      -rw-------  1 mongod mongod  16K Dec 14 13:10 collection-2-4340383295641754989.wt
      -rw-------  1 mongod mongod 4.0K Dec 14 13:09 collection-4-4340383295641754989.wt
      -rw-------  1 mongod mongod 1.8M Dec 14 13:12 collection-7-4340383295641754989.wt
      drwx------  2 mongod mongod 4.0K Dec 14 13:31 diagnostic.data
      -rw-------  1 mongod mongod  16K Dec 14 13:10 index-1-4340383295641754989.wt
      -rw-------  1 mongod mongod  16K Dec 14 13:10 index-3-4340383295641754989.wt
      -rw-------  1 mongod mongod 4.0K Dec 14 13:14 index-5-4340383295641754989.wt
      -rw-------  1 mongod mongod 4.0K Dec 14 13:10 index-6-4340383295641754989.wt
      -rw-------  1 mongod mongod 916K Dec 14 13:12 index-8-4340383295641754989.wt
      drwx------  2 mongod mongod 4.0K Dec 14 13:31 journal
      drwx------  2 mongod mongod 4.0K Dec 14 13:31 key.db
      -rw-------  1 mongod mongod  32K Dec 14 13:11 _mdb_catalog.wt
      -rw-------  1 mongod mongod    5 Dec 14 13:09 mongod.lock
      -rw-------  1 mongod mongod  32K Dec 14 13:12 sizeStorer.wt
      -rw-------  1 mongod mongod  114 Dec 14 13:09 storage.bson
      -rw-------  1 mongod mongod   45 Dec 14 13:09 WiredTiger
      -rw-------  1 mongod mongod 4.0K Dec 14 13:09 WiredTigerLAS.wt
      -rw-------  1 mongod mongod   21 Dec 14 13:09 WiredTiger.lock
      -rw-------  1 mongod mongod 1.1K Dec 14 13:31 WiredTiger.turtle
      -rw-------  1 mongod mongod  60K Dec 14 13:31 WiredTiger.wt
      

      Installed packages:

      ii  percona-release                0.1-9.jessie                       all          Package to install Percona gpg key and APT repos
      ii  percona-server-mongodb         4.0.4-1.jessie                     amd64        This metapackage will install the mongo shell, import/export tools, other client utilities, server software, default configuration, and init.d scripts.
      ii  percona-server-mongodb-mongos  4.0.4-1.jessie                     amd64        This package contains mongos - the Percona Server for MongoDB sharded cluster query router
      ii  percona-server-mongodb-server  4.0.4-1.jessie                     amd64        This package contains the Percona Server for MongoDB server software, default configuration files and init.d scripts
      ii  percona-server-mongodb-shell   4.0.4-1.jessie                     amd64        This package contains the Percona Server for MongoDB shell
      ii  percona-server-mongodb-tools   4.0.4-1.jessie                     amd64        Mongo tools for high-performance MongoDB fork from Percona
      

      This can be reproduced on all supported distros. Issue started appearing yesterday once the new packages have been pushed.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igor.solodovnikov Igor Solodovnikov
                  Reporter:
                  hrvoje.matijakovic Hrvoje Matijakovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 5 hours, 50 minutes
                    5h 50m