public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Stuart Stevens" <stuart_stevens@sierralogic.com>
To: "'David Miller'" <david@millersweb.com>, <help-gnats@gnu.org>
Subject: RE: gnatsd
Date: Sun, 05 Sep 2004 19:38:00 -0000	[thread overview]
Message-ID: <E1C42ph-0000a4-31@lists.gnu.org> (raw)
In-Reply-To: <413A2166.1020004@millersweb.com>

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

  reply	other threads:[~2004-09-05 19:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-05 19:32 gnatsd David Miller
2004-09-05 19:38 ` Stuart Stevens [this message]
2004-09-05 19:46 ` gnatsd Stuart Stevens
2004-09-06  0:14 ` gnatsd Stuart Stevens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1C42ph-0000a4-31@lists.gnu.org \
    --to=stuart_stevens@sierralogic.com \
    --cc=david@millersweb.com \
    --cc=help-gnats@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).