public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* gnatsd
@ 2004-09-05 19:32 David Miller
  2004-09-05 19:38 ` gnatsd Stuart Stevens
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Miller @ 2004-09-05 19:32 UTC (permalink / raw)
  To: help-gnats

Hello

A while back I had a post saying that I couldn't get gnatsweb to work. I 
hadn't gotten info on how to fix it until I saw a post that talked about 
turnning of optimization on a RedHat/Fedora machine.  I didn't try it 
then because I knew I would be upgrading machines and OS. 
I now have a Fedora core 2 machine 2700 athalon.  All old data was 
archived in a tar file.  I have now tried to install gnats on the new 
machine.  I don't know why I seem to have such a hard time with this app.

I created a user gnats.  NOTE: I don't remember seeing anything that 
states how this should be.  I created gnats with a default group of 
gnats and let everything else in the Fedora gui add user tool take defaults.
did an su and became root.
coppied the tar file to /usr/local/src and did a tar -xzvf gnats-4.0.tar.gz
cd to gnats-4.0
Went in to the three mentioned configure files and removed the -02 from 
the CFLAGS in two different locations each.
make all info
 From another terminal window
su gnats
cd /usr/local/libexec/gnats
./mkdb default
It complained that it didn't have rights to create 
/usr/loca/com/gnatsdb.  NOTE: I don't remember the manual making any 
comment about this kind of problem.
I created /usr/local/com and changed owner to gnats:gnats
Went back to my terminal running as gnats and tried mkdb again.  This 
time it created the database.
In a root terminal window, I went to /usr/local/etc/gnats/databases and 
added the info for my database.
back at the gnats terminal window did ./mkdb site_manager and it created 
my database.
I had untared my archive in a different directory and now I overwrite my 
database in /usr/local/com with the one from my tar file.
using query-pr, etc I can work with my database.  This is the way that I 
have always had to do it.
I am now back to where I was on my old machine.
/usr/local/etc/gnats/gnatsd.host_access I added the line
localhost:edit:
I added the following in a file called /etc/xinetd/support
service support
{
     disable = no
    socket_type = stream
     protocol = tcp
    wait = no
    user = gnats
    gnats server = /usr/local/libexec/gnats/gnatsd
}
did /etc/rc.d/init.d/xinetd restart

I can do the follow so it appears that the server works.
[root@lnx101 gnats]# ./gnatsd -n
200 lnx101.home.loc GNATS server 4.0 ready.
USER gnats gantspr
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
 
While this is still running or after it is stopped.
 telnet localhost 1529
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

Other things I don't understand.
This is all on my machine for my development.  My mail is all done with 
pop and snmp.  I don't have the sendmail damon running.  My machine is 
on a private network 192.168.*.* .  I some times will route port 80 to 
my machine and give someone the IP so that they can see my webserver 
that I use to develop with.  I would like to run gnatsweb for my own 
use, and may want the outside to be able to see it through port 80.  If 
gnats is to use email it would have to be routed through my pop mail and 
smtp.  I don't understand how to do that.
Although, I know that I have to get past the server running, but when I do.
make install CGI_DIR=/var/www/cgi-bin  it puts the two .pl files and an 
html file in the cgi-bin directory and says your ready to go.  Well I 
copy the html file to /var/www/html and point a browser to it and it 
gives me an info page.  How will I get to the login and all the other 
gnats pages?  Will the perl scripts take care of this once the damon can 
be connected to?

David Miller




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

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

* RE: gnatsd
  2004-09-05 19:32 gnatsd David Miller
@ 2004-09-05 19:38 ` Stuart Stevens
  2004-09-05 19:46 ` gnatsd Stuart Stevens
  2004-09-06  0:14 ` gnatsd Stuart Stevens
  2 siblings, 0 replies; 4+ messages in thread
From: Stuart Stevens @ 2004-09-05 19:38 UTC (permalink / raw)
  To: 'David Miller', help-gnats

First you need to determine why the daemon is not working, then the web and
then the email.

See if there is a process listening on the GNAT daemon "support" port.

netstat -an |grep 1529
  or
Netstat -anp >a  #then search for 1529 and verify that the next line is
xinetd

If it is not there then here are some things to check:

1.  Verify /etc/xinetd.d/support entry - below there is an extra gnats on
the server line

Here is my file

# default: on
# description: GNATS daemon
#       unencrypted username/password pairs for authentication.
service support
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = gnats
        server          = /usr/gnats/libexec/gnats/gnatsd
}

2.  verify /etc/services has the following line
Support	1529/tcp	#GNATS

3.  restart xinetd
ps -ef |grep xinetd
kill -HUP <xinetd process>





I used a different directory of /usr/gnats instead of /usr/local.

Here is a summary of my installation steps

-	Group gnats added
-	User gnats added
-	User gnats .profile modified to add dir to PATH
-	Directory /usr/gnats created
-	Gnats software - make and install
-	/etc/aliases updated with three new aliases
-	/etc/xinetd.d/gnats daemon created
-	/etc/services updated with gnats service
-	Perl updated
-	Gnatsweb software installed into /var/ww/cgi-bin
-	Gnats users crontab entry created


Files and directories modified:
-	/users/gnats created with user and group of gnats
-	GNATS user crontab entry
-	/usr/gnats contains all GNATS programs and data
-	/etc/aliases updated
-	/etc/services updated
-	/etc/xinetd.d/gnats created
-	Perl updated
-	/var/www/cgi-bin contains several gnatsweb files




 

-----Original Message-----
From: help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org
[mailto:help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org] On Behalf
Of David Miller
Sent: Saturday, September 04, 2004 1:11 PM
To: help-gnats@gnu.org
Subject: gnatsd

Hello

A while back I had a post saying that I couldn't get gnatsweb to work. I
hadn't gotten info on how to fix it until I saw a post that talked about
turnning of optimization on a RedHat/Fedora machine.  I didn't try it then
because I knew I would be upgrading machines and OS. 
I now have a Fedora core 2 machine 2700 athalon.  All old data was archived
in a tar file.  I have now tried to install gnats on the new machine.  I
don't know why I seem to have such a hard time with this app.

I created a user gnats.  NOTE: I don't remember seeing anything that states
how this should be.  I created gnats with a default group of gnats and let
everything else in the Fedora gui add user tool take defaults.
did an su and became root.
coppied the tar file to /usr/local/src and did a tar -xzvf gnats-4.0.tar.gz
cd to gnats-4.0 Went in to the three mentioned configure files and removed
the -02 from the CFLAGS in two different locations each.
make all info
 From another terminal window
su gnats
cd /usr/local/libexec/gnats
./mkdb default
It complained that it didn't have rights to create /usr/loca/com/gnatsdb.
NOTE: I don't remember the manual making any comment about this kind of
problem.
I created /usr/local/com and changed owner to gnats:gnats Went back to my
terminal running as gnats and tried mkdb again.  This time it created the
database.
In a root terminal window, I went to /usr/local/etc/gnats/databases and
added the info for my database.
back at the gnats terminal window did ./mkdb site_manager and it created my
database.
I had untared my archive in a different directory and now I overwrite my
database in /usr/local/com with the one from my tar file.
using query-pr, etc I can work with my database.  This is the way that I
have always had to do it.
I am now back to where I was on my old machine.
/usr/local/etc/gnats/gnatsd.host_access I added the line
localhost:edit:
I added the following in a file called /etc/xinetd/support service support {
     disable = no
    socket_type = stream
     protocol = tcp
    wait = no
    user = gnats
    gnats server = /usr/local/libexec/gnats/gnatsd } did
/etc/rc.d/init.d/xinetd restart

I can do the follow so it appears that the server works.
[root@lnx101 gnats]# ./gnatsd -n
200 lnx101.home.loc GNATS server 4.0 ready.
USER gnats gantspr
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
 
While this is still running or after it is stopped.
 telnet localhost 1529
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

Other things I don't understand.
This is all on my machine for my development.  My mail is all done with pop
and snmp.  I don't have the sendmail damon running.  My machine is on a
private network 192.168.*.* .  I some times will route port 80 to my machine
and give someone the IP so that they can see my webserver that I use to
develop with.  I would like to run gnatsweb for my own use, and may want the
outside to be able to see it through port 80.  If gnats is to use email it
would have to be routed through my pop mail and smtp.  I don't understand
how to do that.
Although, I know that I have to get past the server running, but when I do.
make install CGI_DIR=/var/www/cgi-bin  it puts the two .pl files and an html
file in the cgi-bin directory and says your ready to go.  Well I copy the
html file to /var/www/html and point a browser to it and it gives me an info
page.  How will I get to the login and all the other gnats pages?  Will the
perl scripts take care of this once the damon can be connected to?

David Miller




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



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

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

* RE: gnatsd
  2004-09-05 19:32 gnatsd David Miller
  2004-09-05 19:38 ` gnatsd Stuart Stevens
@ 2004-09-05 19:46 ` Stuart Stevens
  2004-09-06  0:14 ` gnatsd Stuart Stevens
  2 siblings, 0 replies; 4+ messages in thread
From: Stuart Stevens @ 2004-09-05 19:46 UTC (permalink / raw)
  To: 'David Miller', help-gnats

Use the following URL to access the web interface.  The web interface will
fail if the GNATS daemon is not working as it uses the daemon.  Your web
server appears to be working as you can access a web page.  Your web server
may need to be configured to allow scripts to be run in /var/www/cgi-bin.
My Apache server for Red Hat Linux 8 & 9 came configured so I did not have
to make any changes.

Perl needs to be installed and available from the location listed in the
first line of gnatsweb.pl.  Perl may need to be updated as mentioned in the
install manual.

http://<host>/cgi-bin/gnatsweb.pl 

Stuart

-----Original Message-----
From: help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org
[mailto:help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org] On Behalf
Of David Miller
Sent: Saturday, September 04, 2004 1:11 PM
To: help-gnats@gnu.org
Subject: gnatsd

Hello

A while back I had a post saying that I couldn't get gnatsweb to work. I
hadn't gotten info on how to fix it until I saw a post that talked about
turnning of optimization on a RedHat/Fedora machine.  I didn't try it then
because I knew I would be upgrading machines and OS. 
I now have a Fedora core 2 machine 2700 athalon.  All old data was archived
in a tar file.  I have now tried to install gnats on the new machine.  I
don't know why I seem to have such a hard time with this app.

I created a user gnats.  NOTE: I don't remember seeing anything that states
how this should be.  I created gnats with a default group of gnats and let
everything else in the Fedora gui add user tool take defaults.
did an su and became root.
coppied the tar file to /usr/local/src and did a tar -xzvf gnats-4.0.tar.gz
cd to gnats-4.0 Went in to the three mentioned configure files and removed
the -02 from the CFLAGS in two different locations each.
make all info
 From another terminal window
su gnats
cd /usr/local/libexec/gnats
./mkdb default
It complained that it didn't have rights to create /usr/loca/com/gnatsdb.
NOTE: I don't remember the manual making any comment about this kind of
problem.
I created /usr/local/com and changed owner to gnats:gnats Went back to my
terminal running as gnats and tried mkdb again.  This time it created the
database.
In a root terminal window, I went to /usr/local/etc/gnats/databases and
added the info for my database.
back at the gnats terminal window did ./mkdb site_manager and it created my
database.
I had untared my archive in a different directory and now I overwrite my
database in /usr/local/com with the one from my tar file.
using query-pr, etc I can work with my database.  This is the way that I
have always had to do it.
I am now back to where I was on my old machine.
/usr/local/etc/gnats/gnatsd.host_access I added the line
localhost:edit:
I added the following in a file called /etc/xinetd/support service support {
     disable = no
    socket_type = stream
     protocol = tcp
    wait = no
    user = gnats
    gnats server = /usr/local/libexec/gnats/gnatsd } did
/etc/rc.d/init.d/xinetd restart

I can do the follow so it appears that the server works.
[root@lnx101 gnats]# ./gnatsd -n
200 lnx101.home.loc GNATS server 4.0 ready.
USER gnats gantspr
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
 
While this is still running or after it is stopped.
 telnet localhost 1529
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

Other things I don't understand.
This is all on my machine for my development.  My mail is all done with pop
and snmp.  I don't have the sendmail damon running.  My machine is on a
private network 192.168.*.* .  I some times will route port 80 to my machine
and give someone the IP so that they can see my webserver that I use to
develop with.  I would like to run gnatsweb for my own use, and may want the
outside to be able to see it through port 80.  If gnats is to use email it
would have to be routed through my pop mail and smtp.  I don't understand
how to do that.
Although, I know that I have to get past the server running, but when I do.
make install CGI_DIR=/var/www/cgi-bin  it puts the two .pl files and an html
file in the cgi-bin directory and says your ready to go.  Well I copy the
html file to /var/www/html and point a browser to it and it gives me an info
page.  How will I get to the login and all the other gnats pages?  Will the
perl scripts take care of this once the damon can be connected to?

David Miller




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



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

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

* RE: gnatsd
  2004-09-05 19:32 gnatsd David Miller
  2004-09-05 19:38 ` gnatsd Stuart Stevens
  2004-09-05 19:46 ` gnatsd Stuart Stevens
@ 2004-09-06  0:14 ` Stuart Stevens
  2 siblings, 0 replies; 4+ messages in thread
From: Stuart Stevens @ 2004-09-06  0:14 UTC (permalink / raw)
  To: 'David Miller', help-gnats

David

You can run GNATs without email access.  Email allows users to submit
defects and make queries via email.  Email also allows capturing replies to
GNATS email.  If you need email access you could see if your ISP provides an
email forwarding option or you could probably setup an automatic POP
receiver assuming that you have a dedicated email address(s) for GNATs.  

Stuart 

-----Original Message-----
From: help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org
[mailto:help-gnats-bounces+stuart_stevens=sierralogic.com@gnu.org] On Behalf
Of David Miller
Sent: Saturday, September 04, 2004 1:11 PM
To: help-gnats@gnu.org
Subject: gnatsd

Hello

A while back I had a post saying that I couldn't get gnatsweb to work. I
hadn't gotten info on how to fix it until I saw a post that talked about
turnning of optimization on a RedHat/Fedora machine.  I didn't try it then
because I knew I would be upgrading machines and OS. 
I now have a Fedora core 2 machine 2700 athalon.  All old data was archived
in a tar file.  I have now tried to install gnats on the new machine.  I
don't know why I seem to have such a hard time with this app.

I created a user gnats.  NOTE: I don't remember seeing anything that states
how this should be.  I created gnats with a default group of gnats and let
everything else in the Fedora gui add user tool take defaults.
did an su and became root.
coppied the tar file to /usr/local/src and did a tar -xzvf gnats-4.0.tar.gz
cd to gnats-4.0 Went in to the three mentioned configure files and removed
the -02 from the CFLAGS in two different locations each.
make all info
 From another terminal window
su gnats
cd /usr/local/libexec/gnats
./mkdb default
It complained that it didn't have rights to create /usr/loca/com/gnatsdb.
NOTE: I don't remember the manual making any comment about this kind of
problem.
I created /usr/local/com and changed owner to gnats:gnats Went back to my
terminal running as gnats and tried mkdb again.  This time it created the
database.
In a root terminal window, I went to /usr/local/etc/gnats/databases and
added the info for my database.
back at the gnats terminal window did ./mkdb site_manager and it created my
database.
I had untared my archive in a different directory and now I overwrite my
database in /usr/local/com with the one from my tar file.
using query-pr, etc I can work with my database.  This is the way that I
have always had to do it.
I am now back to where I was on my old machine.
/usr/local/etc/gnats/gnatsd.host_access I added the line
localhost:edit:
I added the following in a file called /etc/xinetd/support service support {
     disable = no
    socket_type = stream
     protocol = tcp
    wait = no
    user = gnats
    gnats server = /usr/local/libexec/gnats/gnatsd } did
/etc/rc.d/init.d/xinetd restart

I can do the follow so it appears that the server works.
[root@lnx101 gnats]# ./gnatsd -n
200 lnx101.home.loc GNATS server 4.0 ready.
USER gnats gantspr
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'listdb'
 
While this is still running or after it is stopped.
 telnet localhost 1529
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

Other things I don't understand.
This is all on my machine for my development.  My mail is all done with pop
and snmp.  I don't have the sendmail damon running.  My machine is on a
private network 192.168.*.* .  I some times will route port 80 to my machine
and give someone the IP so that they can see my webserver that I use to
develop with.  I would like to run gnatsweb for my own use, and may want the
outside to be able to see it through port 80.  If gnats is to use email it
would have to be routed through my pop mail and smtp.  I don't understand
how to do that.
Although, I know that I have to get past the server running, but when I do.
make install CGI_DIR=/var/www/cgi-bin  it puts the two .pl files and an html
file in the cgi-bin directory and says your ready to go.  Well I copy the
html file to /var/www/html and point a browser to it and it gives me an info
page.  How will I get to the login and all the other gnats pages?  Will the
perl scripts take care of this once the damon can be connected to?

David Miller




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



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

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

end of thread, other threads:[~2004-09-05 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-05 19:32 gnatsd David Miller
2004-09-05 19:38 ` gnatsd Stuart Stevens
2004-09-05 19:46 ` gnatsd Stuart Stevens
2004-09-06  0:14 ` gnatsd Stuart Stevens

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).