← Back to team overview

openerp-india team mailing list archive

[Bug 1121974] [NEW] OpenERP 7.0 will not use different database server than "localhost"

 

Public bug reported:

On linux machines, OpenERP 7.0 does not use the database configuration
set in the configuration file.

In the configuration file ( /etc/openerp-server.conf) you can state db_host.
But this setting is not used by the server.

By changing /usr/lib/python2.6/site-packages/openerp-7.0_20130211_002141-py2.6.egg/openerp/tools/config.py
I was able to use a different database server than "localhost"

In the file mentioned above there is a section:

        if self.options['db_password']:
            if sys.platform == 'win32' and not self.options['db_host']:
                self.options['db_host'] = 'localhost'
            #if self.options['db_host']:
            #    self._generate_pgpassfile()
        self.options['db_host'] = '192.168.122.73'

        if opt.save:
            self.save()

I added the line "self.options['db_host'] = '192.168.122.73'" so it will
use that IP address as database server.

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: 7.0 database different localhost machine openerp

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1121974

Title:
  OpenERP 7.0 will not use different database server than "localhost"

Status in OpenERP Server:
  New

Bug description:
  On linux machines, OpenERP 7.0 does not use the database configuration
  set in the configuration file.

  In the configuration file ( /etc/openerp-server.conf) you can state db_host.
  But this setting is not used by the server.

  By changing /usr/lib/python2.6/site-packages/openerp-7.0_20130211_002141-py2.6.egg/openerp/tools/config.py
  I was able to use a different database server than "localhost"

  In the file mentioned above there is a section:

          if self.options['db_password']:
              if sys.platform == 'win32' and not self.options['db_host']:
                  self.options['db_host'] = 'localhost'
              #if self.options['db_host']:
              #    self._generate_pgpassfile()
          self.options['db_host'] = '192.168.122.73'

          if opt.save:
              self.save()

  I added the line "self.options['db_host'] = '192.168.122.73'" so it
  will use that IP address as database server.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1121974/+subscriptions


Follow ups

References