Help needed with startup script
Closed this issue · 2 comments
Hi,
I'm trying to start the starter pack on MacOS using start_torq_demo_osx.sh
. Running it didn't start any services. I then tried to start each service individually using the -debug and -stop flags. The first 2 services - discovery and the tickerplant services start fine , but the rdb service when started with the following command: q torq.q -load code/processes/rdb.q ${KDBSTACKID} -proctype rdb -procname rdb1 -U appconfig/passwords/accesslist.txt -localtime -g 1 -T 30 -debug -stop
crashes with the following error message:
2016.10.10D15:35:38.946672000|bladecatcher.local|rdb|rdb1|INF|conn|attempting to connect to discovery services
2016.10.10D15:35:38.946741000|bladecatcher.local|rdb|rdb1|INF|conn|attempting to open handle to :bladecatcher.local:6001
2016.10.10D15:35:38.948255000|bladecatcher.local|rdb|rdb1|INF|conn|connection to :bladecatcher.local:6001 successful
2016.10.10D15:35:38.950060000|bladecatcher.local|rdb|rdb1|INF|conn|registering with discovery services
2016.10.10D15:35:38.950087000|bladecatcher.local|rdb|rdb1|INF|conn|requesting processes from discovery service
2016.10.10D15:35:38.950103000|bladecatcher.local|rdb|rdb1|INF|conn|querying discovery services for processes of types hdb tickerplant
2016.10.10D15:35:38.951549000|bladecatcher.local|rdb|rdb1|INF|conn|attempting to open handle to :bladecatcher.local:6003
2016.10.10D15:35:38.952271000|bladecatcher.local|rdb|rdb1|INF|conn|connection to :bladecatcher.local:6003 failed: hop: Connection refused
2016.10.10D15:35:38.952299000|bladecatcher.local|rdb|rdb1|INF|conn|attempting to open handle to :bladecatcher.local:6004
2016.10.10D15:35:38.952862000|bladecatcher.local|rdb|rdb1|INF|conn|connection to :bladecatcher.local:6004 failed: hop: Connection refused
2016.10.10D15:35:38.952887000|bladecatcher.local|rdb|rdb1|INF|conn|attempting to open handle to :bladecatcher.local:6000
2016.10.10D15:35:38.953479000|bladecatcher.local|rdb|rdb1|INF|conn|connection to :bladecatcher.local:6000 successful
2016.10.10D15:35:38.953779000|bladecatcher.local|rdb|rdb1|ERR|hbsub|failed to subscribe to heartbeat on handle 7: .ps.subscribe
2016.10.10D15:35:38.953827000|bladecatcher.local|rdb|rdb1|ERR|fileload|failed to load code/processes/rdb.q : failed to subscribe to heartbeat on handle 7: .ps.subscribe
{.lg.o[`fileload;"loading ",x];
@[{system"l ",x; .lg.o[`fileload;"successfully loaded ",x]};x;{.lg.e[`fileload;"failed to load ",x," : ",y]}[x]]}
'failed to load code/processes/rdb.q : failed to subscribe to heartbeat on handle 7: .ps.subscribe
q.proc))
Could you please help me with this?
Hi Bladecatcher
Can you try that now? I think that was actually a TorQ bug, caused by this:
DataIntellectTech/TorQ@846a65e
Can you pull the latest TorQ repo and try again?
(make sure everything is killed first)
Thanks
Jonny
@jonnypress, thanks for the prompt reply. That indeed fixed it. Verified by running the following two queries from the 6007 gateway:
.gw.syncexec["select sum size by sym from trade"; `rdb]
.gw.syncexec["select count i by date from trade"; `hdb]