Re: Problems with current 1.3.11

Hunter Matthews <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
On Tue, 2002-08-27 at 13:59, Rui Barreiros wrote:
> On Tue, 2002-08-27 at 18:26, Hunter Matthews wrote:
> (big snip...)
> 

You don't say so in this email - did you run cadmin 'create' on your
channel(s)?

Did you restart apache after that?

> Hi, 
> when i ran rhn_register, it gave me this error:
> 
> A socket error occured: (104, 'Connection reset by peer'), attempt #1
> A socket error occured: (0, 'Error'), attempt #2
> A socket error occured: (0, 'Error'), attempt #3
> A socket error occured: (0, 'Error'), attempt #4
> A socket error occured: (0, 'Error'), attempt #5
> 
> Apache error log:
> 
> [Tue Aug 27 18:38:31 2002] [notice] Inside the PythonHandler
> [Tue Aug 27 18:38:31 2002] [notice] Reading configuration
> [Tue Aug 27 18:38:31 2002] [notice] Starting logging system
> [Tue Aug 27 18:38:31 2002] [notice] Starting logging
> [Tue Aug 27 18:38:31 2002] [notice] Using current log
> /var/log/httpd/current.log
> [Tue Aug 27 18:38:31 2002] [notice] Starting backend object
> [Tue Aug 27 18:38:32 2002] [notice] child pid 7601 exit signal
> Segmentation fault (11)

I've never even seen this.

> 
> then i started debugging.
> 
> the error ocurred when opening the *.wdb files in channel.py in open(),
> i was placing some log() call's around that function and noticed that
> one ocasion it started working.
> So i removed all the log() calls, cleaned up the .pyc (who knows ...)
> and ran rhn_register. no errors at all (still dunno what changed).
> 
> up2date -l has no errors (but then i had no packages to update, gonna
> try that later)
> 
> up2date --showall gives me this error:
> (up2date gives the error not current)
> Traceback (innermost last):
>   File "/usr/sbin/up2date", line 1169, in ?
>     main()
>   File "/usr/sbin/up2date", line 316, in main
>     printList(up2date.getAvailablePackageList())
>   File "/usr/sbin/up2date", line 871, in printList
>     packageList.sort()
> AttributeError: 'None' object has no attribute 'sort'

This typically happens when apache (through mod_python/current) can't
read the databases that were created due to permissions problems.

Do you have the permissions set correctly?


> 
> - about the 1.3.12 and after, i'll wait, if you guys need a hand in
> something (except documentation, yes, i hate to write docs too) i'll be
> glad to.

If I could get you to confirm that you've recreated your databases and
restarted apache, that would be a good point to start at.

> 
> 
> > > 
> > > p.s: i was wondering if it wasn't easier to make such a thing in perl,
> > > or if there is any way of combining the python created db's with perl?
> > 
> > Since I don't know perl, John doesn't know perl, up2date isn't written
> > in perl, and perl wouldn't help here, I doubt it.
> > 
> 
> hehe, let's make a trade, i'll teach you guys perl, and you guys teach
> me python :) *kidding*.
> Maybe i can think of some utils in perl that can work all together.

OpenUp was written in several languages (C, shell, perl, PHP) and I'm
fairly committed to one language projects from now on.

If you have ideas, put them out on the mailing list - several people
here know python.

> 
> Rui Barreiros
-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.