跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. 数据库 主从备份

数据库 主从备份

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
2 帖子 1 发布者 4.0k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • L 离线
    L 离线
    llccluf
    写于 最后由 编辑
    #1

    关于postgres数据库的主从备份。有人实现过吗?
    我用pgpool2实现。配置完成后,用psql已经可以登录postgres后台。

    但是用OpenERP还是有错误,psycopg2还是会报错。不知是不是遗漏配置信息的关系。
    先谢谢回复的人拉。


    错误信息如下
    2013-04-20 11:49:28,030 10199 ERROR trunk_demo openerp.sql_db: Connection to the database failed
    Traceback (most recent call last):
      File "/home/scipsita/openerp/trunk/server/openerp/sql_db.py", line 428, in borrow
        result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
      File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 180, in connect
        connection_factory=connection_factory, async=async)
    OperationalError
    2013-04-20 11:49:28,031 10199 ERROR trunk_demo openerp.netsvc:
    Traceback (most recent call last):
      File "/home/scipsita/openerp/trunk/server/openerp/netsvc.py", line 237, in dispatch_rpc
        result = dispatch(method, params)
      File "/home/scipsita/openerp/trunk/server/openerp/service/common.py", line 31, in dispatch
        return fn(*params)
      File "/home/scipsita/openerp/trunk/server/openerp/service/common.py", line 42, in exp_authenticate
        res_users = openerp.registry(db)['res.users']
      File "/home/scipsita/openerp/trunk/server/openerp/init.py", line 61, in registry
        return modules.registry.RegistryManager.get(database_name)
      File "/home/scipsita/openerp/trunk/server/openerp/modules/registry.py", line 192, in get
        update_module)
      File "/home/scipsita/openerp/trunk/server/openerp/modules/registry.py", line 204, in new
        registry = Registry(db_name)
      File "/home/scipsita/openerp/trunk/server/openerp/modules/registry.py", line 76, in init
        cr = self.db.cursor()
      File "/home/scipsita/openerp/trunk/server/openerp/sql_db.py", line 472, in cursor
        return Cursor(self._pool, self.dbname, serialized=serialized)
      File "/home/scipsita/openerp/trunk/server/openerp/sql_db.py", line 178, in init
        self._cnx = pool.borrow(dsn(dbname))
      File "/home/scipsita/openerp/trunk/server/openerp/sql_db.py", line 373, in _locked
        return fun(self, *args, **kwargs)
      File "/home/scipsita/openerp/trunk/server/openerp/sql_db.py", line 428, in borrow
        result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
      File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 180, in connect
        connection_factory=connection_factory, async=async)
    OperationalError

    1 条回复 最后回复
    0

    • 登录

    • 没有帐号? 注册

    • 登录或注册以进行搜索。
    • 第一个帖子
      最后一个帖子
    0
    • 版块
    • 标签
    • 热门
    • 用户
    • 群组