Geneweb on Ununtu 11-10 cannot find databases

Bug #877466 reported by David Newmarch
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
geneweb (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have installed geneweb package on Ubuntu 11.10 successfully in that web address http://127.0.0.1:2317/? accesses geneweb but cannot find my databases. I have put then in my home directory under /home/gw-bases
I have tried to use gwd -bd /home/gw-bases to set the directory but command is rejected.
Also gwsetup is unable to initiate a new database because of write error to protected directories.

Thanks,
David

Kiwinote (kiwinote)
affects: software-center (Ubuntu) → geneweb (Ubuntu)
Revision history for this message
Christian Perrier (bubulle) wrote :

Please read /usr/share/doc/geneweb/README.Debian. All needed information is there

Changed in geneweb (Ubuntu):
status: New → Invalid
Revision history for this message
David Newmarch (david-newmarch) wrote :

Thanks, I have read all that but it is no help.
I do not decide where to install geneweb so I do not control access to the files.
Packet manager has loaded 5 geneweb folders in a variety of locations but I guess the particular location referred to would be /usr/share/geneweb/ which contains fodlers for doc etc images land setup
I have tried to add a gw folder to contain my bases but access to this area is defied.

Even when I run gwsetup in a term (cd /usr/shar/geneweb then $ gwsetup) and go to http://121.0.0.1.2316 making a new database
 For information, this operation corresponds to the following commands:

     $ cd "/usr/share/geneweb"
     $ ./gwc -f -o findme > comm.log

This builds a directory named "findme.gwb".
 fails with
Here is the contents of the file "comm.log":

    - empty file -

I need to set the gwd -bd variable to point to the gw folder in my accessible home folder.
Any help how?

Revision history for this message
David Newmarch (david-newmarch) wrote :

More efforts failed.
From the Debian notes, I used GKSUDO Nautilus to access usr/lib/geneweb which contains folders, cnt, images and etc.
Only cnt contains a file gwd.lck which apears to be empty.
I copied a database folder sample.gwb and also a.gwf file into the usr/lib/geneweb folder and tried to access with 127.0.0.1?2137/? but no database found.
I do not understand the 'geneweb group' stuff. Where do I find this or how do I add to it?

Revision history for this message
Christian Perrier (bubulle) wrote :

Sorry, the notes are as clear as they can be, but they can't intend to be a course about Unix system administration.

Sopy, copy/paste mode:

Users who want to share databases in the main directory (/var/lib/geneweb)
have to be members of the geneweb group (just like the geneweb user is).
All files and directories there should be writable by the owning user AND
the geneweb group. This means that you should use 002 as umask when writing
to this directory. Users with the more common 022 umask must then
temporarily change it before creating files, or need to adapt
directories and files permissions in /var/lib/geneweb after adding
a database.

This inludes files in the base.gwb directory as well as files created
by the daemon during its work (such as "history" of .lck files...)
should be writable by both the database owner (for allowing him for
manually make modifications from the shell) and the geneweb group.

Revision history for this message
David Newmarch (david-newmarch) wrote :

Still no joy.

I made the directory /usr/share/geneweb r/w access to everyone. All sub files/foldesr likewise.
I found a file /etc/group and the last entry is geneweb:x:1001
so I added myself to be - geneweb:x:1001:david
I checked the umask -
david@david-Inspiron-1750:/var/lib/geneweb$ umask
0002
There is no base.gwb nor *'lck flies created anywhere on my system by geneweb.

The gwd daemon is launched automatically so that http:// localhost:2317 displays in the browser but cannot find any databases.
Running gwsetup in term cd /usr/share/geneweb initiated setup so that localhost:2326 opens the setup menu but the command to create a directory still fails/

Revision history for this message
David Newmarch (david-newmarch) wrote :

OK finally. So this is how I got it to work.

I removed the Synaptic Packet Manager download of Geneweb 5.02 and cleaned by my machine.
Then I downloaded version gw-6.01-linux.tgz from http://opensource.geneanet.org/projects/geneweb
and unpacked with Archive Manager to my home directory. home/Geneweb-6.01
I moved my existing gwb files into the bases folder inside Genweb-6.01.
Next I executed gwd from same folder and then went to the browser (firefox) to load localhost:2317 to get the Bases screen for version 6.01.
Enter in a database name (must be correctly spelt with capitals/lowercase) and hey presto.

Note: The Bases menu will not list available databases in the related folder.

Revision history for this message
Christian Perrier (bubulle) wrote :

TO everybody reading this bug report: please don't think that the Ubuntu/Debian package isn't working.

It is working like a charm for 10 years..:-)

It *just*requires people to *read* available documentation, not interpret it and put the damn databases in /var/lib/geneweb and certainly not in /usr/share/geneweb (where the h**** did you get this idea?).

Again: this bug report is invalid.

Revision history for this message
Georges VaillancourtArcs (ghvaillancourt) wrote :

Ce n'est pas un bug dans Ubuntu, mais dans la version de GeneWeb qui est installée par Synaptics. J'ai trouvé une explication et je l'ai posté sur un autre forum (Voir ci-dessous). Il semblerait que les versions plus récentes de GeneWeb n'ont plus ce problème.

Message posté sur : http://forum.ubuntu-fr.org/viewtopic.php?pid=7957351#p7957351
Je suis un utilisateur de geneweb sur Windows depuis environ 10 ans et c'est très simple à faire fonctionner, car on peut utiliser gwsetup pour construire une base de données à partir d'un fichier gedcom. Malheureusement sur Ubuntu, gwsetup ne fonctionne pas et j'ai du utiliser gwb2ged pour faire la même chose et malgré que cette option fonctionne très bien, c'est beaucoup plus compliqué qu'avec gwsetup, car cela demande l'utilisation de sudo et c'est un peu dangereux pour un débutant. De plus on doit faire la maintenance des bases de données manuellement, ce qui est aussi plus compliqué. Pourtant, je crois qu'il serait très facile pour quelqu'un qui s'y connait un peu de corriger le problème de gwsetup.
Mon hypothèse est que ce problème se produit parce que, par défaut, gwsetup essaie de créer la base de données dans /usr/share/geneweb/, alors que ça devrait être dans /var/lib/geneweb/ qui est l'endroit où il faut placer la base données pour que ça fonctionne bien. Juste pour voir, j'ai créé des bases de données dans /usr/share/geneweb/ et c'est alors impossible d'y accéder par le navigateur avec l'adressehttp://127.0.0.1:2317/nom_de_la_base et c'est parce que le navigateur regarde par défaut dans /var/lib/geneweb/.
Par contre j'ai pu utiliser l'url: http://127.0.0.1:2316 qui active gwsetup pour aller renommer et effacer les bases que j'avais créées dans /usr/share/geneweb. Cela confirme mon hypothèse du début que c'est un problème de configuration de gwsetup.
Je crois qu'il serait facile de corriger ce bug, on aurait qu'à modifier un des fichiers de configuration de gwsetup, malheureusement je n'ai pas les connaissances suffisantes pour le faire. J'espère que quelqu'un de qualifié lira ce message et corrigera ce problème qui me semble assez mineur.
Pour revenir à la question posée, voici la commande que j'ai utilisé pour créer une base de données dans /var/lib/geneweb:
Il faut d'abord ouvrir un terminal (CTRL-ALT-t)
Dans le terminal, on entre la commande suivante:
sudo ged2gwb /home/mon_non_usager/nom_du_répertoire/nom_fichier.ged -f -o /var/lib/geneweb/nom_de_la_base
Cela fonctionne très bien pour moi, on visualise ensuite la base de données dans un navigateur à l'adresse http://127.0.0.1:2317/nom_de_la_base
Bonne chance
Hengeo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.