./bin/xadd running error, probably pyodbc error?

Message boards : Server programs : ./bin/xadd running error, probably pyodbc error?
Message board moderation

To post messages, you must log in.

AuthorMessage
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17638 - Posted: 3 Jun 2008, 15:07:31 UTC

I used make_script to create a project successfully. yet I met the error message below when using ./bin/xadd to add an application:

Traceback (most recent call last):
File "./bin/xadd", line 25, in <module>
database.connect()
File "/osr/users/kchen3/projects/boinctest/bin/database.py", line 240, in connect
config = config or configxml.default_config().config
File "/osr/users/kchen3/projects/boinctest/bin/configxml.py", line 99, in default_config
if not default_config_file: ConfigFile().read()
File "/osr/users/kchen3/projects/boinctest/bin/boincxml.py", line 129, in read
raise Exception("Couldn't parse XML config\n")
Exception: Couldn't parse XML config


I search for the message online and someone got it in windows when using pyodbc. it might be kind of permission problem but I don't know what exactly it is. Appreciate any help from you. Thanks.

ID: 17638 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 17641 - Posted: 3 Jun 2008, 16:20:16 UTC - in response to Message 17638.  


Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.



-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 17641 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17643 - Posted: 3 Jun 2008, 17:45:04 UTC - in response to Message 17641.  


Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.




Thanks. Could you give me more details about that? Also I wonder if there is some problems with mysql. When I try to use './tools/make_project [project_name]' to create a project, it will never succeed but with the message below:

Traceback (most recent call last):
File "./tools/make_project", line 217, in <module>
project.install_project()
File "/osr/users/kchen3/boinc/py/Boinc/setup_project.py", line 538, in install_project
drop_first = options.drop_db_first
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 263, in create_database
connect(config, nodb=True)
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 250, in connect
passwd=config.__dict__.get('db_passwd', ''))
File "/osr/users/kchen3/boinc/py/Boinc/db_base.py", line 492, in do_connect
cursorclass=MySQLdb.cursors.DictCursor)
File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
kchen3@steppe:~/boinc$ mysql --socket=/var/lib/mysql/mysql.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


I tried both 'mysqld_safe --socket=/var/lib/mysql/mysql.sock' and 'mysqld_safe --socket=/tmp/mysql.sock' but the last message is still 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'. The socket path seems to be fixed.

In the previous time I created the project with parameters '--db_name' ,'--db_user' with some error messages after that. However the script did create the tables in the database but fail to execute './bin/xadd'.

apprecaite it.




ID: 17643 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 17644 - Posted: 3 Jun 2008, 17:46:54 UTC - in response to Message 17643.  

I thought it was the mysql problem referring to this link:
http://www.boinc-wiki.info/Creating_a_Project_-_Using_make_project.
I did meet the problem it mentioned but fail to fix that with 'mysqld_safe'


Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.




Thanks. Could you give me more details about that? Also I wonder if there is some problems with mysql. When I try to use './tools/make_project [project_name]' to create a project, it will never succeed but with the message below:

Traceback (most recent call last):
File "./tools/make_project", line 217, in <module>
project.install_project()
File "/osr/users/kchen3/boinc/py/Boinc/setup_project.py", line 538, in install_project
drop_first = options.drop_db_first
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 263, in create_database
connect(config, nodb=True)
File "/osr/users/kchen3/boinc/py/Boinc/database.py", line 250, in connect
passwd=config.__dict__.get('db_passwd', ''))
File "/osr/users/kchen3/boinc/py/Boinc/db_base.py", line 492, in do_connect
cursorclass=MySQLdb.cursors.DictCursor)
File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
kchen3@steppe:~/boinc$ mysql --socket=/var/lib/mysql/mysql.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


I tried both 'mysqld_safe --socket=/var/lib/mysql/mysql.sock' and 'mysqld_safe --socket=/tmp/mysql.sock' but the last message is still 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'. The socket path seems to be fixed.

In the previous time I created the project with parameters '--db_name' ,'--db_user' with some error messages after that. However the script did create the tables in the database but fail to execute './bin/xadd'.

apprecaite it.




ID: 17644 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 17648 - Posted: 4 Jun 2008, 0:59:12 UTC - in response to Message 17643.  


Exception: Couldn't parse XML config

Something is wrong with the project configuration file, config.xml.

Thanks. Could you give me more details about that? Also I wonder if there is some problems with mysql.


I can't see your config.xml file, so I can't be more specific. You need to go through it and make sure it's valid XML and all the parameters are set up correctly and make sense. See the Trac wiki page Project Options

The config.xml file holds database parameters, so that might be the problem. Make sure that the name of the database, the database user, and database password are all correct.

If you have not yet set a database password then you should. Some notes on this (and other related topics) can be found here



-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 17648 · Report as offensive

Message boards : Server programs : ./bin/xadd running error, probably pyodbc error?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.