Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

update openerp v7 with bzr

By
toux
on 2/24/14, 10:37 AM 1,924 views

Hello,

i used this commands to update last version of my openerp v7 :

  1. sudo /etc/init.d/openerp-server stop
  2. sudo su openerp
  3. cd /opt/openerp/v7/addons/
  4. bzr pull
  5. cd /opt/openerp/v7/web/
  6. bzr pull

....

It is necessary or not tu use this command after :

./openerp-server -c /etc/openerp-server.conf -u all -d YOURDATABASENAME

I have not used this command after bzr for the moment

thanks

0
a.schenkels
On 2/25/14, 8:21 AM

You need to stop your running OpenERP server and after that start your OpenERP server with the ./openerp-server -c /etc/openerp-server.conf -u all -d brestaim

You get the message that OpenERP is running: [Errno 98] Address already in use

You can use the command ps aux | grep openerp to see if an OpenERP instance is running.

If you need more help just reply.

How i can see if update base is done ?

toux
on 2/25/14, 8:54 AM
0

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 2/24/14, 6:52 PM

Yes, after every update of the source code, you must update the database.

Stop this process after the upgrade completes.

Your final command would be one of:

sudo /etc/init.d/openerp-server start
sudo service openerp-server start
0
toux
On 2/25/14, 4:11 AM

i launch the command but nothing happen, the command does nothing and return seems stuck i launch command as openerp user

update : it seems stuck because i have to start open-erp before launch command

have to launch command as root or openerp user ??

but i have this error as openerp user :

dministrateur@SSGVERP:~$ sudo su openerp
[sudo] password for administrateur:
openerp@SSGVERP:~/v7/server$ ./openerp-server -c /etc/openerp-server.conf -u all -d brestaim
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/openerp/v7/server/openerp/service/wsgi_server.py", line 436, in serve
    httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 399, in make_server
    passthrough_errors, ssl_context)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 331, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

update :

i had stop service openerp and now errors :

administrateur@SSGVERP:/opt/openerp/v7/server$ ./openerp-server -c /etc/openerp-server.conf -u all -d brestaim
2014-02-25 12:50:19,013 6593 INFO ? openerp: OpenERP version 7.0
2014-02-25 12:50:19,013 6593 INFO ? openerp: addons paths: /opt/openerp/v7/server/openerp/addons
2014-02-25 12:50:19,013 6593 INFO ? openerp: database hostname: localhost
2014-02-25 12:50:19,014 6593 INFO ? openerp: database port: 5432
2014-02-25 12:50:19,014 6593 INFO ? openerp: database user: administrateur
2014-02-25 12:50:19,015 6593 WARNING ? openerp.modules.module: module web: module not found
2014-02-25 12:50:19,016 6593 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-02-25 12:50:19,016 6593 CRITICAL ? openerp.modules.module: No module named web
2014-02-25 12:50:19,016 6593 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/v7/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/v7/server/openerp/modules/module.py", line 132, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web
2014-02-25 12:50:19,030 6593 WARNING ? openerp.modules.module: module web_kanban: module not found
2014-02-25 12:50:19,030 6593 CRITICAL ? openerp.modules.module: Couldn't load module web_kanban
2014-02-25 12:50:19,030 6593 CRITICAL ? openerp.modules.module: No module named web_kanban
2014-02-25 12:50:19,030 6593 ERROR ? openerp.service: Failed to load server-wide module `web_kanban`.
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/v7/server/openerp/modules/module.py", line 405, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/opt/openerp/v7/server/openerp/modules/module.py", line 132, in load_module
    f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web_kanban
2014-02-25 12:50:19,036 6593 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-02-25 12:50:19,041 6593 ERROR ? openerp.sql_db: Connection to the database failed
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/sql_db.py", line 440, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
OperationalError: FATAL:  role "administrateur" does not exist

2014-02-25 12:50:19,046 6593 ERROR brestaim openerp: Failed to initialize database `brestaim`.
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/cli/server.py", line 97, in preload_registry
    db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
  File "/opt/openerp/v7/server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/opt/openerp/v7/server/openerp/modules/registry.py", line 203, in get
    update_module)
  File "/opt/openerp/v7/server/openerp/modules/registry.py", line 219, in new
    registry = Registry(db_name)
  File "/opt/openerp/v7/server/openerp/modules/registry.py", line 76, in __init__
    cr = self.db.cursor()
  File "/opt/openerp/v7/server/openerp/sql_db.py", line 484, in cursor
    return Cursor(self._pool, self.dbname, serialized=serialized)
  File "/opt/openerp/v7/server/openerp/sql_db.py", line 182, in __init__
    self._cnx = pool.borrow(dsn(dbname))
  File "/opt/openerp/v7/server/openerp/sql_db.py", line 377, in _locked
    return fun(self, *args, **kwargs)
  File "/opt/openerp/v7/server/openerp/sql_db.py", line 440, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
OperationalError: FATAL:  role "administrateur" does not exist

2014-02-25 12:50:19,077 6593 INFO brestaim openerp: OpenERP server is running, waiting for connections...

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/24/14, 10:37 AM
Seen: 1924 times
Last updated: 3/16/15, 8:10 AM