Login | Register
My pages Projects Community openCollabNet

Discussions > users > FW: err about cadmin.py

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

current
Discussion topic

Hide all messages in topic

All messages in topic

Re: cadmin.py login

Reply

Author theslack
Full name Jack Neely
Date 2007-06-20 14:51:44 PDT
Message There is no default user/password. You just need to chose a username
and password, login with that, and that (the very first user) will
become the super user account.

Jack

On 6/20/07, Bill Zhu <bzhu at sitesell dot com> wrote:
>
>
> Hi,
>
> When I run "cadmin.py login", it asked me login name and password, I wander
> if this is the user that setup in the current.conf for database connection?
> Seems like not, how can I create this user or it is a default one and what
> is the password and login name?
>
> Thanks.
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
> For additional commands, e-mail: users-help at current dot tigris dot org
>
>

cadmin.py login

Reply

Author bzhu
Full name bill
Date 2007-06-20 07:59:10 PDT
Message Hi,

When I run "cadmin.py login", it asked me login name and password, I wander
if this is the user that setup in the current.conf for database connection?
Seems like not, how can I create this user or it is a default one and what
is the password and login name?

Thanks.

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
>
>

Re: FW: err about cadmin.py

Reply

Author theslack
Full name Jack Neely
Date 2007-06-19 10:02:25 PDT
Message 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
>
>

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-19 10:00:08 PDT
Message Even I put it to 100, but the log in the current.log is similar. I can
manually connect to sqlite database using sqlite3. I have no idea why it is
like that. The cinstall initdb is successfully done. I saw the tables has
been created. But cadmin.py can't work.

Bill

-----Original Message-----
From: Jared Greenwald [mailto:greenwaldjar​ed at gmail dot com]
Sent: Tuesday, June 19, 2007 12:56 PM
To: users at current dot tigris dot org
Subject: Re: FW: err about cadmin.py

Try setting loglevel to something like 100 for more debug...

-Jared

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

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 09:55:56 PDT
Message Try setting loglevel to something like 100 for more debug...

-Jared

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
>
>

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-19 09:50:36 PDT
Message 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

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-19 07:51:48 PDT
Message No, but we will try "pysqlite". Thanks for your idea. I realized that
current support three kinds of database.

You will know the results.

Bill

-----Original Message-----
From: Jack Neely [mailto:jjneely at gmail dot com]
Sent: Tuesday, June 19, 2007 10:29 AM
To: users at current dot tigris dot org
Subject: Re: FW: err about cadmin.py

Bill,

Have you tried using a different database? Most of the development
(when it happens) focuses on getting things to work with one database
before testing out the others. Recently this has been MySQL.

Jack

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
For additional commands, e-mail: users-help at current dot tigris dot org

Re: FW: err about cadmin.py

Reply

Author theslack
Full name Jack Neely
Date 2007-06-19 07:29:11 PDT
Message Bill,

Have you tried using a different database? Most of the development
(when it happens) focuses on getting things to work with one database
before testing out the others. Recently this has been MySQL.

Jack

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-19 06:56:07 PDT
Message Hi, Jack,

I wander if current 1.7.6 can work on RH5 64BIT OS? I found out the path
always point to 32bit path. And if other members can let their current
running, could you please give me your OS version and database type and
version? I want to compare if we can follow your way.

Sincerely

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

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-19 06:53:19 PDT
Message For log of postgresql, there is no error at all. I checked the curentdb.py,
I think the problem is here. I don't know python very much, if any expert
can see it if the attribute can be transferred correctly to cadmin.py.

Here is the error message when running cadmin.py create_channel

Jun 19 09:46:20 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 19 09:46:20 CRITICAL: File
"/usr/lib64/python2.​4/site-packages/curr​ent/sessions.py", line 39, in
__init__
    self.db = sessions.SessionDB()
Jun 19 09:46:20 CRITICAL: File
"/usr/lib64/python2.​4/site-packages/curr​ent/db/sessions.py",​ line 41, in
__init__
    self.cursor = db.sdb.getCursor()
Jun 19 09:46:20 CRITICAL: File
"/usr/lib64/python2.​4/site-packages/curr​ent/db/postgres/post​gres.py", line
43, in getCursor
    c = self.conn.cursor()
Jun 19 09:46:20 CRITICAL: AttributeError: 'NoneType' object has no attribute
'cursor'

Thanks.

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

Re: FW: err about cadmin.py

Reply

Author theslack
Full name Jack Neely
Date 2007-06-18 14:32:07 PDT
Message 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
>
>

Re: FW: err about cadmin.py

Reply

Author jaredgreenwald
Full name Jared Greenwald
Date 2007-06-18 14:00:43 PDT
Message -----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-----

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-18 13:41:19 PDT
Message 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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGdus9u4z7Xptg​TUYRAiKBAKCzYskFFQ0g​LAxLQ9da5YTMkWiIwQCg​t4vo
T2c03Ci9bsyq9U7+QAuG21o=
=swPp
-----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

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-18 13:36:04 PDT
Message 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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGdus9u4z7Xptg​TUYRAiKBAKCzYskFFQ0g​LAxLQ9da5YTMkWiIwQCg​t4vo
T2c03Ci9bsyq9U7+QAuG21o=
=swPp
-----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

Re: FW: err about cadmin.py

Reply

Author jaredgreenwald
Full name Jared Greenwald
Date 2007-06-18 13:29:49 PDT
Message -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGdus9u4z7Xptg​TUYRAiKBAKCzYskFFQ0g​LAxLQ9da5YTMkWiIwQCg​t4vo
T2c03Ci9bsyq9U7+QAuG21o=
=swPp
-----END PGP SIGNATURE-----

RE: FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-18 13:27:09 PDT
Message 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

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-18 13:24:24 PDT
Message 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
>
>
>

FW: err about cadmin.py

Reply

Author bzhu
Full name bill
Date 2007-06-18 13:22:05 PDT
Message _____

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
Attachments
Messages per page: