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

How to update a V8.0 installation from Github?

By
Bernhard Krenn
on 8/30/14, 2:15 PM 2,824 views

Hi @ all!

I used André Schenkels ODOO v8 install script (https://github.com/aschenkels-ictstudio/openerp-install-scripts/blob/master/odoo-v8/ubuntu-14-04/odoo_install.sh) to install Odoo on the server.

Is there any option to update or patch the installation from Github?

I am a complete newby to Odoo and Github.

Many thanks in advance,

Greetings from Vienna

Bernhard

3
Franz Palfrader
On 8/30/14, 2:23 PM

You can update your Odoo from Odoo-Git. Go to your Odoo folder (e.g. /opt/odoo/your_server_path) and type: git pull origin 8.0
Then restart the server with /etc/init.d/odoo-server start or stop or restart

Ich rate dir sobald wie möglich GIT/Github/Bitbucket gut zu lernen.

Servus

Vielen Dank, versuche ich gleich mal!

Bernhard Krenn
on 8/30/14, 2:29 PM
0
Sebastian Wrona
On 9/29/14, 11:41 AM

Hello Franz,

Thanks for you answer. I followed your instructions and Odoo upgrade from version 8.0RC1 to 8.0 went smoothly, but… databases made under RC1 version of Odoo doesn’t work with the final stable version of Odoo. When I choose a database created in 8.0 RC1 version I get an ‘Intrnal Server Error’ page. Only new database made in 8.0 version works fine. In the Odoo log file can’t read any specific solution… Any idea how to use these databases in the final 8.0 Odoo version?
Please help.  
Sebastian

Below some data according this Error:


2014-09-29 15:34:33,699 550 INFO hadron_one werkzeug: 89.76.132.187 - - [29/Sep/2014 15:34:33] "GET /web/login?redirect=http%3A%2F%2Fhadron.eu.com%2Fweb%3Fdb%3Dhadron_one HTTP/$
2014-09-29 15:34:33,824 550 ERROR hadron_one werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/server.py", line 280, in app
    return self.app(e, s)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1214, in __call__
    return self.dispatch(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1188, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1360, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/opt/odoo/odoo-server/openerp/http.py", line 1295, in get_response
    result = request.registry['ir.http']._handle_exception(e)
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 194, in _handle_exception
    attach = self._serve_attachment()
  File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 168, in _serve_attachment
    attach = self.pool['ir.attachment'].search_read(request.cr, openerp.SUPERUSER_ID, domain, ['__last_update', 'datas', 'mimetype'], context=request.context)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/models.py", line 5026, in search_read
    record_ids = self.search(cr, uid, domain or [], offset=offset, limit=limit, order=order, context=context)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/addons/calendar/calendar.py", line 1724, in search
return super(ir_attachment, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/addons/document/document.py", line 87, in search
    ids = super(document_file, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=False)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/models.py", line 1691, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_attachment.py", line 253, in _search
    access_rights_uid=access_rights_uid)
  File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/models.py", line 4556, in _search
    cr.execute(query_str, where_clause_params)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
InternalError: current transaction is aborted, commands ignored until end of transaction block

 

After de update from github, please do the following: (assuming it's linux based) Stop de odoo service ./odoo-server -d name of te database -u all. Watch the console for errors/warnings. Hit ctrl-c Resart de odoo services Hopefully it solves your problem, The command will try to make sure (upgrade) your current database which is 8.0rc1 to the 8.0 version.

Martin Temmink
on 9/29/14, 5:07 PM

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

1 follower(s)

Stats

Asked: 8/30/14, 2:15 PM
Seen: 2824 times
Last updated: 3/16/15, 8:10 AM