[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Connection to local server
From: |
Laurent FRANCOIS |
Subject: |
[Gnumed-devel] Connection to local server |
Date: |
Mon, 18 Jun 2007 13:52:34 +1100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070510 Iceape/1.0.9 (Debian-1.0.9-0etch1) |
Hello,
I try to connect to my new gnumed database.
But I can't.
%%%%%%%%%%%%%
lof$ psql
Bienvenue dans psql 8.1.8, l'interface interactive de PostgreSQL.
Tapez: \copyright pour les termes de distribution
\h pour l'aide-mémoire sur les commandes SQL
\? pour l'aide-mémoire sur les commandes psql
\g ou terminez avec un point-virgule pour exécuter une requête
\q pour quitter
lof=# \l
Liste des bases de données
Nom | Propriétaire | Encodage
-----------+--------------+----------
gnumed_v5 | gm-dbo | UTF8
gnumed_v6 | gm-dbo | UTF8
lof | postgres | LATIN9
postgres | postgres | LATIN9
pypgsql | lof | UTF8
template0 | postgres | LATIN9
template1 | postgres | LATIN9
test | lof | UTF8
(8 lignes)
%%%%%%%%%%%%%%
~$ locale
address@hidden
LANGUAGE=fr_FR:fr:en_GB:en
LC_CTYPE="address@hidden"
LC_NUMERIC="address@hidden"
LC_TIME="address@hidden"
LC_COLLATE="address@hidden"
LC_MONETARY="address@hidden"
LC_MESSAGES="address@hidden"
LC_PAPER="address@hidden"
LC_NAME="address@hidden"
LC_ADDRESS="address@hidden"
LC_TELEPHONE="address@hidden"
LC_MEASUREMENT="address@hidden"
LC_IDENTIFICATION="address@hidden"
LC_ALL=
%%%%%%%%%%%%%%%%%2007-06-18 01:58:08
------------------------------------------------------------
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmLog.py:address@hidden):
SECURITY: initial log level is [INFO]
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmLog.py:address@hidden):
instantiated log file /home/lof/.gnumed/gnumed.log with ID
/home/lof/.gnumed/gnumed.log
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmLog.py:address@hidden):
SECURITY: log level change from [INFO] to [INFO]
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmLog.py:address@hidden):
SECURITY: adding log target "stdout/stderr"
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
$Revision: 1.30.2.1 $
2007-06-18 01:58:08 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
encoding suggested by locale (ANSI_X3.4-1968) does not match encoding
currently set in locale (None)
2007-06-18 01:58:08 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
this might lead to encoding errors
2007-06-18 01:58:08 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
encoding suggested by locale (ISO-8859-15) does not match encoding
currently set in locale (ISO8859-15)
2007-06-18 01:58:08 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
this might lead to encoding errors
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
text domain is [gnumed]
2007-06-18 01:58:08 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
${GNUMED_DIR} not set
2007-06-18 01:58:09 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmI18N.py:address@hidden):
Giving up and falling back to NullTranslations() class in despair.
2007-06-18 01:58:09 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gnumed.py:address@hidden):
Starting up as main module ($Revision: 1.102.2.1 $).
2007-06-18 01:58:09 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gnumed.py:address@hidden):
command line is: {'--conf-file': '/home/lof/.gnumed/gnumed.conf'}
2007-06-18 01:58:09 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gnumed.py:address@hidden):
Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 (posix)
2007-06-18 01:58:09 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
$Revision: 1.40 $
2007-06-18 01:58:09 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
group [client] not found
2007-06-18 01:58:14 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
$Revision: 1.78.2.2 $
2007-06-18 01:58:15 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
PostgreSQL via DB-API module "<module 'pyPgSQL.PgSQL' from
'/usr/lib/python2.4/site-packages/pyPgSQL/PgSQL.pyc'>": API level 2.0,
thread safety 1, parameter style "pyformat"
2007-06-18 01:58:15 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmBusinessDBObject.py:address@hidden):
$Revision: 1.34 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmMedDoc.py:address@hidden):
$Revision: 1.75.2.4 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmDemographicRecord.py:address@hidden):
$Revision: 1.82 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmPerson.py:address@hidden):
$Revision: 1.80.2.1 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmPlugin.py:address@hidden):
$Revision: 1.63 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmClinItem.py:address@hidden):
$Revision: 1.18 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmClinNarrative.py:address@hidden):
$Revision: 1.22 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmEMRStructItems.py:address@hidden):
$Revision: 1.81 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmPatPicWidgets.py:address@hidden):
$Revision: 1.18 $
2007-06-18 01:58:16 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmKVK.py:address@hidden):
$Revision: 1.9 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmTimer.py:address@hidden):
$Revision: 1.10 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmPhraseWheel.py:address@hidden):
$Revision: 1.76 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmPatSearchWidgets.py:address@hidden):
$Revision: 1.41.2.1 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmTopPanel.py:address@hidden):
$Revision: 1.74 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmHorstSpace.py:address@hidden):
$Revision: 1.31 $
2007-06-18 01:58:17 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmRichardSpace.py:address@hidden):
$Revision: 1.9 $
2007-06-18 01:58:18 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmPathLab.py:address@hidden):
$Revision: 1.52 $
2007-06-18 01:58:18 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmAllergy.py:address@hidden):
$Revision: 1.21 $
2007-06-18 01:58:19 [INFO]
(/var/lib/python-support/python2.4/Gnumed/business/gmVaccination.py:address@hidden):
$Revision: 1.31 $
2007-06-18 01:58:19 [INFO]
(/var/lib/python-support/python2.4/Gnumed/exporters/gmPatientExporter.py:address@hidden):
$Revision: 1.81.2.1 $
2007-06-18 01:58:19 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmEMRStructWidgets.py:address@hidden):
$Revision: 1.28 $
2007-06-18 01:58:20 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmResizingWidgets.py:address@hidden):
$Revision: 1.42 $
2007-06-18 01:58:20 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmVaccWidgets.py:address@hidden):
$Revision: 1.27 $
2007-06-18 01:58:20 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmSOAPWidgets.py:address@hidden):
$Revision: 1.74.2.1 $
2007-06-18 01:58:20 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmEMRBrowser.py:address@hidden):
$Revision: 1.55 $
2007-06-18 01:58:21 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmMimeLib.py:address@hidden):
$Revision: 1.5 $
2007-06-18 01:58:21 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmMedDocWidgets.py:address@hidden):
$Revision: 1.90.2.4 $
2007-06-18 01:58:21 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmGuiMain.py:address@hidden):
$Revision: 1.265 $
2007-06-18 01:58:21 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmGuiMain.py:address@hidden):
wxPython GUI framework: 2.6.3.2 ('__WXGTK__', 'wxGTK', 'unicode',
'gtk2', 'wx-assertions-off', 'SWIG-1.3.27')
2007-06-18 01:58:21 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
option <wire encoding> not found in group [backend]
2007-06-18 01:58:21 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
option <string encoding> not found in group [backend]
2007-06-18 01:58:21 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
setting default client encoding to [{'wire': 'ISO8859-15', 'string':
'ISO8859-15'}]
2007-06-18 01:58:21 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
option <client timezone> not found in group [backend]
2007-06-18 01:58:28 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmCfg.py:address@hidden):
option <slave mode> not found in group [workplace]
2007-06-18 01:58:29 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmGuiMain.py:address@hidden):
slave mode is OFF
2007-06-18 01:58:48 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
using string encoding [ISO8859-15] to encode Unicode strings for
transmission to the database
2007-06-18 01:58:55 [INFO]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
service [default/config] running on [PostgreSQL 8.1.8 on
i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.2 20061115 (prerelease)
(Debian 4.1.1-21)]
2007-06-18 01:58:55 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
query >>>select name from cfg.distributed_db<<< with args >>>()<<< failed
2007-06-18 01:58:55 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
exception type : libpq.OperationalError
2007-06-18 01:58:55 [WARN]
(/var/lib/python-support/python2.4/Gnumed/pycommon/gmPG.py:address@hidden):
exception value: ERROR: relation "cfg.distributed_db" does not exist
2007-06-18 01:58:55 [ERROR]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmGuiHelpers.py:address@hidden):
Unable to connect to database: cannot load service names from
configuration database Please retry or cancel !
2007-06-18 01:58:59 [WARN]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmLogin.py:address@hidden):
login attempt 1 of 3 failed
2007-06-18 01:58:59 [WARN]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmLogin.py:address@hidden):
exception type : Gnumed.pycommon.gmExceptions.ConnectionError
2007-06-18 01:58:59 [WARN]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmLogin.py:address@hidden):
exception value: cannot load service names from configuration database
2007-06-18 01:59:01 [INFO]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmLogin.py:address@hidden):
user cancelled login dialog
2007-06-18 01:59:01 [WARN]
(/var/lib/python-support/python2.4/Gnumed/wxpython/gmGuiMain.py:address@hidden):
Login attempt unsuccessful. Can't run GNUmed without database connection
%%%%%%%%%%%%%%
There is some problem with enconding.
Here is my gnumed.conf:
%%%%%%%%%%%%%%
# GNUmed client config file
# $Source: /cvsroot/gnumed/gnumed/gnumed/client/gm-0_1.conf,v $
# $Revision: 1.2 $
[backend]
logins = $logins$
any-doc
gm-dbo
$logins$
# If the system locale matches this value a mismatch
# with the database locale will be ignored.
# Remove this option if you want to stop ignoring mismatches.
ignored mismatching system locale = address@hidden
profiles = $profiles$
GNUmed - Public DB at salaam.homeunix.com
GNUmed on this machine
$profiles$
client encoding = latin1
[profile GNUmed - Public DB at salaam.homeunix.com]
host = salaam.homeunix.com
port = 5432
database = gnumed_v1
## The server packages do not yet work thus we disable local connections
here
[profile GNUmed on this machine]
host = localhost
port = 5432
database = gnumed_v5
[profile GNUmed - Public DB at anubis.homeunix.com]
host = anubis.homeunix.com
port = 5432
database = gnumed_v1
[workplace]
help desk = GNUmed Development List <address@hidden>
name = Release 0.1
%%%%%%%%%%%%%%%%
Any idea?
Thanks
Laurent FRANCOIS
- [Gnumed-devel] Connection to local server,
Laurent FRANCOIS <=