gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] bootstrap error on Mandriva 2010


From: Michael Schütt
Subject: [Gnumed-devel] bootstrap error on Mandriva 2010
Date: Sat, 06 Mar 2010 20:06:15 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20100301)

I dont know, where is the problem.

address@hidden bootstrap]# passwd postgres
ändere Passwort für Benutzer postgres.
Geben Sie ein neues Passwort ein:
Geben Sie das neue Passwort erneut ein:
Schlechtes Passwort: it is too short
passwd: alle Authentifizierungsmerkmale erfolgreich aktualisiert.
address@hidden bootstrap]# su - postgres
address@hidden ~]$ psql template1
psql (8.4.2)
Type "help" for help.

template1=# create user web_user;
CREATE ROLE
template1=# create database web_database owner web_user;
CREATE DATABASE
template1=# \q
address@hidden ~]$ exit
logout
address@hidden bootstrap]# service postgresql restart
Stopping postgresql service:

                        [  OK  ]
Starting postgresql service:

                        [  OK  ]
address@hidden bootstrap]# psql -U web_user web_database
psql (8.4.2)
Geben Sie »help« für Hilfe ein.

web_database=> \q
address@hidden bootstrap]# ./bootstrap-latest.sh
===========================================================
Bootstrapping latest GNUmed database.

This will set up a GNUmed database of version v12
with the name "gnumed_v12".
Adjusting PYTHONPATH ...
/usr/lib/gnumed-server/Gnumed/pycommon/gmTools.py:13:
DeprecationWarning: the MimeWriter module is deprecated; use the email
package instead
  import urllib2 as wget, decimal, StringIO, MimeWriter, mimetypes,
mimetools
=======================================
Bootstrapping GNUmed database system...
=======================================
You are about to install the following parts of GNUmed:
-------------------------------------------------------
bundle "config" in <gnumed_v2> (or overridden) on <>
bundle "reference" in <gnumed_v2> (or overridden) on <>
bundle "demographics" in <gnumed_v2> (or overridden) on <>
bundle "clinical" in <gnumed_v2> (or overridden) on <>
bundle "documents" in <gnumed_v2> (or overridden) on <>
bundle "office" in <gnumed_v2> (or overridden) on <>
-------------------------------------------------------
This will set up a monolithic GNUmed backend with all bundles
in one database named [gnumed]. It will contain the core schema
without country or language-specific components. Those will
have to be added by using one of the bootstrap-XX.conf file
where XX represents the ISO country code.

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

==> bootstrapping "config" ...
==> cloning [template1] (5280 kB) as target database [gnumed_v2] ...
Cannot bootstrap bundles.

Please check the log file for details:

  /usr/lib/gnumed-server/server/bootstrap/bootstrap-latest.log

Bootstrapping "gnumed_v12" did not finish successfully. Aborting.


bootstrap-latest.log:

2010-03-06 19:58:03  ERROR     gm.bootstrapper
(./bootstrap_gm_db_system.py::__create_db() #781): >>>[
                                create database "gnumed_v2" with
                                        owner = "gm-dbo"
                                        template = "template1"
                                        encoding = 'unicode'
                                ;]<<< failed
Traceback (most recent call last):
  File "./bootstrap_gm_db_system.py", line 779, in __create_db
    cursor.execute(cmd)
  File "/usr/lib/python2.6/site-packages/psycopg2/extras.py", line 110,
in execute
    return _cursor.execute(self, query, vars, async)
DataError: new encoding (UTF8) is incompatible with the encoding of the
template database (SQL_ASCII)
TIP:  Use the same encoding as in the template database, or use
template0 as template.

2010-03-06 19:58:03  ERROR     gm.bootstrapper
(./bootstrap_gm_db_system.py::__bootstrap() #575): Cannot create database.
2010-03-06 19:58:03  ERROR     gm.bootstrapper
(./bootstrap_gm_db_system.py::bootstrap() #1115): Cannot bootstrap
bundle [config].
Traceback (most recent call last):
  File "./bootstrap_gm_db_system.py", line 1113, in bootstrap
    database(aDB_alias = database_alias)
  File "./bootstrap_gm_db_system.py", line 548, in __init__
    raise ConstructorError, "database.__init__(): Cannot bootstrap
database."
ConstructorError: database.__init__(): Cannot bootstrap database.
2010-03-06 19:58:03  ERROR     gm.bootstrapper
(./bootstrap_gm_db_system.py::exit_with_msg() #1275): Cannot bootstrap
bundles.
2010-03-06 19:58:03  INFO      gm.bootstrapper
(./bootstrap_gm_db_system.py::exit_with_msg() #1276): shutdown
address@hidden bootstrap]#




reply via email to

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