• Resolved codeagency

    (@7grafix)


    I’m trying to connect but it return an error and says the database does not exists, while it does.
    I’m running Odoo v 11.0 enterprise on Odoo.sh.
    Any reason why this is failing?

    Is it not possible to make this work with API instead of using the database login?

    Traceback (most recent call last): File “/home/odoo/src/odoo/odoo/modules/registry.py”, line 59, in __new__ return cls.registries[db_name] File “/home/odoo/src/odoo/odoo/tools/func.py”, line 68, in wrapper return func(self, *args, **kwargs) File “/home/odoo/src/odoo/odoo/tools/lru.py”, line 44, in __getitem__ a = self.d[obj].me KeyError: ‘codeagency’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/home/odoo/src/odoo/odoo/service/wsgi_server.py”, line 124, in wsgi_xmlrpc result = odoo.http.dispatch_rpc(service, method, params) File “/home/odoo/src/odoo/odoo/http.py”, line 115, in dispatch_rpc result = dispatch(method, params) File “/home/odoo/src/odoo/odoo/service/common.py”, line 57, in dispatch return g[exp_method_name](*params) File “/home/odoo/src/odoo/odoo/service/common.py”, line 29, in exp_authenticate res_users = odoo.registry(db)[‘res.users’] File “/home/odoo/src/odoo/odoo/__init__.py”, line 76, in registry return modules.registry.Registry(database_name) File “/home/odoo/src/odoo/odoo/modules/registry.py”, line 61, in __new__ return cls.new(db_name) File “/home/odoo/src/odoo/odoo/modules/registry.py”, line 73, in new registry.init(db_name) File “/home/odoo/src/odoo/odoo/modules/registry.py”, line 141, in init with closing(self.cursor()) as cr: File “/home/odoo/src/odoo/odoo/modules/registry.py”, line 472, in cursor return self._db.cursor() File “/home/odoo/src/odoo/odoo/sql_db.py”, line 634, in cursor return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized) File “/home/odoo/src/odoo/odoo/sql_db.py”, line 178, in __init__ self._cnx = pool.borrow(dsn) File “/home/odoo/src/odoo/odoo/sql_db.py”, line 517, in _locked return fun(self, *args, **kwargs) File “/home/odoo/src/odoo/odoo/sql_db.py”, line 585, in borrow **connection_info) File “/usr/lib/python3/dist-packages/psycopg2/__init__.py”, line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) psycopg2.OperationalError: FATAL: database “codeagency” does not exist

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author coderscom

    (@coderscom)

    Hi,

    It seems issue occurs at Odoo end. Check the following tips and make sure if parameters are correct in your Configuration?

    The server url is the instance’s domain (e.g. https://mycompany.odoo.com), the database name is the name of the instance (e.g. mycompany). The username is the configured user’s login as shown by the Change Password screen.

    Thanks,
    Siva

    Thread Starter codeagency

    (@7grafix)

    Hello Siva,

    Strange, I have those parameters correct.
    Only difference is that I’m not running on a my own server but on Odoo.SH platform.
    Do you know if there might be some difference due to that platform or a known bug or something with Odoo.SH that makes this fail?

    Thread Starter codeagency

    (@7grafix)

    Hello Siva,

    OK, I found the problem. It’s the database name.
    But on Odoo.SH it’s not like you describe it.

    On Odoo.SH, database name is same as branchname + version numbering.
    Example: one4rent-master-7858 / one4rent-staging-7237 / …..

    The only to find it, is by activating developer mode with assets so it shows the DB name in the right top corner.

    I can now connect with my Odoo! 🙂

    Case solved 🙂

    Plugin Author coderscom

    (@coderscom)

    Awesome. Thanks for the update.

    Thread Starter codeagency

    (@7grafix)

    Hello Siva,

    What about my other question I posted in the support?
    I didn’t open a new topic but continued from another one with same problem.
    Here: https://ww.wp.xz.cn/support/topic/no-population/

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘can not authenticate’ is closed to new replies.