<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>2927</bug_id>
          
          <creation_ts>2005-03-10 18:57</creation_ts>
          <short_desc>Not enough PostgreSQL Setup Instructions</short_desc>
          <delta_ts>2005-04-01 16:45:56</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>RFT</product>
          <component>RFT</component>
          <version>development</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Lane">lane@mcs.anl.gov</reporter>
          <assigned_to name="Ravi Madduri">madduri@mcs.anl.gov</assigned_to>
          <cc>ogsa-bugs@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2005-03-10 18:57:50</bug_when>
            <thetext>Especially after the conversation on setup difficulties on the dev-internal
mailing list, I would like to see just a little bit more doc on how to setup
postgresql.  I realize there is a link to the postgresql manuals, but I don&apos;t
think it&apos;s too much more effort to add some basics that someone can use if, for
example, their Linux distro comes with PostgresQL already.  Here are some notes
I took while trying to set things up on a new FC3 installation:

1) Confused about step #2.  The postmaster is not a script but a compiled binary
on my system.  I just have a postgresql system init script in /etc/rc.d/init.d/.
 To that script I add -i where it invokes postmaster in the start() function.

2) The createdb step (#3) complains that user &quot;&lt;user name&gt;&quot; does not exist.
After reading the doc at the following URL:

	http://www.postgresql.org/docs/7.4/interactive/user-manag.html
 
I did the following:

	i) sudo -u postgres createuser &lt;user name&gt;
	ii) createdb rftDatabase


4) globus-start-container still gave me the following warning:

2005-03-10 13:29:57,169 WARN  service.ReliableFileTransferHome
[main,initialize:88] All RFT requests will fail and all GRAM jobs that require
file staging will fail.A connection error has occurred: FATAL:  no pg_hba.conf
entry for host &quot;&lt;ip address&gt;&quot;, user &quot;&lt;user name&gt;&quot;, database &quot;rftDatabase&quot;, SSL off

I had to do the following:

	i)	sudo vi /var/lib/pgsql/data/pg_hba.conf
	ii)	appended the following line to the file:

	host	rftDatabase &lt;user name&gt; &lt;ip address&gt; 255.255.255.255 trust

	iii)	sudo /etc/init.d/postgresql restart

At VERY least I would like to see some of this info in the troubleshooting
section (there&apos;s already a little about step #2, but I didn&apos;t find step #2 very
clear), but that is not to say I don&apos;t think it should be integrated into the
setup steps.

I also understand that some of this may be automated, but much of it is sys
admin stuff that can&apos;t be.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-04-01 16:45:56</bug_when>
            <thetext>I added more documentation for configuring postgresql.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>