← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 791818] Re: [6.1 trunk]: confusing error message "Database cannot be accessed or does not exist"

 

Thank you for your inquiry!

It is quite simple:
a file had an error inside (see the log, it was a failed merge)
so you need whatever file from the addons pool to be corrupt.
then try to open the system. (of course, restart server after corrupting the file)
you will get the message "Database cannot be accessed or does not exist".

this is a flaw in the usability, as it is very misleading, nothing is wrong with the db.
(I actually "panicked" a second, as this could have been a very SERIOUS problem - db missing)

i checked the server - restart to make sure
checked pg server
connected to pg to see that the db is there
then I checked the log which explained the real problem.

So I say that the error message is misleading, that's all. At least leave a hint in it, that it could be something else than db!!!
Of course, if the two types of error cannot be separated...which would be better: error for db and error for files/addons

thank you!
bogdan

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/791818

Title:
  [6.1 trunk]: confusing error message "Database cannot be accessed or
  does not exist"

Status in OpenERP GTK Client:
  Incomplete

Bug description:
  hi there,

  trying to open the client, i get this message:
  Database cannot be accessed or does not exist

  Please double-check the database name or contact your administrator to
  verify the database status.

  however, when I check the log, I get this:

  [2011-06-02 13:57:32,770][bs_02] INFO:init:module account: registering objects
  [2011-06-02 13:57:33,194][bs_02] CRITICAL:init:[01]: 
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[02]: Environment Information : 
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[03]: System : Linux-2.6.38-8-generic-i686-with-Ubuntu-11.04-natty
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[04]: OS Name : posix
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[05]: Distributor ID:	Ubuntu
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[06]: Description:	Ubuntu 11.04
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[07]: Release:	11.04
  [2011-06-02 13:57:33,195][bs_02] CRITICAL:init:[08]: Codename:	natty
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[09]: Operating System Release : 2.6.38-8-generic
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[10]: Operating System Version : #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[11]: Operating System Architecture : 32bit
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[12]: Operating System Locale : fr_CH.UTF8
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[13]: Python Version : 2.7.1+
  [2011-06-02 13:57:33,196][bs_02] CRITICAL:init:[14]: OpenERP-Server Version : 6.1-dev
  [2011-06-02 13:57:33,197][bs_02] CRITICAL:init:[15]: Couldn't load module account
  [2011-06-02 13:57:33,576][bs_02] CRITICAL:init:[01]: 
  [2011-06-02 13:57:33,576][bs_02] CRITICAL:init:[02]: Environment Information : 
  [2011-06-02 13:57:33,577][bs_02] CRITICAL:init:[03]: System : Linux-2.6.38-8-generic-i686-with-Ubuntu-11.04-natty
  [2011-06-02 13:57:33,577][bs_02] CRITICAL:init:[04]: OS Name : posix
  [2011-06-02 13:57:33,577][bs_02] CRITICAL:init:[05]: Distributor ID:	Ubuntu
  [2011-06-02 13:57:33,578][bs_02] CRITICAL:init:[06]: Description:	Ubuntu 11.04
  [2011-06-02 13:57:33,578][bs_02] CRITICAL:init:[07]: Release:	11.04
  [2011-06-02 13:57:33,578][bs_02] CRITICAL:init:[08]: Codename:	natty
  [2011-06-02 13:57:33,578][bs_02] CRITICAL:init:[09]: Operating System Release : 2.6.38-8-generic
  [2011-06-02 13:57:33,578][bs_02] CRITICAL:init:[10]: Operating System Version : #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[11]: Operating System Architecture : 32bit
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[12]: Operating System Locale : fr_CH.UTF8
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[13]: Python Version : 2.7.1+
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[14]: OpenERP-Server Version : 6.1-dev
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[15]: expected an indented block
  [2011-06-02 13:57:33,579][bs_02] CRITICAL:init:[16]: ('/home/openerp/addons/account/report/account_profit_loss.py', 114, 0, '<<<<<<< TREE\n')

  which is obviously NOT a db problem, but a dirty bzr update.

  while it is a "minor" error, the system throws a completely different
  error message! I think that this should be improved.

  thank you!
  Bogdan


References