Multiple server error


#1

Hi, experts! I have sucessfully install scidb on my computer for single instance.
But when tried to deploy the two instance: One is loal (10.131.235.74),
which serve as master node,
the another is scidb@10.131.235.32 as the slave node, and can be visited with no key:


he@he-p6-1095cn:~$ ssh scidb@10.131.235.32
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-15-generic x86_64)

  • Documentation: help.ubuntu.com/
    0 packages can be updated.
    0 updates are security updates.
    Last login: Wed Aug 15 10:35:10 2012 from he-p6-1095cn.local
    scidb@ray-p6-1095cn:~$

I encounter some errors. The main error is that:

only one instance was running

scidb@he-p6-1095cn:/opt/scidb/12.3/bin$ python scidb.py initall test1
Cleaning up old logs and storage files.
Move/unlink directory (server 0 (localhost) local instance 0 /home/scidb/data/00
0/0 -> /home/scidb/data/000/0-20120820-220758)
init(server 0 (localhost) local instance 0)
Reinitializing and registering local scidb instance/storage.

sudo privileges are required to configure the postgres database.
Cleaning up old logs and storage files.
Move/unlink directory (server 1 (10.131.235.32) local instance 1 /home/scidb/dat
a/001/1 -> /home/scidb/data/001/1-20120820-220758)
init(server 1 (10.131.235.32) local instance 1)
Reinitializing and registering local scidb instance/storage.

scidb@he-p6-1095cn:/opt/scidb/12.3/bin$ python scidb.py startall test1
start(server 0 (localhost) local instance 0)
Starting SciDB server.
start(server 1 (10.131.235.32) local instance 1)
Starting SciDB server.
scidb@he-p6-1095cn:/opt/scidb/12.3/bin$ python scidb.py status test1
instance_id | host | port | online_since
-------------±----------±-----±---------------------------
0 | localhost | 1239 | 2012-08-20 22:08:47.311102
(1 row)

Thanks!


#2

Hi!

Can you post the contents of your config.ini file? I suspect the problem is there.


#3

Help !


#4

The scidb.log is

2012-08-15 14:05:49,805 [0x7f951c90c7c0] [INFO ]: Start SciDB instance (pid=1968). SciDB version: 12.3.0.4813 (Snowdrop-final). Build type: RelWithDebInfo. Copyright © 2008-2012 SciDB, Inc.
2012-08-15 14:05:49,805 [0x7f951c90c7c0] [INFO ]: Configuration:
catalog : host=10.131.235.74 port=5432 dbname=test1 user=test1 password=test1
log-properties : /opt/scidb/12.3/share/scidb/log4cxx.properties
port : 1239
interface : 10.131.235.74
coordinator : 1
register : 0
initialize : 0
storage : /home/scidb/data/000/0/storage.cfg
plugins : /opt/scidb/12.3/lib/scidb/plugins
metadata : /opt/scidb/12.3/share/scidb/meta.sql
cache : 256
optimizer : 1
help : 0
config :
sparse-chunk-init-size : 0.01
sparse-chunk-threshold : 0.10000000000000001
dense-chunk-threshold : 1
string-size-estimation : 10
chunk-segment-size : 0
read-ahead-size : 67108864
daemon : 0
save-ram : 0
tmp-dir : /tmp
threads : 4
prefetch-queue-size : 4
version : 0
merge-sort-buffer : 512
mem-array-threshold : 1024
network-buffer : 512
async-io-buffer : 64
stat_monitor : 0
stat_monitor_params :
log-level : error
chunk-reserve : 10
jobs : 5
used-cpu-limit : 0
reconnect-timeout : 3
liveness-timeout : 120
redundancy : 0
recover : -1
async-replication : 1
no-watchdog : 1
parallel-sort : 1
rle-chunk-format : 1
tile-size : 10000
tiles-per-chunk : 100
sync-io-interval : -1
io-log-threshold : -1
output-proc-stats : 0
max-memory-limit : -1
strict-cache-limit : 0
repart-seq-scan-threshold : 1000000
repart-use-sparse-algorithm : 0
replication-receive-queue-size : 1000
replication-send-queue-size : 1000
array-emptyable-by-default : 1
small-memalloc-size : -1
large-memalloc-limit : -1

2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: create_array
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_create_array for logical operator: create_array
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: load
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: project
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalProject for logical operator: project
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: scan
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalScan for logical operator: scan
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: subarray
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSubArray for logical operator: subarray
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: sample
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSample for logical operator: sample
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: between
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalBetween for logical operator: between
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: sg
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_sg for logical operator: sg
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: apply
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalApply for logical operator: apply
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: filter
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalFilter for logical operator: filter
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: count
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: avg
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: sum
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: store
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalStore for logical operator: store
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: redimension
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalFlip for logical operator: redimension
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: redimension_store
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: PhysicalFlipStore for logical operator: redimension_store
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: reshape
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalReshape for logical operator: reshape
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: repart
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalRepart for logical operator: repart
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: load_library
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_load_library for logical operator: load_library
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: join
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalJoin for logical operator: join
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: cross_join
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalCrossJoin for logical operator: cross_join
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: substitute
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSubstitute for logical operator: substitute
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: aggregate
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physical_aggregate for logical operator: aggregate
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: regrid
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physical_regrid for logical operator: regrid
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: window
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalWindow for logical operator: window
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: multiply
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: PhysicalMultiply for logical operator: multiply
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: inverse
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: PhysicalInverse for logical operator: inverse
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: slice
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSlice for logical operator: slice
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: sort
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSort for logical operator: sort
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: sort2
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSort2 for logical operator: sort2
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: list
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalList for logical operator: list
2012-08-15 14:05:50,174 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: attributes
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalAttributes for logical operator: attributes
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: dimensions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalDimensions for logical operator: dimensions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: rename
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalRename for logical operator: rename
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: concat
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalConcat for logical operator: concat
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: unpack
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalUnpack for logical operator: unpack
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: build
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalBuild for logical operator: build
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: build_sparse
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalBuildSparse for logical operator: build_sparse
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: transpose
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalOrderedTranspose for logical operator: transpose
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: cast
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalCast for logical operator: cast
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: remove
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalRemove for logical operator: remove
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: merge
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalMerge for logical operator: merge
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: min
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: max
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: adddim
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalAdddim for logical operator: adddim
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: deldim
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalDeldim for logical operator: deldim
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: normalize
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalNormalize for logical operator: normalize
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: save
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_save for logical operator: save
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: xgrid
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalXgrid for logical operator: xgrid
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: thin
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalThin for logical operator: thin
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: cross
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalCross for logical operator: cross
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: help
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_help for logical operator: help
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: lookup
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalLookup for logical operator: lookup
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: reverse
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalReverse for logical operator: reverse
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: input
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_input for logical operator: input
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: explain_physical
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalExplainPhysical for logical operator: explain_physical
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: versions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalVersions for logical operator: versions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: allversions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalAllVersions for logical operator: allversions
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: explain_logical
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalExplainLogical for logical operator: explain_logical
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: unload_library
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_unload_library for logical operator: unload_library
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: attribute_rename
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physical_attribute_rename for logical operator: attribute_rename
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: bernoulli
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalBernoulli for logical operator: bernoulli
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: cancel
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: cancel_impl for logical operator: cancel
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: var
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: stdev
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: show
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_show for logical operator: show
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: echo
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_echo for logical operator: echo
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: reduce_distro
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalReduceDistro for logical operator: reduce_distro
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: setopt
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalSetopt for logical operator: setopt
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: materialize
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: impl_materialize for logical operator: materialize
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: diskinfo
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalDiskInfo for logical operator: diskinfo
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add logical operator factory: analyze
2012-08-15 14:05:50,175 [0x7f951c90c7c0] [DEBUG]: Add physical operator factory: physicalAnalyze for logical operator: analyze
2012-08-15 14:05:50,203 [0x7f951c90c7c0] [DEBUG]: Network manager is intialized
2012-08-15 14:05:50,203 [0x7f951c90c7c0] [DEBUG]: NetworkManager::run()
2012-08-15 14:05:50,212 [0x7f951c90c7c0] [DEBUG]: End of log at position 0 rc=0
2012-08-15 14:05:50,212 [0x7f951c90c7c0] [DEBUG]: End of log at position 0 rc=0
2012-08-15 14:05:50,230 [0x7f951c90c7c0] [DEBUG]: SystemCatalog::deleteArrayLocks instanceId = 0 queryId = 18446744073709551615
2012-08-15 14:05:50,245 [0x7f951c90c7c0] [INFO ]: Network manager is started on 10.131.235.74:1239 instance #0
2012-08-15 14:05:50,245 [0x7f951c90c7c0] [DEBUG]: Start connection accepting and async message exchanging


#5

[quote=“plumber”]Hi!

Can you post the contents of your config.ini file? I suspect the problem is there.[/quote]

Re: multiple server error

Postby Xianmang » Wed Aug 15, 2012 2:57 pm
the config.ini is:
he@he-p6-1095cn:/opt/scidb/12.3/etc$ cat config.ini
[test1]
server-0=10.131.235.74,0
server-1=10.131.235.32,1
#server-2=10.131.235.40,1
#server-3=10.131.235.50,1
#server-4=10.131.235.58,1
db_user=test1
db_passwd=test1
install_root=/opt/scidb/12.3
metadata=/opt/scidb/12.3/share/scidb/meta.sql
pluginsdir=/opt/scidb/12.3/lib/scidb/plugins
logconf=/opt/scidb/12.3/share/scidb/log4cxx.properties
base-path=/home/scidb/data
base-port=1239
interface=eth0
no-watchdog=true


#6

Try scidb.py startall without the sudo. Note that when you use sudo, the ssh for user ‘ray’ is not being used hence the error.

Only the scidb initall step sudo privs. startall/stopall do not require sudo.