Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5327 มุมมอง

when i use http://localhost:8069/web/database/manager and want to backup the database,an error happened like this

2016-01-27 15:44:41,303 76936 ERROR ? openerp.addons.web.controllers.main: Database.backup

Traceback (most recent call last):

  File "D:\git\odoo9\addons\web\controllers\main.py", line 693, in backup

    ('Content-Disposition', content_disposition(filename)),

  File "D:\git\odoo9\addons\web\controllers\main.py", line 422, in content_disposition

    return request.registry['ir.http'].content_disposition(filename)

TypeError: 'NoneType' object has no attribute '__getitem__'

2016-01-27 15:44:41,839 76936 INFO ? werkzeug: 127.0.0.1 - - [27/Jan/2016 15:44:41] "POST /web/database/backup HTTP/1.1" 200 -

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Did you get it fixed?

I also had this problem. 
I fixed it by first logging in as admin, then going to /web/database/manager and doing the backup.

Can't say I've had this problem before, so I don't know the reason for suddenly having to log in.

อวตาร
ละทิ้ง

Thanks, I fixed it.

Regards,

FTK

คำตอบที่ดีที่สุด

Also you can backup database from terminal by following commands :

-> sudo su postgres

-> psql -l     (  it will display database list )

-> pg_dump database_name > /tmp/backup_database.sql


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
9
ก.ค. 25
64866
1
ธ.ค. 24
6044
3
ส.ค. 24
6897
how to know the odoo master password? แก้ไขแล้ว
4
ก.ค. 24
41205
how to backup ? แก้ไขแล้ว
9
ก.ค. 24
98287