I am running Ubuntu 10.10 and a single-node configuration.
First setup postgres:
postgres@scalpel:/home/apoliakov/workspace/scidb_075$ /opt/scidb-0.7.5/bin/scidb-prepare-db.sh
Enter catalog owner name: scidb_user1
Create user scidb_user1? (y/n): y
Enter password for new role: password
Enter it again: password
Catalog database name: test1
UPDATE 1
GRANT
Do you want create catalog structure now? (y/n): y
...
Then create a config.ini file. This is mine. It's for one node:
apoliakov@scalpel:/opt/scidb-0.7.5/etc$ cat config.ini
[test1]
master_ip=127.0.0.1
db_user=scidb_user1
db_passwd=password
install_root=/opt/scidb-0.7.5
metadata=/opt/scidb-0.7.5/share/scidb/meta.sql
pluginsdir=/opt/scidb-0.7.5/lib/scidb/plugins
logconf=/opt/scidb-0.7.5/share/scidb/log4cxx.properties
master_data_dir=/home/apoliakov/test_data
master_port=1239
interface=eth0
You can then init the system like so:
apoliakov@scalpel:/opt/scidb-0.7.5/share/scidb$ ./scidb-0.7.5 init test1
And start it like so:
apoliakov@scalpel:/opt/scidb-0.7.5/share/scidb$ ./scidb-0.7.5 start test1
After I performed these steps, I could use "iquery" to run queries on the system.
akhil760 wrote:Thanks! But still I am getting an error:- IOError: [Errno 19] No such device
root@ubuntu:~# scidb-0.7.5 init test1
/opt/scidb-0.7.5/etc/config.ini test1 init
Parsing test1 section.
{'install_root': '/opt/scidb-0.7.5', 'db_name': 'test1', 'pluginsdir': '/opt/scidb-0.7.5/lib/scidb/plugins', 'master_ip': '10.1.3.1', 'db_passwd': 'scidb_passwd1', 'db_user': 'scidb_user1', 'master_data_dir': '/mnt/master', 'master_port': '1239', 'interface': 'eth1', 'logconf': '/opt/scidb-0.7.5/share/scidb/log4cxx.properties', 'metadata': '/opt/scidb-0.7.5/share/scidb/meta.sql'}
Cleaning up old logs and storage files.
Reinitializing and registering local scidb instance/storage.
sudo privileges are required to configure the postgres database.
host=10.1.3.1 port=5432 dbname=test1 user=scidb_user1 password=scidb_passwd1
Traceback (most recent call last):
File "/opt/scidb-0.7.5/bin/scidb.py", line 205, in <module>
init()
File "/opt/scidb-0.7.5/bin/scidb.py", line 118, in init
p = subprocess.Popen([binpath + "/scidb", "-p", d.get('master_port'), "-r", "-i", get_ip_address(d.get('interface')),
File "/opt/scidb-0.7.5/bin/scidb.py", line 86, in get_ip_address
return socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915, struct.pack('256s', ifname[:15]))[20:24])
IOError: [Errno 19] No such device
-Akhil
scidb-0.7.5 init test1
/opt/scidb-0.7.5/etc/config.ini test1 init
Parsing test1 section.
{'install_root': '/opt/scidb-0.7.5', 'db_name': 'test1', 'pluginsdir': '/opt/scidb-0.7.5/lib/scidb/plugins', 'master_ip': '10.248.211.239', 'db_passwd': 'scidb_passwd1', 'db_user': 'scidb_user1', 'master_data_dir': '/mnt/master', 'master_port': '1239', 'interface': 'eth1', 'logconf': '/opt/scidb-0.7.5/share/scidb/log4cxx.properties', 'metadata': '/opt/scidb-0.7.5/share/scidb/meta.sql'}
Traceback (most recent call last):
File "/opt/scidb-0.7.5/bin/scidb.py", line 196, in <module>
os.chdir(spath)
OSError: [Errno 2] No such file or directory: '/mnt/master'master_data_dir=/mnt/master
apoliakov wrote:Hello,
The error message means that scidb is looking for the directory '/mnt/master' and it does not exist on your system.
It looks like you need to edit your config.ini file to make sure all the paths are right.
The /mnt/master entry probably comes from this line that's in our instructions.
- Code: Select all
master_data_dir=/mnt/master
I recommend creating a directory for scidb data (some path that works for you) and changing this field to point to that directory.
For reference, there's one config.ini file example upstream in this thread.
Let me know if you have more problems...
Return to SciDB Support and Discussion
Users browsing this forum: No registered users and 2 guests