Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

odoo10+postgres10.4备份数据库出现Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner',



  • 环境:ubuntu18+docker17,在database/manager备份数据库,出现如下,真是邪门
    Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpiUgH1y/dump.sql', u'odoo10') error 1

    日志:
    018-06-19 13:18:56,421 1 INFO odoo10 odoo.service.db: DUMP DB: odoo10 format zip
    odoo10_1 | 2018-06-19 13:18:56,661 1 ERROR odoo10 odoo.addons.web.controllers.main: Database.backup
    odoo10_1 | Traceback (most recent call last):
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 687, in backup
    odoo10_1 | dump_stream = odoo.service.db.dump_db(name, None, backup_format)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/service/db.py", line 197, in dump_db
    odoo10_1 | odoo.tools.exec_pg_command(*cmd)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/tools/misc.py", line 124, in exec_pg_command
    odoo10_1 | raise Exception('Postgres subprocess %s error %s' % (args2, rc))
    odoo10_1 | Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpjIyYWu/dump.sql', u'odoo10') error 1
    odoo10_1 | 2018-06-19 13:18:56,720 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:18:56] "POST /web/database/backup HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:19:19,730 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:19:19] "POST /longpolling/poll HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:22:42,435 1 INFO odoo10 odoo.service.db: DUMP DB: odoo10 format zip
    odoo10_1 | 2018-06-19 13:22:42,669 1 ERROR odoo10 odoo.addons.web.controllers.main: Database.backup
    odoo10_1 | Traceback (most recent call last):
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 687, in backup
    odoo10_1 | dump_stream = odoo.service.db.dump_db(name, None, backup_format)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/service/db.py", line 197, in dump_db
    odoo10_1 | odoo.tools.exec_pg_command(*cmd)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/tools/misc.py", line 124, in exec_pg_command
    odoo10_1 | raise Exception('Postgres subprocess %s error %s' % (args2, rc))
    odoo10_1 | Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpMqTBnJ/dump.sql', u'odoo10') error 1
    odoo10_1 | 2018-06-19 13:22:42,730 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:22:42] "POST /web/database/backup HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:23:03,860 1 INFO odoo10 odoo.service.db: DUMP DB: odoo10 format zip
    odoo10_1 | 2018-06-19 13:23:04,100 1 ERROR odoo10 odoo.addons.web.controllers.main: Database.backup
    odoo10_1 | Traceback (most recent call last):
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 687, in backup
    odoo10_1 | dump_stream = odoo.service.db.dump_db(name, None, backup_format)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/service/db.py", line 197, in dump_db
    odoo10_1 | odoo.tools.exec_pg_command(*cmd)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/tools/misc.py", line 124, in exec_pg_command
    odoo10_1 | raise Exception('Postgres subprocess %s error %s' % (args2, rc))
    odoo10_1 | Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpckWKkn/dump.sql', u'odoo10') error 1
    odoo10_1 | 2018-06-19 13:23:04,160 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:04] "POST /web/database/backup HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:23:04,269 1 INFO ? werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:04] "GET /web/static/src/img/favicon.ico HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:23:12,213 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:12] "GET /web/database/ HTTP/1.1" 404 -
    odoo10_1 | 2018-06-19 13:23:12,303 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:12] "GET /favicon.ico HTTP/1.1" 404 -
    odoo10_1 | 2018-06-19 13:23:18,535 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:18] "GET /web/database/manager HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:23:26,743 1 INFO odoo10 odoo.service.db: DUMP DB: odoo10 format zip
    odoo10_1 | 2018-06-19 13:23:26,963 1 ERROR odoo10 odoo.addons.web.controllers.main: Database.backup
    odoo10_1 | Traceback (most recent call last):
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 687, in backup
    odoo10_1 | dump_stream = odoo.service.db.dump_db(name, None, backup_format)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/service/db.py", line 197, in dump_db
    odoo10_1 | odoo.tools.exec_pg_command(*cmd)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/tools/misc.py", line 124, in exec_pg_command
    odoo10_1 | raise Exception('Postgres subprocess %s error %s' % (args2, rc))
    odoo10_1 | Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmp0uRY56/dump.sql', u'odoo10') error 1
    odoo10_1 | 2018-06-19 13:23:27,022 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:23:27] "POST /web/database/backup HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:33:53,871 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:33:53] "GET /web/database/manager HTTP/1.1" 200 -
    odoo10_1 | 2018-06-19 13:34:01,206 1 INFO odoo10 odoo.service.db: DUMP DB: odoo10 format zip
    odoo10_1 | 2018-06-19 13:34:01,466 1 ERROR odoo10 odoo.addons.web.controllers.main: Database.backup
    odoo10_1 | Traceback (most recent call last):
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 687, in backup
    odoo10_1 | dump_stream = odoo.service.db.dump_db(name, None, backup_format)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/service/db.py", line 197, in dump_db
    odoo10_1 | odoo.tools.exec_pg_command(*cmd)
    odoo10_1 | File "/usr/lib/python2.7/dist-packages/odoo/tools/misc.py", line 124, in exec_pg_command
    odoo10_1 | raise Exception('Postgres subprocess %s error %s' % (args2, rc))
    odoo10_1 | Exception: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpiUgH1y/dump.sql', u'odoo10') error 1
    odoo10_1 | 2018-06-19 13:34:01,525 1 INFO odoo10 werkzeug: 192.168.1.13 - - [19/Jun/2018 13:34:01] "POST /web/database/backup HTTP/1.1" 200 -