Comments (4)
It seems that the migration hasn't been completed or even started, but we need to see the full log of the migration for knowing which is the reason.
from openupgrade.
Oh, interesting. I restored from a container backup to do a fresh attempt, only this time I upgraded to Odoo through the package manager first, and this time I got no errors on the console output of migration script, but am getting the same error when I try to start Odoo with the migrated(?) database. Here is the whole migration log:
cat /var/tmp/openupgrade/migration.log
2014-12-12 01:44:25,697 24913 INFO ? openerp: OpenERP version 8.0
2014-12-12 01:44:25,697 24913 INFO ? openerp: addons paths: ['/home/it/.local/share/Odoo/addons/8.0', u'/var/tmp/openupgrade/8.0/server/openerp/addons', u'/var/tmp/openupgrade/8.0/addons']
2014-12-12 01:44:25,697 24913 INFO ? openerp: database hostname: localhost
2014-12-12 01:44:25,697 24913 INFO ? openerp: database port: 5432
2014-12-12 01:44:25,697 24913 INFO ? openerp: database user: openerp
2014-12-12 01:44:25,913 24913 INFO MYCOMPANY_migrated openerp.modules.loading: loading 1 modules...
2014-12-12 01:44:25,917 24913 ERROR MYCOMPANY_migrated openerp.modules.migration: module base: Unable to load pre-migration file base/migrations/8.0.1.3/pre-migration.py
Traceback (most recent call last):
File "/var/tmp/openupgrade/8.0/server/openerp/modules/migration.py", line 167, in migrate_module
mod = imp.load_module(name, fp, pathname, ('.py', 'r', imp.PY_SOURCE))
File "/var/tmp/openupgrade/8.0/server/openerp/addons/base/migrations/8.0.1.3/pre-migration.py", line 24, in <module>
from openerp.addons.openupgrade_records.lib import apriori
File "/var/tmp/openupgrade/8.0/server/openerp/modules/module.py", line 77, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/__init__.py", line 1, in <module>
import model
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/model/__init__.py", line 2, in <module>
import comparison_config
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/model/comparison_config.py", line 26, in <module>
import openerplib
ImportError: No module named openerplib
2014-12-12 01:44:25,917 24913 CRITICAL MYCOMPANY_migrated openerp.service.server: Failed to initialize database `MYCOMPANY_migrated`.
Traceback (most recent call last):
File "/var/tmp/openupgrade/8.0/server/openerp/service/server.py", line 901, in preload_registries
registry = RegistryManager.new(dbname, update_module=update_module)
File "/var/tmp/openupgrade/8.0/server/openerp/modules/registry.py", line 324, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/var/tmp/openupgrade/8.0/server/openerp/modules/loading.py", line 337, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report, upg_registry=upg_registry)
File "/var/tmp/openupgrade/8.0/server/openerp/modules/loading.py", line 162, in load_module_graph
migrations.migrate_module(package, 'pre')
File "/var/tmp/openupgrade/8.0/server/openerp/modules/migration.py", line 167, in migrate_module
mod = imp.load_module(name, fp, pathname, ('.py', 'r', imp.PY_SOURCE))
File "/var/tmp/openupgrade/8.0/server/openerp/addons/base/migrations/8.0.1.3/pre-migration.py", line 24, in <module>
from openerp.addons.openupgrade_records.lib import apriori
File "/var/tmp/openupgrade/8.0/server/openerp/modules/module.py", line 77, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/__init__.py", line 1, in <module>
import model
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/model/__init__.py", line 2, in <module>
import comparison_config
File "/var/tmp/openupgrade/8.0/server/openerp/addons/openupgrade_records/model/comparison_config.py", line 26, in <module>
import openerplib
ImportError: No module named openerplib
2014-12-12 01:44:25,918 24913 INFO MYCOMPANY_migrated openerp.service.server: Initiating shutdown
2014-12-12 01:44:25,918 24913 INFO MYCOMPANY_migrated openerp.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
Is OpenERP supposed to be upgraded to Odoo before or after the database migration?
from openupgrade.
It appears my problem all boils down to the error
ImportError: No module named openerplib
I am going to start a new issue and close this one as it seems like the first error I got is pretty much generic for a failed db upgrade.
from openupgrade.
For those who end up with the same error - heres the solution:
install the python module openerp-client-lib (1.1.2) with this command:
apt-get install python-pip
pip install openerp-client-lib
from openupgrade.
Related Issues (20)
- account.payment.method.line not connecting when migrating from 14 -> 15 HOT 3
- [16.0]Website Migration, in multilingual custom views
- [15.0] website: Contact Us web page failing to migrate HOT 1
- [16.0][account] minor: aml quantity should be False instead of 1.0 for tax lines and payment term lines in v16 HOT 13
- [16.0] mail: Delete incorrect rows before applying unique constraint HOT 1
- [16.0][account] Missing field and field information for account HOT 20
- Links to documentation on Readme are giving 404 HOT 1
- Migration continue don't run migration scripts HOT 5
- [14.0 -> 16.0] SQL views removed in Odoo HOT 6
- [v15 -> v16 Openupgrade] res_partner_views: Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition
- [14.0] update all multi-company security rules HOT 6
- [12.0] violates not-null constraint decimal.precision HOT 4
- [13.0] wrong rename for account.move.reverse_entry_id HOT 1
- [12] Update 12 to 13 HOT 7
- Is there any config in openupgrade to disable oca install dependency? HOT 4
- [11→12]: psycopg2.ProgrammingError: can't adapt type 'res.company' [stock] HOT 4
- [15→16] sale_purchase: AttributeError: 'ir.model.constraint' object has no attribute '_module_data_uninstall' HOT 2
- [11->12] payment_icons in inherited website model of module website_payment from v11 is unavailable in v12, but used in footer template view HOT 1
- i cannot access to accounting HOT 1
- I am trying to update Odoo bitnami 15.0 and it isn't working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openupgrade.