← Back to team overview

openerp-india team mailing list archive

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

 

Hello Frido Steffers ,

I have checked this issue with latest 7.0 as well as trunk. But I did not face any problem like yours.
I think there is some with PostgreSQL configuration.So would you please check this again and 
provide information  regarding this issue.

Thanks.

** Changed in: openobject-server
       Status: New => Incomplete

-- 
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:
  Incomplete

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


References