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.

1

Odoo demo installation error

By
Wayne Motycka
on 8/27/15, 1:01 PM 839 views

I'm trying to install odoo from a git clone of the HEAD and upon trying to create a default database that also contains the demonstration data but it fails with a "Parse Error Missing Error" which has confounded me.  Furthermore, the error isn't leading me to what is missing.  Any recommendations on how I should be debugging this?  I've attached the error below.

Thanks

Wayne

------------------------- Error Message displayed -----------------------------

Odoo Server Error

Traceback (most recent call last):

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 537, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 574, in dispatch

result = self._call_function(**self.params)

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 311, in _call_function

return self.endpoint(*args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 803, in __call__

return self.method(*args, **kw)

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/home/wmotycka/dev3/odoo/addons/web/controllers/main.py", line 705, in create

request.session.authenticate(params['db_name'], 'admin', params['create_admin_pwd'])

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 956, in authenticate

uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])

File "/home/wmotycka/dev3/odoo/openerp/http.py", line 115, in dispatch_rpc

result = dispatch(method, params)

File "/home/wmotycka/dev3/odoo/openerp/service/common.py", line 26, in dispatch

return fn(*params)

File "/home/wmotycka/dev3/odoo/openerp/service/common.py", line 37, in exp_authenticate

res_users = openerp.registry(db)['res.users']

File "/home/wmotycka/dev3/odoo/openerp/__init__.py", line 68, in registry

return modules.registry.RegistryManager.get(database_name)

File "/home/wmotycka/dev3/odoo/openerp/modules/registry.py", line 339, in get

update_module)

File "/home/wmotycka/dev3/odoo/openerp/modules/registry.py", line 370, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/home/wmotycka/dev3/odoo/openerp/modules/loading.py", line 297, in load_modules

loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)

File "/home/wmotycka/dev3/odoo/openerp/modules/loading.py", line 176, in load_module_graph

_load_data(cr, module_name, idref, mode, kind='data')

File "/home/wmotycka/dev3/odoo/openerp/modules/loading.py", line 118, in _load_data

tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)

File "/home/wmotycka/dev3/odoo/openerp/tools/convert.py", line 901, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

File "/home/wmotycka/dev3/odoo/openerp/tools/convert.py", line 987, in convert_xml_import

obj.parse(doc.getroot(), mode=mode)

File "/home/wmotycka/dev3/odoo/openerp/tools/convert.py", line 853, in parse

self._tags[rec.tag](self.cr, rec, n, mode=mode)

File "/home/wmotycka/dev3/odoo/openerp/tools/convert.py", line 763, in _tag_record

id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/addons/base/ir/ir_model.py", line 1077, in _update

res_id = model_obj.create(cr, uid, values, context=context)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/addons/base/ir/ir_ui_view.py", line 264, in create

context=context)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 336, in old_api

result = method(recs, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/models.py", line 4078, in create

record = self.browse(self._create(old_vals))

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 463, in new_api

result = method(self._model, cr, uid, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/models.py", line 4280, in _create

self.pool[model_name]._store_set_values(cr, user, ids, fields2, context)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/models.py", line 4390, in _store_set_values

result = self._columns[val[0]].get(cr, self, ids, val, SUPERUSER_ID, context=context)

File "/home/wmotycka/dev3/odoo/openerp/osv/fields.py", line 1467, in get

result = self._fnct(obj, cr, uid, ids, name, self._arg, context)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/api.py", line 363, in old_api

result = method(recs, *args, **kwargs)

File "/home/wmotycka/dev3/odoo/openerp/addons/base/res/res_partner.py", line 191, in _get_image

return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)

File "/home/wmotycka/dev3/odoo/openerp/addons/base/res/res_partner.py", line 191, in <genexpr>

return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)

File "/home/wmotycka/dev3/odoo/openerp/fields.py", line 823, in __get__

return record._cache[self]

File "/home/wmotycka/dev3/odoo/openerp/models.py", line 5947, in __getitem__

return value.get() if isinstance(value, SpecialValue) else value

File "/home/wmotycka/dev3/odoo/openerp/fields.py", line 55, in get

raise self.exception

ParseError: "MissingError

One of the documents you are trying to access has been deleted, please try again after refreshing." while parsing /home/wmotycka/dev3/odoo/openerp/addons/base/base_data.xml:4, near

<record id="view_menu" model="ir.ui.view">

<field name="name">ir.ui.menu.tree</field>

<field name="model">ir.ui.menu</field>

<field name="arch" type="xml">

<tree string="Menu" toolbar="1">

<field icon="icon" name="name"/>

</tree>

</field>

<field name="field_parent">child_id</field>

</record>

can you pull and retry ? If you have the problem again, give us your command line ...

Jérémy Kersten (jke)
on 8/28/15, 4:03 AM

I have same error. here is my command line: python2.7 ~/odoo/odoo.py --addons-path=~/odoo/addons,~/workspace/vertical-construction

OdooTec, Hesham ELMAHDY
on 9/10/15, 4:28 PM
1
Gael Rabier
On 8/29/15, 8:57 AM

I am experiencing exactly the same issue on v8.0.

I pulled right before trying.

Steps:

  • run a project inside my IDE (plain vanilla), go to localhost:8069/web/database/selector

  • create a new database with demo data

Error:

ParseError: "MissingError

One of the documents you are trying to access has been deleted, please try again after refreshing." while parsing /Users/gaelrabier/xxxxx/Projects/xxx/parts/odoo/openerp/addons/base/base_data.xml:4, near

<record id="view_menu" model="ir.ui.view">

<field name="name">ir.ui.menu.tree</field>

<field name="model">ir.ui.menu</field>

<field name="arch" type="xml">

<tree string="Menu" toolbar="1">

<field icon="icon" name="name"/>

</tree>

</field>

<field name="field_parent">child_id</field>

</record>

1
Wayne Motycka
On 9/9/15, 1:04 PM

A brief continuation of this thread, I did try a re-clone of the odoo repo from github with no change to the above erroneous behavior.  What finally *did* change behavior was to move the entire project from ~/dev to /opt/odoo along with the ancillary modifications to the config files to support this installation.  My suspicion is that there is an undocumented requirement on the installation directory somewhere within the rubric of python packages making up odoo.  I have found no successful method to install odoo in a local/development directory.

0
Hesham ELMAHDY
On 9/10/15, 4:28 PM

i have the same problem..

here is my command line to start db:

python2.7 ~/odoo/odoo.py --addons-path=~/odoo/addons,~/workspace/vertical-construction

I had a problem recently where the tilde wasn't working correctly when used in a shell argument (the shell doesn't like to expand it like it would a typical variable), Have you tried using absolute paths instead when you specify the addons-path? That may help in your case. I've had some limited success using the script that comes from:wget https://raw.githubusercontent.com/lukebranch/openerp-install-scripts/master/odoo-saas4/ubuntu-14-04/odoo_install.sh With some modification to force it to install into my directory tree. Using this script gave me a local (not in /opt) copy of the server that starts, with database password issues, but I've got multiple python version problems also, which I hope you've managed to avoid.

Wayne Motycka
on 9/10/15, 4:55 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

2 follower(s)

Stats

Asked: 8/27/15, 1:01 PM
Seen: 839 times
Last updated: 9/10/15, 4:28 PM