Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
froghollow opened this issue Aug 9, 2017 · 1 comment
Open

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

froghollow opened this issue Aug 9, 2017 · 1 comment

Comments

@froghollow
Copy link

froghollow commented Aug 9, 2017

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",
@zubair-nbx
Copy link

@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.

FINRAOSS pushed a commit that referenced this issue Jun 18, 2018
* commit 'fd475804eda9f2c28eae23c6b2d1202ba42d79e5':
  DM-10690:  Factory CQ - NullPointerException thrown in herd IndexFunctionsDaoImpl.buildIndexSearchResults() -Restore the original fix
  DM-10860 : Accept suggested change to BDef Description
  DM-10860 : Accept suggested change to BDef Description
  Added initial version of the herd.postgres.0.71.0-to-0.72.0.upgrade.sql script
  DM-10860: Accept suggested change to BDef Description
  DM-10865: Use Herd tools with relaxed certificate verification
  DM-10860 ( Accept suggested change to BDef Description)
  DM-10865: Use Herd tools with relaxed certificate verification
  DM-10865: Use Herd tools with relaxed certificate verification
  DM-10868 Search and manage status of suggested changes to BDef Description
  DM-10868 Search and manage status of suggested changes to BDef Description
  DM-10868 Search and manage status of suggested changes to BDef Description
  DM-10868 Search and manage status of suggested changes to BDef Description
  herd-sdk-angular-client
  herd-sdk-angular-client
  herd-sdk-angular-client
  DM-10868 Search and manage status of suggested changes to BDef Description
  DM-10868 Search and manage status of suggested changes to BDef Description
  Increment Maven POM version numbers to 0.72.0-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants