当前位置:论坛首页 > Linux面板 > 求助

【待反馈】备份mongodb数据库

发表在 Linux面板5 天前 [复制链接] 1 38

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


==========================================================================================
★开始备份[2024-09-05 18:18:28]
==========================================================================================
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[2], sys.argv[3], 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'
9a792e85097bf1b840cd67c28762349.png
使用道具 举报 只看该作者 回复
发表于 4 天前 | 显示全部楼层
您好,您将备份到webdav的改成备份到本地看一下是否还有报错。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表