gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] bootstrapping database problem


From: Florian Hubold
Subject: Re: [Gnumed-devel] bootstrapping database problem
Date: Tue, 15 Jul 2008 12:49:23 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080629)

Karsten Hilbert schrieb:

Surely. As the very first step I would make sure I can
bootstrap the database just so. Download the tarball,
bootstrap from that.

What happens if you try that ?
Seems not to work, seems to be some problem with postgresql configuration.
The bootstrapping script doesn't find it, but it's running,
actually it is a fresh installation where the database just got initialized.
I have attached the logs, and the postgresql config files.
Can you tell me what's wrong/needs to be changed?
The other PATH issues are fixed, i think, as i just recursively copied
the contents of the tarball to another directory.

But the errors messages in bootstrap-latest-v2.log are over my head.
First it finds the template1 db, creates some users and groups,
then it creates the gnumed_v2 db, then there are some errors ending in:

   "could not access file "$libdir/plpgsql": No such file or directory"

later it tells me the following:

   "I have found a connection to the database, but I am forbidden
   to connect due to the settings in pg_hba.conf"

and the last error message is this:

   "I cannot find a PostgreSQL server running on this machine."

and

   "I can't log on as the PostgreSQL database owner."

Could you please tell me what's the origin of these errors
so we can try to fix the cause?



# PostgreSQL Ident Authentication Maps
# ====================================
#
# Refer to the PostgreSQL Administrator's Guide, chapter "Client
# Authentication" for a complete description.  A short synopsis
# follows.
#
# This file controls PostgreSQL ident-based authentication. It maps
# ident user names (typically Unix user names) to their corresponding
# PostgreSQL user names.  Records are of the form:
#
# MAPNAME  IDENT-USERNAME  PG-USERNAME
#
# (The uppercase quantities must be replaced by actual values.)
#
# MAPNAME is the (otherwise freely chosen) map name that was used in
# pg_hba.conf.  IDENT-USERNAME is the detected user name of the
# client.  PG-USERNAME is the requested PostgreSQL user name.  The
# existence of a record specifies that IDENT-USERNAME may connect as
# PG-USERNAME.  Multiple maps may be specified in this file and used
# by pg_hba.conf.
#
# This file is read on server startup and when the postmaster receives
# a SIGHUP signal.  If you edit the file on a running system, you have
# to SIGHUP the postmaster for the changes to take effect.  You can use
# "pg_ctl reload" to do that.

# Put your actual configuration here
# ----------------------------------
#
# No map names are defined in the default configuration.  If all ident
# user names and PostgreSQL user names are the same, you don't need
# this file.  Instead, use the special map name "sameuser" in
# pg_hba.conf.

# MAPNAME     IDENT-USERNAME    PG-USERNAME
gm-dbo-alikes gmadm gm-dbo
postgres-alikes postgres postgres
postgres-alikes gmadm postgres
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
#   name = value
#
# (The "=" is optional.)  Whitespace may be used.  Comments are introduced with
# "#" anywhere on a line.  The complete list of parameter names and allowed
# values can be found in the PostgreSQL documentation.
#
# The commented-out settings shown in this file represent the default values.
# Re-commenting a setting is NOT sufficient to revert it to the default value;
# you need to reload the server.
#
# This file is read on server startup and when the server receives a SIGHUP
# signal.  If you edit the file on a running system, you have to SIGHUP the
# server for the changes to take effect, or use "pg_ctl reload".  Some
# parameters, which are marked below, require a server shutdown and restart to
# take effect.
#
# Any parameter can also be given as a command-line option to the server, e.g.,
# "postgres -c log_connections=on".  Some paramters can be changed at run time
# with the "SET" SQL command.
#
# Memory units:  kB = kilobytes MB = megabytes GB = gigabytes
# Time units:    ms = milliseconds s = seconds min = minutes h = hours d = days


#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------

# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.

#data_directory = 'ConfigDir'           # use data in another directory
                                        # (change requires restart)
#hba_file = 'ConfigDir/pg_hba.conf'     # host-based authentication file
                                        # (change requires restart)
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
                                        # (change requires restart)

# If external_pid_file is not explicitly set, no extra PID file is written.
#external_pid_file = '(none)'           # write an extra PID file
                                        # (change requires restart)


#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------

# - Connection Settings -

#listen_addresses = 'localhost'         # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost', '*' = all
                                        # (change requires restart)
#port = 5432                            # (change requires restart)
max_connections = 100                   # (change requires restart)
# Note:  Increasing max_connections costs ~400 bytes of shared memory per 
# connection slot, plus lock space (see max_locks_per_transaction).  You might
# also need to raise shared_buffers to support more connections.
#superuser_reserved_connections = 3     # (change requires restart)
#unix_socket_directory = ''             # (change requires restart)
#unix_socket_group = ''                 # (change requires restart)
#unix_socket_permissions = 0777         # begin with 0 to use octal notation
                                        # (change requires restart)
#bonjour_name = ''                      # defaults to the computer name
                                        # (change requires restart)

# - Security and Authentication -

#authentication_timeout = 1min          # 1s-600s
#ssl = off                              # (change requires restart)
#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH'      # allowed SSL ciphers
                                        # (change requires restart)
#password_encryption = on
#db_user_namespace = off

# Kerberos and GSSAPI
#krb_server_keyfile = ''                # (change requires restart)
#krb_srvname = 'postgres'               # (change requires restart, Kerberos 
only)
#krb_server_hostname = ''               # empty string matches any keytab entry
                                        # (change requires restart, Kerberos 
only)
#krb_caseins_users = off                # (change requires restart)
#krb_realm = ''                         # (change requires restart)

# - TCP Keepalives -
# see "man 7 tcp" for details

#tcp_keepalives_idle = 0                # TCP_KEEPIDLE, in seconds;
                                        # 0 selects the system default
#tcp_keepalives_interval = 0            # TCP_KEEPINTVL, in seconds;
                                        # 0 selects the system default
#tcp_keepalives_count = 0               # TCP_KEEPCNT;
                                        # 0 selects the system default


#------------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)
#------------------------------------------------------------------------------

# - Memory -

shared_buffers = 24MB                   # min 128kB or max_connections*16kB
                                        # (change requires restart)
#temp_buffers = 8MB                     # min 800kB
#max_prepared_transactions = 5          # can be 0 or more
                                        # (change requires restart)
# Note:  Increasing max_prepared_transactions costs ~600 bytes of shared memory
# per transaction slot, plus lock space (see max_locks_per_transaction).
#work_mem = 1MB                         # min 64kB
#maintenance_work_mem = 16MB            # min 1MB
#max_stack_depth = 2MB                  # min 100kB

# - Free Space Map -

max_fsm_pages = 153600                  # min max_fsm_relations*16, 6 bytes each
                                        # (change requires restart)
#max_fsm_relations = 1000               # min 100, ~70 bytes each
                                        # (change requires restart)

# - Kernel Resource Usage -

#max_files_per_process = 1000           # min 25
                                        # (change requires restart)
#shared_preload_libraries = ''          # (change requires restart)

# - Cost-Based Vacuum Delay -

#vacuum_cost_delay = 0                  # 0-1000 milliseconds
#vacuum_cost_page_hit = 1               # 0-10000 credits
#vacuum_cost_page_miss = 10             # 0-10000 credits
#vacuum_cost_page_dirty = 20            # 0-10000 credits
#vacuum_cost_limit = 200                # 1-10000 credits

# - Background Writer -

#bgwriter_delay = 200ms                 # 10-10000ms between rounds
#bgwriter_lru_maxpages = 100            # 0-1000 max buffers written/round
#bgwriter_lru_multiplier = 2.0          # 0-10.0 multipler on buffers 
scanned/round


#------------------------------------------------------------------------------
# WRITE AHEAD LOG
#------------------------------------------------------------------------------

# - Settings -

#fsync = on                             # turns forced synchronization on or off
#synchronous_commit = on                # immediate fsync at commit
#wal_sync_method = fsync                # the default is the first option 
                                        # supported by the operating system:
                                        #   open_datasync
                                        #   fdatasync
                                        #   fsync
                                        #   fsync_writethrough
                                        #   open_sync
#full_page_writes = on                  # recover from partial page writes
#wal_buffers = 64kB                     # min 32kB
                                        # (change requires restart)
#wal_writer_delay = 200ms               # 1-10000 milliseconds

#commit_delay = 0                       # range 0-100000, in microseconds
#commit_siblings = 5                    # range 1-1000

# - Checkpoints -

#checkpoint_segments = 3                # in logfile segments, min 1, 16MB each
#checkpoint_timeout = 5min              # range 30s-1h
#checkpoint_completion_target = 0.5     # checkpoint target duration, 0.0 - 1.0
#checkpoint_warning = 30s               # 0 is off

# - Archiving -

#archive_mode = off             # allows archiving to be done
                                # (change requires restart)
#archive_command = ''           # command to use to archive a logfile segment
#archive_timeout = 0            # force a logfile segment switch after this
                                # time; 0 is off


#------------------------------------------------------------------------------
# QUERY TUNING
#------------------------------------------------------------------------------

# - Planner Method Configuration -

#enable_bitmapscan = on
#enable_hashagg = on
#enable_hashjoin = on
#enable_indexscan = on
#enable_mergejoin = on
#enable_nestloop = on
#enable_seqscan = on
#enable_sort = on
#enable_tidscan = on

# - Planner Cost Constants -

#seq_page_cost = 1.0                    # measured on an arbitrary scale
#random_page_cost = 4.0                 # same scale as above
#cpu_tuple_cost = 0.01                  # same scale as above
#cpu_index_tuple_cost = 0.005           # same scale as above
#cpu_operator_cost = 0.0025             # same scale as above
#effective_cache_size = 128MB

# - Genetic Query Optimizer -

#geqo = on
#geqo_threshold = 12
#geqo_effort = 5                        # range 1-10
#geqo_pool_size = 0                     # selects default based on effort
#geqo_generations = 0                   # selects default based on effort
#geqo_selection_bias = 2.0              # range 1.5-2.0

# - Other Planner Options -

#default_statistics_target = 10         # range 1-1000
#constraint_exclusion = off
#from_collapse_limit = 8
#join_collapse_limit = 8                # 1 disables collapsing of explicit 
                                        # JOIN clauses


#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------

# - Where to Log -

#log_destination = 'stderr'             # Valid values are combinations of
                                        # stderr, csvlog, syslog and eventlog,
                                        # depending on platform.  csvlog
                                        # requires logging_collector to be on.

# This is used when logging to stderr:
#logging_collector = off                # Enable capturing of stderr and csvlog
                                        # into log files. Required to be on for
                                        # csvlogs.
                                        # (change requires restart)

# These are only used if logging_collector is on:
#log_directory = 'pg_log'               # directory where log files are written,
                                        # can be absolute or relative to PGDATA
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'        # log file name pattern,
                                        # can include strftime() escapes
#log_truncate_on_rotation = off         # If on, an existing log file of the
                                        # same name as the new log file will be
                                        # truncated rather than appended to.
                                        # But such truncation only occurs on
                                        # time-driven rotation, not on restarts
                                        # or size-driven rotation.  Default is
                                        # off, meaning append to existing files
                                        # in all cases.
#log_rotation_age = 1d                  # Automatic rotation of logfiles will
                                        # happen after that time.  0 to disable.
#log_rotation_size = 10MB               # Automatic rotation of logfiles will 
                                        # happen after that much log output.
                                        # 0 to disable.

# These are relevant when logging to syslog:
#syslog_facility = 'LOCAL0'
#syslog_ident = 'postgres'


# - When to Log -

#client_min_messages = notice           # values in order of decreasing detail:
                                        #   debug5
                                        #   debug4
                                        #   debug3
                                        #   debug2
                                        #   debug1
                                        #   log
                                        #   notice
                                        #   warning
                                        #   error

#log_min_messages = notice              # values in order of decreasing detail:
                                        #   debug5
                                        #   debug4
                                        #   debug3
                                        #   debug2
                                        #   debug1
                                        #   info
                                        #   notice
                                        #   warning
                                        #   error
                                        #   log
                                        #   fatal
                                        #   panic

#log_error_verbosity = default          # terse, default, or verbose messages

#log_min_error_statement = error        # values in order of decreasing detail:
                                        #   debug5
                                        #   debug4
                                        #   debug3
                                        #   debug2
                                        #   debug1
                                        #   info
                                        #   notice
                                        #   warning
                                        #   error
                                        #   log
                                        #   fatal
                                        #   panic (effectively off)

#log_min_duration_statement = -1        # -1 is disabled, 0 logs all statements
                                        # and their durations, > 0 logs only
                                        # statements running at least this time.

#silent_mode = off                      # DO NOT USE without syslog or
                                        # logging_collector
                                        # (change requires restart)

# - What to Log -

#debug_print_parse = off
#debug_print_rewritten = off
#debug_print_plan = off
#debug_pretty_print = off
#log_checkpoints = off
#log_connections = off
#log_disconnections = off
#log_duration = off
#log_hostname = off
#log_line_prefix = ''                   # special values:
                                        #   %u = user name
                                        #   %d = database name
                                        #   %r = remote host and port
                                        #   %h = remote host
                                        #   %p = process ID
                                        #   %t = timestamp without milliseconds
                                        #   %m = timestamp with milliseconds
                                        #   %i = command tag
                                        #   %c = session ID
                                        #   %l = session line number
                                        #   %s = session start timestamp
                                        #   %v = virtual transaction ID
                                        #   %x = transaction ID (0 if none)
                                        #   %q = stop here in non-session
                                        #        processes
                                        #   %% = '%'
                                        # e.g. '<%u%%%d> '
#log_lock_waits = off                   # log lock waits >= deadlock_timeout
#log_statement = 'none'                 # none, ddl, mod, all
#log_temp_files = -1                    # log temporary files equal or larger
                                        # than specified size;
                                        # -1 disables, 0 logs all temp files
#log_timezone = unknown                 # actually, defaults to TZ environment
                                        # setting


#------------------------------------------------------------------------------
# RUNTIME STATISTICS
#------------------------------------------------------------------------------

# - Query/Index Statistics Collector -

#track_activities = on
#track_counts = on
#update_process_title = on


# - Statistics Monitoring -

#log_parser_stats = off
#log_planner_stats = off
#log_executor_stats = off
#log_statement_stats = off


#------------------------------------------------------------------------------
# AUTOVACUUM PARAMETERS
#------------------------------------------------------------------------------

#autovacuum = on                        # Enable autovacuum subprocess?  'on' 
                                        # requires track_counts to also be on.
#log_autovacuum_min_duration = -1       # -1 disables, 0 logs all actions and
                                        # their durations, > 0 logs only
                                        # actions running at least that time.
#autovacuum_max_workers = 3             # max number of autovacuum subprocesses
#autovacuum_naptime = 1min              # time between autovacuum runs
#autovacuum_vacuum_threshold = 50       # min number of row updates before
                                        # vacuum
#autovacuum_analyze_threshold = 50      # min number of row updates before 
                                        # analyze
#autovacuum_vacuum_scale_factor = 0.2   # fraction of table size before vacuum
#autovacuum_analyze_scale_factor = 0.1  # fraction of table size before analyze
#autovacuum_freeze_max_age = 200000000  # maximum XID age before forced vacuum
                                        # (change requires restart)
#autovacuum_vacuum_cost_delay = 20      # default vacuum cost delay for
                                        # autovacuum, -1 means use
                                        # vacuum_cost_delay
#autovacuum_vacuum_cost_limit = -1      # default vacuum cost limit for
                                        # autovacuum, -1 means use
                                        # vacuum_cost_limit


#------------------------------------------------------------------------------
# CLIENT CONNECTION DEFAULTS
#------------------------------------------------------------------------------

# - Statement Behavior -

#search_path = '"$user",public'         # schema names
#default_tablespace = ''                # a tablespace name, '' uses the default
#temp_tablespaces = ''                  # a list of tablespace names, '' uses
                                        # only default tablespace
#check_function_bodies = on
#default_transaction_isolation = 'read committed'
#default_transaction_read_only = off
#session_replication_role = 'origin'
#statement_timeout = 0                  # 0 is disabled
#vacuum_freeze_min_age = 100000000
#xmlbinary = 'base64'
#xmloption = 'content'

# - Locale and Formatting -

datestyle = 'iso, dmy'
#timezone = unknown                     # actually, defaults to TZ environment
                                        # setting
#timezone_abbreviations = 'Default'     # Select the set of available time zone
                                        # abbreviations.  Currently, there are
                                        #   Default
                                        #   Australia
                                        #   India
                                        # You can create your own file in
                                        # share/timezonesets/.
#extra_float_digits = 0                 # min -15, max 2
#client_encoding = sql_ascii            # actually, defaults to database
                                        # encoding

# These settings are initialized by initdb, but they can be changed.
lc_messages = 'de_DE.UTF-8'                     # locale for system error 
message
                                        # strings
lc_monetary = 'de_DE.UTF-8'                     # locale for monetary formatting
lc_numeric = 'de_DE.UTF-8'                      # locale for number formatting
lc_time = 'de_DE.UTF-8'                         # locale for time formatting

# default configuration for text search
default_text_search_config = 'pg_catalog.german'

# - Other Defaults -

#explain_pretty_print = on
#dynamic_library_path = '$libdir'
#local_preload_libraries = ''


#------------------------------------------------------------------------------
# LOCK MANAGEMENT
#------------------------------------------------------------------------------

#deadlock_timeout = 1s
#max_locks_per_transaction = 64         # min 10
                                        # (change requires restart)
# Note:  Each lock table slot uses ~270 bytes of shared memory, and there are
# max_locks_per_transaction * (max_connections + max_prepared_transactions)
# lock table slots.


#------------------------------------------------------------------------------
# VERSION/PLATFORM COMPATIBILITY
#------------------------------------------------------------------------------

# - Previous PostgreSQL Versions -

#add_missing_from = off
#array_nulls = on
#backslash_quote = safe_encoding        # on, off, or safe_encoding
#default_with_oids = off
#escape_string_warning = on
#regex_flavor = advanced                # advanced, extended, or basic
#sql_inheritance = on
#standard_conforming_strings = off
#synchronize_seqscans = on

# - Other Platforms and Clients -

#transform_null_equals = off


#------------------------------------------------------------------------------
# CUSTOMIZED OPTIONS
#------------------------------------------------------------------------------

#custom_variable_classes = ''           # list of custom variable class names
local template1 postgres ident postgres-alikes
local gnumed_v7 postgres ident postgres-alikes
local gnumed_v8 postgres ident postgres-alikes
local all postgres ident sameuser
local template1 gm-dbo ident gm-dbo-alikes
local samegroup +gm-logins md5
$ sudo urpmi gnumed-server
Um die Abhängigkeiten zu erfüllen, werden die folgenden Pakete installiert
   Package                        Version      Release       Arch
(medium "local")
  gnumed-server                  v8           6mud2008.1    i586
(medium "main_release")
  postgresql8.3                  8.3.1        2mdv2008.1    i586
  postgresql8.3-plpython         8.3.1        2mdv2008.1    i586
  postgresql8.3-server           8.3.1        2mdv2008.1    i586
20MB of additional disk space will be used.
7.1MB of packages will be retrieved.
Fortfahren mit der Installation der 4 Pakete? (J/n)

    
ftp://ftp.proxad.net//pub/Distributions_Linux/MandrivaLinux/official/2008.1/i586/media/main/release/postgresql8.3-8.3.1-2mdv2008.1.i586.rpm
    
ftp://ftp.proxad.net//pub/Distributions_Linux/MandrivaLinux/official/2008.1/i586/media/main/release/postgresql8.3-server-8.3.1-2mdv2008.1.i586.rpm
    
ftp://ftp.proxad.net//pub/Distributions_Linux/MandrivaLinux/official/2008.1/i586/media/main/release/postgresql8.3-plpython-8.3.1-2mdv2008.1.i586.rpm
Installiere /var/cache/urpmi/rpms/postgresql8.3-server-8.3.1-2mdv2008.1.i586.rpm
/var/cache/urpmi/rpms/postgresql8.3-8.3.1-2mdv2008.1.i586.rpm
/var/cache/urpmi/rpms/postgresql8.3-plpython-8.3.1-2mdv2008.1.i586.rpm
/home/shadow/rpm/RPMS/i586/gnumed-server-v8-6mud2008.1.i586.rpm
Vorbereiten ...                  #############################################
      1/4: postgresql8.3         #############################################
      2/4: postgresql8.3-server  #############################################
      3/4: postgresql8.3-plpython
                                 #############################################
      4/4: gnumed-server         #############################################
+ '[' 1 = 1 ']'
+ /sbin/chkconfig postgresql on
+ service postgresql restart
Stopping postgresql service: [FEHLER]
Initialisiere Datenbank: [  OK  ]
Starting postgresql service: [  OK  ]
+ set -x
+ grep -qP 'local\s+template1\s+postgres\s+ident\s+postgres-alikes' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local template1 postgres ident postgres-alikes'
+ grep -qP 'local\s+gnumed_v7\s+postgres\s+ident\s+postgres-alikes' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local gnumed_v7 postgres ident postgres-alikes'
+ grep -qP 'local\s+gnumed_v8\s+postgres\s+ident\s+postgres-alikes' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local gnumed_v8 postgres ident postgres-alikes'
+ grep -qP 'local\s+all\s+postgres\s+ident\s+sameuser' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local all postgres ident sameuser'
+ grep -qP 'local\s+template1\s+gm-dbo\s+ident\s+gm-dbo-alikes' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local template1 gm-dbo ident gm-dbo-alikes'
+ grep -qP 'local\s+samegroup\s+\+gm-logins\s+md5' 
/var/lib/pgsql/data/postgresql.conf
+ '[' 1 -eq 1 ']'
+ echo 'local samegroup +gm-logins md5'
+ set -x
+ grep -qP 'gm-dbo-alikes\s+gmadm\s+gm-dbo' /var/lib/pgsql/data/pg_ident.conf
+ '[' 1 -eq 1 ']'
+ echo 'gm-dbo-alikes gmadm gm-dbo'
+ grep -qP 'postgres-alikes\s+postgres\s+postgres' 
/var/lib/pgsql/data/pg_ident.conf
+ '[' 1 -eq 1 ']'
+ echo 'postgres-alikes postgres postgres'
+ grep -qP 'postgres-alikes\s+gmadm\s+postgres' 
/var/lib/pgsql/data/pg_ident.conf
+ '[' 1 -eq 1 ']'
+ echo 'postgres-alikes gmadm postgres'
+ set -x
++ dirname /var/lib/pgsql/data/pg_ident.conf
+ sudo -u postgres pg_ctl -D /var/lib/pgsql/data reload
Signal an Server gesendet
+ set -x
+ cd /usr/lib/gnumed-server/server/bootstrap
+ pwd
/usr/lib/gnumed-server/server/bootstrap
+ ./bootstrap-latest.sh
ln: Erzeuge symbolische Verknüpfung „Gnumed“: Die Datei existiert bereits
/usr/lib/gnumed-server/server/bootstrap
===========================================================
Bootstrapping latest GNUmed database.

This will set up a GNUmed database of version v8
with the name "gnumed_v8".
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.
===========================================================
1) Dropping old baseline gnumed_v2 database if there is any.
Datenbank »gnumed_v2« wird unwiderruflich gelöscht werden.
Sind Sie sich sicher? (j/n) j
dropdb: Löschen der Datenbank fehlgeschlagen: FEHLER:  Datenbank »gnumed_v2« 
existiert nicht
==========================
2) bootstrapping databases

#################################################################################
#
# log file is [/usr/lib/gnumed-server/server/bootstrap/bootstrap-latest-v2.log]
#
# Please email this file to <address@hidden> if you encounter problems.
#
#################################################################################

=======================================
Bootstrapping GNUmed database system...
=======================================
Using config file 
[/usr/lib/gnumed-server/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.
Using config file 
[/usr/lib/gnumed-server/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.

==> bootstrapping "config" ...
We are about to check whether we need to create the
database user who owns all GNUmed database objects.

The database owner will be created.
You will have to provide a new password for it
unless it is pre-defined in the configuration file.

Make sure to remember the password.

==> creating new target database [gnumed_v2] ...
    (this can take a while if [template1] is large)
Cannot bootstrap bundles.
Please check the log file for details.
Bootstrapping "gnumed_v2" did not finish successfully. Aborting.
Fehler: %post(gnumed-server-v8-6mud2008.1.i586) Skriptlet fehlgeschlagen, 
Beenden-Status 1
2008-07-15 12:28:49    
------------------------------------------------------------
2008-07-15 12:28:49  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmLog.py:address@hidden):  SECURITY: 
initial log level is [INFO]  
2008-07-15 12:28:49  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmLog.py:address@hidden):  instantiated 
log file [/usr/lib/gnumed-server/server/bootstrap/bootstrap-latest-v2.log] with 
ID [/usr/lib/gnumed-server/server/bootstrap/bootstrap-latest-v2.log] 
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmTools.py:<module>@24):  $Revision: 
1.43 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmI18N.py:<module>@57):  $Revision: 
1.33 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmDateTime.py:<module>@59):  $Revision: 
1.14 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:<module>@30):  $Revision: 
1.63.2.1 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/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"
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:<module>@69):  assuming 
default client encoding of [UTF8]
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:<module>@75):  assuming 
default client time zone of [02:00:00.00]
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:<module>@77):  $Revision: 
1.54.8.1 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:<module>@20):  $Revision: 1.8 
$
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/server/bootstrap/gmAuditSchemaGenerator.py:<module>@34):
  $Revision: 1.30 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/server/bootstrap/gmNotificationSchemaGenerator.py:<module>@25):
  $Revision: 1.26 $
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmLog.py:address@hidden):  SECURITY: 
log level change from [INFO]   to [DATA]  
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
startup ($Revision: 1.69.2.1 $)
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  
(<aDir=None>, <aName=bootstrap-local_first.conf>)
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  ignoring 
command line per cfg_IGNORE_CMD_LINE
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  config file 
search order: 
['/usr/lib/gnumed-server/server/bootstrap/bootstrap-local_first.conf']
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  found config 
file [/usr/lib/gnumed-server/server/bootstrap/bootstrap-local_first.conf]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  parsing 
config file [/usr/lib/gnumed-server/server/bootstrap/bootstrap-local_first.conf]
2008-07-15 12:28:50  [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.15 $)
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
running as user [root]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
switching to UNIX user [postgres]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  
(<aDir=None>, <aName=bootstrap-monolithic_core.conf>)
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  ignoring 
command line per cfg_IGNORE_CMD_LINE
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  config file 
search order: 
['/usr/lib/gnumed-server/server/bootstrap/bootstrap-monolithic_core.conf']
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  found config 
file [/usr/lib/gnumed-server/server/bootstrap/bootstrap-monolithic_core.conf]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  parsing 
config file 
[/usr/lib/gnumed-server/server/bootstrap/bootstrap-monolithic_core.conf]
2008-07-15 12:28:50  [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.68 $)
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
running as user [postgres]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  I 
already am the UNIX user [postgres]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
bootstrapping bundle [config]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
bootstrapping database [core]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  if 
environment variable [GM_CORE_DB] exists, it overrides database name in config 
file
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
bootstrapping server [local host]
2008-07-15 12:28:50  [WARN]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  option 
<password> not found in group [user postgres]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
password not defined, assuming connect via IDENT/TRUST
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
connecting to server template database
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
environment variable [GM_DB_PORT] is not set, using database port from config 
file
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
trying DB connection to template1 on localhost as postgres
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  PostgreSQL 
version (numeric): 8.3
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  client 
string encoding [UTF8]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  isolation 
level [serializable]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  time zone 
[02:00:00.00]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  datestyle 
[ISO]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  access mode 
[READ WRITE]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  
sql_inheritance [on]
2008-07-15 12:28:50  [INFO]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  PostgreSQL 
version (string): "PostgreSQL 8.3.1 on i586-mandriva-linux-gnu, compiled by GCC 
i586-mandriva-linux-gnu-gcc (GCC) 4.2.3 (4.2.3-6mnb1)"
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
successfully connected
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
successfully connected to template database [template1]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
bootstrapping database users and groups
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-logins does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-logins exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-doctors does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-doctors exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-staff_medical does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-staff_medical exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-staff_office does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-staff_office exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-trainees_medical does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-trainees_medical exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-trainees_office does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-trainees_office exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-public does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gm-public exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gnumed_v2 does not exist.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Group gnumed_v2 exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
User [gm-dbo] does not exist.
2008-07-15 12:28:50  [WARN]   (./bootstrap_gm_db_system.py:address@hidden):  
password for database user [gm-dbo] set to empty string
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
User [gm-dbo] exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
trying DB connection to template1 on localhost as postgres
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  client 
string encoding [UTF8]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  isolation 
level [serializable]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  time zone 
[02:00:00.00]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  datestyle 
[ISO]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  access mode 
[READ WRITE]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  
sql_inheritance [on]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
successfully connected
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Database [gnumed_v2] does not exist.
2008-07-15 12:28:50  [WARN]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  option 
<template version> not found in group [database core]
2008-07-15 12:28:50  [WARN]   (./bootstrap_gm_db_system.py:address@hidden):  
cannot check template database identity hash, no version specified
2008-07-15 12:28:50  [WARN]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py:address@hidden):  option 
<tablespace> not found in group [database core]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Database [gnumed_v2] exists.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
Successfully created GNUmed database [gnumed_v2].
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
trying DB connection to gnumed_v2 on localhost as postgres
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  client 
string encoding [UTF8]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  isolation 
level [serializable]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  time zone 
[02:00:00.00]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  datestyle 
[ISO]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  access mode 
[READ WRITE]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py:address@hidden):  
sql_inheritance [on]
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
successfully connected
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:address@hidden):  create 
language 'plpgsql'
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:address@hidden):  
../sql/gmCreateProceduralLanguages.sql:20: could not access file 
"$libdir/plpgsql": No such file or directory
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:address@hidden):  
SELECT CASE
        WHEN (SELECT COUNT(1) > 0 FROM pg_language WHERE lanname = 'plpgsql') 
THEN
                true
        ELSE
                (SELECT make_plpgsql())
    END

2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:address@hidden):  
../sql/gmCreateProceduralLanguages.sql:42: could not access file "plpgsql": No 
such file or directoryCONTEXT:  SQL function "make_plpgsql" statement 1
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
successfully imported [../sql/gmCreateProceduralLanguages.sql]
2008-07-15 12:28:50  [DATA]   
(/usr/lib/gnumed-server/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;'
2008-07-15 12:28:50  [ERROR]  
(/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py:address@hidden):  
../sql/gmCreateUserFunction.sql:49: language "plpgsql" does not existHINT:  Use 
CREATE LANGUAGE to load the language into the database.
2008-07-15 12:28:50  [ERROR]  (./bootstrap_gm_db_system.py:address@hidden):  
failed to import [../sql/gmCreateUserFunction.sql]
2008-07-15 12:28:50  [ERROR]  (./bootstrap_gm_db_system.py:address@hidden):  
cannot import schema definition for database [gnumed_v2]
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):  
Cannot bootstrap bundle [config].
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):  
exception type : <class 'Gnumed.pycommon.gmExceptions.ConstructorError'>
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):  
exception value: database.__init__(): Cannot bootstrap database.
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):  
Traceback (most recent call last):<#10-0x0A-lf>
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):    
File "./bootstrap_gm_db_system.py", line 957, in bootstrap<#10-0x0A-lf>    
database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf>
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):    
File "./bootstrap_gm_db_system.py", line 521, in __init__<#10-0x0A-lf>    raise 
ConstructorError, "database.__init__(): Cannot bootstrap database."<#10-0x0A-lf>
2008-07-15 12:28:50  [PANIC]  (./bootstrap_gm_db_system.py:address@hidden):  
ConstructorError: database.__init__(): Cannot bootstrap database.<#10-0x0A-lf>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
locals by frame, outmost frame first
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [<module>] in [./bootstrap_gm_db_system.py] at line 1254 <<<
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):    
bootstrap_auditing = <function bootstrap_auditing at 0x81da9cc>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
    cached_passwd = {'postgres': ''}
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
bootstrap_bundles = <function bootstrap_bundles at 0x81da3e4>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
            gmLog = <module 'Gnumed.pycommon.gmLog' from 
'/usr/lib/gnumed-server/Gnumed/pycommon/gmLog.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
          getpass = <module 'getpass' from '/usr/lib/python2.5/getpass.pyc'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
get_cfg_in_nice_mode = <function get_cfg_in_nice_mode at 0x81dab8c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
     _interactive = False
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
          connect = <function connect at 0x81da3ac>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
 ConstructorError = <class 'Gnumed.pycommon.gmExceptions.ConstructorError'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
        fileinput = <module 'fileinput' from '/usr/lib/python2.5/fileinput.pyc'>
2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
   _import_schema = <function _import_schema at 0x81daaac>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
        db_server = __main__.db_server
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
bootstrap_notifications = <function bootstrap_notifications at 0x81daa04>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
       handle_cfg = <function handle_cfg at 0x81dabc4>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
       _run_query = <function _run_query at 0x81daa3c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
          aud_gen = <module 'gmAuditSchemaGenerator' from 
'/usr/lib/gnumed-server/server/bootstrap/gmAuditSchemaGenerator.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
become_pg_demon_user = <function become_pg_demon_user at 0x81dab54>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         tempfile = <module 'tempfile' from '/usr/lib/python2.5/tempfile.pyc'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
       notify_gen = <module 'gmNotificationSchemaGenerator' from 
'/usr/lib/gnumed-server/server/bootstrap/gmNotificationSchemaGenerator.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
               re = <module 're' from '/usr/lib/python2.5/re.pyc'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
            gmCfg = <module 'Gnumed.pycommon.gmCfg' from 
'/usr/lib/gnumed-server/Gnumed/pycommon/gmCfg.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
ask_for_confirmation = <function ask_for_confirmation at 0x81daa74>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
_bootstrapped_servers = {'local host': <__main__.db_server instance at 
0x81de70c>}
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
      __version__ = $Revision: 1.69.2.1 $
2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         __file__ = ./bootstrap_gm_db_system.py
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         _dbowner = <__main__.user instance at 0x81deacc>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
           string = <module 'string' from '/usr/lib/python2.5/string.pyc'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
      __license__ = GPL
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         show_msg = <function show_msg at 0x81dab1c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
     __builtins__ = <module '__builtin__' (built-in)>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             glob = <module 'glob' from '/usr/lib/python2.5/glob.pyc'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             _cfg = <Gnumed.pycommon.gmCfg.cCfgFile instance at 0x81de42c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
       __author__ = address@hidden
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
              sys = <module 'sys' (built-in)>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
_bootstrapped_dbs = {}
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
 _keep_temp_files = False
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
          gmTools = <module 'Gnumed.pycommon.gmTools' from 
'/usr/lib/gnumed-server/Gnumed/pycommon/gmTools.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             _log = <Gnumed.pycommon.gmLog.cLogger instance at 0x816afac>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
      cached_host = ('', '5432')
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         __name__ = __main__
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
            gmPG2 = <module 'Gnumed.pycommon.gmPG2' from 
'/usr/lib/gnumed-server/Gnumed/pycommon/gmPG2.py'>
2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
gmAuditSchemaGenerator = <module 'gmAuditSchemaGenerator' from 
'/usr/lib/gnumed-server/server/bootstrap/gmAuditSchemaGenerator.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             main = <function main at 0x81dabfc>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         database = __main__.database
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         gmBundle = __main__.gmBundle
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
           gmPsql = <module 'Gnumed.pycommon.gmPsql' from 
'/usr/lib/gnumed-server/Gnumed/pycommon/gmPsql.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
    exit_with_msg = <function exit_with_msg at 0x81daae4>
2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             time = <module 'time' from 
'/usr/lib/python2.5/lib-dynload/time.so'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
gmNotificationSchemaGenerator = <module 'gmNotificationSchemaGenerator' from 
'/usr/lib/gnumed-server/server/bootstrap/gmNotificationSchemaGenerator.py'>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
               os = <module 'os' from '/usr/lib/python2.5/os.pyc'>
2008-07-15 12:28:50  [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.

2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             user = __main__.user
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [main] in [./bootstrap_gm_db_system.py] at line 1235 <<<
2008-07-15 12:28:50  [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']
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
         cfg_file = bootstrap-monolithic_core.conf
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [handle_cfg] in [./bootstrap_gm_db_system.py] at line 1204 
<<<
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
              tmp = no
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [bootstrap_bundles] in [./bootstrap_gm_db_system.py] at 
line 1004 <<<
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
     bundle_alias = config
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
          bundles = ['config', 'reference', 'demographics', 'clinical', 
'documents', 'office']
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
           bundle = <__main__.gmBundle instance at 0x81fce0c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [bootstrap] in [./bootstrap_gm_db_system.py] at line 959 <<<
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
   database_alias = core
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             self = <__main__.gmBundle instance at 0x81fce0c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):  
>>> execution frame [__init__] in [./bootstrap_gm_db_system.py] at line 521 <<<
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             aCfg = <Gnumed.pycommon.gmCfg.cCfgFile instance at 0x81de42c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
             self = <__main__.database instance at 0x8299a2c>
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
        overrider = GM_CORE_DB
2008-07-15 12:28:50  [DATA]   (./bootstrap_gm_db_system.py:address@hidden):     
        aDB_alias = core
2008-07-15 12:28:50  [ERROR]  (./bootstrap_gm_db_system.py:address@hidden):  
Cannot bootstrap bundles.
2008-07-15 12:28:50  [INFO]   (./bootstrap_gm_db_system.py:address@hidden):  
shutdown

reply via email to

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