宝塔用户_fcqcal 发表于 2024-9-5 18:26:10

【待反馈】备份mongodb数据库

面板、插件版本:9.1.0
系统版本:系统:Ubuntu 20
问题描述:备份mongodb数据库失败
相关截图(日志、错误):

==========================================================================================
★开始备份
==========================================================================================
Traceback (most recent call last):
File "class/databaseModel/mongodbModel.py", line 34, in <module>
    import pymongo
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/__init__.py", line 87, in <module>
    from pymongo.collection import ReturnDocument
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/collection.py", line 29, in <module>
    from pymongo import (common,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/common.py", line 35, in <module>
    from pymongo.ssl_support import (validate_cert_reqs,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/ssl_support.py", line 27, in <module>
    import pymongo.pyopenssl_context as _ssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/pyopenssl_context.py", line 27, in <module>
    from OpenSSL import SSL as _SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 34, in <module>
    from OpenSSL.crypto import (
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 950, in <module>
    name="X509Extension",
TypeError: deprecated() got an unexpected keyword argument 'name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/script/backup.py", line 58, in <module>
    backup.backupDatabase(sys.argv, sys.argv, echo_id)
File "/www/server/panel/script/backup.py", line 23, in backupDatabase
    self.backup_database(name, save=count, echo_id=echo_id)
File "class/panelBackup.py", line 845, in backup_database
    status, msg = func_backup_database(database, args)
File "class/panelBackup.py", line 1133, in mongodb_backup_database
    from databaseModel.mongodbModel import panelMongoDB
File "class/databaseModel/mongodbModel.py", line 38, in <module>
    import pymongo
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/__init__.py", line 87, in <module>
    from pymongo.collection import ReturnDocument
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/collection.py", line 29, in <module>
    from pymongo import (common,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/common.py", line 35, in <module>
    from pymongo.ssl_support import (validate_cert_reqs,
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/ssl_support.py", line 27, in <module>
    import pymongo.pyopenssl_context as _ssl
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pymongo/pyopenssl_context.py", line 27, in <module>
    from OpenSSL import SSL as _SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/SSL.py", line 34, in <module>
    from OpenSSL.crypto import (
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 950, in <module>
    name="X509Extension",
TypeError: deprecated() got an unexpected keyword argument 'name'
https://www.bt.cn/bbs/forum.php?mod=image&aid=182192&size=300x300&key=32a7411364130001&nocache=yes&type=fixnone

运维技术阿闯 发表于 2024-9-6 09:13:56

您好,您将备份到webdav的改成备份到本地看一下是否还有报错。
页: [1]
查看完整版本: 【待反馈】备份mongodb数据库