cubrid shard start: fail: failed to connect database
sh> cubrid shard start@ cubrid shard startfailed to connect database. [shard] please check your $CUBRID/conf/shard.conf or database status. [%shard] SHARD_DB_NAME = shard1 SHARD_DB_USER = shard ++ cubrid shard start: fail
# cubrid 0 shard1 10.34.64.220 1 shard1 10.34.64.220 2 shard1 localhost 3 shard1 localhost
The database shard1 in localhost and the database shard1 in 10.4.64.220 are OK, I can connect to either.
The error_log/shard_1_0_1.err:
[tobi@NC-PL-DEV001 conf]$ tail ../log/broker/error_log/shard_1_1_1.err Server bit platform (64) is different from client bit platform (32). Time: 05/15/06 04:28:50.048 - ERROR *** file ../../src/transaction/boot_cl.c, line 1453 ERROR CODE = -677 Tran = -1, EID = 206 Failed to connect to database server, 'shard1', on the following host(s): 10.34.64.220 Time: 05/15/06 04:28:50.048 - ERROR *** file ../../src/transaction/boot_cl.c, line 1468 ERROR CODE = -677 Tran = -1, EID = 207 Failed to connect to database server, 'shard1', on the following host(s): 10.34.64.220:10.34.64.220 *** The previous error message is the last one. ***
Can you help me? thanks.
Hi,
To run CUBRID SHARD, the server architecture on all machines should be the same, i.e. if your CUBRID where SHARD Broker is installed on your localhost is 32-bit, then your remote servers where your shards reside should also be 32-bit. In your case, your Broker seems to be 32-bit, while shards are located in 64-bit CUBRID. Please install the same architecture, and it should work.
Also, please see the instructions we have provided in this forum thread.