Login | Register
My pages Projects Community openCollabNet

Discussions > users > No module named pgdb

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Hide all messages in topic

All messages in topic

Installation documentation for the version 1.7.6

Reply

Author dplank
Full name Darryl Plank
Date 2007-12-05 05:56:59 PST
Message I've downloaded the tarball for version 1.7.6. I can't download an rpm
version because I'm running Red Hat Enterprise Linux 4 and there's no rpm
version available.

In current-1.7.6/docs I've found a file named installation.txt. It
describes how to install an rpm version. It doesn't describe however how to
install the tarball version.

Where can I find the instructions to install the tarball version?

Thanks in advance.

-- Darryl

RE : RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author dplank
Full name Darryl Plank
Date 2007-12-05 03:40:11 PST
Message Jack,

I don't seem to be able to install the production version (1.6.1) of
current. You say that the production version is really old. Would you
advise that I switch over to trying to install the most recent development
version?

The goal is to eventually use current in a production environment.

-- Darryl

-----Message d'origine-----
De : Jack Neely [mailto:jjneely at gmail dot com]
Envoyé : jeudi 29 novembre 2007 16:51
À : users at current dot tigris dot org
Objet : Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Jared is using something based of the production/unstable branch.

1.6.x is the last stable branch and really old. 1.6.x doesn't have
the -s option. It reads its configuration to contact the Current
server from the up2date configuration as it imports and uses that
code. (/etc/sysconfig/rhn/up2date)

Jack

On Nov 29, 2007 9:04 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> Your response is very clear, but it doesn't work for me. "cadmin" doesn't
> recognize the option "-s http://localhost/XMLRPC".
>
> What version of current are you using? I'm using 1.6.1. Perhaps we're
> using different versions of current and this explains why commands that
work
> for you don't work for me. (Just a guess.)
>
> > -----Message d'origine-----
> > De: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > Envoyé: jeudi 29 novembre 2007 14:26
> > À: users at current dot tigris dot org
> > Objet: Re: cadmin create_channel for Red Hat Enterprise Linux 4.0
>
> > cadmin -s http://localhost/XMLRPC create_channel --name "some
> > meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
> > --description "meaningful description" --base
>
> > You need at least one base channel. Base channels are channels that
> > machines auto-subscribe to if they match the arch/release of the
> > machine. Really - those are the only two meaningful settings when
> > creating a channel (release & arch) everything else except base is
> > really pretty much arbitrary and can be whatever you want.
>
> > Let me know if that's not clear.
>
> > -Jared
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
For additional commands, e-mail: users-help at current dot tigris dot org

Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-29 08:36:52 PST
Message Jack, you know me too well. So, ya, there ya go Darryl, that would
explain the differences.

On Nov 29, 2007 10:50 AM, Jack Neely <jjneely at gmail dot com> wrote:
> Jared is using something based of the production/unstable branch.
>
> 1.6.x is the last stable branch and really old. 1.6.x doesn't have
> the -s option. It reads its configuration to contact the Current
> server from the up2date configuration as it imports and uses that
> code. (/etc/sysconfig/rhn/up2date)
>
> Jack
>
>
> On Nov 29, 2007 9:04 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> > Your response is very clear, but it doesn't work for me. "cadmin" doesn't
> > recognize the option "-s http://localhost/XMLRPC".
> >
> > What version of current are you using? I'm using 1.6.1. Perhaps we're
> > using different versions of current and this explains why commands that work
> > for you don't work for me. (Just a guess.)
> >
> > > -----Message d'origine-----
> > > De: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > > Envoyé: jeudi 29 novembre 2007 14:26
> > > À: users at current dot tigris dot org
> > > Objet: Re: cadmin create_channel for Red Hat Enterprise Linux 4.0
> >
> > > cadmin -s http://localhost/XMLRPC create_channel --name "some
> > > meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
> > > --description "meaningful description" --base
> >
> > > You need at least one base channel. Base channels are channels that
> > > machines auto-subscribe to if they match the arch/release of the
> > > machine. Really - those are the only two meaningful settings when
> > > creating a channel (release & arch) everything else except base is
> > > really pretty much arbitrary and can be whatever you want.
> >
> > > Let me know if that's not clear.
> >
> > > -Jared
> >
> >
> >
> > --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> > For additional commands, e-mail: users-help at current dot tigris dot org
> >
> >
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author theslack
Full name Jack Neely
Date 2007-11-29 07:50:51 PST
Message Jared is using something based of the production/unstable branch.

1.6.x is the last stable branch and really old. 1.6.x doesn't have
the -s option. It reads its configuration to contact the Current
server from the up2date configuration as it imports and uses that
code. (/etc/sysconfig/rhn/up2date)

Jack

On Nov 29, 2007 9:04 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> Your response is very clear, but it doesn't work for me. "cadmin" doesn't
> recognize the option "-s http://localhost/XMLRPC".
>
> What version of current are you using? I'm using 1.6.1. Perhaps we're
> using different versions of current and this explains why commands that work
> for you don't work for me. (Just a guess.)
>
> > -----Message d'origine-----
> > De: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > Envoyé: jeudi 29 novembre 2007 14:26
> > À: users at current dot tigris dot org
> > Objet: Re: cadmin create_channel for Red Hat Enterprise Linux 4.0
>
> > cadmin -s http://localhost/XMLRPC create_channel --name "some
> > meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
> > --description "meaningful description" --base
>
> > You need at least one base channel. Base channels are channels that
> > machines auto-subscribe to if they match the arch/release of the
> > machine. Really - those are the only two meaningful settings when
> > creating a channel (release & arch) everything else except base is
> > really pretty much arbitrary and can be whatever you want.
>
> > Let me know if that's not clear.
>
> > -Jared
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

RE : RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 06:33:40 PST
Message >> I have been making changes to my own local version of current since
>> last year (tweaking to fit my needs), so it's possible that the cadmin
>> behavior is different. I'll have to let someone else respond then...

Ok, thanks anyways.

RE : RE : RE : Apache Problem

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 06:31:04 PST
Message >> If you open up a python shell and try to import anything from current,
>> do you get an error? Something like...

>> from current.cadmin import *

>> anything really...

Yes, I get an error. I get:

"ImportError: No module named current.cadmin"

So there does seem to be a problem linked to PYTHON.

Re: RE : RE : Apache Problem

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-29 06:24:14 PST
Message On Nov 29, 2007 9:15 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> >> What user are you connecting as when you were testing the connection
> earlier? <<
>
> I tried both "root" and "postgres", but mostly I used "postgres".

If postgres worked for you earlier when you tested the connection
through python, then you should use that. Your problems might be
linked to what you are mentioning below.

>
> >> Why not just put cadmin somewhere that IS in your path? I personally
> have it as /usr/bin/cadmin (or /usr/bin/cadmin.py). It really doesn't
> matter where the cadmin command is at in the filesystem because the
> whole of current is in the site-packages directory which is part of
> the python path. This means that the import statements in the current
> files will work no matter where cadmin is. <<
>
> On my system, "cadmin" and "cadmin.py" are two different files. "cadmin"
> *is* in my path, but "cadmin.py" is with the rest of the python files in
> "/usr/share/current" (as specified in the documentation).
>
> When I execute cadmin.py, the import statements are not working. Perhaps
> this means there's something wrong with my python path ...

If you open up a python shell and try to import anything from current,
do you get an error? Something like...

from current.cadmin import *

anything really...

>
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-29 06:22:21 PST
Message On Nov 29, 2007 9:04 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> Your response is very clear, but it doesn't work for me. "cadmin" doesn't
> recognize the option "-s http://localhost/XMLRPC".
>
> What version of current are you using? I'm using 1.6.1. Perhaps we're
> using different versions of current and this explains why commands that work
> for you don't work for me. (Just a guess.)

I have been making changes to my own local version of current since
last year (tweaking to fit my needs), so it's possible that the cadmin
behavior is different. I'll have to let someone else respond then...

>
> > -----Message d'origine-----
> > De: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > Envoyé: jeudi 29 novembre 2007 14:26
> > À: users at current dot tigris dot org
> > Objet: Re: cadmin create_channel for Red Hat Enterprise Linux 4.0
>
> > cadmin -s http://localhost/XMLRPC create_channel --name "some
> > meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
> > --description "meaningful description" --base
>
> > You need at least one base channel. Base channels are channels that
> > machines auto-subscribe to if they match the arch/release of the
> > machine. Really - those are the only two meaningful settings when
> > creating a channel (release & arch) everything else except base is
> > really pretty much arbitrary and can be whatever you want.
>
> > Let me know if that's not clear.
>
> > -Jared
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

RE : RE : Apache Problem

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 06:15:19 PST
Message >> What user are you connecting as when you were testing the connection
earlier? <<

I tried both "root" and "postgres", but mostly I used "postgres".

>> Why not just put cadmin somewhere that IS in your path? I personally
have it as /usr/bin/cadmin (or /usr/bin/cadmin.py). It really doesn't
matter where the cadmin command is at in the filesystem because the
whole of current is in the site-packages directory which is part of
the python path. This means that the import statements in the current
files will work no matter where cadmin is. <<

On my system, "cadmin" and "cadmin.py" are two different files. "cadmin"
*is* in my path, but "cadmin.py" is with the rest of the python files in
"/usr/share/current" (as specified in the documentation).

When I execute cadmin.py, the import statements are not working. Perhaps
this means there's something wrong with my python path ...

RE : cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 06:04:34 PST
Message Your response is very clear, but it doesn't work for me. "cadmin" doesn't
recognize the option "-s http://localhost/XMLRPC".

What version of current are you using? I'm using 1.6.1. Perhaps we're
using different versions of current and this explains why commands that work
for you don't work for me. (Just a guess.)

> -----Message d'origine-----
> De : Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> Envoyé : jeudi 29 novembre 2007 14:26
> À : users at current dot tigris dot org
> Objet : Re: cadmin create_channel for Red Hat Enterprise Linux 4.0

> cadmin -s http://localhost/XMLRPC create_channel --name "some
> meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
> --description "meaningful description" --base

> You need at least one base channel. Base channels are channels that
> machines auto-subscribe to if they match the arch/release of the
> machine. Really - those are the only two meaningful settings when
> creating a channel (release & arch) everything else except base is
> really pretty much arbitrary and can be whatever you want.

> Let me know if that's not clear.

> -Jared

Re: RE : Apache Problem

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-29 05:32:57 PST
Message On Nov 29, 2007 6:13 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
>
>
> I wonder what account I should use? "Postgres" or "root"? I tried both and
> neither work.

What user are you connecting as when you were testing the connection earlier?

> When I type:
>
> cadmin.py -s http://localhost/XMLRPC test
>
> I get:
>
> cadmin.py: command not found
>
> This seems logical since "cadmin.py" is in "/usr/share/current/api/", which
> is not in the environment variable "PATH".

Why not just put cadmin somewhere that IS in your path? I personally
have it as /usr/bin/cadmin (or /usr/bin/cadmin.py). It really doesn't
matter where the cadmin command is at in the filesystem because the
whole of current is in the site-packages directory which is part of
the python path. This means that the import statements in the current
files will work no matter where cadmin is.

>
> If I include the directory in PATH, and try again, I get an error saying
> "cadmin.py" is not executable. This also seems logical, since "cadmin.py"
> is a python script, and there is no mechanism in place to associate files
> ending in "py" with python. If I force things by putting "python" in front
> of "cadmin.py", I get another series of errors ...
>
> The documentation says the installation of the python scripts is as simple
> as copying them from the tarball to "/usr/share/current". This is what I
> did, but I wonder if things are really that simple. In the tarball for
> current-1.6.1 I found the python scripts in a directory named "src". I
> copied the contents of this directory, which includes subdirectories, to
> "/usr/share/current".
>
> However it seems the procedure explained in the documentation is incomplete,
> and I'm not sure how to complete it.
>
> -- Darryl
>
> > -----Message d'origine-----
> > De: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > Envoyé: mardi 27 novembre 2007 16:11
> > À: users at current dot tigris dot org
> > Objet: Re: Apache Problem
>
> > The XMLRPC interface isn't something that you would look at in your
> > browser. The fact that you see the test page at all means that the
> > server is up and running. You could try running the test command -
> > that would test the client/server pieces are working. Something
> > like....
>
> > cadmin.py -s http://localhost/XMLRPC test
>
> > If you don't get any errors from that, you should be all set to start
> > working with current.
>
> > -Jared
>
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

Re: cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-29 05:25:41 PST
Message cadmin -s http://localhost/XMLRPC create_channel --name "some
meaningful name" --label <somelabel> --arch i386/x86_64 --release 4
--description "meaningful description" --base

You need at least one base channel. Base channels are channels that
machines auto-subscribe to if they match the arch/release of the
machine. Really - those are the only two meaningful settings when
creating a channel (release & arch) everything else except base is
really pretty much arbitrary and can be whatever you want.

Let me know if that's not clear.

-Jared

On Nov 29, 2007 5:46 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
>
> What is the syntax for the cadmin create_channel command for Red Hat
> Enterprise Linux 4.0?
>
> Also, what is the level of support for Red Hat Enterprise Linux 4.0? Are
> other people running current on this version of Linux?
>
> Thanks in advance for your comments.
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

RE : Apache Problem

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 03:13:01 PST
Message I wonder what account I should use? "Postgres" or "root"? I tried both and
neither work. When I type:

cadmin.py -s http://localhost/XMLRPC test

I get:

cadmin.py: command not found

This seems logical since "cadmin.py" is in "/usr/share/current/api/", which
is not in the environment variable "PATH".

If I include the directory in PATH, and try again, I get an error saying
"cadmin.py" is not executable. This also seems logical, since "cadmin.py"
is a python script, and there is no mechanism in place to associate files
ending in "py" with python. If I force things by putting "python" in front
of "cadmin.py", I get another series of errors ...

The documentation says the installation of the python scripts is as simple
as copying them from the tarball to "/usr/share/current". This is what I
did, but I wonder if things are really that simple. In the tarball for
current-1.6.1 I found the python scripts in a directory named "src". I
copied the contents of this directory, which includes subdirectories, to
"/usr/share/current".

However it seems the procedure explained in the documentation is incomplete,
and I'm not sure how to complete it.

-- Darryl

> -----Message d'origine-----
> De : Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> Envoyé : mardi 27 novembre 2007 16:11
> À : users at current dot tigris dot org
> Objet : Re: Apache Problem

> The XMLRPC interface isn't something that you would look at in your
> browser. The fact that you see the test page at all means that the
> server is up and running. You could try running the test command -
> that would test the client/server pieces are working. Something
> like....

> cadmin.py -s http://localhost/XMLRPC test

> If you don't get any errors from that, you should be all set to start
> working with current.

> -Jared

cadmin create_channel for Red Hat Enterprise Linux 4.0

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-29 02:46:03 PST
Message What is the syntax for the cadmin create_channel command for Red Hat
Enterprise Linux 4.0?

Also, what is the level of support for Red Hat Enterprise Linux 4.0? Are
other people running current on this version of Linux?

Thanks in advance for your comments.

Re: Apache Problem

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-27 07:11:09 PST
Message The XMLRPC interface isn't something that you would look at in your
browser. The fact that you see the test page at all means that the
server is up and running. You could try running the test command -
that would test the client/server pieces are working. Something
like....

cadmin.py -s http://localhost/XMLRPC test

If you don't get any errors from that, you should be all set to start
working with current.

-Jared

On Nov 27, 2007 9:36 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> All my conf.d files also have 644 permissions and are owned by root/root.
>
> Also, I do have an "Include conf.d/*.conf" line in my
> "/etc/httpd/conf/httpd.conf" file.
>
> The problem is that when I launch apache with:
>
> apachectl -k start
>
> all I get in my mozilla browser is the "Red Hat Enterprise Linux Test Page".
> Is this normal for this stage of the installation?
>
> -- Darryl
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

Apache Problem

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-27 06:36:39 PST
Message All my conf.d files also have 644 permissions and are owned by root/root.

Also, I do have an "Include conf.d/*.conf" line in my
"/etc/httpd/conf/httpd.conf" file.

The problem is that when I launch apache with:

    apachectl -k start

all I get in my mozilla browser is the "Red Hat Enterprise Linux Test Page".
Is this normal for this stage of the installation?

-- Darryl

Re: RE : RE : RE : cinstall initdb doesn't work

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-27 06:18:10 PST
Message The /etc/httpd/conf.d/current.conf file is not enough to run the
entire of apache.

You should have a line somewhere in your /etc/httpd/conf/httpd.conf
that looks like the following:

Include conf.d/*.conf

This line is what will bring the current apache configuration rules
into the running apache instance. I'm not sure if it makes a
difference, but all of my conf.d files are 644 permissions and owned
by root/root.

HTH,
Jared

On Nov 27, 2007 5:22 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> In the current manual [Chapter 2 - Apache configuration] it states:
>
> "It [cinstall create_apache_config] will create an Apache configuration
> file, normally /etc/httpd/conf.d/cu​rrent.httpd.conf, that will be loaded the
> next time you start Apache."
>
> Executing "cinstall create_apache_config" does indeed create the file
> "/etc/httpd/conf.d/c​urrent.httpd.conf". However when Apache is started,
> this file is not loaded, instead "/etc/httpd/conf/httpd.conf" is loaded.
>
> Furthermore, if apache is started with the command:
> "apachectl -f /etc/httpd/conf.d/cu​rrent.httpd.conf"
> I get the following error message:
>
> Syntax error on line 17 of /etc/httpd/conf.d/cu​rrent.httpd.conf:
> Invalid command 'Alias', perhaps mis-spelled or defined by a module not
> included in the server configuration.
>
> Line 17 corresponds to:
> Alias /XMLRPC/$RHN /export/current/www
>
> Does anyone know what is going wrong?
>
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

Apache Problem

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-27 02:26:10 PST
Message Below is the same as the last message, I've just changed the "subject
header" to better reflect the problem ...

In the current manual [Chapter 2 - Apache configuration] it states:

"It [cinstall create_apache_config] will create an Apache configuration
file, normally /etc/httpd/conf.d/cu​rrent.httpd.conf, that will be loaded the
next time you start Apache."

Executing "cinstall create_apache_config" does indeed create the file
"/etc/httpd/conf.d/c​urrent.httpd.conf". However when Apache is started,
this file is not loaded, instead "/etc/httpd/conf/httpd.conf" is loaded.

Furthermore, if apache is started with the command:
"apachectl -f /etc/httpd/conf.d/cu​rrent.httpd.conf"
I get the following error message:

Syntax error on line 17 of /etc/httpd/conf.d/cu​rrent.httpd.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not
included in the server configuration.

Line 17 corresponds to:
    Alias /XMLRPC/$RHN /export/current/www

Does anyone know what is going wrong?

RE : RE : RE : cinstall initdb doesn't work

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-27 02:22:06 PST
Message In the current manual [Chapter 2 - Apache configuration] it states:

"It [cinstall create_apache_config] will create an Apache configuration
file, normally /etc/httpd/conf.d/cu​rrent.httpd.conf, that will be loaded the
next time you start Apache."

Executing "cinstall create_apache_config" does indeed create the file
"/etc/httpd/conf.d/c​urrent.httpd.conf". However when Apache is started,
this file is not loaded, instead "/etc/httpd/conf/httpd.conf" is loaded.

Furthermore, if apache is started with the command:
"apachectl -f /etc/httpd/conf.d/cu​rrent.httpd.conf"
I get the following error message:

Syntax error on line 17 of /etc/httpd/conf.d/cu​rrent.httpd.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not
included in the server configuration.

Line 17 corresponds to:
    Alias /XMLRPC/$RHN /export/current/www

Does anyone know what is going wrong?

Re: RE : RE : cinstall initdb doesn't work

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-26 06:54:06 PST
Message glad to hear it

On Nov 26, 2007 9:48 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> You're correct that the database was up but I wasn't connecting correctly to
> it.
>
> After many tries, I finally figured out that the solution was to add the
> line:
>
> host all all 127.0.0.1 255.255.255.255 password
>
> to the file "pg_hba.conf" and then to stop and start the server. (Through
> experimentation I found that the changes made to "pg_hba.conf" are not
> dynamic. You need to stop and start the server to make them effective.)
>
> Thanks for your suggestions and help.
>
> -- Darryl
>
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

RE : RE : cinstall initdb doesn't work

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-26 06:48:58 PST
Message You're correct that the database was up but I wasn't connecting correctly to
it.

After many tries, I finally figured out that the solution was to add the
line:

host all all 127.0.0.1 255.255.255.255 password

to the file "pg_hba.conf" and then to stop and start the server. (Through
experimentation I found that the changes made to "pg_hba.conf" are not
dynamic. You need to stop and start the server to make them effective.)

Thanks for your suggestions and help.

-- Darryl

Re: RE : cinstall initdb doesn't work

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-23 06:57:06 PST
Message On Nov 23, 2007 9:47 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
> >> My guess is that the server isn't running. <<
>
> Since I passed the "postmaster" command, and "psql test" responds correctly,
> doesn't that mean that the server is running?
>
> If not, what other way can I explicitly test if the server is running. If it
> needs to be started, how should I do that (if "postmaster" is not the right
> command?)
>
> Thanks in advance for any help anyone may be able to provide.

Let me just say in advance that I have never used pgsql. I personally
run current on top of Oracle db. I also can't read French, so I have
no clue what the output of that command was saying.

So, if you are thinking that the db is up and running, then you must
not be connecting to it properly in current. I would say, try opening
the interactive python shell and try making a simple connection to the
db to see if the python->pgslq connection is working. You need to
fundamentally get that working first for current to work. You've
probably got some of the connection settings wrong (port,user,pass),
so check those.

Hope that helps.

-Jared

RE : cinstall initdb doesn't work

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-23 06:47:46 PST
Message >> My guess is that the server isn't running. <<

Since I passed the "postmaster" command, and "psql test" responds correctly,
doesn't that mean that the server is running?

If not, what other way can I explicitly test if the server is running. If it
needs to be started, how should I do that (if "postmaster" is not the right
command?)

Thanks in advance for any help anyone may be able to provide.

Re: cinstall initdb doesn't work

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-11-23 06:37:50 PST
Message My guess is that the server isn't running. You should be able to test
this by just trying to connect to the db directly (through the
postgresql client). Other than that, you would need to contact the
postgresql mailing lists.

On Nov 23, 2007 6:59 AM, Darryl Plank <Darryl dot Plank at aems dot net> wrote:
>
>
>
>
> I'm getting a « connection refused » during the « cinstall initdb » part of
> the install. Does anyone have an idea why?
>
>
>
> Here is the traceback:
>
>
>
> *** Start ***
>
>
>
> -bash-3.00$ postmaster -D /usr/local/pgsql/data > logfile 2>&1 &
> [1] 16618
> -bash-3.00$ psql test
> Bienvenue dans psql 7.4.16, l'interface interactive de PostgreSQL.
>
> Tapez: \copyright pour les termes de distribution
> \h pour l'aide-mémoire sur les commandes SQL
> \? pour l'aide-mémoire sur les commandes internes
> \g ou terminez avec un point-virgule pour exécuter une requête
> \q pour quitter
>
> test=# \q
> -bash-3.00$ /sbin/cinstall initdb
> Nov 23 12:53:51 Could not get DB connection!
> Nov 23 12:5351 : EXCEPTION in /usr/share/current/d​b/postgres/postgres.​py,
> getConnection(), 36 [logException()]
> Traceback (most recent call last):
> File "/usr/share/current/​db/postgres/postgres​.py", line 32, in
> getConnection
> database=self.config​['db_name'])
> File "/usr/lib/python2.3/​site-packages/pgdb.p​y", line 371, in connect
> dbtty, dbuser, dbpasswd)
> InternalError: could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
> Traceback (most recent call last):
> File "/sbin/cinstall", line 191, in ?
> main()
> File "/sbin/cinstall", line 158, in main
> db.selectBackend(config)
> File "/usr/share/current/​db/__init__.py", line 39, in selectBackend
> db = CurrentDB(config, sdb)
> File "/usr/share/current/​db/currentdb.py", line 62, in __init__
> self.conn = self.specific.getConnection()
> File "/usr/share/current/​db/postgres/postgres​.py", line 32, in
> getConnection
> database=self.config​['db_name'])
> File "/usr/lib/python2.3/​site-packages/pgdb.p​y", line 371, in connect
> dbtty, dbuser, dbpasswd)
> pg.InternalError: could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
>
>
>
> *** Stop ***
>
>
>
> Is the problem perhaps with my way of starting the postgres server ? If so,
> how should it be started?
>
>
>
> -- Darryl
>
>

cinstall initdb doesn't work

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-23 03:59:36 PST
Message I’m getting a « connection refused » during the « cinstall initdb » part of
the install. Does anyone have an idea why?

 

Here is the traceback:

 

*** Start ***

 

-bash-3.00$ postmaster -D /usr/local/pgsql/data > logfile 2>&1 &
[1] 16618
-bash-3.00$ psql test
Bienvenue dans psql 7.4.16, l'interface interactive de PostgreSQL.

Tapez: \copyright pour les termes de distribution
        \h pour l'aide-mémoire sur les commandes SQL
        \? pour l'aide-mémoire sur les commandes internes
        \g ou terminez avec un point-virgule pour exécuter une requête
        \q pour quitter

test=# \q
-bash-3.00$ /sbin/cinstall initdb
Nov 23 12:53:51 Could not get DB connection!
Nov 23 12:5351 : EXCEPTION in /usr/share/current/d​b/postgres/postgres.​py,
getConnection(), 36 [logException()]
Traceback (most recent call last):
  File "/usr/share/current/​db/postgres/postgres​.py", line 32, in
getConnection
    database=self.config​['db_name'])
  File "/usr/lib/python2.3/​site-packages/pgdb.p​y", line 371, in connect
    dbtty, dbuser, dbpasswd)
InternalError: could not connect to server: Connection refused
        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5432?

Traceback (most recent call last):
  File "/sbin/cinstall", line 191, in ?
    main()
  File "/sbin/cinstall", line 158, in main
    db.selectBackend(config)
  File "/usr/share/current/​db/__init__.py", line 39, in selectBackend
    db = CurrentDB(config, sdb)
  File "/usr/share/current/​db/currentdb.py", line 62, in __init__
    self.conn = self.specific.getConnection()
  File "/usr/share/current/​db/postgres/postgres​.py", line 32, in
getConnection
    database=self.config​['db_name'])
  File "/usr/lib/python2.3/​site-packages/pgdb.p​y", line 371, in connect
    dbtty, dbuser, dbpasswd)
pg.InternalError: could not connect to server: Connection refused
        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5432?
 

 

*** Stop ***

 

Is the problem perhaps with my way of starting the postgres server ? If so,
how should it be started?

 

-- Darryl
Attachments
Page: of 2 « Previous | Next »
Messages per page: