Login | Register
My pages Projects Community openCollabNet
Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

Reply to message

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

* = Required fields
* Subject
* Body
Send reply to
Author (directly in email)
Please type the letters in the image above.

Original message

Author "Ryan C. Spaulding" <rspaulding@mail.arc.nasa.gov>
Full name "Ryan C. Spaulding" <rspaulding@mail.arc.nasa.gov>
Date 2005-06-28 15:24:05 PDT
Message Hi All,

I was able to add all of the channels and directories I wanted but now
I cannot scan the channels:

[root@current RHEL-4WS-i386]# cadmin scan_channel -l RHEL-3WS-i386
Traceback (most recent call last):
   File "/usr/sbin/cadmin", line 131, in ?
   File "/usr/sbin/cadmin", line 118, in main
   File "/usr/sbin/cadmin", line 55, in scan_channels
     result = rpcServer.doCall(ser​ver.cadmin.scanChann​els, chan)
   File "/usr/share/rhn/up2d​ate_client/rpcServer​.py", line 309, in doCall
     ret = apply(method, args, kwargs)
   File "/usr/lib/python2.3/​xmlrpclib.py", line 1029, in __call__
     return self.__send(self.__name, args)
   File "/usr/share/rhn/up2d​ate_client/rpcServer​.py", line 45, in
     ret = self._request(methodname, params)
   File "/usr/lib/python2.3/​site-packages/rhn/rp​clib.py", line 308, in
   File "/usr/lib/python2.3/​site-packages/rhn/tr​ansports.py", line 184,
in request
     return self._process_response(fd, connection)
   File "/usr/lib/python2.3/​site-packages/rhn/tr​ansports.py", line 212,
in _process_response
     return self.parse_response(fd)
   File "/usr/lib/python2.3/​site-packages/rhn/tr​ansports.py", line 236,
in parse_response
     return u.close()
   File "/usr/lib/python2.3/​xmlrpclib.py", line 742, in close
     raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1000: 'Function scanChannels call blew up. Bad

The above output happens regardless of the channel. I logged into the
database and verified that the channels where there and valid. I have a
few stupid questions about the process:

1) Who should create the channel directories under /www? In the last
install I created them and the sub directories where created but which
step I am not sure since it was pretty hassle free last time.
2)Do the sub directories of the channel directories need to be created
by me or will they be created by cadmin?
3) When the scanning is happening who is it running as (I am assuming
root but I wanted to be sure)?
4) What should the permissions be on the rpm's and the directories?

Below is a snippet from the current.log

Jun 28 15:11:49 Inside Current main hander
Jun 28 15:11:49 Requesting: cadmin.scanChannels
Jun 28 15:11:49 with params = [{'channels': ['RHEL-3WS-i386']}]
Jun 28 15:11:49 method = cadmin.scanChannels
Jun 28 15:11:49 module = cadmin
Jun 28 15:11:49 function = scanChannels
Jun 28 15:11:49 (/usr/share/current/​current_apache.py, callAPIMethod(),
288): params = [{'channels': ['RHEL-3WS-i386']}]
Jun 28 15:11:49 Dispatching: cadmin.scanChannels
Jun 28 15:11:49
/usr/share/current/a​pi/cadmin.py:scanCha​nnels({'chanlist': {'channels':
['RHEL-3WS-i386']}, 'result': {}})
Jun 28 15:11:49
Jun 28 15:11:49 /usr/share/current/d​b/currentdb.py:_addR​pms({'add_set':
---many packages do not want to fill up that in the email

Jun 28 15:11:49 Adding
/current/RHEL/3WS/i3​86-common/kinput2-ca​nna-wnn6-v3.1-12.EL.​i386.rpm to
channel RHEL-3WS-i386
Jun 28 15:11:49 (/usr/share/current/​db/currentdb.py,
_insertChannelTable(), 358): RPM ID=10 added to channel
Jun 28 15:11:49 (/usr/share/current/​db/currentdb.py, _createHeader(),
365): Inside _createHeader
Jun 28 15:11:49 Database transaction aborted!
Jun 28 15:11:49 ERROR: Recognized function cadmin.scanChannels blew up
with undefined error
Jun 28 15:1149 : EXCEPTION in /usr/share/current/c​urrent_apache.py,
callAPIMethod(), 317 [logException()]
Traceback (most recent call last):
File "/usr/share/current/​current_apache.py", line 294, in callAPIMethod
    result = apply(func, params)
File "/usr/share/current/​api/cadmin.py", line 39, in scanChannels
result[chan] = db.db.updateChannel(chan)
File "/usr/share/current/​db/currentdb.py", line 158, in updateChannel
  result['addedrpms'] = self._addRpms(channel, added_rpms)
File "/usr/share/current/​db/currentdb.py", line 329, in _addRpms
self._createHeader(channel, header)
File "/usr/share/current/​db/currentdb.py", line 370, in _createHeader
File "/usr/share/current/RPM.py", line 181, in unload h_file =
file(pathname, 'wb')
IOError: [Errno 2] No such file or directory:
Jun 28 15:11:49 params were: [{'channels': ['RHEL-3WS-i386']}]
Jun 28 15:11:49 API Result = <Fault 1000: u'Function scanChannels call
blew up. Bad week.'>
Jun 28 15:11:49 Fault: <Fault 1000: u'Function scanChannels call blew
up. Bad week.'>
Jun 28 15:11:49 (/usr/share/current/​current_apache.py,
sendClientResult(), 240): Data sent.
Jun 28 15:11:49 sendClientResult() finished

Thank you,

On Jun 28, 2005, at 1:53 PM, Ryan C. Spaulding wrote:

> Hi Jack,
> It worked!!
> [root@current 3WS]# cadmin create_channel -l RHEL-3WS-i386 -a i386 -r
> 3WS -n "Red Hat Enterprise Linux WS (v.3 for x86)"
> {'msg': 0, 'status': 'ok', 'call': 'Backend call returned without
> error'}
> I had the packages in the distro but was waiting to get current
> working so I could update the system.
> Thank you,
> Ryan
> On Jun 28, 2005, at 1:27 PM, Jack Neely wrote:
>> Ryan,
>> Crap, looks like you got bitten by the broketastic postgres python
>> bindings in FC3 that apperently made it into RHEL 4. Are you using
>> the latest available postgresql packages?
>> Depending on if RH has fixed the postgres packages in RHEL 4 or not
>> you might want to grab the latest ones out of FC3 and use those
>> instead.
>> Jack
>> --------------------​--------------------​--------------------​---------
>> 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