This question has been flagged
4 Replies
13755 Views

I've installed Odoo 9.0 Community version and cannot create the first database. Does anyone know what to do, should i reinstall again?

Odoo Server Error


Traceback (most recent call last):
  File "/odoo/odoo-server/openerp/http.py", line 546, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/openerp/http.py", line 583, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/openerp/http.py", line 320, in _call_function
    return self.endpoint(*args, **kwargs)
  File "/odoo/odoo-server/openerp/http.py", line 812, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/openerp/http.py", line 412, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 703, in create
    params['create_admin_pwd'])
  File "/odoo/odoo-server/openerp/http.py", line 888, in proxy_method
    result = dispatch_rpc(self.service_name, method, args)
  File "/odoo/odoo-server/openerp/http.py", line 115, in dispatch_rpc
    result = dispatch(method, params)
  File "/odoo/odoo-server/openerp/service/db.py", line 65, in dispatch
    security.check_super(passwd)
  File "/odoo/odoo-server/openerp/service/security.py", line 32, in check_super
    raise openerp.exceptions.AccessDenied()
AccessDenied: Access denied.
Avatar
Discard
Best Answer

Check if the Postgresql user you are trying to connect through, has access to database creation,  in order to check login to the default Postgres database and select access rights of the user from pg_roles, if it does not have proper access rights try to assign it.i.e; 

ALTER ROLE  "your role name" WITH createdb;

Then try to create a database from Odoo interface.


Avatar
Discard
Best Answer

Dear ..

Try to add permission to Odoo folder

sudo chmod 777 -R /odoo

.... /odoo         refer to odoo directory path
restart the odoo service and check again.

I hope I helped you...

Avatar
Discard

That is for sure not recommendable from a security point of view.

Yes, can change to 755 only owner can write