Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: trouble running cadmin on current 1.44 and RH 7.3

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

current
Discussion topic

Hide all messages in topic

All messages in topic

Re: trouble running cadmin on current 1.44 and RH 7.3

Reply

Author profic
Full name Aaron P. Martinez
Date 2003-09-22 10:36:07 PDT
Message snip.............

ok..i AM a knucklehead...thanks for the quick response.
> > # You must pick one of the following values:
> > 7.x apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf
> > # 8.x apache_config_file = /etc/httpd/conf.d/current.conf
>
> HERE ^^^^
>
> Your line should be
> apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf
>
> With no 7.x at the front - that was just part of the comment.
> I'll change that comment in 1.4.5 to try and make that more clear.

got rid of the leading '7.x' text and it works like a charm!!!
now on to bigger and better stuff

>
>
> >
> > access_check_type = user
> > access_check_arg = apache
> > server_secret = test
> > server_id = updater.proficous.com
> > current_dir = /var/www/html/current
> >
> > # These are some text messages that the server can return to the clients
> > # in various API calls.
> > ## The period is there ot provide a "blank line". Sheesh.
> > welcome_message = "Welcome to Hunter's up2date server."
> > privacy_statement = "Privacy Statement for Hunter's up2date server:
> > This is the internet - privacy is an illusion.
> > .
> > Please note that only anonymous access is supported anyway - so
> > while you
> > have to get a valid system id (by going through the rhn_register
> > program)
> > there is no requirement to fill those fields out with real data. :)
> > All
> > that is required is that your architecture an os_release be
> > accurately
> > reported - and rhn_register fills that in automatically. "
> >
> > ####################​####################​####################​################
> > [redhat-7.3]
> > name = Red Hat Linux 7.3
> > parent_channel =
> > arch = i386
> > os_release = 7.3
> > description = Red Hat Linux 7.3
> > srpm_check = 0
> >
> > rpm_dirs = /var/www/html/curren​t/7.3/RedHat/RPMS
> > src_dirs =
> >
> >
> > ####################​####################​####################​#################
> > # Note: since they are NOT included in valid_channels above, these
> > channels
> > # won't be created or used. They are just "live" doc.
> >
> > # The following is an example of what a sub-channel might look like.
> > # You leave arch and os_release out of sub-channels, as they must match
> > # the parent.
> >
> > ## END OF LINE ##
> >
> >
> > Any help is GREATLY appreciated
> >
> > Sincerely,
> >
> > Aaron P. Martinez
> >
> >
> >
> > --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> > For additional commands, e-mail: users-help at current dot tigris dot org

Aaron P. Martinez


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

Re: trouble running cadmin on current 1.44 and RH 7.3

Reply

Author hunterm
Full name Hunter Matthews
Date 2003-09-22 09:58:42 PDT
Message On Mon, 2003-09-22 at 12:34, Aaron P. Martinez wrote:
> I'm starting to feel like a bit of a knucklehead here, all of the docs
> i've found say this should be so easy.
>
> I've gotten the current 1.4.4 src.rpm and the 7.x.noarch.rpm. I do a
> rebuild on the src.rpm and it always comes up with an 8 at the end, as
> if it is for redhat 8. When i try to install, it can't find my http. I

You have to read the comment at the top of the spec file to build for
7.x.

Here it is:
##
# To build for Red Hat 7.x, build with:
# rpmbuild --rebuild --define "rhl8x 0" dulog-*src.rpm
#

IE, the default is to build for 8x/9x, you turn that OFF to build for
7.x

> gave up and installed the 7.x version and it installed fine. I ran
> 'cadmin create -v redhat-7.3' and it seemed to add all of the rpms that
> i told it about in the current.conf file. Next it where things go to
> crap on me.
>
> I try running 'cadmin create_apache_config' OR 'cadmin
> create_certificates' i get the floolowing error:
>
> [root@update tmp]# cadmin create_certificate
> Traceback (innermost last):
> File "/usr/sbin/cadmin", line 311, in ?
> main()
> File "/usr/sbin/cadmin", line 148, in main
> logconfig(config.cfg​.getItem('log_level'​), sys.stdout)
> File "/usr/share/current/logger.py", line 41, in logconfig
> logging_config[item] = int(ref)
> ValueError: invalid literal for int(): 2
> 7.x apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf
>
> here is what my /etc/current/current.conf looks like:
>
> [current]
> valid_channels = redhat-7.3
> log_file =/var/log/httpd/current.log
> log_level =2
>
> # You must pick one of the following values:
> 7.x apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf
> # 8.x apache_config_file = /etc/httpd/conf.d/current.conf

HERE ^^^^

Your line should be
apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf

With no 7.x at the front - that was just part of the comment.
I'll change that comment in 1.4.5 to try and make that more clear.


>
> access_check_type = user
> access_check_arg = apache
> server_secret = test
> server_id = updater.proficous.com
> current_dir = /var/www/html/current
>
> # These are some text messages that the server can return to the clients
> # in various API calls.
> ## The period is there ot provide a "blank line". Sheesh.
> welcome_message = "Welcome to Hunter's up2date server."
> privacy_statement = "Privacy Statement for Hunter's up2date server:
> This is the internet - privacy is an illusion.
> .
> Please note that only anonymous access is supported anyway - so
> while you
> have to get a valid system id (by going through the rhn_register
> program)
> there is no requirement to fill those fields out with real data. :)
> All
> that is required is that your architecture an os_release be
> accurately
> reported - and rhn_register fills that in automatically. "
>
> ####################​####################​####################​################
> [redhat-7.3]
> name = Red Hat Linux 7.3
> parent_channel =
> arch = i386
> os_release = 7.3
> description = Red Hat Linux 7.3
> srpm_check = 0
>
> rpm_dirs = /var/www/html/curren​t/7.3/RedHat/RPMS
> src_dirs =
>
>
> ####################​####################​####################​#################
> # Note: since they are NOT included in valid_channels above, these
> channels
> # won't be created or used. They are just "live" doc.
>
> # The following is an example of what a sub-channel might look like.
> # You leave arch and os_release out of sub-channels, as they must match
> # the parent.
>
> ## END OF LINE ##
>
>
> Any help is GREATLY appreciated
>
> Sincerely,
>
> Aaron P. Martinez
>
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
--
Hunter Matthews Unix / Network Administrator
Office: BioScience 145/244 Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.


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

trouble running cadmin on current 1.44 and RH 7.3

Reply

Author profic
Full name Aaron P. Martinez
Date 2003-09-22 09:34:40 PDT
Message I'm starting to feel like a bit of a knucklehead here, all of the docs
i've found say this should be so easy.

I've gotten the current 1.4.4 src.rpm and the 7.x.noarch.rpm. I do a
rebuild on the src.rpm and it always comes up with an 8 at the end, as
if it is for redhat 8. When i try to install, it can't find my http. I
gave up and installed the 7.x version and it installed fine. I ran
'cadmin create -v redhat-7.3' and it seemed to add all of the rpms that
i told it about in the current.conf file. Next it where things go to
crap on me.

I try running 'cadmin create_apache_config' OR 'cadmin
create_certificates' i get the floolowing error:

[root@update tmp]# cadmin create_certificate
Traceback (innermost last):
  File "/usr/sbin/cadmin", line 311, in ?
    main()
  File "/usr/sbin/cadmin", line 148, in main
    logconfig(config.cfg​.getItem('log_level'​), sys.stdout)
  File "/usr/share/current/logger.py", line 41, in logconfig
    logging_config[item] = int(ref)
ValueError: invalid literal for int(): 2
7.x apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf

here is what my /etc/current/current.conf looks like:

[current]
valid_channels = redhat-7.3
log_file =/var/log/httpd/current.log
log_level =2

# You must pick one of the following values:
 7.x apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf
# 8.x apache_config_file = /etc/httpd/conf.d/current.conf

access_check_type = user
access_check_arg = apache
server_secret = test
server_id = updater.proficous.com
current_dir = /var/www/html/current

# These are some text messages that the server can return to the clients
# in various API calls.
## The period is there ot provide a "blank line". Sheesh.
welcome_message = "Welcome to Hunter's up2date server."
privacy_statement = "Privacy Statement for Hunter's up2date server:
    This is the internet - privacy is an illusion.
    .
    Please note that only anonymous access is supported anyway - so
while you
    have to get a valid system id (by going through the rhn_register
program)
    there is no requirement to fill those fields out with real data. :)
All
    that is required is that your architecture an os_release be
accurately
    reported - and rhn_register fills that in automatically. "

####################​####################​####################​################
[redhat-7.3]
name = Red Hat Linux 7.3
parent_channel =
arch = i386
os_release = 7.3
description = Red Hat Linux 7.3
srpm_check = 0

rpm_dirs = /var/www/html/curren​t/7.3/RedHat/RPMS
src_dirs =


####################​####################​####################​#################
# Note: since they are NOT included in valid_channels above, these
channels
# won't be created or used. They are just "live" doc.

# The following is an example of what a sub-channel might look like.
# You leave arch and os_release out of sub-channels, as they must match
# the parent.

## END OF LINE ##


Any help is GREATLY appreciated

Sincerely,

Aaron P. Martinez



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