gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] Re: Fwd: bootstrap log


From: Karsten Hilbert
Subject: [Gnumed-devel] Re: Fwd: bootstrap log
Date: Sat, 5 Mar 2011 22:42:04 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hello vbanait !

Apparently, this Linux distribution:

> 2011-03-05 23:07:46  INFO      gm.db 
> (/var/lib/gnumed/Gnumed/pycommon/gmPG2.py::get_connection() #1332): 
> PostgreSQL version (string): "PostgreSQL 8.4.7 on i686-pc-linux-gnu, compiled 
> by GCC gcc-4.4.real (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5, 32-bit"

creates a stone age PostgreSQL cluster with the SQL_ASCII encoding:

> 2011-03-05 23:07:46  ERROR     gm.bootstrapper 
> (./bootstrap_gm_db_system.py::__create_db() #792): >>>[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 790, in __create_db
>     cursor.execute(cmd)
>   File "/usr/lib/python2.6/dist-packages/psycopg2/extras.py", line 118, in 
> execute
>     return _cursor.execute(self, query, vars)
> DataError: new encoding (UTF8) is incompatible with the encoding of the 
> template database (SQL_ASCII)

I would strongly suggest switching to a sane distribution (like Debian).

If that is not possible at all, apply this hint:

> HINT:  Use the same encoding as in the template database, or use template0 as 
> template.

and edit the .conf bootstrapping configuration to use
template0 where it says template1.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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