Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Problems adding directories with current 1.5.9

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

current
Discussion topic

Back to topic list

Problems adding directories with current 1.5.9

Reply

Author Roland Pope <rpope at jadeworld dot com>
Full name Roland Pope <rpope at jadeworld dot com>
Date 2005-01-05 16:54:02 PST
Message Hi,

I have updated to current 1.5.9 on my WhiteBox 3.0 machine but I am having
difficulty adding the directories to my new channel with cadmin.
I started completly from scratch removing everything in my db/ and www/
directories, dropping the current postgres DB, creating it again and
creating the channel again with cadmin, which worked fine
<snip>
cadmin create_channel -l whitebox-3.0FwF-i386 -a i386 -r 3.0FwF -n "WhiteBox
3.0 for Firewall Focus"
{'msg': 0, 'status': 'ok', 'call': 'Backend call returned without error'}
</snip>
But when I try to add a directory, I get the following
<snip>
cadmin add_dir -l whitebox-3.0FwF-i386 -d
/mnt/redhat-mirror/3​.0/i386/RedHat/RPMS
Traceback (most recent call last):
  File "/usr/sbin/cadmin", line 125, in ?
    main()
  File "/usr/sbin/cadmin", line 116, in main
    add_dir_to_channel(s​ys.argv[2:])
  File "/usr/sbin/cadmin", line 99, in add_dir_to_channel
    result = rpcServer.doCall(ser​ver.cadmin.populateC​hannel, chan)
  File "/usr/share/rhn/up2d​ate_client/rpcServer​.py", line 112, in doCall
    ret = apply(method, args, kwargs)
  File "/usr/lib/python2.2/​xmlrpclib.py", line 821, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.2/​site-packages/rhn/rp​clib.py", line 308, in
_request
    verbose=self._verbose
  File "/usr/lib/python2.2/​site-packages/rhn/tr​ansports.py", line 184, in
request
    return self._process_response(fd, connection)
  File "/usr/lib/python2.2/​site-packages/rhn/tr​ansports.py", line 212, in
_process_response
    return self.parse_response(fd)
  File "/usr/lib/python2.2/​site-packages/rhn/tr​ansports.py", line 236, in
parse_response
    return u.close()
  File "/usr/lib/python2.2/​xmlrpclib.py", line 571, in close
    raise apply(Fault, (), self._stack[0])
xmlrpclib.Fault: <Fault 1000: 'Bad channel label.'>
</snip>

My current.log files shows the following
<snip>
Jan 06 13:39:24 Inside Current main hander
Jan 06 13:39:24 Requesting: cadmin.populateChannel
Jan 06 13:39:24 with params = [{'dirs':
['/mnt/redhat-mirror​/3.0/i386/RedHat/RPM​S'],
  'label': 'whitebox-3.0FwF-i386'}]
Jan 06 13:39:24 method = cadmin.populateChannel
Jan 06 13:39:24 module = cadmin
Jan 06 13:39:24 function = populateChannel
Jan 06 13:39:24 (/usr/share/current/​current_apache.py, callAPIMethod(),
273): params = [{'dirs': ['/mnt/redhat-mirror​/3.0/i386/RedHat/RPM​S'],
  'label': 'whitebox-3.0FwF-i386'}]
Jan 06 13:39:24 Dispatching: cadmin.populateChannel
Jan 06 13:39:24 /usr/share/current/a​pi/cadmin.py:populat​eChannel({'result':
{}, 'channel': {'dirs': ['/mnt/redhat-mirror​/3.0/i386/RedHat/RPM​S'],
'label': 'whitebox-3.0FwF-i386'}})
Jan 06 13:39:24 /usr/share/current/d​b/currentdb.py:addDi​r({'dirname':
'/mnt/redhat-mirror/​3.0/i386/RedHat/RPMS​', 'label': 'whitebox-3.0FwF-i386'})
Jan 06 13:39:24 ERROR: A CurrentException was raised -- alert user.
Jan 06 13:3924 : EXCEPTION in /usr/share/current/c​urrent_apache.py,
callAPIMethod(), 293 [logException()]
Traceback (most recent call last):
  File "/usr/share/current/​current_apache.py", line 278, in callAPIMethod
    result = apply(func, params)
  File "/usr/share/current/​api/cadmin.py", line 77, in populateChannel
    result[dir] = db.db.addDir(channel['label'], dir)
  File "/usr/share/current/​db/currentdb.py", line 135, in addDir
    raise exception.CurrentDB("Bad channel label.")
CurrentDB: Bad channel label.
Jan 06 13:39:24 params were: [{'dirs':
['/mnt/redhat-mirror​/3.0/i386/RedHat/RPM​S'],
  'label': 'whitebox-3.0FwF-i386'}]
Jan 06 13:39:24 API Result = <Fault 1000: 'Bad channel label.'>
Jan 06 13:39:24 Fault: <Fault 1000: 'Bad channel label.'>
Jan 06 13:39:24 (/usr/share/current/​current_apache.py, sendClientResult(),
226): Data sent.
Jan 06 13:39:24 sendClientResult() finished
</snip>

I have looked at the DB and the channel label is definitely the same as the
one supplied to add_dir and the current user has full access to all the
current database tables.
Any ideas?

Roland


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: dev-help at current dot tigris dot org

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

Problems adding directories with current 1.5.9 Roland Pope <rpope at jadeworld dot com> Roland Pope <rpope at jadeworld dot com> 2005-01-05 16:54:02 PST
     Re: Problems adding directories with current 1.5.9 theslack Jack Neely 2005-01-05 17:58:16 PST
         Re: Problems adding directories with current 1.5.9 Roland Pope <rpope at jadeworld dot com> Roland Pope <rpope at jadeworld dot com> 2005-01-05 18:01:15 PST
Messages per page: