2006-03-25 17:11:45 ------------------------------------------------------------ 2006-03-25 17:11:45 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-25 17:11:45 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-25 17:11:45 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.27 $ 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.4 $ 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.51 $ 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.12 $ 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Windows does not support $LC_MESSAGES 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception value: 'module' object has no attribute 'LC_MESSAGES' 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-25 17:11:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): DBMS [PostgreSQL] via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:11:47 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-25 17:11:47 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-25 17:11:47 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-25 17:11:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-25 17:11:48 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-25 17:11:48 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-25 17:11:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-25 17:11:48 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-25 17:11:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:11:48 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:11:48 [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.6 $) 2006-03-25 17:11:48 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-25 17:11:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-25 17:11:57 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-25 17:11:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-25 17:11:57 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-25 17:11:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-25 17:11:57 [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.53 $) 2006-03-25 17:11:57 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-25 17:12:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-25 17:12:05 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-25 17:12:05 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-25 17:12:05 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-25 17:12:05 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-25 17:12:05 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-25 17:12:05 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-25 17:12:05 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-25 17:12:05 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-25 17:12:06 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-25 17:12:06 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-25 17:12:06 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-25 17:12:06 [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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-25 17:12:06 [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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-25 17:12:06 [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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-25 17:12:06 [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'] 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-25 17:12:06 [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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-25 17:12:06 [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. 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00996FA8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00996FA8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x009F1850> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009F18C8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009F18C8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009F18C8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009F18C8> 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-25 17:12:06 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-25 17:12:06 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-25 17:12:06 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-25 17:14:01 ------------------------------------------------------------ 2006-03-25 17:14:01 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-25 17:14:01 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-25 17:14:01 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.27 $ 2006-03-25 17:14:01 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.4 $ 2006-03-25 17:14:01 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.51 $ 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.12 $ 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Windows does not support $LC_MESSAGES 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception value: 'module' object has no attribute 'LC_MESSAGES' 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): DBMS [PostgreSQL] via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:14:02 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-25 17:14:02 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-25 17:14:02 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-25 17:14:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-25 17:14:02 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-25 17:14:02 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-25 17:14:02 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:14:02 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:14:02 [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.6 $) 2006-03-25 17:14:02 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-25 17:14:15 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-25 17:14:15 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-25 17:14:15 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-25 17:14:15 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-25 17:14:15 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-25 17:14:15 [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.53 $) 2006-03-25 17:14:15 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-25 17:14:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-25 17:14:18 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-25 17:14:18 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-25 17:14:18 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-25 17:14:18 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-25 17:14:18 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-25 17:14:18 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-25 17:14:18 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-25 17:14:18 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-25 17:14:19 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-25 17:14:19 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-25 17:14:19 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-25 17:14:19 [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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-25 17:14:19 [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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-25 17:14:19 [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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-25 17:14:19 [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'] 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-25 17:14:19 [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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-25 17:14:19 [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. 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B4418> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B4418> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B0DE68> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B0DFD0> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B0DFD0> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B0DFD0> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B0DFD0> 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-25 17:14:19 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-25 17:14:19 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-25 17:14:19 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-25 17:21:05 ------------------------------------------------------------ 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.27 $ 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.4 $ 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.51 $ 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.12 $ 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Windows does not support $LC_MESSAGES 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): exception value: 'module' object has no attribute 'LC_MESSAGES' 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): DBMS [PostgreSQL] via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-25 17:21:05 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-25 17:21:05 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-25 17:21:05 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-25 17:21:05 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-25 17:21:05 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-25 17:21:05 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-25 17:21:05 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:21:05 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-25 17:21:05 [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.6 $) 2006-03-25 17:21:05 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:01:54 ------------------------------------------------------------ 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:01:54 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:01:54 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:01:54 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:01:54 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:01:54 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:01:54 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:01:54 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:01:54 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:01:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:01:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:01:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:01:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:01:54 [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.6 $) 2006-03-26 01:01:54 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:02:08 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:02:08 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:02:08 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:02:08 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:02:08 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:02:08 [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.53 $) 2006-03-26 01:02:08 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 01:02:37 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 01:02:37 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 01:02:37 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 01:02:37 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 01:02:37 [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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 01:02:37 [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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 01:02:37 [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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 01:02:37 [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'] 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 01:02:37 [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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 01:02:37 [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. 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B6C60> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B6C60> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EF80> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 01:02:37 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 01:02:37 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 01:02:37 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:06:33 ------------------------------------------------------------ 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:06:33 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:06:33 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:06:33 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:06:33 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:06:33 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:06:33 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:06:33 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:06:33 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:06:33 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:33 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:06:33 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:06:33 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:06:33 [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.6 $) 2006-03-26 01:06:33 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:51 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:06:51 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:06:51 [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.53 $) 2006-03-26 01:06:51 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:51 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-de.conf'] 2006-03-26 01:06:51 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-de.conf] 2006-03-26 01:06:51 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-de.conf] 2006-03-26 01:06:52 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-de.conf,v $] ($Revision: 1.27 $) 2006-03-26 01:06:52 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:52 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:52 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:52 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-es.conf'] 2006-03-26 01:06:52 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-es.conf] 2006-03-26 01:06:52 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-es.conf] 2006-03-26 01:06:52 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-es.conf,v $] ($Revision: 1.5 $) 2006-03-26 01:06:52 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:53 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-ca.conf'] 2006-03-26 01:06:53 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-ca.conf] 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-ca.conf] 2006-03-26 01:06:53 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-ca.conf,v $] ($Revision: 1.3 $) 2006-03-26 01:06:53 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:53 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-au.conf'] 2006-03-26 01:06:53 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-au.conf] 2006-03-26 01:06:53 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-au.conf] 2006-03-26 01:06:53 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-au.conf,v $] ($Revision: 1.19 $) 2006-03-26 01:06:54 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-test_data.conf'] 2006-03-26 01:06:54 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-test_data.conf] 2006-03-26 01:06:54 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-test_data.conf] 2006-03-26 01:06:54 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-test_data.conf,v $] ($Revision: 1.15 $) 2006-03-26 01:06:54 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:55 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:06:55 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:06:55 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_last.conf'] 2006-03-26 01:06:55 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_last.conf] 2006-03-26 01:06:55 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_last.conf] 2006-03-26 01:06:55 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-local_last.conf,v $] ($Revision: 1.4 $) 2006-03-26 01:06:55 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:06:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:07:29 ------------------------------------------------------------ 2006-03-26 01:07:29 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:07:29 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:07:30 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:07:30 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:07:30 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:07:30 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:07:30 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:07:30 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:07:30 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:07:30 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:07:30 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:07:30 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:07:30 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:07:30 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:07: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.6 $) 2006-03-26 01:07:30 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:12 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:12 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:12 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:09:12 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:09:12 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:09:12 [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.53 $) 2006-03-26 01:09:12 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:15 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-de.conf'] 2006-03-26 01:09:15 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-de.conf] 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-de.conf] 2006-03-26 01:09:15 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-de.conf,v $] ($Revision: 1.27 $) 2006-03-26 01:09:15 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:15 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-es.conf'] 2006-03-26 01:09:15 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-es.conf] 2006-03-26 01:09:15 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-es.conf] 2006-03-26 01:09:15 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-es.conf,v $] ($Revision: 1.5 $) 2006-03-26 01:09:15 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:16 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:16 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:16 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-ca.conf'] 2006-03-26 01:09:16 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-ca.conf] 2006-03-26 01:09:16 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-ca.conf] 2006-03-26 01:09:16 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-ca.conf,v $] ($Revision: 1.3 $) 2006-03-26 01:09:16 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:17 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-au.conf'] 2006-03-26 01:09:17 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-au.conf] 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-au.conf] 2006-03-26 01:09:17 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-au.conf,v $] ($Revision: 1.19 $) 2006-03-26 01:09:17 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:17 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-test_data.conf'] 2006-03-26 01:09:17 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-test_data.conf] 2006-03-26 01:09:17 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-test_data.conf] 2006-03-26 01:09:17 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-test_data.conf,v $] ($Revision: 1.15 $) 2006-03-26 01:09:17 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:18 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:18 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:18 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_last.conf'] 2006-03-26 01:09:18 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_last.conf] 2006-03-26 01:09:18 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_last.conf] 2006-03-26 01:09:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping GNUmed database system from file [$Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/bootstrap-local_last.conf,v $] ($Revision: 1.4 $) 2006-03-26 01:09:18 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:09:35 ------------------------------------------------------------ 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:09:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:09:35 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:09:35 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:09:35 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:09:35 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:09:35 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:09:35 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:09:35 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:09:35 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:35 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:09:35 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:09:35 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:09:36 [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.6 $) 2006-03-26 01:09:36 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:09:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:09:50 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:09:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:09:50 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:09:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:09: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.53 $) 2006-03-26 01:09:50 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 01:10:09 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 01:10:09 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 01:10:09 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 01:10:09 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 01:10:09 [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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 01:10:09 [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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 01:10:09 [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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 01:10:09 [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'] 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 01:10:09 [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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 01:10:09 [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. 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2DFA8> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 01:10:09 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 01:10:09 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 01:10:09 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:13:47 ------------------------------------------------------------ 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:13:47 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:13:47 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:13:47 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:13:47 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:13:47 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:13:47 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:13:47 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:13:47 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:13:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:13:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:13:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:13:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:13:47 [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.6 $) 2006-03-26 01:13:47 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:13:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:13:50 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:13:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:13:50 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:13:50 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:13: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.53 $) 2006-03-26 01:13:50 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 01:13:56 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 01:13:56 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 01:13:56 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 01:13:56 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 01:13:56 [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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 01:13:56 [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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 01:13:56 [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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 01:13:56 [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'] 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 01:13:56 [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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 01:13:56 [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. 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2DFA8> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2DF80> 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 01:13:56 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 01:13:56 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 01:13:56 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:15:41 ------------------------------------------------------------ 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:15:41 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:15:41 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:15:41 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:15:41 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:15:41 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:15:41 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:15:41 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:15:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:15:41 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:15:41 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:15:41 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:15:41 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:15:41 [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.6 $) 2006-03-26 01:15:41 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:15:44 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:15:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:15:44 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:15:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:15:44 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:15:44 [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.53 $) 2006-03-26 01:15:44 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 01:15:49 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 01:15:49 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 01:15:49 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 01:15:49 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 01:15:49 [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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 01:15:49 [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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 01:15:49 [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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 01:15:49 [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'] 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 01:15:49 [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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 01:15:49 [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. 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EFA8> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 01:15:49 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 01:15:49 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 01:15:49 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 01:18:44 ------------------------------------------------------------ 2006-03-26 01:18:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 01:18:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 01:18:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 01:18:44 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 01:18:44 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 01:18:45 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 01:18:45 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 01:18:45 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:18:45 [WARN] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 01:18:45 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 01:18:45 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 01:18:45 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 01:18:45 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:18:45 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 01:18:45 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:18:45 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 01:18:45 [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.6 $) 2006-03-26 01:18:45 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:18:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 01:18:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 01:18:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 01:18:47 [INFO] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:18:47 [DATA] (c:\Python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 01:18:47 [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.53 $) 2006-03-26 01:18:48 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 01:18:51 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 01:18:51 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 01:18:51 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "C:\Python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 01:18:51 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 01:18:51 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 01:18:51 [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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 01:18:51 [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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 01:18:51 [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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 01:18:51 [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'] 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 01:18:51 [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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 01:18:51 [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. 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x009B6C88> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EFA8> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 01:18:51 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 01:18:52 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 01:18:52 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 10:36:48 ------------------------------------------------------------ 2006-03-26 10:36:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 10:36:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 10:36:48 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 10:36:51 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 10:36:51 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 10:36:52 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 10:36:52 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 10:36:52 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 10:36:52 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 10:36:52 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 10:36:52 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 10:36:52 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 10:36:52 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 10:36:52 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 10:36:52 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 10:36:52 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 10:36:52 [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.6 $) 2006-03-26 10:36:52 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 10:36:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 10:36:57 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 10:36:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 10:36:57 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 10:36:57 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 10:36:57 [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.53 $) 2006-03-26 10:36:57 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 10:37:02 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 10:37:02 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 10:37:02 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 10:37:02 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 10:37:02 [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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 10:37:02 [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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 10:37:02 [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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 10:37:02 [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'] 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 10:37:02 [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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 10:37:02 [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. 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00949288> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00949288> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x009D3FD0> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009D3FA8> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009D3FA8> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009D3FA8> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x009D3FA8> 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 10:37:02 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 10:37:02 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 10:37:02 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 10:58:23 ------------------------------------------------------------ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 10:58:23 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 10:58:23 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 10:58:23 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 10:58:23 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 10:58:23 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 10:58:23 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 10:58:23 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 10:58:23 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 10:58:23 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 10:58:23 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 10:58:23 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 10:58:23 [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.6 $) 2006-03-26 10:58:23 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 10:58:26 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 10:58:26 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 10:58:26 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 10:58:26 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 10:58:26 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 10:58:26 [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.53 $) 2006-03-26 10:58:26 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 10:58:29 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 10:58:29 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 10:58:29 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 10:58:29 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 10:58:29 [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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 10:58:29 [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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 10:58:29 [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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 10:58:29 [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'] 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 10:58:29 [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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 10:58:29 [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. 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C88> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C88> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EFA8> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 10:58:29 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 10:58:29 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 10:58:29 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 11:18:18 ------------------------------------------------------------ 2006-03-26 11:18:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 11:18:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 11:18:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 11:18:19 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 11:18:19 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 11:18:19 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:18:19 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 11:18:19 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 11:18:19 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 11:18:19 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 11:18:19 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:18:19 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 11:18:19 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:18:19 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:18:19 [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.6 $) 2006-03-26 11:18:19 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:18:21 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:18:21 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:18:21 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 11:18:21 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:18:21 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:18:21 [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.53 $) 2006-03-26 11:18:21 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 11:18:28 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 11:18:28 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 11:18:28 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 11:18:28 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 11:18:28 [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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 11:18:28 [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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 11:18:28 [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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 11:18:28 [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'] 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 11:18:28 [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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 11:18:28 [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. 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C88> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C88> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EFA8> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 11:18:28 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 11:18:28 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 11:18:28 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 11:22:31 ------------------------------------------------------------ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 11:22:31 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 11:22:31 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 11:22:31 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:22:31 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 11:22:31 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 11:22:31 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 11:22:31 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 11:22:31 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 11:22:32 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:22:32 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:22:32 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 11:22:32 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:22:32 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:22:32 [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.6 $) 2006-03-26 11:22:32 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:22:34 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:22:34 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:22:34 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 11:22:34 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:22:34 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:22:34 [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.53 $) 2006-03-26 11:22:34 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 11:22:36 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 11:22:36 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 11:22:36 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 11:22:36 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 11:22:36 [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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 11:22:36 [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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 11:22:36 [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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 11:22:36 [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'] 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 11:22:36 [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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 11:22:36 [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. 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C88> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C88> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EFA8> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF80> 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 11:22:36 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 11:22:36 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 11:22:36 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 11:23:17 ------------------------------------------------------------ 2006-03-26 11:23:17 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 11:23:17 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 11:23:17 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 11:23:18 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 11:23:18 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 11:23:18 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:23:18 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 11:23:18 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 11:23:18 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 11:23:18 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 11:23:18 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:23:18 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 11:23:18 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:23:18 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:23:18 [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.6 $) 2006-03-26 11:23:18 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:23:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:23:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:23:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 11:23:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:23:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:23:38 [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.53 $) 2006-03-26 11:23:38 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 11:23:41 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 11:23:41 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 11:23:41 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 11:23:41 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 11:23:41 [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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 11:23:41 [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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 11:23:41 [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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 11:23:41 [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'] 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 11:23:41 [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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 11:23:41 [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. 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EF80> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 11:23:41 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 11:23:41 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 11:23:41 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 11:24:37 ------------------------------------------------------------ 2006-03-26 11:24:37 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 11:24:37 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 11:24:37 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 11:24:38 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 11:24:38 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 11:24:38 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:24:38 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 11:24:38 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 11:24:38 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 11:24:38 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 11:24:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:24:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 11:24:38 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:24:38 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:24:38 [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.6 $) 2006-03-26 11:24:38 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:24:40 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:24:40 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:24:40 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 11:24:40 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:24:40 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:24:40 [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.53 $) 2006-03-26 11:24:40 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 11:24:43 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 11:24:43 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 11:24:43 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 11:24:43 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 11:24:43 [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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 11:24:43 [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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 11:24:43 [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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 11:24:43 [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'] 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 11:24:43 [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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 11:24:43 [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. 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EF80> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 11:24:43 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 11:24:43 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 11:24:43 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown 2006-03-26 11:42:35 ------------------------------------------------------------ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: initial log level is [INFO] 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): instantiated log file C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log with ID C:\workplace\gnumed\gnumed\server\bootstrap\redo-v2.log 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): $Revision: 1.37 $ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPsql.py:address@hidden): $Revision: 1.5 $ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): $Revision: 1.63 $ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): $Revision: 1.13 $ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): text domain is [bootstrap_gm_db_system] 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): ${BOOTSTRAP_GM_DB_SYSTEM_DIR} not set 2006-03-26 11:42:35 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmI18N.py:address@hidden): Giving up and falling back to NullTranslations() class in despair. 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): PostgreSQL via DB-API module "": API level 2.0, thread safety 1, parameter style "pyformat" 2006-03-26 11:42:35 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): error getting client encoding from locale system 2006-03-26 11:42:35 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:42:35 [WARN] (c:\python23\lib\site-packages\Gnumed\pycommon\gmPG.py:address@hidden): exception value: 'module' object has no attribute 'nl_langinfo' 2006-03-26 11:42:35 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmAuditSchemaGenerator.py:address@hidden): $Revision: 1.25 $ 2006-03-26 11:42:35 [INFO] (C:\workplace\gnumed\gnumed\server\bootstrap\gmNotificationSchemaGenerator.py:address@hidden): $Revision: 1.14 $ 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmLog.py:address@hidden): SECURITY: log level change from [INFO] to [DATA] 2006-03-26 11:42:35 [INFO] (bootstrap_gm_db_system.py:address@hidden): startup ($Revision: 1.22 $) 2006-03-26 11:42:35 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:42:35 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-local_first.conf'] 2006-03-26 11:42:35 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:42:35 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-local_first.conf] 2006-03-26 11:42:35 [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.6 $) 2006-03-26 11:42:35 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:43:00 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): (, ) 2006-03-26 11:43:00 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): ignoring command line per cfg_IGNORE_CMD_LINE 2006-03-26 11:43:00 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): config file search order: ['C:\\workplace\\gnumed\\gnumed\\server\\bootstrap\\bootstrap-monolithic_core.conf'] 2006-03-26 11:43:00 [INFO] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): found config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:43:00 [DATA] (c:\python23\lib\site-packages\Gnumed\pycommon\gmCfg.py:address@hidden): parsing config file [C:\workplace\gnumed\gnumed\server\bootstrap\bootstrap-monolithic_core.conf] 2006-03-26 11:43:00 [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.53 $) 2006-03-26 11:43:00 [WARN] (bootstrap_gm_db_system.py:address@hidden): running on broken OS -- can't import pwd module 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping service [config] 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database [core] 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): if environment variable [GM_CORE_DB] exists, it override database name in config file 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping server [local host] 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): connecting to server template database 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): trying DB connection to template1 on localhost as postgres 2006-03-26 11:43:11 [WARN] (bootstrap_gm_db_system.py:address@hidden): connection failed 2006-03-26 11:43:11 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception type : libpq.DatabaseError 2006-03-26 11:43:11 [WARN] (bootstrap_gm_db_system.py:address@hidden): exception value: could not create socket: Address family not supported (0x0000273F/10047) 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 197, in connect<#10-0x0A-lf> conn = dbapi.connect(dsn)<#10-0x0A-lf> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2211, in connect<#10-0x0A-lf> return Connection(connInfo, client_encoding, unicode_results)<#10-0x0A-lf> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): File "c:\python23\lib\site-packages\pyPgSQL\PgSQL.py", line 2331, in __init__<#10-0x0A-lf> raise DatabaseError, m<#10-0x0A-lf> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): DatabaseError: could not create socket: Address family not supported (0x0000273F/10047)<#10-0x0A-lf><#10-0x0A-lf> 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): successfully connected to template database [template1] 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): bootstrapping database users and groups 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap service [config]. 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception type : exceptions.AttributeError 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): exception value: 'NoneType' object has no attribute 'cursor' 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): Traceback (most recent call last):<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 905, in bootstrap<#10-0x0A-lf> database(aDB_alias = database_alias, aCfg = _cfg)<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 534, in __init__<#10-0x0A-lf> db_server(self.server_alias, self.cfg, auth_group = self.name)<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 296, in __init__<#10-0x0A-lf> if not self.__bootstrap():<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 312, in __bootstrap<#10-0x0A-lf> if not self.__bootstrap_db_users():<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 349, in __bootstrap_db_users<#10-0x0A-lf> if self.__create_groups() is None:<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): File "bootstrap_gm_db_system.py", line 485, in __create_groups<#10-0x0A-lf> cursor = self.conn.cursor()<#10-0x0A-lf> 2006-03-26 11:43:11 [PANIC] (bootstrap_gm_db_system.py:address@hidden): AttributeError: 'NoneType' object has no attribute 'cursor'<#10-0x0A-lf> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): locals by frame, outmost frame first 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [?] in [bootstrap_gm_db_system.py] at line 1430 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_auditing = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_server = __main__.db_server 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg_file = bootstrap-monolithic_core.conf 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmLog = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): getpass = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): dsn_format = %s:%s:%s:%s:%s 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _interactive = 1 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): connect = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): ConstructorError = Gnumed.pycommon.gmExceptions.ConstructorError 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): fileinput = 2006-03-26 11:43:11 [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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_services = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _import_schema = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): dbapi = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): bootstrap_notifications = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): handle_cfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _run_query = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aud_gen = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): become_pg_demon_user = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): exit_with_msg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): libpq = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): notify_gen = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): db_error = libpq.DatabaseError 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmService = __main__.gmService 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): re = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmCfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): ask_for_confirmation = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_servers = {} 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __version__ = $Revision: 1.22 $ 2006-03-26 11:43:11 [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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __file__ = bootstrap_gm_db_system.py 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _dbowner = None 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): string = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __license__ = GPL 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): show_msg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __builtins__ = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): glob = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _cfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): get_cfg_in_nice_mode = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __author__ = address@hidden 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): sys = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _bootstrapped_dbs = {} 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _keep_temp_files = True 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_passwd = {} 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): _log = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): cached_host = None 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __name__ = __main__ 2006-03-26 11:43:11 [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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmAuditSchemaGenerator = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): database = __main__.database 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmPsql = 2006-03-26 11:43:11 [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'] 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): __doc__ = GNUmed schema installation. This script bootstraps a GNUmed database system. All the infrastructure is in place to support distributed services. However, until further notice one should stick to monolithic database design as cross-database links are not well supported yet. This will set up databases, services, database tables, groups, permissions and possibly users. 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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): PgSQL = 2006-03-26 11:43:11 [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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): time = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): gmNotificationSchemaGenerator = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): os = 2006-03-26 11:43:11 [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. 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): user = __main__.user 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [handle_cfg] in [bootstrap_gm_db_system.py] at line 1400 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): tmp = yes 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap_services] in [bootstrap_gm_db_system.py] at line 1151 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): services = ['config', 'reference', 'demographics', 'clinical', 'documents', 'office'] 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): service_alias = config 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): service = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [bootstrap] in [bootstrap_gm_db_system.py] at line 907 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): database_alias = core 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.gmService instance at 0x00A11C60> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 534 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.database instance at 0x00B2EF80> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): overrider = GM_CORE_DB 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aDB_alias = core 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__init__] in [bootstrap_gm_db_system.py] at line 296 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): auth_group = "gnumed_v2" 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSrv_alias = local host 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap] in [bootstrap_gm_db_system.py] at line 312 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__bootstrap_db_users] in [bootstrap_gm_db_system.py] at line 349 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): >>> execution frame [__create_groups] in [bootstrap_gm_db_system.py] at line 485 <<< 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): cfg = 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): self = <__main__.db_server instance at 0x00B2EF58> 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aCfg = None 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): groups = ['gm-logins', 'gm-doctors', 'gm-staff_medical', 'gm-staff_office', 'gm-trainees_medical', 'gm-trainees_office', 'gm-public', '"gnumed_v2"'] 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): aSection = None 2006-03-26 11:43:11 [DATA] (bootstrap_gm_db_system.py:address@hidden): section = GnuMed defaults 2006-03-26 11:43:11 [ERROR] (bootstrap_gm_db_system.py:address@hidden): Cannot bootstrap services. 2006-03-26 11:43:11 [INFO] (bootstrap_gm_db_system.py:address@hidden): shutdown md5 ---------------------------------- 5381c4a369dda19e8b29676c0848bde1 (1 row)