gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] Install-error on Mandriva 2007.1


From: Michael Schütt
Subject: [Gnumed-devel] Install-error on Mandriva 2007.1
Date: Tue, 24 Apr 2007 17:35:09 +0200
User-agent: Thunderbird 2.0b2 (X11/20070313)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd try to install gnumed server and client on MDV 2007.1.
All dependences should be right by install "gnumed-task" (a meta-paket
that bild doktor5000 from www.mandrivauser.de for me).

A search on gnumed-devel for "Cannot bootstrap bundles" give no results.

the konsole:

[code]
address@hidden bootstrap]# ./redo-v2.sh
Erzeugen der symbolischen Verknüpfung „Gnumed“ zu „client“
ln: Erzeugen der symbolischen Verknüpfung „Gnumed“ zu „client“: Die
Datei existiert bereits
/home/letzter/GnuMed/GNUmed-5/server/bootstrap
===========================================================
Bootstrapping GNUmed database.

This will set up a GNUmed database of version v2
with the name "gnumed_v2".
It contains all the currently working parts including
localizations for countries you don't live in. This does
not disturb the operation of the GNUmed client in your
country in any way.
===========================================================
Dropping old database if there is any.
Datenbank »gnumed_v2« wird unwiderruflich gelöscht werden.
Sind Sie sich sicher? (j/n) j
DROP DATABASE
=======================
bootstrapping database

#################################################################################
#
# log file is [/home/letzter/GnuMed/GNUmed-5/server/bootstrap/redo-v2.log]
#
# Please email this file to <address@hidden> if you encounter
problems.
#
#################################################################################

=======================================
Bootstrapping GNUmed database system...
=======================================
Using config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-local_first.conf].
You are about to install the following parts of GNUmed:
- -------------------------------------------------------
- -------------------------------------------------------
This script can be used to run SQL files local to a site
*before* bootstrapping the rest of the database.

Thereby things that are only needed locally can be
integrated with the bootstrapping process and need not
be run manually after re-bootstrapping.

It is "guaranteed" that this file will never be changed
by the GNUmed team, hence keeping local modifications
in a safe place.
Do you really want to install this database setup ?
Type yes or no: yes
Done with config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-local_first.conf].
Using config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-monolithic_core.conf].
You are about to install the following parts of GNUmed:
- -------------------------------------------------------
bundle "config" in <gnumed> (or overridden) on <>
bundle "reference" in <gnumed> (or overridden) on <>
bundle "demographics" in <gnumed> (or overridden) on <>
bundle "clinical" in <gnumed> (or overridden) on <>
bundle "documents" in <gnumed> (or overridden) on <>
bundle "office" in <gnumed> (or overridden) on <>
- -------------------------------------------------------
This will set up a monolithic GNUmed backend with all bundles
in one database named [gnumed]. It will contain the core schema
without country or language-specific components. Those will
have to be added by using one of the bootstrap-XX.conf file
where XX represents the ISO country code.

Currently this file will also import the test accounts which
MUST be removed prior to real use.

Do you really want to install this database setup ?
Type yes or no: yes
==> bootstrapping "config" ...
We are about to check whether we need to create the
database user who owns all GNUmed database objects.

The database owner already exists.
Please provide the password previously used for it.
I need the password for the GNUmed database user [gm-dbo].
Please type password:
Cannot bootstrap bundles.
Please check the log file for details.
address@hidden bootstrap]#
[/code]


this ist the redo-v2.log

[code]
2007-04-24 17:21:30
- ------------------------------------------------------------
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmLog.py:address@hidden):
SECURITY: initial log level is [INFO]
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmLog.py:address@hidden):
 instantiated log file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/redo-v2.log] with ID
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/redo-v2.log]
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmDateTime.py:<module>@50):
 $Revision: 1.6 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:<module>@30):
$Revision: 1.40 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:<module>@42):
PostgreSQL via DB-API module "<module 'psycopg2' from
'/usr/lib/python2.5/site-packages/psycopg2/__init__.pyc'>": API level
2.0, thread safety 2, parameter style "pyformat"
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:<module>@69):
assuming default client encoding of [UTF8]
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:<module>@75):
assuming default client time zone of [02:00:00.00]
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmTools.py:<module>@22):
 $Revision: 1.18 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:<module>@77):
$Revision: 1.54 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:<module>@20):
$Revision: 1.7 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmAuditSchemaGenerator.py:<module>@32):
 $Revision: 1.29 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmNotificationSchemaGenerator.py:<module>@25):
 $Revision: 1.17 $
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmLog.py:address@hidden):
 SECURITY: log level change from [INFO]   to [DATA]
2007-04-24 17:21:30  [INFO]
(./bootstrap_gm_db_system.py:<module>@1070):  startup ($Revision:
1.49.2.1 $)
2007-04-24 17:21:30  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 (<aDir=None>, <aName=bootstrap-local_first.conf>)
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 ignoring command line per cfg_IGNORE_CMD_LINE
2007-04-24 17:21:30  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 config file search order:
['/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-local_first.conf']
2007-04-24 17:21:30  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 found config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-local_first.conf]
2007-04-24 17:21:30  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 parsing config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-local_first.conf]
2007-04-24 17:21:30  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping GNUmed
database system from file [$Source:
/sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-local_first.conf,v
$] ($Revision: 1.13 $)
2007-04-24 17:21:30  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  running as user
[root]
2007-04-24 17:21:30  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  switching to
UNIX user [postgres]
2007-04-24 17:21:33  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 (<aDir=None>, <aName=bootstrap-monolithic_core.conf>)
2007-04-24 17:21:33  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 ignoring command line per cfg_IGNORE_CMD_LINE
2007-04-24 17:21:33  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 config file search order:
['/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-monolithic_core.conf']
2007-04-24 17:21:33  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 found config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-monolithic_core.conf]
2007-04-24 17:21:33  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
 parsing config file
[/home/letzter/GnuMed/GNUmed-5/server/bootstrap/bootstrap-monolithic_core.conf]
2007-04-24 17:21:33  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping GNUmed
database system from file [$Source:
/sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-monolithic_core.conf,v
$] ($Revision: 1.65 $)
2007-04-24 17:21:33  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  running as user
[postgres]
2007-04-24 17:21:33  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  I am already
the UNIX user [postgres]
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping bundle [config]
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping database [core]
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  if environment variable
[GM_CORE_DB] exists, it overrides database name in config file
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping server [local
host]
2007-04-24 17:21:35  [WARN]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
option <password> not found in group [user postgres]
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  password not defined,
assuming connect via IDENT/TRUST
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):
connecting to server template database
2007-04-24 17:21:35  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 trying DB connection to template1 on localhost as postgres
2007-04-24 17:21:35  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 PostgreSQL version (numeric): 8.2
2007-04-24 17:21:35  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 client string encoding [UTF8]
2007-04-24 17:21:35  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 isolation level [serializable]
2007-04-24 17:21:35  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 time zone [02:00:00.00]
2007-04-24 17:21:35  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 datestyle [ISO]
2007-04-24 17:21:35  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 access mode [READ WRITE]
2007-04-24 17:21:35  [INFO]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 PostgreSQL version (string): "PostgreSQL 8.2.3 on
i586-mandriva-linux-gnu, compiled by GCC i586-mandriva-linux-gnu-gcc
(GCC) 4.1.2 20070115 (prerelease) (4.1.2-0.20070115.1mdv2007.1)"
2007-04-24 17:21:35  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 successfully connected
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):
successfully connected to template database [template1]
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrapping
database users and groups
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group gm-logins exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group gm-doctors exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group
gm-staff_medical exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group gm-staff_office
exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group
gm-trainees_medical exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group
gm-trainees_office exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group gm-public exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Group gnumed_v2 exists.
2007-04-24 17:21:35  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  User [gm-dbo] exists.
2007-04-24 17:21:39  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 trying DB connection to template1 on localhost as postgres
2007-04-24 17:21:39  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 client string encoding [UTF8]
2007-04-24 17:21:39  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 isolation level [serializable]
2007-04-24 17:21:39  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 time zone [02:00:00.00]
2007-04-24 17:21:39  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 datestyle [ISO]
2007-04-24 17:21:39  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 access mode [READ WRITE]
2007-04-24 17:21:39  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 successfully connected
2007-04-24 17:21:39  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Database [gnumed_v2]
does not exist.
2007-04-24 17:21:39  [WARN]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
option <template version> not found in group [database core]
2007-04-24 17:21:39  [WARN]
(./bootstrap_gm_db_system.py:address@hidden):  cannot check template
database identity hash, no version specified
2007-04-24 17:21:39  [WARN]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.py:address@hidden):
option <tablespace> not found in group [database core]
2007-04-24 17:21:40  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Database [gnumed_v2] exists.
2007-04-24 17:21:40  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  Successfully created
GNUmed database [gnumed_v2].
2007-04-24 17:21:40  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 trying DB connection to gnumed_v2 on localhost as postgres
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 client string encoding [UTF8]
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 isolation level [serializable]
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 time zone [02:00:00.00]
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 datestyle [ISO]
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.py:address@hidden):
 access mode [READ WRITE]
2007-04-24 17:21:40  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):
 successfully connected
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
create language 'plpgsql'
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
../sql/gmCreateProceduralLanguages.sql:20:  konnte nicht auf Datei
??$libdir/plpgsql?? zugreifen: Datei oder Verzeichnis nicht gefunden
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
SELECT CASE
        WHEN (SELECT COUNT(oid) > 0 FROM pg_language WHERE lanname = 'plpgsql')
THEN
                true
        ELSE
                (SELECT make_plpgsql())
    END

2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
../sql/gmCreateProceduralLanguages.sql:42:  konnte nicht auf Datei
??plpgsql?? zugreifen: Datei oder Verzeichnis nicht gefundenCONTEXT:
SQL-Funktion ??make_plpgsql?? Anweisung 1
2007-04-24 17:21:40  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  successfully imported
[../sql/gmCreateProceduralLanguages.sql]
2007-04-24 17:21:40  [DATA]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
create or replace function gm_create_user(name, text)
        returns boolean
        language 'plpgsql'
        security definer
        as '
DECLARE
        _username alias for $1;
        _password alias for $2;
        _database text;
        _query text;
BEGIN
        perform 1 from pg_user where usename = _username;
        if not FOUND then
                _query := ''create user '' || quote_ident(_username)
                                        || '' with password '' || 
quote_literal(_password)
                                        || '';'';
                execute _query;
                perform 1 from pg_user where usename = _username;
                if not FOUND then
                        raise exception ''cannot create user [%]'', _username;
                        return false;
                end if;
        end if;
        _query := ''alter group "gm-logins" add user '' ||
quote_ident(_username) || '';'';
        execute _query;
        _query := ''alter group "gm-doctors" add user '' ||
quote_ident(_username) || '';'';
        execute _query;
        _query := ''alter group "gm-public" add user '' ||
quote_ident(_username) || '';'';
        execute _query;
        -- satisfy "database = samegroup" in pg_hba.conf
        select into _database current_database();
        _query := ''alter group '' || quote_ident(_database) || '' add user ''
|| quote_ident(_username) || '';'';
        execute _query;
        return true;
END;'
2007-04-24 17:21:40  [ERROR]
(/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.py:address@hidden):
../sql/gmCreateUserFunction.sql:49:  Sprache ??plpgsql?? existiert
nichtHINT:  Sie m??ssen CREATE LANGUAGE verwenden, um die Sprache in die
Datenbank zu laden.
2007-04-24 17:21:40  [ERROR]
(./bootstrap_gm_db_system.py:address@hidden):  failed to import
[../sql/gmCreateUserFunction.sql]
2007-04-24 17:21:40  [ERROR]
(./bootstrap_gm_db_system.py:address@hidden):  cannot import schema
definition for database [gnumed_v2]
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):  Cannot bootstrap bundle
[config].
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):  exception type : <class
'Gnumed.pycommon.gmExceptions.ConstructorError'>
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):  exception value:
database.__init__(): Cannot bootstrap database.
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):  Traceback (most recent
call last):<#10-0x0A-lf>
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):    File
"./bootstrap_gm_db_system.py", line 808, in bootstrap<#10-0x0A-lf>
database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf>
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):    File
"./bootstrap_gm_db_system.py", line 509, in __init__<#10-0x0A-lf>
raise ConstructorError, "database.__init__(): Cannot bootstrap
database."<#10-0x0A-lf>
2007-04-24 17:21:40  [PANIC]
(./bootstrap_gm_db_system.py:address@hidden):  ConstructorError:
database.__init__(): Cannot bootstrap database.<#10-0x0A-lf>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  locals by frame, outmost
frame first
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  >>> execution frame
[<module>] in [./bootstrap_gm_db_system.py] at line 1088 <<<
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):    bootstrap_auditing =
<function bootstrap_auditing at 0x6f6653ac>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):             db_server =
__main__.db_server
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              cfg_file =
bootstrap-monolithic_core.conf
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):     bootstrap_bundles =
<function bootstrap_bundles at 0x6f660e2c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                 gmLog =
<module 'Gnumed.pycommon.gmLog' from
'/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmLog.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):               getpass =
<module 'getpass' from '/usr/lib/python2.5/getpass.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  get_cfg_in_nice_mode =
<function get_cfg_in_nice_mode at 0x6f66556c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):          _interactive = True
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):               connect =
<function connect at 0x6f660df4>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):      ConstructorError =
<class 'Gnumed.pycommon.gmExceptions.ConstructorError'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):             fileinput =
<module 'fileinput' from '/usr/lib/python2.5/fileinput.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):         pg_hba_sermon =
I have found a connection to the database, but I am forbidden
to connect due to the settings in pg_hba.conf. This is a
PostgreSQL configuration file that controls who can connect
to the database.

Depending on your setup, it can be found in
/etc/postgresql/pg_hba.conf (Debian)
/usr/local/pgsql/pgdata/pg_hba.conf (FreeBSD, ?? Mac OS X)
FIXME: where do RedHat & friends put it
 or whichever directory your database files are located.

For gnumed, pg_hba.conf must allow password authentication.
For deveopment systems, I suggest the following

local    template1 postgres                             ident sameuser
local    gnumed    all                                  md5
host     gnumed    all    127.0.0.1 255.255.255.255     md5

For production systems, a different configuration will be
required, but gnumed is not production ready.
There is also a pg_hba.conf.example in this directory.

You must then restart (or SIGHUP) your PostgreSQL server.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):        _import_schema =
<function _import_schema at 0x6f66548c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  bootstrap_notifications =
<function bootstrap_notifications at 0x6f6653e4>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):            handle_cfg =
<function handle_cfg at 0x6f6655a4>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):            _run_query =
<function _run_query at 0x6f66541c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):               aud_gen =
<module 'gmAuditSchemaGenerator' from
'/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmAuditSchemaGenerator.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  become_pg_demon_user =
<function become_pg_demon_user at 0x6f665534>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              tempfile =
<module 'tempfile' from '/usr/lib/python2.5/tempfile.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):            notify_gen =
<module 'gmNotificationSchemaGenerator' from
'/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmNotificationSchemaGenerator.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                    re =
<module 're' from '/usr/lib/python2.5/re.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                 gmCfg =
<module 'Gnumed.pycommon.gmCfg' from
'/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmCfg.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  ask_for_confirmation =
<function ask_for_confirmation at 0x6f665454>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  _bootstrapped_servers =
{'local host': <__main__.db_server instance at 0x6f66ed6c>}
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):           __version__ =
$Revision: 1.49.2.1 $
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):      no_server_sermon =
I cannot find a PostgreSQL server running on this machine.

Try (as root):
/etc/init.d/postgresql start

if that fails, you can build a database from scratch:

PGDATA=some directory you can use
initdb
cp pg_hba.conf.example $PGDATA/pg_hba.conf
pg_ctl start

if none of these commands work, or you don't know what PostgreSQL
is, go to the website to download for your OS at:

http://www.postgresql.org/

On the other hand, if you have a PostgreSQL server
running somewhere strange, type hostname[:port]
below, or press RETURN to quit.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              __file__ =
./bootstrap_gm_db_system.py
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              _dbowner =
<__main__.user instance at 0x6f66ee6c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                string =
<module 'string' from '/usr/lib/python2.5/string.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):           __license__ = GPL
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              show_msg =
<function show_msg at 0x6f6654fc>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):          __builtins__ =
<module '__builtin__' (built-in)>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  glob =
<module 'glob' from '/usr/lib/python2.5/glob.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  _cfg =
<Gnumed.pycommon.gmCfg.cCfgFile instance at 0x6f66428c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):            __author__ =
address@hidden
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                   sys =
<module 'sys' (built-in)>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):             cfg_files =
['bootstrap-local_first.conf', 'bootstrap-monolithic_core.conf',
'bootstrap-de.conf', 'bootstrap-es.conf', 'bootstrap-ca.conf',
'bootstrap-au.conf', 'bootstrap-test_data.conf',
'bootstrap-local_last.conf']
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):     _bootstrapped_dbs = {}
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):      _keep_temp_files = True
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):         cached_passwd =
{'postgres': ''}
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  _log =
<Gnumed.pycommon.gmLog.cLogger instance at 0x6f9c4acc>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):           cached_host =
('', '5432')
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              __name__ =
__main__
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                 gmPG2 =
<module 'Gnumed.pycommon.gmPG2' from
'/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPG2.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):      superuser_sermon =
I can't log on as the PostgreSQL database owner.
Try running this script as the system administrator (user "root")
to get the neccessary permissions.

NOTE: I expect the PostgreSQL database owner to be called "%s"
If for some reason it is not, you need to adjust my configuration
script, and run again as that user.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  gmAuditSchemaGenerator =
<module 'gmAuditSchemaGenerator' from
'/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmAuditSchemaGenerator.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              database =
__main__.database
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              gmBundle =
__main__.gmBundle
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                gmPsql =
<module 'Gnumed.pycommon.gmPsql' from
'/home/letzter/GnuMed/GNUmed-5/Gnumed/pycommon/gmPsql.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):         exit_with_msg =
<function exit_with_msg at 0x6f6654c4>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):               __doc__ =
GNUmed schema installation.

This script bootstraps a GNUmed database system.

This will set up databases, tables, groups, permissions and
possibly users. Most of this will be handled via SQL
scripts, not directly in the bootstrapper itself.

There's a special user called "gm-dbo" who owns all the
database objects.

For all this to work you must be able to access the database
server as the standard "postgres" superuser.

This script does NOT set up user specific configuration options.

All definitions are loaded from a config file.

Please consult the User Manual in the GNUmed CVS for
further details.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):        welcome_sermon =
Welcome to the GNUmed server instllation script.

You must have a PostgreSQL server running and
administrator access.

Please select a database configuation from the list below.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  time =
<module 'time' from '/usr/lib/python2.5/lib-dynload/time.so'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):
gmNotificationSchemaGenerator = <module 'gmNotificationSchemaGenerator'
from
'/home/letzter/GnuMed/GNUmed-5/server/bootstrap/gmNotificationSchemaGenerator.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                    os =
<module 'os' from '/usr/lib/python2.5/os.pyc'>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):              no_clues =
Logging on to the PostgreSQL database returned this error
%s
on %s

Please contact the GNUmed development team on address@hidden
Make sure you include this error message in your mail.

2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  user =
__main__.user
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  >>> execution frame
[handle_cfg] in [./bootstrap_gm_db_system.py] at line 1057 <<<
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                   tmp = yes
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  >>> execution frame
[bootstrap_bundles] in [./bootstrap_gm_db_system.py] at line 855 <<<
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):          bundle_alias = config
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):               bundles =
['config', 'reference', 'demographics', 'clinical', 'documents', 'office']
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                bundle =
<__main__.gmBundle instance at 0x6f6dd72c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  >>> execution frame
[bootstrap] in [./bootstrap_gm_db_system.py] at line 810 <<<
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):        database_alias = core
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  self =
<__main__.gmBundle instance at 0x6f6dd72c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):  >>> execution frame
[__init__] in [./bootstrap_gm_db_system.py] at line 509 <<<
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  aCfg =
<Gnumed.pycommon.gmCfg.cCfgFile instance at 0x6f66428c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):                  self =
<__main__.database instance at 0x6f6ddd6c>
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):             overrider =
GM_CORE_DB
2007-04-24 17:21:40  [DATA]
(./bootstrap_gm_db_system.py:address@hidden):             aDB_alias = core
2007-04-24 17:21:40  [ERROR]
(./bootstrap_gm_db_system.py:address@hidden):  Cannot bootstrap bundles.
2007-04-24 17:21:40  [INFO]
(./bootstrap_gm_db_system.py:address@hidden):  shutdown
[/code]

any hint what wrong?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGLiOsMIVrK30mEtURAvvvAJ9LNYQBmj53hU2GvYUAVTsG8+phtwCgqeXW
Z6F32kOFLs+F5h3QeHMKE7I=
=z3Xp
-----END PGP SIGNATURE-----

Attachment: m-schuett.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]