Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: admin create_channel problems

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

current
Discussion topic

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

Back to topic list

Re: admin create_channel problems

Reply

Author nathanku
Full name nathan
Date 2005-05-10 16:45:31 PDT
Message Jack,

Ok applied the patch and here is the output from the current.log:

May 10 16:39:11 Current v1.5.91 starting up
May 10 16:39:11 Database transaction aborted!
May 10 16:39:11 Database Corruption! Cannot rollback database!
May 10 16:39:11 Database said: Not supported by server
May 10 16:39:11 ERROR: Recognized function cadmin.createChannel blew up
with undefined error
May 10 16:3911 : 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 55, in createChannel
    result['msg'] = db.db.makeChannel(channel)
  File "/usr/share/current/​db/currentdb.py", line 111, in makeChannel
    (channel['name'],
  File "/usr/lib/python2.2/​site-packages/MySQLd​b/cursors.py", line 66,
in execute
    r = self._query(query % self.__conn.literal(args))
  File "/usr/lib/python2.2/​site-packages/MySQLd​b/cursors.py", line 168,
in _query
    rowcount = self._BaseCursor__do_query(q)
  File "/usr/lib/python2.2/​site-packages/MySQLd​b/cursors.py", line 112,
in __do_query
    db.query(q)
ProgrammingError: (1146, "Table 'up2date.CHANNEL' doesn't exist")
May 10 16:39:11 Fault: <Fault 1000: u'Function createChannel call blew
up. Bad week.'>

On Tue, 2005-05-10 at 19:06 -0400, Jack Neely wrote:
> Nathan,
>
> Try applying this patch and see what happens. You should get a nasty
> error message in your log file and the traceback for what's wrong in
> the first error.
>
> Jack
>
> On 5/10/05, Jack Neely <jjneely at pams dot ncsu dot edu> wrote:
> > Nathan,
> >
> > Okay...two different problems here. Also, if you could upgrade to 1.6.0
> > I'd appreciate it.
> >
> > There was some sort of error that caused Current to abort the database
> > transaction and do a rollback. However, that is hidden because MySQL 3
> > doesn't support rollbacks which raised another exception. Actually, if
> > you could stick this in issuezilla regarding MySQL 3not supporting
> > rollbacks and include the traceback in current.log I'd appreciate it.
> >
> > I'll have to look at this further to get it working....
> >
> > Jack
> >
> > On Tue, May 10, 2005 at 12:13:32PM -0700, Nathan wrote:
> > > Doing another current install and when I run:
> > > cadmin create_channel --name "Red Hat Enterprise Linux AS" --label
> > > "rhel-i386-as-3" --arch i686 --release 3AS --description "Red Hat
> > > Enterprise Linux AS release 3"
> > >
> > > I get this output from the command:
> > >
> > > Traceback (most recent call last):
> > > File "/usr/sbin/cadmin", line 131, in ?
> > > main()
> > > File "/usr/sbin/cadmin", line 114, in main
> > > create_channel(sys.argv[2:])
> > > File "/usr/sbin/cadmin", line 80, in create_channel
> > > result = rpcServer.doCall(ser​ver.cadmin.createCha​nnel, chan)
> > > File "rpcServer.py", line 308, in doCall
> > > File "/usr/lib/python2.2/​xmlrpclib.py", line 821, in __call__
> > > return self.__send(self.__name, args)
> > > File "rpcServer.py", line 51, in _request1
> > > 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: 'Function createChannel call blew up. Bad
> > > week.'>
> > >
> > > The current.log shows this:
> > > May 10 12:05:29 Current v1.5.91 starting up
> > > May 10 12:05:29 Database transaction aborted!
> > > May 10 12:05:29 ERROR: Recognized function cadmin.createChannel blew up
> > > with undefined error
> > > May 10 12:0529 : 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 64, in createChannel
> > > db.db.abort()
> > > File "/usr/share/current/​db/currentdb.py", line 78, in abort
> > > self.conn.rollback()
> > > File "/usr/lib/python2.2/​site-packages/MySQLd​b/connections.py", line
> > > 83, in rollback
> > > raise NotSupportedError, "Not supported by server"
> > > NotSupportedError: Not supported by server
> > > May 10 12:05:29 Fault: <Fault 1000: u'Function createChannel call blew
> > > up. Bad week.'>
> > >
> > > So what am I doing wrong? Is mysql not supported in version 1.5.91?
> > >
> > > Thanks,
> > > Nathan
> > >
> >
> > --
> > Jack Neely <slack at quackmaster dot net>
> > Realm Linux Administration and Development
> > PAMS Computer Operations at NC State University
> > GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89
> >
> > --------------------​--------------------​--------------------​---------
> > 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
Attachments

« Previous message in topic | 4 of 6 | Next message in topic »

Messages

Show all messages in topic

admin create_channel problems nathanku nathan 2005-05-10 12:13:32 PDT
     Re: admin create_channel problems Jack Neely <jjneely at pams dot ncsu dot edu> Jack Neely <jjneely at pams dot ncsu dot edu> 2005-05-10 13:37:57 PDT
         Re: admin create_channel problems theslack Jack Neely 2005-05-10 16:06:44 PDT
             Re: admin create_channel problems nathanku nathan 2005-05-10 16:45:31 PDT
                 Re: admin create_channel problems theslack Jack Neely 2005-05-10 18:10:31 PDT
                     Re: admin create_channel problems nathanku nathan 2005-05-11 09:17:36 PDT
Messages per page: