help-gnats
[Top][All Lists]
Advanced

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

Re: Adding new categories with mkcat


From: Mel Hatzis
Subject: Re: Adding new categories with mkcat
Date: Tue, 14 Jan 2003 11:56:36 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

On 01/14/2003 07:53 AM, Marco Mammarella wrote:
Hy all,


I have edited categories file in /usr/com/gnats-adm as gnats user, I have inserted new categories and I run 'mkcat' command in a shell (as gnats user or as root), the system give me this message:


query-pr: --print-directory-for-database not supported in network mode
query-pr: access denied


This error is generated when you attempt to run a 'localhost' command
line option to query-pr (in your case --print-directory-for-database)
against a networked database. The 'mkcat' program expects to be run
in localhost mode....in your case this means that you should be running
mkcat on the server containing the /usr/com directory and furthermore
the 'databases' file which query-pr is compiled to look at contains
a localhost database definition.

Try running 'query-pr --list-databases' to see the contents of your
databases file. If the 'default' entry contains more than 3 fields
(each field is colon delimited) your 'default' database is accessed
in network mode and you'll get the error you've described above.

Generally speaking, there are two installations of gnats required
in a networked environment....in one install the binaries point
to a databases file with 'localhost' database defintions (which
is the 'gnats' server) and in the other install, the binaries
point to a databases file with 'network' database defintions
(which you can think of as the gnats client side).
My guess is that you're running the mkcat associated with the
gnats client install.

Run the following command on the server containing the /usr/com
directory to determine the gnats server directory:

   grep support /etc/inetd.conf

And run the 'mkcat' script that belongs to this directory.


If I access to gnatsweb system I can see new categories in pending list, but in /usr/com I cannot see related directory for these categories.


Since the new categories didn't get created, any PR's you open
with the new category names will end up in pending....this is
correct gnats behaviour.

I'm not sure if you're using the Gnats 4.0 beta code, but if you are,
you can change this behaviour by adding the following entry to your
dbconfig file in the 'database-info' section:

    # If true, directories for categories are automatically created if they
    # don't already exist.
    create-category-dirs true

--
Mel Hatzis


Furthermore, for some initial categories, that I have inserted in the first installation step of the system, these directories were been created in the right path ( /usr/com ).

Do you have some suggestions ?

Bye Marco.


------------------------------------------------------------------------

_______________________________________________
Help-gnats mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-gnats







reply via email to

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