Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: FW: err about cadmin.py

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

current
Discussion topic

Back to topic list

Re: FW: err about cadmin.py

Reply

Author Jared Greenwald <greenwaldjared at gmail dot com>
Full name Jared Greenwald <greenwaldjared at gmail dot com>
Date 2007-06-19 10:04:43 PDT
Message Actually, RHEL5 doesn't even ship with up2date AFAK... (Oracle EL does tho.)

-Jared

On 6/19/07, Jack Neely <jjneely at gmail dot com> wrote:
> Bill,
>
> This has gotten you farther. Remember that this is the development
> branch. Its telling you that you need to login to the Current server
> to make changes. Cadmin itself probably said something a little more
> helpful that the server traceback. You can find some information
> about the new features in this branch (like logging in) from the users
> and dev list archives.
>
> Also, have you looked at using Yum? Its a lot simpler and most likely
> meets your needs just as well.
>
> Jack
>
> On 6/19/07, Bill Zhu <bzhu at sitesell dot com> wrote:
> > After setup the Sqlite database instead of postgresql, we got this error,
> >
> > Jun 19 12:46:25 DEBUG: method = cadmin.createChannel
> > Jun 19 12:46:25 TRIVIA: module = cadmin
> > Jun 19 12:46:25 TRIVIA: function = createChannel
> > Jun 19 12:46:25 DEBUG2: params = ['Bad Session',
> > {'arch': 'x86_64',
> > 'base': False,
> > 'desc': '',
> > 'label': 'rhel-x86_64-server-5',
> > 'name': 'new-ops1',
> > 'release': '5Server'}]
> > Jun 19 12:46:25 DEBUG: Dispatching: cadmin.createChannel
> > Jun 19 12:46:25 DEBUG2: API Result = <Fault 17: 'Bad session. Please
> > login.'>
> > Jun 19 12:46:25 WARNING: Fault: <Fault 17: 'Bad session. Please login.'>
> > Jun 19 12:46:25 TRACE: (File:
> > /usr/lib64/python2.4​/site-packages/curre​nt/current_apache.py​, Method:
> > sendClientResult(), Line: 244) Data sent.
> > Jun 19 12:46:25 DEBUG: sendClientResult() finished
> >
> >
> > The current.conf is here:
> >
> >
> > [root@new-ops1 ~]# cat /etc/current/current.conf
> > [current]
> > log_file = /var/log/current.log
> > log_level = 7
> > apache_config_file = /etc/httpd/conf.d/cu​rrent.httpd.conf
> > access_type = user
> > access_arg = apache
> > current_dir = /var/spool/current
> > # The 'db' is which backend we're using
> > db_type=pysqlite
> > #db_type = postgres
> > # db_user and db_pass should be obvious
> > db_user = current
> > db_pass = xxxxxx
> > # db_name is the name of the database - what oracle calls a 'SID'
> >
> > #db_name = current
> > db_name = current
> >
> > #db_host = 127.0.0.1
> > db_host =
> > # These are some text messages that the server can return to the clients
> > # in various API calls.
> > ## The period is there to provide a "blank line". Sheesh.
> > welcome_message = "Welcome to current, an open source server for up2date."
> > privacy_statement = "Privacy Statement:
> > This is site specific, and you should change this message to match
> > your actual site."
> >
> > server_id = CurrentServer
> > server_secret = 4bf63fb225212869c401​26be94279e1d
> > ## END OF LINE ##
> > The current user has been created in the USER table.
> >
> > If any suggestion?
> >
> > Bill
> > -----Original Message-----
> > From: Jack Neely [mailto:jjneely at gmail dot com]
> > Sent: Monday, June 18, 2007 5:32 PM
> > To: users at current dot tigris dot org
> > Subject: Re: FW: err about cadmin.py
> >
> > Bill,
> >
> > Check your postgresql logs as well. This traceback looks like there
> > was an error opening a connection to the postgres database.
> >
> > If you are using a local socket connection (rather than tcp) you need to use
> >
> > db_host =
> >
> > rather than
> >
> > db_host = 127.0.0.1
> >
> > Jack
> >
> > On 6/18/07, Jared Greenwald <jared.greenwald@​oracle.com> wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > This looks like an error in the pgdb cursor method.
> > >
> > > I personally use this on Oracle Enterprise Linux 4 with an Oracle DB
> > > backend. So, I'm not too familiar with pgsql.
> > >
> > > - -Jared
> > >
> > > Bill Zhu wrote:
> > > > In fact, we have some problems when we installed current 1.7.6 on rh5
> > x86_64
> > > > with postgresql 8.2.4.
> > > >
> > > > 1. need to add the path of rpcServer.py manually to site.py.
> > > > 2. Add postgresql-PyGreSQL package.
> > > >
> > > > Hope someone use the same environment to share the knowledge together.
> > > >
> > > > Sincerely
> > > >
> > > > Bill
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Bill Zhu [mailto:bzhu at sitesell dot com]
> > > > Sent: Monday, June 18, 2007 4:36 PM
> > > > To: users at current dot tigris dot org
> > > > Subject: RE: FW: err about cadmin.py
> > > >
> > > > Hi, Jared,
> > > >
> > > > Yes, indeed, and no error at all. I also confirmed the current database
> > > > tables are created. The database type is postgresql in current.conf.
> > > > postgresql-8.2.4-1PGDG.ss.
> > > >
> > > > Here is the current.conf
> > > >
> > > > [current]
> > > > log_file = /var/log/current.log
> > > > log_level = 7
> > > > apache_config_file = /etc/httpd/conf.d/cu​rrent.httpd.conf
> > > > access_type = user
> > > > access_arg = apache
> > > > current_dir = /var/spool/current
> > > > # The 'db' is which backend we're using
> > > > # db_type=pysqlite
> > > > db_type = postgres
> > > > # db_user and db_pass should be obvious
> > > > db_user = current
> > > > db_pass = xxxxxx
> > > > # db_name is the name of the database - what oracle calls a 'SID'
> > > > db_name = current
> > > > db_host = 127.0.0.1
> > > >
> > > > # These are some text messages that the server can return to the clients
> > > > # in various API calls.
> > > > ## The period is there to provide a "blank line". Sheesh.
> > > > welcome_message = "Welcome to current, an open source server for
> > up2date."
> > > > privacy_statement = "Privacy Statement:
> > > > This is site specific, and you should change this message to
> > match
> > > > your actual site."
> > > >
> > > > server_id = CurrentServer
> > > > server_secret = xxxxxxxxxxxxxxxxxxxxxxxxxx
> > > >
> > > > Thanks.
> > > >
> > > > Bill
> > > >
> > > > -----Original Message-----
> > > > From: Jared Greenwald [mailto:jared.greenw​ald at oracle dot com]
> > > > Sent: Monday, June 18, 2007 4:30 PM
> > > > To: users at current dot tigris dot org
> > > > Subject: Re: FW: err about cadmin.py
> > > >
> > > > Did you run the setup script steps (cinstall, etc)? You would also have
> > > > to set the db type in the current config file...
> > > >
> > > > -Jared
> > > >
> > > > Bill Zhu wrote:
> > > >> Jun 18 15:50:48 DEBUG: Dispatching: cadmin.createChannel
> > > >> Jun 18 15:50:48 CRITICAL: ERROR: Recognized function
> > cadmin.createChannel
> > > >> blew up with undefined error
> > > >> Jun 18 15:50:48 CRITICAL: EXCEPTION (File:
> > > >> /usr/lib64/python2.4​/site-packages/curre​nt/current_apache.py​, Method:
> > > >> callAPIMethod(), Line: 321): [logException()]
> > > >
> > > >> Jun 18 15:50:48 CRITICAL: Traceback (most recent call last):
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/current_apache.p​y", line
> > 298,
> > > > in
> > > >> callAPIMethod
> > > >> result = apply(func, params)
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/api/cadmin.py", line 85, in
> > > >> createChannel
> > > >> u = SessionUser(sess)
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/users.py", line 107, in
> > > > __init__
> > > >> self.session = Session(sess, configure.config['se​rver_secret'])
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/sessions.py", line 39, in
> > > >> __init__
> > > >> self.db = sessions.SessionDB()
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/db/sessions.py",​ line 41,
> > in
> > > >> __init__
> > > >> self.cursor = db.sdb.getCursor()
> > > >> Jun 18 15:50:48 CRITICAL: File
> > > >> "/usr/lib64/python2.​4/site-packages/curr​ent/db/postgres/post​gres.py",
> > line
> > > >> 43, in getCursor
> > > >> c = self.conn.cursor()
> > > >> Jun 18 15:50:48 CRITICAL: AttributeError: 'NoneType' object has no
> > > > attribute
> > > >> 'cursor'
> > > >> Jun 18 15:50:48 DEBUG2: API Result = <Fault 1000: u'Function
> > createChannel
> > > >> call blew up. Bad week.'>
> > > >> Jun 18 15:50:48 WARNING: Fault: <Fault 1000: u'Function createChannel
> > call
> > > >> blew up. Bad week.'>
> > > >> Jun 18 15:50:48 TRACE: (File:
> > > >> /usr/lib64/python2.4​/site-packages/curre​nt/current_apache.py​, Method:
> > > >> sendClientResult(), Line: 244) Data sent.
> > > >> Jun 18 15:50:48 DEBUG: sendClientResult() finished
> > > >
> > > >> -----Original Message-----
> > > >> From: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
> > > >> Sent: Monday, June 18, 2007 4:24 PM
> > > >> To: users at current dot tigris dot org
> > > >> Subject: Re: FW: err about cadmin.py
> > > >
> > > >> what does the log have to say?
> > > >
> > > >> On 6/18/07, Bill Zhu <bzhu at sitesell dot com> wrote:
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> ____________________​____________
> > > >>>
> > > >>>
> > > >>> From: Bill Zhu [mailto:bzhu at sitesell dot com]
> > > >>> Sent: Monday, June 18, 2007 3:53 PM
> > > >>> To: users at current dot tigris dot org
> > > >>> Subject: err about cadmin.py
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> [root@new-ops1 ~]# cadmin.py create_channel -n new-ops1 -l
> > > >>> rhel-x86_64-server-5 -a x86_64 -r 5Server
> > > >>>
> > > >>> CADMIN - Current Administration Text Interface
> > > >>>
> > > >>> Licensed under the GNU GPL version 2.0 or greater.
> > > >>>
> > > >>>
> > > >>>
> > > >>> A server error occured: <Fault 1000: 'Function createChannel call blew
> > > > up.
> > > >>> Bad week.'>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> If you have any idea about this error message?
> > > >>>
> > > >>>
> > > >>>
> > > >>> Env:
> > > >>>
> > > >>> RH5 X86_64
> > > >>>
> > > >>> Current 1.7.6
> > > >>>
> > > >>> python-2.4.3-19.el5
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> Sincerely
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> Bill Zhu
> > > >>>
> > > >>>
> > > >>> System Administrator
> > > >>>
> > > >>>
> > > >>> SiteSell Inc.
> > > >>>
> > > >>>
> > > >>> Tel: 514-380-2700 ext. 3378
> > > >>>
> > > >>>
> > > >>>
> > > >> --------------------​--------------------​--------------------​---------
> > > >> 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
> > >
> > >
> > >
> > >
> > > - --------------------​--------------------​--------------------​---------
> > > To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> > > For additional commands, e-mail: users-help at current dot tigris dot org
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.6 (GNU/Linux)
> > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> > >
> > > iD8DBQFGdvJ7u4z7Xptg​TUYRAmRqAKCR9YN+FYuC​n4XA6LgHdY7hhx5xMACg​m7eB
> > > cakKcVs83hTvzu5EtD/MbMs=
> > > =Q514
> > > -----END PGP SIGNATURE-----
> > >
> > > --------------------​--------------------​--------------------​---------
> > > 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
>
>

« Previous message in topic | 19 of 19 | Next message in topic »

Messages

Show all messages in topic

FW: err about cadmin.py bzhu bill 2007-06-18 13:22:05 PDT
     Re: FW: err about cadmin.py Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-06-18 13:24:24 PDT
         RE: FW: err about cadmin.py bzhu bill 2007-06-18 13:27:09 PDT
             Re: FW: err about cadmin.py jaredgreenwald Jared Greenwald 2007-06-18 13:29:49 PDT
                 RE: FW: err about cadmin.py bzhu bill 2007-06-18 13:36:04 PDT
                     RE: FW: err about cadmin.py bzhu bill 2007-06-18 13:41:19 PDT
                         Re: FW: err about cadmin.py jaredgreenwald Jared Greenwald 2007-06-18 14:00:43 PDT
                             Re: FW: err about cadmin.py theslack Jack Neely 2007-06-18 14:32:07 PDT
                                 RE: FW: err about cadmin.py bzhu bill 2007-06-19 06:56:07 PDT
                                 RE: FW: err about cadmin.py bzhu bill 2007-06-19 06:53:19 PDT
                                     Re: FW: err about cadmin.py theslack Jack Neely 2007-06-19 07:29:11 PDT
                                         RE: FW: err about cadmin.py bzhu bill 2007-06-19 07:51:48 PDT
                                             cadmin.py login bzhu bill 2007-06-20 07:59:10 PDT
                                                 Re: cadmin.py login theslack Jack Neely 2007-06-20 14:51:44 PDT
                                 RE: FW: err about cadmin.py bzhu bill 2007-06-19 09:50:36 PDT
                                     Re: FW: err about cadmin.py Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-06-19 09:55:56 PDT
                                         RE: FW: err about cadmin.py bzhu bill 2007-06-19 10:00:08 PDT
                                     Re: FW: err about cadmin.py theslack Jack Neely 2007-06-19 10:02:25 PDT
                                         Re: FW: err about cadmin.py Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-06-19 10:04:43 PDT
Messages per page: