herd icon indicating copy to clipboard operation
herd copied to clipboard

user-data.log -- SQS queue name not found

Open froghollow opened this issue 7 years ago • 1 comments

Following error is logged setting up the demo instance: 500Internal Server ErrorSQS queue name not found. Ensure the "search.index.update.sqs.queue.name" configuration entry is configured.+ /usr/bin/curl -s -X POST --header 'Content-Type: application/json' -d '{"partitionKeyGroupKey":{"partitionKeyGroupName":"TRADE_DT"}}' http://localhost:8080/herd-app/rest/partitionKeyGroups

Work-Around: Modify 'herd.localdb.template' ...

  1. Add SQS queue to Resources (line 149)
    "herdQueueSearchIndexUpdate" : {
      "Type" : "AWS::SQS::Queue"
    },
  1. Add psql statements to instance UserData (line 820) "psql -c \"DELETE FROM cnfgn WHERE cnfgn_key_nm = 'search.index.update.sqs.queue.name';\"\n", "psql -c \"INSERT INTO cnfgn VALUES ('search.index.update.sqs.queue.name','",{"Fn::GetAtt": ["herdQueueSearchIndexUpdate", "QueueName"]},"', NULL);\"\n",

froghollow avatar Aug 09 '17 17:08 froghollow

@froghollow : You need to add name of SQS queue for key 'search.index.update.sqs.queue.name' that will look something like: 'herd-searchIndexUpdateSqsQueueNextGenPOC21-SOPMQOA2XF7E'.

You can check the name of SQS queue from AWS console. If you haven't created the queue yet you can create a new one and INSERT it in 'cnfgn' table.

Also if you want to explore '{"Fn::GetAtt": ["herdQueueSearchIndexUpdate", "QueueName"]}' read about cloudFormation. Its a parameter which is replaced by its value while the CF script is run. Hope this helps.

zubair-nbx avatar Mar 27 '18 16:03 zubair-nbx