I made a backup of my production server and restored it on my test server.
When I started the database on my test server there was a long list of errors ending with:
File "/var/packages/OpenERP6.1/target/openerp/addons/base/ir/ir_model.py", line 509, in check
if self.pool.get(model_name).is_transient():
AttributeError: 'NoneType' object has no attribute 'is_transient'
- Note 1: Restore on production server give no errors.
- Note 2: The restore is functioning on the test server, but I think it only need time to have this in trouble.
- Note 3: In the settings menu the menu entry modules is missing.
- Note 4: Production server uses python 2.7.2-006, v6.1.1-011. For the testserver these are Python 2.7.3-011 and v6.1.1-012.
I think the cause is there are some differences in installed modules. The difference is sure because testserver is a fresh installation and production server has some additionals. I have well documented them.
Why this question?
It is a test in how to trouble shoot restore problems in future critic situations like hardware failure. And I think the result is important for the community.
If the differences in modules is the cause please confirm.
My question is now:
How effectively trouble shoot in these situations this problem?
What are the builds (or revisions of each branch) of OpenERP and versions of Postgres on each server?
Thanks for your comment! In Note 4 are the numbers of the installers that I used for my Synology servers. It are prepared packages for their servers. I will try to get the answers from them or do you think I can see it somewhere in the coding?
You should have exact the same versions in Prod, Test and Dev. Otherwise you will never know whether a tested module also runs in production without any problems.
Thanks Brueckl. This is the other reasons I want to test this. If I have the test server up and running, I am able to migrate the software on the production server without risk ;-) .