[Trunk/6.1] restore database gives a error: OperationalError: FATAL: database does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP's Framework R&D |
Bug Description
saved and tried to restore a database .. ( PostgreSQL 9.1.2 )
save seems ok but restore is broke.
here is the server output:
2012-03-01 15:17:09,909 4345 INFO ? openerp: OpenERP version 6.1
2012-03-01 15:17:09,909 4345 INFO ? openerp: addons paths: /home/richard/
2012-03-01 15:17:09,909 4345 INFO ? openerp: database hostname: localhost
2012-03-01 15:17:09,909 4345 INFO ? openerp: database port: 5432
2012-03-01 15:17:09,910 4345 INFO ? openerp: database user: richard
2012-03-01 15:17:09,910 4345 INFO ? openerp.
2012-03-01 15:17:09,911 4345 INFO ? openerp.netsvc: Starting 1 services
2012-03-01 15:17:09,943 4345 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
2012-03-01 15:17:10,258 4345 INFO ? openerp.addons.web: embedded mode
2012-03-01 15:17:10,982 4345 INFO ? openerp: OpenERP server is running, waiting for connections...
2012-03-01 15:17:25,398 4345 INFO ? werkzeug: 127.0.0.1 - - [01/Mar/2012 15:17:25] "GET /web/static/
2012-03-01 15:17:25,809 4345 WARNING nouveau openerp.sql_db: __nonzero__() is deprecated. (It is too expensive to test a connection.)
2012-03-01 15:17:25,816 4345 ERROR nouveau openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
File "/home/
result = psycopg2.
File "/usr/lib/
connection_
OperationalError: FATAL: database "nouveau" does not exist
pg_restore: [archiver] WARNING: invalid creation date in header
pg_restore: [archiver] entry ID -1297435727 out of range -- perhaps a corrupt TOC
2012-03-01 15:17:26,489 4345 ERROR template1 openerp.netsvc: 32
Pipe cassé
2012-03-01 15:17:26,526 4345 INFO template1 werkzeug: 127.0.0.1 - - [01/Mar/2012 15:17:26] "POST /web/database/
2012-03-01 15:17:26,532 4345 ERROR template1 werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/
execute(app)
File "/usr/lib/
application
File "/home/
result = handler(environ, start_response)
File "/home/
return self.dispatch(
File "/usr/lib/
return self.app(environ, start_response)
File "/home/
response.
File "/usr/lib/
self.
File "/home/
yield request.session
File "/home/
result = handler( request, self.config)
File "/home/
return HttpRequest(
File "/home/
_logger.
TypeError: object of type 'NoneType' has no len()
Changed in openobject-server: | |
status: | New → Triaged |
above is with the web client, here is the output from the gtk client (deleting the partially created db first)
2012-03-01 15:24:00,576 4345 INFO ? openerp.sql_db: ConnectionPool( used=0/ count=0/ max=64) : Close all connections to 'user=richard dbname=nouveau' service. web_services: DROP DB: nouveau richard/ src/openerp/ server/ 6.1/openerp/ sql_db. py", line 421, in borrow connect( dsn=dsn, connection_ factory= PsycoConnection ) python2. 6/site- packages/ psycopg2/ __init_ _.py", line 179, in connect factory= connection_ factory, async=async)
2012-03-01 15:24:00,701 4345 INFO template1 openerp.
2012-03-01 15:24:14,785 4345 WARNING nouveau openerp.sql_db: __nonzero__() is deprecated. (It is too expensive to test a connection.)
2012-03-01 15:24:14,793 4345 ERROR nouveau openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
File "/home/
result = psycopg2.
File "/usr/lib/
connection_
OperationalError: FATAL: database "nouveau" does not exist
pg_restore: [archiver] WARNING: invalid creation date in header
pg_restore: [archiver] entry ID -1297435727 out of range -- perhaps a corrupt TOC
2012-03-01 15:24:15,345 4345 ERROR template1 openerp.netsvc: 32
Pipe cassé