Skip to content

Nereid Project : if Connected db is not tryton db , raises error  #132

@aregee

Description

@aregee

If the connected database is not the nereid database , the psycopg2 raises following error :

Traceback (most recent call last):
File "application_staging.py", line 60, in <module>
app.initialise()
File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/Nereid-     2.6.0.8-py2.7.egg/nereid/application.py", line 164, in initialise
self.load_backend()
File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/Nereid-2.6.0.8-py2.7.egg/nereid/application.py", line 220, in load_backend
self._pool.init()
File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/trytond-2.6.9-py2.7.egg/trytond/pool.py", line 134, in init
 lang=lang)
 File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/trytond- 2.6.9-py2.7.egg/trytond/modules/__init__.py", line 378, in load_modules
 cursor.execute("SELECT name FROM ir_module_module " \
 File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/trytond-2.6.9- py2.7.egg/trytond/backend/postgresql/database.py", line 309, in execute
 res = self.cursor.execute(sql)
 File "/Users/aregee/.virtualenvs/office/lib/python2.7/site-packages/newrelic-2.10.0.8/newrelic/hooks/database_dbapi2.py", line 25, in execute
 return self.__wrapped__.execute(sql)
 psycopg2.ProgrammingError: relation "ir_module_module" does not exist
 LINE 1: SELECT name FROM ir_module_module WHERE state IN ('installed... 

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8897218-nereid-project-if-connected-db-is-not-tryton-db-raises-error?utm_campaign=plugin&utm_content=tracker%2F386869&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F386869&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions