This question has been flagged

Hello, 
When I try to restored the backup database using "Database Manager" it shows error like this "Could not restore the database", So can anyone help me? I'm using OpenERP v8.
Thank You.

Avatar
Discard

Hello Madura. Did the backup came from a different installation than the one where you tried to restore the backup? If yes, can you pleas check what is the version referenced when you click "About" under your user name in the upper right corner for both installations?

Best Answer

Madura,

I think your database size has gone big . Try these commands in terminal

For Restore   DB=new_database_name && createdb $DB && psql -d $DB < backup_database

For Backup   pg_dump --cluster 9.1/main --format=c old_database_name > new_database_name

Thanks

Avatar
Discard
Best Answer

I just had the same issue, and it was, at least in my case, something very silly: I restored the database a second time, with the same name. The only thing is that after the first time, the information was not updated, that is, the new database didn't appear in other options, like the Drop, or the duplicate functionality. Only when I hit Refresh and went back to login, I could see the new DB in the list of options.

Avatar
Discard
Best Answer

I have similar problem with OpenERP 6.1. I don't know the problem. But when I want to restore database, I use postgresql client, like pgAdmin III, which is quite straight forward. Sometimes database dump in binary is also problematic, in this case I re-dump the database in SQL and then restore it.

Avatar
Discard
Author

Hi Ben Bernard, Thankx for the help, the way you tried, was it worked sucessfully?

Best Answer

Hi Madura,

I see you use the tag openerp7; so if you try to restore V7 database in V8 you will get this error.

Or if you try to restaure openerp8 database in odoo8 you'll get thus the same error.

 

Avatar
Discard
Author

Hi Koffi KPONOUGLO, Thank You for the help. as you told , The backup database I have which is from OpenERP v8 and planning to restore it in Odoo8, So any other way to do this ? Thank You.

@Madura: OpenERP v8 and Odoo v8 is the same thing. Which exactly branch from github is used for the installation where the backup came from? Which exactly branch from github is used for the installation where the backup will be restored ?

@Rodopoulos : OpenERP V8 and Odoo v8 are not the same thing. Database structure is not the same.

@Koffi: That seems strange to me. I thought that after the previous version of OpenERP V7, OpenERP V8 would normally come out but in the meanwhile OpenERP was renamed to Odoo. So, I thought that OpenERP V8 is actually Odoo V8 which currently has status RC1 and can be found here: https://github.com/odoo/odoo/tree/8.0 . If what you say is true, where can I find the code for OpenERP V8 and what are the differences that cause a different database structure?

@Rodopoulos : It is not strange it is normal. We are not talking about name OpenERP or name Odoo. We are talking about their database structure. I could say odoo v8 is a "new realise of openerp v8". all actual link i could propose you are updated so i can't give you a good link but if you want give me your email i can send you openerp8 et odoo 8 source code and you wil try to restore bdd between.

@Koffi:OpenERP V7 existed but I've never heard of OpenERP V8. Where did you find it ? If it is not available now, when was it and where (if you have even a broken link, please send it) ? Do you currently have a running installation of OpenERP V8 ? If yes, what is the version mentioned when you click about.

@Rodopoulos : Yes i have a running installation of OpenERP Version 8.0dev-20140416-230101. Search on the forum you will see i right. I have the code i am ok to send it to you.

@Koffi: Thanks for the info. I finally found Version 8.0dev-20140416-230101 among other nightly builds of trunk here: http://nightly.openerp.com/trunk/nightly/src/ I think that this version is actually an Odoo V8 nightly build when it was still at dev status Alpha and just before changing references from OpenERP to Odoo. You can see the /openerp/release.py file at about that point of history in github here: https://github.com/odoo/odoo/blob/b2fc19045b5a4e337c62757679dd9761043badb8/openerp/release.py#L37 So, ok, the difference is not the name as you said too. The difference is the actual version/build/development status of the two installations.