Login | Register
My pages Projects Community openCollabNet

Discussions > users > Getting an error with current

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: Getting an error with current

Reply

Author hunterm
Full name Hunter Matthews
Date 2003-05-07 10:14:51 PDT
Message On Wed, 2003-05-07 at 12:21, Paul F. Williams wrote:

> So I suppose this file should be 600 apache:root.
> Or perhaps 640 root:apache which gives it just
> enough permissions to work.

For the record (and the archive) EITHER is considered find by current,
and I personally have no recommendation.

This brings up an interesting point.


NOTICE NOTICE NOTICE

In 1.5.x and later versions of current, the current.log file itself,
which used to live in /var/log/httpd/current.log will be moving to
/var/log/current.log, due to changes in how Red Hat configures apache.

If thats going to cause big problems for someone, or someone has
sane/reasonable suggestions otherwise, NOW, not when 1.6.0 ships is the
time to bring them up.


PS. Yes, the need for
a) the server to have some kind of "test all the permissions and warn
the admin before things go wrong" code is seen and understood.
b) the server itself should never throw an exception, it should just log
something (except for the corner case of a problem with the logging) is
also seen and understood.


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

Re: Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-05-07 09:21:33 PDT
Message So Hunter found the solution.
The /etc/current/current.conf file can't
be read by apache since it is 600 root:root

So I suppose this file should be 600 apache:root.
Or perhaps 640 root:apache which gives it just
enough permissions to work.

Thanks Hunter.





paulw
At 10:34 AM 5/7/2003, you wrote:
>On Tue, 2003-05-06 at 15:39, Paul F. Williams wrote:
>
> > then running up2date on the client yields in the error_log
> >
> > [Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
> > [Tue May 6 14:19:38 2003] [notice] Starting backend
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
> > (innermost last):
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in
> Dispatch
> > result = object(req)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​current_apache.py", line 166, in handler
> > init_backend()
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​current_apache.py", line 69, in init_backend
> > config.cfg.load()
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "config.py", line 88, in load
> > tmp = self.readConfigFile(file)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "config.py", line 194, in readConfigFile
> > for opt in parser.options('current'):
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​configfile.py", line 214, in options
> > raise NoSectionError(section)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
> > NoSectionError: No section: current
>
> > ===============================
> > Perhaps it doesn't work with linux 7.2 server and 8.0 client?
>
>Try setting the permissions on the current config file itself correctly.
>
>/etc/current/current.conf is not readable by apache.
>
>
>
>--
>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

--------------------​--------------------​--------------------​
Paul F. Williams, Network Administrator, Information Systems
UW-Extension, 432 N. Lake St., Madison, WI 53706
williams at uwex dot edu, 608-262-6011, FAX 608-262-2343
--------------------​--------------------​--------------------​


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

Re: Getting an error with current

Reply

Author jwbernin
Full name John Berninger
Date 2003-05-07 08:38:56 PDT
Message The /var/log/httpd directory is 755 root:root; try chaing the value of
your log_file directive to /var/log/current.log, touching that file, and
chowning it to apache.

On Wed, 07 May 2003, Paul F. Williams wrote:

> The log file was owned by apache (see the bottom of this post).
> But just in case I changed permissions of the log file to
>
> In /etc/current/current.log
>
> log_file = /var/log/httpd/current.log
>
> I changed the permissions on /var/log/httpd/current.log to
>
> -rw-rw-rw- 1 apache root 0 Apr 23 15:04 current.log
>
> On the client when I run up2date --register
> it fails with the message
>
> Fatal error retrieving privacy statement:
> Internal Server Error
>
> And running up2date still gives the error
>
> Error communicating with server. The message was:
> Internal Server Error
>
> The log file is still empty, and the web log again has the
> following
>
> [Wed May 7 10:28:29 2003] [notice] Inside the PythonHandler
> [Wed May 7 10:28:29 2003] [notice] Starting backend
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: Traceback
> (innermost last):
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
> result = object(req)
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 166, in handler
> init_backend()
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 69, in init_backend
> config.cfg.load()
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "config.py", line 88, in load
> tmp = self.readConfigFile(file)
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "config.py", line 194, in readConfigFile
> for opt in parser.options('current'):
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​configfile.py", line 214, in options
> raise NoSectionError(section)
> [Wed May 7 10:28:29 2003] [error] PythonHandler current_apache:
> NoSectionError: No section: current
>
>
> So that must not be the problem.
>
> paulw
>
>
>
> At 11:05 PM 5/6/2003, you wrote:
> >The logfile needs to be writeable by the Apache user. If you make it
> >owned by apache instead of root that should solve your problem.
> >
> >--Jeremy
> >
> >
> >On Tue, 2003-05-06 at 15:39, Paul F. Williams wrote:
> > > The permissions on current.httpd.conf look reasonable
> > >
> > > -rw-r--r-- 1 root root 1188 May 6 13:53 current.httpd.conf
> > >
> > > There was nothing in the access_log, but when I ran up2date on
> > > a redhat8 client (and had changed
> > > access_check_type = none)
> > >
> > > I see the following:
> > >
> > > [Tue May 6 14:09:01 2003] [notice] Inside the PythonHandler
> > > [Tue May 6 14:09:01 2003] [notice] Exception at callAPIMethod()
> > > [Tue May 6 14:09:01 2003] [notice] method was up2date.login
> > > [Tue May 6 14:09:01 2003] [notice] params were ['<?xml
> > >
> > version="1.0"?>\​012<params>\0​12<param>\012​<value><str​uct>\012<memb​er>\012<name​>type</name>​\012<value>​<string>REAL<​/string></valu​e>\012</membe​r>\012<member​>\012<name​>checksum</name​>\012<value>​<string>7ca1b4​dab9cd1c0c8935e4caee​ca0f88</string​></value>\012​</member>\012​<member>\012​<name>descripti​on</name>\012​<value><str​ing>Initial
> >
> > > Registration Parameters:\012OS: Red Hat Linux\012Release: 8.0\012CPU Arch:
> > >
> > i686-redhat-linux​</string></val​ue>\012</memb​er>\012<membe​r>\012<name​>os_release</nam​e>\012<value​><string>8.0​</string></​value>\012</m​ember>\012<me​mber>\012<nam​e>architecture​</name>\012<v​alue><string​>i686-redhat-linux​</string></v​alue>\012</me​mber>\012<mem​ber>\012<name​>system_id</na​me>\012<value​><string>ID​-1002759261</stri​ng></value>​\012</member>​\012<member>​012<name>oper​ating_system</nam​e>\012<value​><string>Red​
> >
> > > Hat
> > >
> > Linux</string>​</value>\012​</member>\012​<member>\012​<name>profile_na​me</name>\012​<value><str​ing>pablo.uwex.ed​u</string><​/value>\012</​member>\012<m​ember>\012<na​me>fields</nam​e>\012<value​><array><​data>\012<val​ue><string>​system_id</string​></value>\​012<value><​string>os_release​</string></​value>\012<va​lue><string​>operating_system​</string></val​ue>\012<value​><string>ar​chitecture</strin​g></value>​012<value>​<string>username​</string></v​alue>\012<val​ue><string>​type</string>​</value>\012​</data></arra​y></value>​012</member>​012<member>\​012<name>usern​ame</name>\01​2<value><st​ring>uwexis80<​/string></valu​e>\012</membe​r>\012</struc​t></value>​012</param>\​012</params>\​012']
> > > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: Traceback
> > > (innermost last):
> > > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > > "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in
> > Dispatch
> > > result = object(req)
> > > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > > "/usr/share/current/​current_apache.py", line 196, in handler
> > > logException()
> > > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > > "/usr/share/current/logger.py", line 81, in logException
> > > logfile.write('%s: EXCEPTION in %s, %s(), %s [%s]\n' %
> > > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache:
> > > AttributeError: 'None' object has no attribute 'write'
> > >
> > > ===============================
> > > Setting
> > >
> > > access_check_type = all
> > >
> > > then running up2date on the client yields in the error_log
> > >
> > > [Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
> > > [Tue May 6 14:19:38 2003] [notice] Starting backend
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
> > > (innermost last):
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in
> > Dispatch
> > > result = object(req)
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "/usr/share/current/​current_apache.py", line 166, in handler
> > > init_backend()
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "/usr/share/current/​current_apache.py", line 69, in init_backend
> > > config.cfg.load()
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "config.py", line 88, in load
> > > tmp = self.readConfigFile(file)
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "config.py", line 194, in readConfigFile
> > > for opt in parser.options('current'):
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > > "/usr/share/current/​configfile.py", line 214, in options
> > > raise NoSectionError(section)
> > > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
> > > NoSectionError: No section: current
> > >
> > >
> > > Also in /var/log/httpd/ssl_request_log I see
> > >
> > > [06/May/2003:14:24:09 -0500] 128.104.248.95 TLSv1 EDH-RSA-DES-CBC3-SHA
> > > "POST /XMLRPC HTTP/1.1" 609
> > >
> > > The /var/log/httpd/current.log is empty
> > > and has permissions
> > >
> > > -rw-r--r-- 1 apache root 0 Apr 23 15:04 current.log
> > >
> > >
> > >
> > > ===============================
> > > Perhaps it doesn't work with linux 7.2 server and 8.0 client?
> > >
> > > paulw
> > >
> > >
> > > At 01:44 PM 5/6/2003, you wrote:
> > > > >From your earlier error message, it would appear you have a permissions
> > > >problem, possibly with the config file itself.
> > > >
> > > >Could you check the server error logs and see?
> > > >
> > > >
> > > >
> > > >On Tue, 2003-05-06 at 13:25, Paul F. Williams wrote:
> > > > > I'm running apache 1.3.27, and at the very end of
> > > > > /etc/httpd/conf/httpd.conf I have added a line
> > > > >
> > > > > Include /etc/httpd/conf/curr​ent.httpd.conf
> > > > >
> > > > > Is it possible it is not reading this file or something
> > > > > is wrong in the file? I was under the impression that
> > > > > this file is generated by the system.
> > > > >
> > > > > =====contents of current.httpd.conf==========
> > > > >
> > > >
> > ####################​####################​####################​#################
> > > > > # Configuration added for Current (up2date)
> > > > > #
> > > > > # We take over the /XMLRPC URL and all its sub urls
> > > > > # (<Location>)
> > > > > #
> > > > > # We take over the (configurable) /local/linux/ directory and all
> > sub dirs.
> > > > > # (<Directory>)
> > > > > #
> > > > > # Remember that Directory has precedence over Location
> > > > > #
> > > > > ##
> > > > > ## For apache 1.3.x, YOU MUST put "Include
> > > > > /etc/httpd/conf/curr​ent.httpd.conf" in
> > > > > ## your httpd.conf file. For apache 2.0.x, simply put the file in
> > > > > ## the /etc/httpd/conf.d directory.
> > > > > ##
> > > > >
> > > >
> > ####################​####################​####################​#################
> > > > >
> > > > > #LogLevel debug Set this for debugging
> > > > >
> > > > > Alias /XMLRPC/$RHN /var/linux/current/www
> > > > >
> > > > > <Directory /var/linux/current/www>
> > > > > # Make certain this is set - current won't work without it
> > > > > Options FollowSymLinks
> > > > > </Directory>
> > > > >
> > > > > <Location ~ "/XMLRPC$">
> > > > > PythonPath "sys.path + ['/usr/share/current']"
> > > > > SetHandler python-program
> > > > > PythonHandler current_apache
> > > > > </Location>
> > > > >
> > > > > <Location /XMLRPC/$RHN>
> > > > > PythonPath "sys.path + ['/usr/share/current']"
> > > > > PythonAccessHandler current_apache
> > > > > PythonTypeHandler current_apache
> > > > > </Location>
> > > > >
> > > > > ## END OF CURRENT ##
> > > > > ====================​====================​================
> > > > >
> > > > > Any assistance is appreciated.
> > > > >
> > > > > paulw
> > > > >
> > > > > At 05:25 PM 4/25/2003, you wrote:
> > > > > >On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote
> > users:
> > > > > > > I believe I have installed the server and client
> > > > > > > in accordance with the documentation I found
> > > > > > > in current.
> > > > > >
> > > > > ><snip>
> > > > > >
> > > > > > > File "/usr/share/current/​configfile.py", line 214, in options
> > > > > > > raise NoSectionError(section)
> > > > > > > NoSectionError: No section: current
> > > > > >
> > > > > > > Anyone have any idea what is happening.
> > > > > >
> > > > > >Your config file is broken. You're missing the [current] section,
> > or the
> > > > > >[current] section header.
> > > > > >
> > > > > > > I have several questions in addition.
> > > > > > >
> > > > > > > 1) Does the server name need to be the real name
> > > > > > > of the server (so reverse name lookup works)
> > > > > > > or can it be a CNAME?
> > > > > >
> > > > > >For SSL, yes. Since up2date does as much as possible over SSL, yes, it
> > > > > >needs to be your A record, at least as far as config files and SSL
> > > > > >certificates go. Your hostname can be whatever.
> > > > > >
> > > > > > > 2) Since it is documented that apache cannot be running
> > > > > > > when you run cadmin, I would recommend the notice
> > > > > > > be moved to the beginning of the documentation.
> > > > > > > Also, why can't you run cadmin when apache is running?
> > > > > >
> > > > > >Because shelve (the python datastore used in 1.4) doesn't have any
> > locking
> > > > > >or other advanced "hey, look! the data's changed/changing!" features.
> > > > > >Therefore, if you use cadmin while apache/current is running, you
> > run the
> > > > > >risk of data corruption, screwed up clients, etc.
> > > > > >
> > > > > >That said, the problem will be going away in 1.5+, as that is
> > moving over
> > > > > >to a postgres backend, which has all that database yumminess.
> > > > > >
> > > > > > > (it might even be a good idea for the software to fail
> > > > > > > if apache is running and notify you to stop apache before
> > > > > > > running it).
> > > > > >
> > > > > >They used to do this when current was standalone. With apache,
> > there's no
> > > > > >way to know that current is currently running. For all cadmin
> > knows, it
> > > > > >could just be a bare httpd install that hasn't been outfitted with
> > current
> > > > > >yet.
> > > > > >
> > > > > > > 3) Do you know what ports the server needs to have open,
> > > > > > > we have most of our ports turned off and it refused
> > > > > > > to connect until I opened all ports to the particular
> > > > > > > client.
> > > > > >
> > > > > >You need to have port 443 (https) and probably 80 open. Or
> > whatever you
> > > > > >tell your clients, but as you're going to have to open 2 ports anyway,
> > > > > >you may as well just use the standard ones.
> > > > > >
> > > > > > > 4)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >--
> > > > > >draco
> > > > > >"I know you think you thought you knew what you thought I said,
> > > > > >but I'm not sure you understood what you thought I meant." -- fortune
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --------------------​--------------------​--------------------​---------
> > > > > 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
> > >
> > >
> > >
> > >
> > > --------------------​--------------------​--------------------​---------
> > > 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
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org

--
John Berninger

GPG Key ID: A8C1D45C
        Fingerprint: B1BB 90CB 5314 3113 CF22 66AE 822D 42A8 A8C1 D45C

Sit vis nobiscum.
--

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

Re: Getting an error with current

Reply

Author Hunter Matthews <thm at duke dot edu>
Full name Hunter Matthews <thm at duke dot edu>
Date 2003-05-07 08:34:08 PDT
Message On Tue, 2003-05-06 at 15:39, Paul F. Williams wrote:

> then running up2date on the client yields in the error_log
>
> [Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
> [Tue May 6 14:19:38 2003] [notice] Starting backend
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
> (innermost last):
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
> result = object(req)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 166, in handler
> init_backend()
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 69, in init_backend
> config.cfg.load()
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "config.py", line 88, in load
> tmp = self.readConfigFile(file)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "config.py", line 194, in readConfigFile
> for opt in parser.options('current'):
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​configfile.py", line 214, in options
> raise NoSectionError(section)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
> NoSectionError: No section: current

> ===============================
> Perhaps it doesn't work with linux 7.2 server and 8.0 client?

Try setting the permissions on the current config file itself correctly.

/etc/current/current.conf is not readable by apache.



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

Re: Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-05-07 08:33:05 PDT
Message The log file was owned by apache (see the bottom of this post).
But just in case I changed permissions of the log file to

In /etc/current/current.log

log_file = /var/log/httpd/current.log

I changed the permissions on /var/log/httpd/current.log to

-rw-rw-rw- 1 apache root 0 Apr 23 15:04 current.log

On the client when I run up2date --register
it fails with the message

Fatal error retrieving privacy statement:
Internal Server Error

And running up2date still gives the error

Error communicating with server. The message was:
Internal Server Error

The log file is still empty, and the web log again has the
following

[Wed May 7 10:28:29 2003] [notice] Inside the PythonHandler
[Wed May 7 10:28:29 2003] [notice] Starting backend
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: Traceback
(innermost last):
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
     result = object(req)
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 166, in handler
     init_backend()
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 69, in init_backend
     config.cfg.load()
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"config.py", line 88, in load
     tmp = self.readConfigFile(file)
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"config.py", line 194, in readConfigFile
     for opt in parser.options('current'):
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​configfile.py", line 214, in options
     raise NoSectionError(section)
[Wed May 7 10:28:29 2003] [error] PythonHandler current_apache:
NoSectionError: No section: current


So that must not be the problem.

paulw



At 11:05 PM 5/6/2003, you wrote:
>The logfile needs to be writeable by the Apache user. If you make it
>owned by apache instead of root that should solve your problem.
>
>--Jeremy
>
>
>On Tue, 2003-05-06 at 15:39, Paul F. Williams wrote:
> > The permissions on current.httpd.conf look reasonable
> >
> > -rw-r--r-- 1 root root 1188 May 6 13:53 current.httpd.conf
> >
> > There was nothing in the access_log, but when I ran up2date on
> > a redhat8 client (and had changed
> > access_check_type = none)
> >
> > I see the following:
> >
> > [Tue May 6 14:09:01 2003] [notice] Inside the PythonHandler
> > [Tue May 6 14:09:01 2003] [notice] Exception at callAPIMethod()
> > [Tue May 6 14:09:01 2003] [notice] method was up2date.login
> > [Tue May 6 14:09:01 2003] [notice] params were ['<?xml
> >
> version="1.0"?>\​012<params>\0​12<param>\012​<value><str​uct>\012<memb​er>\012<name​>type</name>​\012<value>​<string>REAL<​/string></valu​e>\012</membe​r>\012<member​>\012<name​>checksum</name​>\012<value>​<string>7ca1b4​dab9cd1c0c8935e4caee​ca0f88</string​></value>\012​</member>\012​<member>\012​<name>descripti​on</name>\012​<value><str​ing>Initial
>
> > Registration Parameters:\012OS: Red Hat Linux\012Release: 8.0\012CPU Arch:
> >
> i686-redhat-linux​</string></val​ue>\012</memb​er>\012<membe​r>\012<name​>os_release</nam​e>\012<value​><string>8.0​</string></​value>\012</m​ember>\012<me​mber>\012<nam​e>architecture​</name>\012<v​alue><string​>i686-redhat-linux​</string></v​alue>\012</me​mber>\012<mem​ber>\012<name​>system_id</na​me>\012<value​><string>ID​-1002759261</stri​ng></value>​\012</member>​\012<member>​012<name>oper​ating_system</nam​e>\012<value​><string>Red​
>
> > Hat
> >
> Linux</string>​</value>\012​</member>\012​<member>\012​<name>profile_na​me</name>\012​<value><str​ing>pablo.uwex.ed​u</string><​/value>\012</​member>\012<m​ember>\012<na​me>fields</nam​e>\012<value​><array><​data>\012<val​ue><string>​system_id</string​></value>\​012<value><​string>os_release​</string></​value>\012<va​lue><string​>operating_system​</string></val​ue>\012<value​><string>ar​chitecture</strin​g></value>​012<value>​<string>username​</string></v​alue>\012<val​ue><string>​type</string>​</value>\012​</data></arra​y></value>​012</member>​012<member>\​012<name>usern​ame</name>\01​2<value><st​ring>uwexis80<​/string></valu​e>\012</membe​r>\012</struc​t></value>​012</param>\​012</params>\​012']
> > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: Traceback
> > (innermost last):
> > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in
> Dispatch
> > result = object(req)
> > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​current_apache.py", line 196, in handler
> > logException()
> > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/logger.py", line 81, in logException
> > logfile.write('%s: EXCEPTION in %s, %s(), %s [%s]\n' %
> > [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache:
> > AttributeError: 'None' object has no attribute 'write'
> >
> > ===============================
> > Setting
> >
> > access_check_type = all
> >
> > then running up2date on the client yields in the error_log
> >
> > [Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
> > [Tue May 6 14:19:38 2003] [notice] Starting backend
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
> > (innermost last):
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in
> Dispatch
> > result = object(req)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​current_apache.py", line 166, in handler
> > init_backend()
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​current_apache.py", line 69, in init_backend
> > config.cfg.load()
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "config.py", line 88, in load
> > tmp = self.readConfigFile(file)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "config.py", line 194, in readConfigFile
> > for opt in parser.options('current'):
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> > "/usr/share/current/​configfile.py", line 214, in options
> > raise NoSectionError(section)
> > [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
> > NoSectionError: No section: current
> >
> >
> > Also in /var/log/httpd/ssl_request_log I see
> >
> > [06/May/2003:14:24:09 -0500] 128.104.248.95 TLSv1 EDH-RSA-DES-CBC3-SHA
> > "POST /XMLRPC HTTP/1.1" 609
> >
> > The /var/log/httpd/current.log is empty
> > and has permissions
> >
> > -rw-r--r-- 1 apache root 0 Apr 23 15:04 current.log
> >
> >
> >
> > ===============================
> > Perhaps it doesn't work with linux 7.2 server and 8.0 client?
> >
> > paulw
> >
> >
> > At 01:44 PM 5/6/2003, you wrote:
> > > >From your earlier error message, it would appear you have a permissions
> > >problem, possibly with the config file itself.
> > >
> > >Could you check the server error logs and see?
> > >
> > >
> > >
> > >On Tue, 2003-05-06 at 13:25, Paul F. Williams wrote:
> > > > I'm running apache 1.3.27, and at the very end of
> > > > /etc/httpd/conf/httpd.conf I have added a line
> > > >
> > > > Include /etc/httpd/conf/curr​ent.httpd.conf
> > > >
> > > > Is it possible it is not reading this file or something
> > > > is wrong in the file? I was under the impression that
> > > > this file is generated by the system.
> > > >
> > > > =====contents of current.httpd.conf==========
> > > >
> > >
> ####################​####################​####################​#################
> > > > # Configuration added for Current (up2date)
> > > > #
> > > > # We take over the /XMLRPC URL and all its sub urls
> > > > # (<Location>)
> > > > #
> > > > # We take over the (configurable) /local/linux/ directory and all
> sub dirs.
> > > > # (<Directory>)
> > > > #
> > > > # Remember that Directory has precedence over Location
> > > > #
> > > > ##
> > > > ## For apache 1.3.x, YOU MUST put "Include
> > > > /etc/httpd/conf/curr​ent.httpd.conf" in
> > > > ## your httpd.conf file. For apache 2.0.x, simply put the file in
> > > > ## the /etc/httpd/conf.d directory.
> > > > ##
> > > >
> > >
> ####################​####################​####################​#################
> > > >
> > > > #LogLevel debug Set this for debugging
> > > >
> > > > Alias /XMLRPC/$RHN /var/linux/current/www
> > > >
> > > > <Directory /var/linux/current/www>
> > > > # Make certain this is set - current won't work without it
> > > > Options FollowSymLinks
> > > > </Directory>
> > > >
> > > > <Location ~ "/XMLRPC$">
> > > > PythonPath "sys.path + ['/usr/share/current']"
> > > > SetHandler python-program
> > > > PythonHandler current_apache
> > > > </Location>
> > > >
> > > > <Location /XMLRPC/$RHN>
> > > > PythonPath "sys.path + ['/usr/share/current']"
> > > > PythonAccessHandler current_apache
> > > > PythonTypeHandler current_apache
> > > > </Location>
> > > >
> > > > ## END OF CURRENT ##
> > > > ====================​====================​================
> > > >
> > > > Any assistance is appreciated.
> > > >
> > > > paulw
> > > >
> > > > At 05:25 PM 4/25/2003, you wrote:
> > > > >On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote
> users:
> > > > > > I believe I have installed the server and client
> > > > > > in accordance with the documentation I found
> > > > > > in current.
> > > > >
> > > > ><snip>
> > > > >
> > > > > > File "/usr/share/current/​configfile.py", line 214, in options
> > > > > > raise NoSectionError(section)
> > > > > > NoSectionError: No section: current
> > > > >
> > > > > > Anyone have any idea what is happening.
> > > > >
> > > > >Your config file is broken. You're missing the [current] section,
> or the
> > > > >[current] section header.
> > > > >
> > > > > > I have several questions in addition.
> > > > > >
> > > > > > 1) Does the server name need to be the real name
> > > > > > of the server (so reverse name lookup works)
> > > > > > or can it be a CNAME?
> > > > >
> > > > >For SSL, yes. Since up2date does as much as possible over SSL, yes, it
> > > > >needs to be your A record, at least as far as config files and SSL
> > > > >certificates go. Your hostname can be whatever.
> > > > >
> > > > > > 2) Since it is documented that apache cannot be running
> > > > > > when you run cadmin, I would recommend the notice
> > > > > > be moved to the beginning of the documentation.
> > > > > > Also, why can't you run cadmin when apache is running?
> > > > >
> > > > >Because shelve (the python datastore used in 1.4) doesn't have any
> locking
> > > > >or other advanced "hey, look! the data's changed/changing!" features.
> > > > >Therefore, if you use cadmin while apache/current is running, you
> run the
> > > > >risk of data corruption, screwed up clients, etc.
> > > > >
> > > > >That said, the problem will be going away in 1.5+, as that is
> moving over
> > > > >to a postgres backend, which has all that database yumminess.
> > > > >
> > > > > > (it might even be a good idea for the software to fail
> > > > > > if apache is running and notify you to stop apache before
> > > > > > running it).
> > > > >
> > > > >They used to do this when current was standalone. With apache,
> there's no
> > > > >way to know that current is currently running. For all cadmin
> knows, it
> > > > >could just be a bare httpd install that hasn't been outfitted with
> current
> > > > >yet.
> > > > >
> > > > > > 3) Do you know what ports the server needs to have open,
> > > > > > we have most of our ports turned off and it refused
> > > > > > to connect until I opened all ports to the particular
> > > > > > client.
> > > > >
> > > > >You need to have port 443 (https) and probably 80 open. Or
> whatever you
> > > > >tell your clients, but as you're going to have to open 2 ports anyway,
> > > > >you may as well just use the standard ones.
> > > > >
> > > > > > 4)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >--
> > > > >draco
> > > > >"I know you think you thought you knew what you thought I said,
> > > > >but I'm not sure you understood what you thought I meant." -- fortune
> > > >
> > > >
> > > >
> > > >
> > > > --------------------​--------------------​--------------------​---------
> > > > 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
> >
> >
> >
> >
> > --------------------​--------------------​--------------------​---------
> > 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


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

Re: Getting an error with current

Reply

Author jpportz
Full name Jeremy Portzer
Date 2003-05-06 21:05:21 PDT
Message The logfile needs to be writeable by the Apache user. If you make it
owned by apache instead of root that should solve your problem.

--Jeremy


On Tue, 2003-05-06 at 15:39, Paul F. Williams wrote:
> The permissions on current.httpd.conf look reasonable
>
> -rw-r--r-- 1 root root 1188 May 6 13:53 current.httpd.conf
>
> There was nothing in the access_log, but when I ran up2date on
> a redhat8 client (and had changed
> access_check_type = none)
>
> I see the following:
>
> [Tue May 6 14:09:01 2003] [notice] Inside the PythonHandler
> [Tue May 6 14:09:01 2003] [notice] Exception at callAPIMethod()
> [Tue May 6 14:09:01 2003] [notice] method was up2date.login
> [Tue May 6 14:09:01 2003] [notice] params were ['<?xml
> version="1.0"?>\​012<params>\0​12<param>\012​<value><str​uct>\012<memb​er>\012<name​>type</name>​\012<value>​<string>REAL<​/string></valu​e>\012</membe​r>\012<member​>\012<name​>checksum</name​>\012<value>​<string>7ca1b4​dab9cd1c0c8935e4caee​ca0f88</string​></value>\012​</member>\012​<member>\012​<name>descripti​on</name>\012​<value><str​ing>Initial
> Registration Parameters:\012OS: Red Hat Linux\012Release: 8.0\012CPU Arch:
> i686-redhat-linux​</string></val​ue>\012</memb​er>\012<membe​r>\012<name​>os_release</nam​e>\012<value​><string>8.0​</string></​value>\012</m​ember>\012<me​mber>\012<nam​e>architecture​</name>\012<v​alue><string​>i686-redhat-linux​</string></v​alue>\012</me​mber>\012<mem​ber>\012<name​>system_id</na​me>\012<value​><string>ID​-1002759261</stri​ng></value>​\012</member>​\012<member>​012<name>oper​ating_system</nam​e>\012<value​><string>Red​
> Hat
> Linux</string>​</value>\012​</member>\012​<member>\012​<name>profile_na​me</name>\012​<value><str​ing>pablo.uwex.ed​u</string><​/value>\012</​member>\012<m​ember>\012<na​me>fields</nam​e>\012<value​><array><​data>\012<val​ue><string>​system_id</string​></value>\​012<value><​string>os_release​</string></​value>\012<va​lue><string​>operating_system​</string></val​ue>\012<value​><string>ar​chitecture</strin​g></value>​012<value>​<string>username​</string></v​alue>\012<val​ue><string>​type</string>​</value>\012​</data></arra​y></value>​012</member>​012<member>\​012<name>usern​ame</name>\01​2<value><st​ring>uwexis80<​/string></valu​e>\012</membe​r>\012</struc​t></value>​012</param>\​012</params>\​012']
> [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: Traceback
> (innermost last):
> [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
> result = object(req)
> [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 196, in handler
> logException()
> [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/logger.py", line 81, in logException
> logfile.write('%s: EXCEPTION in %s, %s(), %s [%s]\n' %
> [Tue May 6 14:09:01 2003] [error] PythonHandler current_apache:
> AttributeError: 'None' object has no attribute 'write'
>
> ===============================
> Setting
>
> access_check_type = all
>
> then running up2date on the client yields in the error_log
>
> [Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
> [Tue May 6 14:19:38 2003] [notice] Starting backend
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
> (innermost last):
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
> result = object(req)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 166, in handler
> init_backend()
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​current_apache.py", line 69, in init_backend
> config.cfg.load()
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "config.py", line 88, in load
> tmp = self.readConfigFile(file)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "config.py", line 194, in readConfigFile
> for opt in parser.options('current'):
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
> "/usr/share/current/​configfile.py", line 214, in options
> raise NoSectionError(section)
> [Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
> NoSectionError: No section: current
>
>
> Also in /var/log/httpd/ssl_request_log I see
>
> [06/May/2003:14:24:09 -0500] 128.104.248.95 TLSv1 EDH-RSA-DES-CBC3-SHA
> "POST /XMLRPC HTTP/1.1" 609
>
> The /var/log/httpd/current.log is empty
> and has permissions
>
> -rw-r--r-- 1 apache root 0 Apr 23 15:04 current.log
>
>
>
> ===============================
> Perhaps it doesn't work with linux 7.2 server and 8.0 client?
>
> paulw
>
>
> At 01:44 PM 5/6/2003, you wrote:
> > >From your earlier error message, it would appear you have a permissions
> >problem, possibly with the config file itself.
> >
> >Could you check the server error logs and see?
> >
> >
> >
> >On Tue, 2003-05-06 at 13:25, Paul F. Williams wrote:
> > > I'm running apache 1.3.27, and at the very end of
> > > /etc/httpd/conf/httpd.conf I have added a line
> > >
> > > Include /etc/httpd/conf/curr​ent.httpd.conf
> > >
> > > Is it possible it is not reading this file or something
> > > is wrong in the file? I was under the impression that
> > > this file is generated by the system.
> > >
> > > =====contents of current.httpd.conf==========
> > >
> > ####################​####################​####################​#################
> > > # Configuration added for Current (up2date)
> > > #
> > > # We take over the /XMLRPC URL and all its sub urls
> > > # (<Location>)
> > > #
> > > # We take over the (configurable) /local/linux/ directory and all sub dirs.
> > > # (<Directory>)
> > > #
> > > # Remember that Directory has precedence over Location
> > > #
> > > ##
> > > ## For apache 1.3.x, YOU MUST put "Include
> > > /etc/httpd/conf/curr​ent.httpd.conf" in
> > > ## your httpd.conf file. For apache 2.0.x, simply put the file in
> > > ## the /etc/httpd/conf.d directory.
> > > ##
> > >
> > ####################​####################​####################​#################
> > >
> > > #LogLevel debug Set this for debugging
> > >
> > > Alias /XMLRPC/$RHN /var/linux/current/www
> > >
> > > <Directory /var/linux/current/www>
> > > # Make certain this is set - current won't work without it
> > > Options FollowSymLinks
> > > </Directory>
> > >
> > > <Location ~ "/XMLRPC$">
> > > PythonPath "sys.path + ['/usr/share/current']"
> > > SetHandler python-program
> > > PythonHandler current_apache
> > > </Location>
> > >
> > > <Location /XMLRPC/$RHN>
> > > PythonPath "sys.path + ['/usr/share/current']"
> > > PythonAccessHandler current_apache
> > > PythonTypeHandler current_apache
> > > </Location>
> > >
> > > ## END OF CURRENT ##
> > > ====================​====================​================
> > >
> > > Any assistance is appreciated.
> > >
> > > paulw
> > >
> > > At 05:25 PM 4/25/2003, you wrote:
> > > >On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> > > > > I believe I have installed the server and client
> > > > > in accordance with the documentation I found
> > > > > in current.
> > > >
> > > ><snip>
> > > >
> > > > > File "/usr/share/current/​configfile.py", line 214, in options
> > > > > raise NoSectionError(section)
> > > > > NoSectionError: No section: current
> > > >
> > > > > Anyone have any idea what is happening.
> > > >
> > > >Your config file is broken. You're missing the [current] section, or the
> > > >[current] section header.
> > > >
> > > > > I have several questions in addition.
> > > > >
> > > > > 1) Does the server name need to be the real name
> > > > > of the server (so reverse name lookup works)
> > > > > or can it be a CNAME?
> > > >
> > > >For SSL, yes. Since up2date does as much as possible over SSL, yes, it
> > > >needs to be your A record, at least as far as config files and SSL
> > > >certificates go. Your hostname can be whatever.
> > > >
> > > > > 2) Since it is documented that apache cannot be running
> > > > > when you run cadmin, I would recommend the notice
> > > > > be moved to the beginning of the documentation.
> > > > > Also, why can't you run cadmin when apache is running?
> > > >
> > > >Because shelve (the python datastore used in 1.4) doesn't have any locking
> > > >or other advanced "hey, look! the data's changed/changing!" features.
> > > >Therefore, if you use cadmin while apache/current is running, you run the
> > > >risk of data corruption, screwed up clients, etc.
> > > >
> > > >That said, the problem will be going away in 1.5+, as that is moving over
> > > >to a postgres backend, which has all that database yumminess.
> > > >
> > > > > (it might even be a good idea for the software to fail
> > > > > if apache is running and notify you to stop apache before
> > > > > running it).
> > > >
> > > >They used to do this when current was standalone. With apache, there's no
> > > >way to know that current is currently running. For all cadmin knows, it
> > > >could just be a bare httpd install that hasn't been outfitted with current
> > > >yet.
> > > >
> > > > > 3) Do you know what ports the server needs to have open,
> > > > > we have most of our ports turned off and it refused
> > > > > to connect until I opened all ports to the particular
> > > > > client.
> > > >
> > > >You need to have port 443 (https) and probably 80 open. Or whatever you
> > > >tell your clients, but as you're going to have to open 2 ports anyway,
> > > >you may as well just use the standard ones.
> > > >
> > > > > 4)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >draco
> > > >"I know you think you thought you knew what you thought I said,
> > > >but I'm not sure you understood what you thought I meant." -- fortune
> > >
> > >
> > >
> > >
> > > --------------------​--------------------​--------------------​---------
> > > 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
>
>
>
>
> --------------------​--------------------​--------------------​---------
> 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: Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-05-06 12:39:33 PDT
Message The permissions on current.httpd.conf look reasonable

-rw-r--r-- 1 root root 1188 May 6 13:53 current.httpd.conf

There was nothing in the access_log, but when I ran up2date on
a redhat8 client (and had changed
    access_check_type = none)

I see the following:

[Tue May 6 14:09:01 2003] [notice] Inside the PythonHandler
[Tue May 6 14:09:01 2003] [notice] Exception at callAPIMethod()
[Tue May 6 14:09:01 2003] [notice] method was up2date.login
[Tue May 6 14:09:01 2003] [notice] params were ['<?xml
version="1.0"?>\​012<params>\0​12<param>\012​<value><str​uct>\012<memb​er>\012<name​>type</name>​\012<value>​<string>REAL<​/string></valu​e>\012</membe​r>\012<member​>\012<name​>checksum</name​>\012<value>​<string>7ca1b4​dab9cd1c0c8935e4caee​ca0f88</string​></value>\012​</member>\012​<member>\012​<name>descripti​on</name>\012​<value><str​ing>Initial
Registration Parameters:\012OS: Red Hat Linux\012Release: 8.0\012CPU Arch:
i686-redhat-linux​</string></val​ue>\012</memb​er>\012<membe​r>\012<name​>os_release</nam​e>\012<value​><string>8.0​</string></​value>\012</m​ember>\012<me​mber>\012<nam​e>architecture​</name>\012<v​alue><string​>i686-redhat-linux​</string></v​alue>\012</me​mber>\012<mem​ber>\012<name​>system_id</na​me>\012<value​><string>ID​-1002759261</stri​ng></value>​\012</member>​\012<member>​012<name>oper​ating_system</nam​e>\012<value​><string>Red​
Hat
Linux</string>​</value>\012​</member>\012​<member>\012​<name>profile_na​me</name>\012​<value><str​ing>pablo.uwex.ed​u</string><​/value>\012</​member>\012<m​ember>\012<na​me>fields</nam​e>\012<value​><array><​data>\012<val​ue><string>​system_id</string​></value>\​012<value><​string>os_release​</string></​value>\012<va​lue><string​>operating_system​</string></val​ue>\012<value​><string>ar​chitecture</strin​g></value>​012<value>​<string>username​</string></v​alue>\012<val​ue><string>​type</string>​</value>\012​</data></arra​y></value>​012</member>​012<member>\​012<name>usern​ame</name>\01​2<value><st​ring>uwexis80<​/string></valu​e>\012</membe​r>\012</struc​t></value>​012</param>\​012</params>\​012']
[Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: Traceback
(innermost last):
[Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
"/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
     result = object(req)
[Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 196, in handler
     logException()
[Tue May 6 14:09:01 2003] [error] PythonHandler current_apache: File
"/usr/share/current/logger.py", line 81, in logException
     logfile.write('%s: EXCEPTION in %s, %s(), %s [%s]\n' %
[Tue May 6 14:09:01 2003] [error] PythonHandler current_apache:
AttributeError: 'None' object has no attribute 'write'

===============================
  Setting

   access_check_type = all

then running up2date on the client yields in the error_log

[Tue May 6 14:19:38 2003] [notice] Inside the PythonHandler
[Tue May 6 14:19:38 2003] [notice] Starting backend
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: Traceback
(innermost last):
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
     result = object(req)
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 166, in handler
     init_backend()
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 69, in init_backend
     config.cfg.load()
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"config.py", line 88, in load
     tmp = self.readConfigFile(file)
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"config.py", line 194, in readConfigFile
     for opt in parser.options('current'):
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​configfile.py", line 214, in options
     raise NoSectionError(section)
[Tue May 6 14:19:38 2003] [error] PythonHandler current_apache:
NoSectionError: No section: current


Also in /var/log/httpd/ssl_request_log I see

[06/May/2003:14:24:09 -0500] 128.104.248.95 TLSv1 EDH-RSA-DES-CBC3-SHA
"POST /XMLRPC HTTP/1.1" 609

The /var/log/httpd/current.log is empty
and has permissions

-rw-r--r-- 1 apache root 0 Apr 23 15:04 current.log



===============================
Perhaps it doesn't work with linux 7.2 server and 8.0 client?

paulw


At 01:44 PM 5/6/2003, you wrote:
> >From your earlier error message, it would appear you have a permissions
>problem, possibly with the config file itself.
>
>Could you check the server error logs and see?
>
>
>
>On Tue, 2003-05-06 at 13:25, Paul F. Williams wrote:
> > I'm running apache 1.3.27, and at the very end of
> > /etc/httpd/conf/httpd.conf I have added a line
> >
> > Include /etc/httpd/conf/curr​ent.httpd.conf
> >
> > Is it possible it is not reading this file or something
> > is wrong in the file? I was under the impression that
> > this file is generated by the system.
> >
> > =====contents of current.httpd.conf==========
> >
> ####################​####################​####################​#################
> > # Configuration added for Current (up2date)
> > #
> > # We take over the /XMLRPC URL and all its sub urls
> > # (<Location>)
> > #
> > # We take over the (configurable) /local/linux/ directory and all sub dirs.
> > # (<Directory>)
> > #
> > # Remember that Directory has precedence over Location
> > #
> > ##
> > ## For apache 1.3.x, YOU MUST put "Include
> > /etc/httpd/conf/curr​ent.httpd.conf" in
> > ## your httpd.conf file. For apache 2.0.x, simply put the file in
> > ## the /etc/httpd/conf.d directory.
> > ##
> >
> ####################​####################​####################​#################
> >
> > #LogLevel debug Set this for debugging
> >
> > Alias /XMLRPC/$RHN /var/linux/current/www
> >
> > <Directory /var/linux/current/www>
> > # Make certain this is set - current won't work without it
> > Options FollowSymLinks
> > </Directory>
> >
> > <Location ~ "/XMLRPC$">
> > PythonPath "sys.path + ['/usr/share/current']"
> > SetHandler python-program
> > PythonHandler current_apache
> > </Location>
> >
> > <Location /XMLRPC/$RHN>
> > PythonPath "sys.path + ['/usr/share/current']"
> > PythonAccessHandler current_apache
> > PythonTypeHandler current_apache
> > </Location>
> >
> > ## END OF CURRENT ##
> > ====================​====================​================
> >
> > Any assistance is appreciated.
> >
> > paulw
> >
> > At 05:25 PM 4/25/2003, you wrote:
> > >On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> > > > I believe I have installed the server and client
> > > > in accordance with the documentation I found
> > > > in current.
> > >
> > ><snip>
> > >
> > > > File "/usr/share/current/​configfile.py", line 214, in options
> > > > raise NoSectionError(section)
> > > > NoSectionError: No section: current
> > >
> > > > Anyone have any idea what is happening.
> > >
> > >Your config file is broken. You're missing the [current] section, or the
> > >[current] section header.
> > >
> > > > I have several questions in addition.
> > > >
> > > > 1) Does the server name need to be the real name
> > > > of the server (so reverse name lookup works)
> > > > or can it be a CNAME?
> > >
> > >For SSL, yes. Since up2date does as much as possible over SSL, yes, it
> > >needs to be your A record, at least as far as config files and SSL
> > >certificates go. Your hostname can be whatever.
> > >
> > > > 2) Since it is documented that apache cannot be running
> > > > when you run cadmin, I would recommend the notice
> > > > be moved to the beginning of the documentation.
> > > > Also, why can't you run cadmin when apache is running?
> > >
> > >Because shelve (the python datastore used in 1.4) doesn't have any locking
> > >or other advanced "hey, look! the data's changed/changing!" features.
> > >Therefore, if you use cadmin while apache/current is running, you run the
> > >risk of data corruption, screwed up clients, etc.
> > >
> > >That said, the problem will be going away in 1.5+, as that is moving over
> > >to a postgres backend, which has all that database yumminess.
> > >
> > > > (it might even be a good idea for the software to fail
> > > > if apache is running and notify you to stop apache before
> > > > running it).
> > >
> > >They used to do this when current was standalone. With apache, there's no
> > >way to know that current is currently running. For all cadmin knows, it
> > >could just be a bare httpd install that hasn't been outfitted with current
> > >yet.
> > >
> > > > 3) Do you know what ports the server needs to have open,
> > > > we have most of our ports turned off and it refused
> > > > to connect until I opened all ports to the particular
> > > > client.
> > >
> > >You need to have port 443 (https) and probably 80 open. Or whatever you
> > >tell your clients, but as you're going to have to open 2 ports anyway,
> > >you may as well just use the standard ones.
> > >
> > > > 4)
> > >
> > >
> > >
> > >
> > >
> > >--
> > >draco
> > >"I know you think you thought you knew what you thought I said,
> > >but I'm not sure you understood what you thought I meant." -- fortune
> >
> >
> >
> >
> > --------------------​--------------------​--------------------​---------
> > 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




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

Re: Getting an error with current

Reply

Author hunterm
Full name Hunter Matthews
Date 2003-05-06 11:44:52 PDT
Message >>From your earlier error message, it would appear you have a permissions
problem, possibly with the config file itself.

Could you check the server error logs and see?



On Tue, 2003-05-06 at 13:25, Paul F. Williams wrote:
> I'm running apache 1.3.27, and at the very end of
> /etc/httpd/conf/httpd.conf I have added a line
>
> Include /etc/httpd/conf/curr​ent.httpd.conf
>
> Is it possible it is not reading this file or something
> is wrong in the file? I was under the impression that
> this file is generated by the system.
>
> =====contents of current.httpd.conf==========
> ####################​####################​####################​#################
> # Configuration added for Current (up2date)
> #
> # We take over the /XMLRPC URL and all its sub urls
> # (<Location>)
> #
> # We take over the (configurable) /local/linux/ directory and all sub dirs.
> # (<Directory>)
> #
> # Remember that Directory has precedence over Location
> #
> ##
> ## For apache 1.3.x, YOU MUST put "Include
> /etc/httpd/conf/curr​ent.httpd.conf" in
> ## your httpd.conf file. For apache 2.0.x, simply put the file in
> ## the /etc/httpd/conf.d directory.
> ##
> ####################​####################​####################​#################
>
> #LogLevel debug Set this for debugging
>
> Alias /XMLRPC/$RHN /var/linux/current/www
>
> <Directory /var/linux/current/www>
> # Make certain this is set - current won't work without it
> Options FollowSymLinks
> </Directory>
>
> <Location ~ "/XMLRPC$">
> PythonPath "sys.path + ['/usr/share/current']"
> SetHandler python-program
> PythonHandler current_apache
> </Location>
>
> <Location /XMLRPC/$RHN>
> PythonPath "sys.path + ['/usr/share/current']"
> PythonAccessHandler current_apache
> PythonTypeHandler current_apache
> </Location>
>
> ## END OF CURRENT ##
> ====================​====================​================
>
> Any assistance is appreciated.
>
> paulw
>
> At 05:25 PM 4/25/2003, you wrote:
> >On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> > > I believe I have installed the server and client
> > > in accordance with the documentation I found
> > > in current.
> >
> ><snip>
> >
> > > File "/usr/share/current/​configfile.py", line 214, in options
> > > raise NoSectionError(section)
> > > NoSectionError: No section: current
> >
> > > Anyone have any idea what is happening.
> >
> >Your config file is broken. You're missing the [current] section, or the
> >[current] section header.
> >
> > > I have several questions in addition.
> > >
> > > 1) Does the server name need to be the real name
> > > of the server (so reverse name lookup works)
> > > or can it be a CNAME?
> >
> >For SSL, yes. Since up2date does as much as possible over SSL, yes, it
> >needs to be your A record, at least as far as config files and SSL
> >certificates go. Your hostname can be whatever.
> >
> > > 2) Since it is documented that apache cannot be running
> > > when you run cadmin, I would recommend the notice
> > > be moved to the beginning of the documentation.
> > > Also, why can't you run cadmin when apache is running?
> >
> >Because shelve (the python datastore used in 1.4) doesn't have any locking
> >or other advanced "hey, look! the data's changed/changing!" features.
> >Therefore, if you use cadmin while apache/current is running, you run the
> >risk of data corruption, screwed up clients, etc.
> >
> >That said, the problem will be going away in 1.5+, as that is moving over
> >to a postgres backend, which has all that database yumminess.
> >
> > > (it might even be a good idea for the software to fail
> > > if apache is running and notify you to stop apache before
> > > running it).
> >
> >They used to do this when current was standalone. With apache, there's no
> >way to know that current is currently running. For all cadmin knows, it
> >could just be a bare httpd install that hasn't been outfitted with current
> >yet.
> >
> > > 3) Do you know what ports the server needs to have open,
> > > we have most of our ports turned off and it refused
> > > to connect until I opened all ports to the particular
> > > client.
> >
> >You need to have port 443 (https) and probably 80 open. Or whatever you
> >tell your clients, but as you're going to have to open 2 ports anyway,
> >you may as well just use the standard ones.
> >
> > > 4)
> >
> >
> >
> >
> >
> >--
> >draco
> >"I know you think you thought you knew what you thought I said,
> >but I'm not sure you understood what you thought I meant." -- fortune
>
>
>
>
> --------------------​--------------------​--------------------​---------
> 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

Re: Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-05-06 10:25:44 PDT
Message I'm running apache 1.3.27, and at the very end of
/etc/httpd/conf/httpd.conf I have added a line

    Include /etc/httpd/conf/curr​ent.httpd.conf

Is it possible it is not reading this file or something
is wrong in the file? I was under the impression that
this file is generated by the system.

=====contents of current.httpd.conf==========
####################​####################​####################​#################
# Configuration added for Current (up2date)
#
# We take over the /XMLRPC URL and all its sub urls
# (<Location>)
#
# We take over the (configurable) /local/linux/ directory and all sub dirs.
# (<Directory>)
#
# Remember that Directory has precedence over Location
#
##
## For apache 1.3.x, YOU MUST put "Include
/etc/httpd/conf/curr​ent.httpd.conf" in
## your httpd.conf file. For apache 2.0.x, simply put the file in
## the /etc/httpd/conf.d directory.
##
####################​####################​####################​#################

#LogLevel debug Set this for debugging

Alias /XMLRPC/$RHN /var/linux/current/www

<Directory /var/linux/current/www>
     # Make certain this is set - current won't work without it
     Options FollowSymLinks
</Directory>

<Location ~ "/XMLRPC$">
     PythonPath "sys.path + ['/usr/share/current']"
     SetHandler python-program
     PythonHandler current_apache
</Location>

<Location /XMLRPC/$RHN>
     PythonPath "sys.path + ['/usr/share/current']"
     PythonAccessHandler current_apache
     PythonTypeHandler current_apache
</Location>

## END OF CURRENT ##
====================​====================​================

Any assistance is appreciated.

paulw

At 05:25 PM 4/25/2003, you wrote:
>On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> > I believe I have installed the server and client
> > in accordance with the documentation I found
> > in current.
>
><snip>
>
> > File "/usr/share/current/​configfile.py", line 214, in options
> > raise NoSectionError(section)
> > NoSectionError: No section: current
>
> > Anyone have any idea what is happening.
>
>Your config file is broken. You're missing the [current] section, or the
>[current] section header.
>
> > I have several questions in addition.
> >
> > 1) Does the server name need to be the real name
> > of the server (so reverse name lookup works)
> > or can it be a CNAME?
>
>For SSL, yes. Since up2date does as much as possible over SSL, yes, it
>needs to be your A record, at least as far as config files and SSL
>certificates go. Your hostname can be whatever.
>
> > 2) Since it is documented that apache cannot be running
> > when you run cadmin, I would recommend the notice
> > be moved to the beginning of the documentation.
> > Also, why can't you run cadmin when apache is running?
>
>Because shelve (the python datastore used in 1.4) doesn't have any locking
>or other advanced "hey, look! the data's changed/changing!" features.
>Therefore, if you use cadmin while apache/current is running, you run the
>risk of data corruption, screwed up clients, etc.
>
>That said, the problem will be going away in 1.5+, as that is moving over
>to a postgres backend, which has all that database yumminess.
>
> > (it might even be a good idea for the software to fail
> > if apache is running and notify you to stop apache before
> > running it).
>
>They used to do this when current was standalone. With apache, there's no
>way to know that current is currently running. For all cadmin knows, it
>could just be a bare httpd install that hasn't been outfitted with current
>yet.
>
> > 3) Do you know what ports the server needs to have open,
> > we have most of our ports turned off and it refused
> > to connect until I opened all ports to the particular
> > client.
>
>You need to have port 443 (https) and probably 80 open. Or whatever you
>tell your clients, but as you're going to have to open 2 ports anyway,
>you may as well just use the standard ones.
>
> > 4)
>
>
>
>
>
>--
>draco
>"I know you think you thought you knew what you thought I said,
>but I'm not sure you understood what you thought I meant." -- fortune




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

Re: Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-04-28 09:07:21 PDT
Message Perhaps I have specified something incorrectly.
Here is the current.conf file



=====start of current.conf=============
[current]
valid_channels = redhat-7.1-i386 redhat-7.2-i386 redhat-8.0-i386
log_file = /var/log/httpd/current.log
log_level = 0

# 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
apache_config_file = /etc/httpd/conf/curr​ent.httpd.conf

access_check_type = user
access_check_arg = apache
server_secret = xxxxxxxxxxxxxxxxxxx
server_id = xxxxxxx.uwex.edu
current_dir = /var/linux/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 UWEX's up2date server."
privacy_statement = "Privacy Statement for UWEX's up2date server:
     This is the internet - privacy is an illusion.
     Unauthorized access is not allowed.
     .
     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.1-i386]
name = Red Hat Linux 7.1
parent_channel =
arch = i386
os_release = 7.1
description = Red Hat Linux 7.1
srpm_check = 0

rpm_dirs = /var/linux/redhat-7.​1/RedHat/RPMS
            /var/linux/redhat-7.​1/other-pkgs/rh-upda​tes
            /var/linux/redhat-7.​1/other-pkgs/dulug
            /var/linux/redhat-7.​1/other-pkgs/phy
            /var/linux/redhat-7.​1/other-pkgs/powerto​ols
            /var/linux/redhat-7.​1/other-pkgs/rawhide​

src_dirs = /var/linux/redhat-7.1/SRPMS

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

rpm_dirs = /var/linux/redhat-7.​2/RedHat/RPMS
            /var/linux/redhat-7.​2/other-pkgs/rh-upda​tes
            /var/linux/redhat-7.​2/other-pkgs/dulug
            /var/linux/redhat-7.​2/other-pkgs/phy
            /var/linux/redhat-7.​2/other-pkgs/powerto​ols
            /var/linux/redhat-7.​2/other-pkgs/rawhide​

src_dirs = /var/linux/redhat-7.2/SRPMS

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

rpm_dirs = /var/linux/redhat-8.​0/RedHat/RPMS
            /var/linux/redhat-8.​0/other-pkgs/rh-upda​tes
            /var/linux/redhat-8.​0/other-pkgs/dulug
            /var/linux/redhat-8.​0/other-pkgs/phy
            /var/linux/redhat-8.​0/other-pkgs/powerto​ols
            /var/linux/redhat-8.​0/other-pkgs/rawhide​

src_dirs = /var/linux/redhat-8.0/SRPMS

=====end of current.conf====

paulw

At 05:25 PM 4/25/2003, you wrote:
>On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> > I believe I have installed the server and client
> > in accordance with the documentation I found
> > in current.
>
><snip>
>
> > File "/usr/share/current/​configfile.py", line 214, in options
> > raise NoSectionError(section)
> > NoSectionError: No section: current
>
> > Anyone have any idea what is happening.
>
>Your config file is broken. You're missing the [current] section, or the
>[current] section header.
>
> > I have several questions in addition.
> >
> > 1) Does the server name need to be the real name
> > of the server (so reverse name lookup works)
> > or can it be a CNAME?
>
>For SSL, yes. Since up2date does as much as possible over SSL, yes, it
>needs to be your A record, at least as far as config files and SSL
>certificates go. Your hostname can be whatever.
>
> > 2) Since it is documented that apache cannot be running
> > when you run cadmin, I would recommend the notice
> > be moved to the beginning of the documentation.
> > Also, why can't you run cadmin when apache is running?
>
>Because shelve (the python datastore used in 1.4) doesn't have any locking
>or other advanced "hey, look! the data's changed/changing!" features.
>Therefore, if you use cadmin while apache/current is running, you run the
>risk of data corruption, screwed up clients, etc.
>
>That said, the problem will be going away in 1.5+, as that is moving over
>to a postgres backend, which has all that database yumminess.
>
> > (it might even be a good idea for the software to fail
> > if apache is running and notify you to stop apache before
> > running it).
>
>They used to do this when current was standalone. With apache, there's no
>way to know that current is currently running. For all cadmin knows, it
>could just be a bare httpd install that hasn't been outfitted with current
>yet.
>
> > 3) Do you know what ports the server needs to have open,
> > we have most of our ports turned off and it refused
> > to connect until I opened all ports to the particular
> > client.
>
>You need to have port 443 (https) and probably 80 open. Or whatever you
>tell your clients, but as you're going to have to open 2 ports anyway,
>you may as well just use the standard ones.
>
> > 4)
>
>
>
>
>
>--
>draco
>"I know you think you thought you knew what you thought I said,
>but I'm not sure you understood what you thought I meant." -- fortune




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

Re: Getting an error with current

Reply

Author draco <manannan at cfl dot rr dot com>
Full name draco <manannan at cfl dot rr dot com>
Date 2003-04-25 15:25:44 PDT
Message On Fri, Apr 25, 2003 at 05:03:53PM -0500, Paul F. Williams wrote users:
> I believe I have installed the server and client
> in accordance with the documentation I found
> in current.

<snip>

> File "/usr/share/current/​configfile.py", line 214, in options
> raise NoSectionError(section)
> NoSectionError: No section: current

> Anyone have any idea what is happening.

Your config file is broken. You're missing the [current] section, or the
[current] section header.

> I have several questions in addition.
>
> 1) Does the server name need to be the real name
> of the server (so reverse name lookup works)
> or can it be a CNAME?

For SSL, yes. Since up2date does as much as possible over SSL, yes, it
needs to be your A record, at least as far as config files and SSL
certificates go. Your hostname can be whatever.

> 2) Since it is documented that apache cannot be running
> when you run cadmin, I would recommend the notice
> be moved to the beginning of the documentation.
> Also, why can't you run cadmin when apache is running?

Because shelve (the python datastore used in 1.4) doesn't have any locking
or other advanced "hey, look! the data's changed/changing!" features.
Therefore, if you use cadmin while apache/current is running, you run the
risk of data corruption, screwed up clients, etc.

That said, the problem will be going away in 1.5+, as that is moving over
to a postgres backend, which has all that database yumminess.

> (it might even be a good idea for the software to fail
> if apache is running and notify you to stop apache before
> running it).

They used to do this when current was standalone. With apache, there's no
way to know that current is currently running. For all cadmin knows, it
could just be a bare httpd install that hasn't been outfitted with current
yet.

> 3) Do you know what ports the server needs to have open,
> we have most of our ports turned off and it refused
> to connect until I opened all ports to the particular
> client.

You need to have port 443 (https) and probably 80 open. Or whatever you
tell your clients, but as you're going to have to open 2 ports anyway,
you may as well just use the standard ones.

> 4)





--
draco
"I know you think you thought you knew what you thought I said,
but I'm not sure you understood what you thought I meant." -- fortune
Attachments

Getting an error with current

Reply

Author "Paul F dot Williams" <paul dot williams at uwex dot edu>
Full name "Paul F dot Williams" <paul dot williams at uwex dot edu>
Date 2003-04-25 15:03:53 PDT
Message I believe I have installed the server and client
in accordance with the documentation I found
in current.

The server is redhat 7.2
the client is Redhat 8.0
current-1.4.3-1.7x
apache-1.3.27-1.7.2
python-xmlrpc-1.5.1-7.x.3
python-popt-0.8.8-7.x.2
python-devel-1.5.2-43.72
mod_python-2.7.8-1
rpm-python-4.0.4-7x
python-1.5.2-43.72
mod_ssl-2.8.12-2


On the client I encounter the following message
when I run up2date.

# Error communicating with server. The message was:
Internal Server Error

The only log I found were in /var/log/httpd/err_log

[Fri Apr 25 16:59:09 2003] [notice] Inside the PythonHandler
[Fri Apr 25 16:59:09 2003] [notice] Starting backend
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: Traceback
(innermost last):
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"/usr/lib/python1.5/​site-packages/mod_py​thon/apache.py", line 185, in Dispatch
     result = object(req)
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 166, in handler
     init_backend()
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​current_apache.py", line 69, in init_backend
     config.cfg.load()
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"config.py", line 88, in load
     tmp = self.readConfigFile(file)
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"config.py", line 194, in readConfigFile
     for opt in parser.options('current'):
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache: File
"/usr/share/current/​configfile.py", line 214, in options
     raise NoSectionError(section)
[Fri Apr 25 16:59:10 2003] [error] PythonHandler current_apache:
NoSectionError: No section: current


Anyone have any idea what is happening.


I have several questions in addition.

1) Does the server name need to be the real name
    of the server (so reverse name lookup works)
    or can it be a CNAME?

2) Since it is documented that apache cannot be running
    when you run cadmin, I would recommend the notice
    be moved to the beginning of the documentation.
    Also, why can't you run cadmin when apache is running?
    (it might even be a good idea for the software to fail
    if apache is running and notify you to stop apache before
    running it).

3) Do you know what ports the server needs to have open,
    we have most of our ports turned off and it refused
    to connect until I opened all ports to the particular
    client.

4)
Thanks,

paulw


--------------------​--------------------​--------------------​---------
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: