[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Gnumed on Debian 'Sid' (sort of)
From: |
Michael Bonert |
Subject: |
[Gnumed-devel] Gnumed on Debian 'Sid' (sort of) |
Date: |
Sun, 4 Jan 2004 06:03:19 -0500 (EST) |
Hi Everyone,
The past few months have been really busy; I started med school
in September. Any case, I finally got the chance to try out Gnumed
on Debian.
Attached below are my install notes. I think they might be useful
for other people that are just cruising through, are running
Debian and want to give Gnumed a try. Also, I haven't quite gotten
Gnumed running. It crashed after the start screen. :(
The problem seems to lie somewhere in the bootstrapping.
The error message I get is:
"no staff name on file for current database login"
(details below)
This has got me a bit confused 'cause I can access the database
(gnumed) with pgaccess and see 'test-doc' which looks like a staff
to me.
Any help would be much appreciated.
Thanks,
Michael
============================================================
Gnumed Install Notes -- On Debian 'Sid'
January 4, 2004.
--------------------------------------------------
#apt-get install cvs
SET-UP OF SSH KEY
$cd ~/ssh
$echo "Protocol 2" > ~/.ssh/config
$ssh-keygen -t dsa
<return> to accept ~/.ssh/id_dsa
---
address@hidden:~$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/michael/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/michael/.ssh/id_dsa.
Your public key has been saved in /home/michael/.ssh/id_dsa.pub.
The key fingerprint is:
<SNIP> address@hidden
address@hidden:~$
---
paste contents of:
~/.ssh/id_dsa.pub
into area on:
https://savannah.gnu.org/account/editsshkeys.php
----------------------------------------
CHECKING PYTHON VERSION
address@hidden:~$ python
Python 2.3.3 (#2, Dec 19 2003, 11:28:07)
[GCC 3.3.3 20031203 (prerelease) (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
GETTING PACKAGES
#apt-get install python-egenix-mx-base-dev
#apt-get install postgresql
#apt-get install python-pgsql
#apt-get install python-egenix-mxtools
#apt-get install python-egenix-mxdatetime
#apt-get install pgaccess
#apt-get install python-pygresql
$ cd ~
$ mkdir gnumed
$ export CVS_RSH=ssh
GETTING GNUMED SOURCE
$ cvs -z3 address@hidden:/cvsroot/gnumed co gnumed
(NOTE: michaelb -- would have to replace by something anonymous...)
TESTING WXPTYHON
$cd /home/michael/gnumed/gnumed/client/wxpython
$python gmAbout.py
(woohoo -- saw the text scroll)
CHANGING POSTGRES PASSWORD
$ su
# passwd postgres
(enter new passwd)
# su postgres
$ createuser michael
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
CREATE USER
testing
$ createdb test
CREATE DATABASE
WORKS!!! :)
$cd /var/lib/postgres/data
$vi pg_hba.conf
ORIGINAL:
--------
# The following configuration is the upstream default, which allows
# unrestricted access to amy database by any user on the local machine.
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
#
#local all all trust
# IPv4-style local connections:
#host all all 127.0.0.1 255.255.255.255 trust
--------
TO:
--------
# The following configuration is the upstream default, which allows
# unrestricted access to amy database by any user on the local machine.
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
#
local all all trust
# IPv4-style local connections:
host all all 127.0.0.1 255.255.255.255 trust
--------
$vi postgresql.conf
changed "#port = 5432" to "port = 5432"
???restart poastmaster after user is created???
XXX $/usr/lib/postgresql/bin/initdb -D /var/lib/postgres/data/
(was done already)
RESTARTING POSTMASTER
$/usr/lib/postgresql/bin/postmaster -D /var/lib/postgres/data/
$cd /home/michael/gnumed/gnumed/server/bootstrap
NOTE: make links script is gone (--still in install documentation)
BOOTSTRAPPING
$cd /home/michael/gnumed/gnumed/server/bootstrap
$python bootstrap-gm_db_system.py
--conf-file=bootstrap-monolithic_core.conf
$python bootstrap-gm_db_system.py --conf-file=bootstrap-au.conf
XXX FAILED --- see below
STARTING GNUMED
$cd /home/michael/gnumed/gnumed/client/wxpython
$python gnumed.py &
------------------------------
address@hidden:~/gnumed/gnumed/client/wxpython$ python gnumed.py &
[1] 7097
---------------OUTPUT
address@hidden:~/gnumed/gnumed/client/wxpython$ Determining GnuMed base
directory ...
- environment variable GNUMED_DIR not set
(only necessary if nothing else works, though)
- standard path [/usr/share/gnumed/] not accessible
- seems like we are running from an arbitrary
directory (like a CVS tree or on Windows)
log file is [/home/michael/.gnumed/gnumed.log]
WARNING: option <client encoding> not set in config file
You should name this workplace to better identify the machine !
To do this set the option "name" in the group [workplace] in the config
file !
[PANIC] (gnumed.py::Main:243): Exception: Unhandled exception encountered.
[PANIC] (gnumed.py::Main:243): exception type : exceptions.ValueError
[PANIC] (gnumed.py::Main:243): exception value: no staff name on file for
current database login
[PANIC] (gnumed.py::Main:243): Traceback (most recent call
last):<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File "gnumed.py", line 239, in
?<#10-0x0A-lf> gmGuiMain.main()<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line 754, in
main<#10-0x0A-lf> app = gmApp(0)<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__<#10-0x0A-lf> _wxStart(self.OnInit)<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line 624, in
OnInit<#10-0x0A-lf> frame = gmTopLevelFrame(None, -1, _('GnuMed
client'), (640,440))<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line 123, in
__init__<#10-0x0A-lf> self.updateTitle(anActivity =
_("idle"))<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line 561, in
updateTitle<#10-0x0A-lf> title = "GnuMed address@hidden %s: %s" %
(_whoami.get_staff_name(), _whoami.get_workplace(), self.title_activity,
pat_str)<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): File
"/home/michael/gnumed/gnumed/client/python-common/gmWhoAmI.py", line 95,
in get_staff_name<#10-0x0A-lf> raise ValueError, _('no staff name on
file for current database login')<#10-0x0A-lf>
[PANIC] (gnumed.py::Main:243): ValueError: no staff name on file for
current database login<#10-0x0A-lf>
Traceback (most recent call last):
File "/home/michael/gnumed/gnumed/client/wxpython/gnumed.py", line 239,
in ?
gmGuiMain.main()
File "/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line
754, in main
app = gmApp(0)
File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__
_wxStart(self.OnInit)
File "/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line
624, in OnInit
frame = gmTopLevelFrame(None, -1, _('GnuMed client'), (640,440))
File "/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line
123, in __init__
self.updateTitle(anActivity = _("idle"))
File "/home/michael/gnumed/gnumed/client/wxpython/gmGuiMain.py", line
561, in updateTitle
title = "GnuMed address@hidden %s: %s" % (_whoami.get_staff_name(),
_whoami.get_workplace(), self.title_activity, pat_str)
File "/home/michael/gnumed/gnumed/client/python-common/gmWhoAmI.py",
line 95, in get_staff_name
raise ValueError, _('no staff name on file for current database
login')
ValueError: no staff name on file for current database login
[1]+ Exit 1 python gnumed.py
address@hidden:~/gnumed/gnumed/client/wxpython$
------------------------------
------------------------------
$python bootstrap-gm_db_system.py --conf-file=bootstrap-au.conf
---------------OUTPUT
/home/michael/.bootstrap-gm_db_system/bootstrap-gm_db_system.log
--SNIP--
2004-01-04 05:29:35 [WARN]
(bootstrap-gm_db_system.py::__bootstrap_proc_langs:315): No procedural
languages to activate or erro
r loading language list.
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::__connect_owner_to_template:588): successfully
connected to template database [template1]
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::__db_exists:645): Database [gnumed] exists.
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::__connect_owner_to_db:628): successfully
connected to database [gnumed]
2004-01-04 05:29:35 [WARN]
(/home/michael/gnumed/gnumed/client/python-common/gmCfg.py::get:518): option
<schema base directory>
not found in group [database core]
2004-01-04 05:29:35 [WARN]
(bootstrap-gm_db_system.py::_import_schema:1147): no schema files base
directory specified
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::__service_exists:897): service [personalia]
not installed here yet
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::__verify_pg_version:947): installed PostgreSQL
version: [PostgreSQL 7.4.
1 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.3
20031206 (prerelease) (Debian)] - this is fine with me
2004-01-04 05:29:35 [DATA]
(/home/michael/gnumed/gnumed/server/bootstrap/Psql.py::run:149):
reset client_encoding
2004-01-04 05:29:35 [ERROR]
(/home/michael/gnumed/gnumed/server/bootstrap/Psql.py::run:156):
../sql/country.specific/au/gmDemogr
aphics.au.sql:19: ERROR: relation "org_au_id_seq" already exists
2004-01-04 05:29:35 [ERROR]
(bootstrap-gm_db_system.py::_import_schema:1166): failed to import
[../sql/country.specific/au/gmDem
ographics.au.sql]
2004-01-04 05:29:35 [ERROR]
(bootstrap-gm_db_system.py::bootstrap:849): Cannot import schema
definition for service [demographic
s-au] into database [core].
2004-01-04 05:29:35 [ERROR]
(bootstrap-gm_db_system.py::exit_with_msg:1238): Cannot bootstrap
services.
2004-01-04 05:29:35 [INFO]
(bootstrap-gm_db_system.py::exit_with_msg:1239): shutdown
--------------------
-- System Information --
Software:
Debian Release: testing/unstable
Kernel: Linux version 2.6.0-test7 (address@hidden) (gcc version 3.3.2
(Debian)) #1 Mon Oct 27 21:34:51 EST 2003
Desktop Env.: KDE 3.1.1
Hardware:
Athlon 2200 XP
ASUS A7N8X Motherboard
ASUS V8420 - NVIDIA GeForce 4
512 MB RAM
- [Gnumed-devel] Gnumed on Debian 'Sid' (sort of),
Michael Bonert <=