Config parser no section error


#1

Hello, im trying to setup scidb on ubuntu 11.04 64bit through the debian and when I try to run scidb.py initall test or anything to start the scidb i get this error:

Unexpected error: <class ‘ConfigParser.NoSectionError’>

I installed scidb using these two debs
libscidbclient-RelWithDebInfo-11.12.0.4291-final-Ubuntu-11.04-amd64.deb
scidb-RelWithDebInfo-11.12.0.4291-final-Ubuntu-11.04-amd64.deb

then I set up a NOPASSWORD scidb user that can connect to localhost w/ passwordless ssh.

Postgresql 8.4 is running as far as i can tell, and I followed the user guide meticulously.
Also searched the forums and didnt see this error. I can tell its a config parsing problem, but Ive been switching configs in and out, copying the sample to config.ini etc etc…
Any help is appreciated, thanks!


#2

Hello,

The NoSectionError usually means that the name of the config you are giving to scidb.py is NOT found in your config.ini.

Let me give you an example. On my system, I have the following config file:

[scidb@bigboy ~]$ cat /opt/scidb/11.12/etc/config.ini
[mydb]
node-0=localhost,0
db_user=singleinstance
db_passwd=singleinstance
install_root=/opt/scidb/11.12
metadata=/opt/scidb/11.12/share/scidb/meta.sql
pluginsdir=/opt/scidb/11.12/lib/scidb/plugins
logconf=/opt/scidb/11.12/share/scidb/log4cxx.properties
base-path=/vraid/scidb_data
base-port=1239
interface=eth0
chunk-segment-size=250000000
io-log-threshold=-1
result-prefetch-threads=6
result-prefetch-queue-size=4
chunk-reserve=0
tmp-path=/vraid/tmp
merge-sort-buffer=512
smgr-cache-size=512
max-memory-limit=70000
rle-chunk-format=true
repart-use-sparse-algorithm=true

(These configs are actually optimized for a single node running on a single server with 70GB ram, so … if you have questions about what these items mean - let me know and I’ll be happy to answer)

Now, this means I have to use the string “mydb” as part of scidb.py. So this doesn’t work:

scidb@bigboy ~]$ scidb.py stopall db
Unexpected error: ConfigParser.NoSectionError

But this does

scidb.py stopall mydb

Does this make sense? I’m getting a sense that either your config file is in the wrong path, or your config name is wrong. Let me know if this helps solve your problem.

-Alex Poliakov
[/code]


#3

This helped, thanks for the quick reply!

when I ran scidb.py i was confused by the args it was aasking for
scidb.py

so I was running stuff like

scidb.py initall test …/etc/config.ini

I didnt realize the whole db connection was annotated by a name in the config so i just did
(sudo) scidb.py initall SingleInstance

and was able to get scidb running :smile: