public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* Adding new categories with mkcat
@ 2003-01-14 16:10 Marco Mammarella
  2003-01-14 19:58 ` Mel Hatzis
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Mammarella @ 2003-01-14 16:10 UTC (permalink / raw)
  To: help-gnats


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]

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

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.

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.

[-- Attachment #1.2: Type: text/html, Size: 17820 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Adding new categories with mkcat
  2003-01-14 16:10 Adding new categories with mkcat Marco Mammarella
@ 2003-01-14 19:58 ` Mel Hatzis
  0 siblings, 0 replies; 2+ messages in thread
From: Mel Hatzis @ 2003-01-14 19:58 UTC (permalink / raw)
  To: Marco Mammarella; +Cc: help-gnats

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
> Help-gnats@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnats





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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-14 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 16:10 Adding new categories with mkcat Marco Mammarella
2003-01-14 19:58 ` Mel Hatzis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).