This is in the restore.log:
sipx-archive
Restore uses /var/sipxdata/tmp as temporary dir.
version
DROP EXTENSION
ERROR: language "plpgsql" already exists
dump/
dump/profiles/
dump/profiles/userProfile.bson
dump/profiles/fs.files.metadata.json
dump/profiles/fs.chunks.bson
dump/profiles/fs.chunks.metadata.json
dump/profiles/userProfile.metadata.json
dump/profiles/fs.files.bson
MongoDB shell version v3.6.11
connecting to: mongodb://
127.0.0.1:27017/profiles?gssapiServiceName=mongodbImplicit session: session { "id" : UUID("5095592f-5808-42c6-b7f0-0f0d3aa3f1b7") }
MongoDB server version: 3.6.11
2022-02-04T12:16:33.269-0500 E QUERY [thread1] Error: remove needs a query :
DBCollection.prototype._parseRemove@src/mongo/shell/collection.js:357:1
DBCollection.prototype.remove@src/mongo/shell/collection.js:382:18
@(shell eval):1:45
@(shell eval):1:1
2022-02-04T12:16:33.294-0500 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead
2022-02-04T12:16:33.294-0500 building a list of collections to restore from /var/sipxdata/tmp/dump/profiles dir
2022-02-04T12:16:33.298-0500 reading metadata for profiles.userProfile from /var/sipxdata/tmp/dump/profiles/userProfile.metadata.json
2022-02-04T12:16:33.298-0500 restoring profiles.userProfile from /var/sipxdata/tmp/dump/profiles/userProfile.bson
2022-02-04T12:16:33.300-0500 reading metadata for profiles.fs.chunks from /var/sipxdata/tmp/dump/profiles/fs.chunks.metadata.json
2022-02-04T12:16:33.300-0500 restoring profiles.fs.chunks from /var/sipxdata/tmp/dump/profiles/fs.chunks.bson
2022-02-04T12:16:33.302-0500 reading metadata for profiles.fs.files from /var/sipxdata/tmp/dump/profiles/fs.files.metadata.json
2022-02-04T12:16:33.302-0500 restoring profiles.fs.files from /var/sipxdata/tmp/dump/profiles/fs.files.bson
2022-02-04T12:16:33.308-0500 error: multiple errors in bulk operation:
- E11000 duplicate key error collection: profiles.fs.files index: _id_ dup key: { : ObjectId('51847344e4b0112527a5adc6') }
- E11000 duplicate key error collection: profiles.fs.files index: _id_ dup key: { : ObjectId('53343c37e4b0a67dfd78e3a5') }
2022-02-04T12:16:33.309-0500 restoring indexes for collection profiles.fs.files from metadata
2022-02-04T12:16:33.309-0500 finished restoring profiles.fs.files (2 documents)
2022-02-04T12:16:33.312-0500 error: multiple errors in bulk operation:
- E11000 duplicate key error collection: profiles.fs.chunks index: _id_ dup key: { : ObjectId('51847344e4b0112527a5adc7') }
- E11000 duplicate key error collection: profiles.fs.chunks index: _id_ dup key: { : ObjectId('53343c37e4b0a67dfd78e3a6') }
2022-02-04T12:16:33.312-0500 restoring indexes for collection profiles.fs.chunks from metadata
2022-02-04T12:16:33.314-0500 Failed: profiles.fs.chunks: error creating indexes for profiles.fs.chunks: createIndex error: Index with name: files_id_1_n_1 already exists with different options
Failed to restore user profiles database
Create or restore configuration to/from an archive file.
--backup <archive> Restore the specified Configuration archive.
Backup options:
--restore <archive> Restore the specified Configuration archive.
--verbose Restore the specified Configuration archive.
Restore options:
--no-device-files Do not include device uploaded files in backup.
--tmp-dir <tmp-dir> Temporary backup file location
--ipaddress <address> IP Address. Default xxx.
--domain <domain> SIP domain for new system. i.e.
example.org. Default is to keep domain from archive
--fqdn <fqdn of primary machine>
Set FQDN of this primary machine
--dryrun Don't actually restore db, but test the db migration process.
--reset-pin default-pin Blindly reset all pins to given pin.
--reset-password default-password
Blindly reset all user portal passwords. Password is also used for IM and call center.
--crack-pin default-pin When changing the domain and when restoring from backups for versions 4.4.0, attempt to recover original Voicemail PIN by brute force. If unsuccessful, reset users pin. Also, if user does not have an IM password, this pin will be used for that as well.
--crack-passwd default-passwd
When changing the domain and when restoring from backups for versions 4.4.0, attempt to recover original user PIN by brute force. If unsuccessful, reset users pintoken. Also, if user does not have an IM password, this pin will be usedfor that as well.
--crack-pin-len length Maximum length of PIN to attempt. Default is 4. Higher values take exponentially more time.
--no-restart Use this flag if sipxconfig is already stopped and you do not want this script to re-stop or start sipxconfig after it's done.
/usr/bin/sipx-archive:495:in `block in run': RESTORE error: Failed to restore configuration.tar.gz using command sipxconfig-archive --restore /var/sipxdata/tmp/restore/configuration.tar.gz --tmp-dir /var/sipxdata/tmp (RuntimeError)
from /usr/bin/sipx-archive:489:in `each'
from /usr/bin/sipx-archive:489:in `run'
from /usr/bin/sipx-archive:568:in `<main>'
/usr/bin/sipx-archive:203:in `block in run': RESTORE FAILED: Could not complete restore on host xxxx (RuntimeError)
from /usr/bin/sipx-archive:190:in `each'
from /usr/bin/sipx-archive:190:in `run'
from /usr/bin/sipx-archive:568:in `<main>'