Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Error 404 when trying to connect to HQ and refresh Ardent cache in Local Q2 SDK

Hello,

I am encountering an issue after setting up my local Q2 SDK environment in WSL and running the q2 run command. When the SDK tries to connect to the HQ URL and refresh the Ardent cache, I receive 404 errors. Below is a description of the steps I followed and the detailed log:

Steps Taken:
1.Set up WSL and installed Ubuntu.

2.Ran the following commands to update and install necessary packages:
-sudo apt-get update
-sudo apt-get upgrade
-sudo apt install python3.12-venv

3.Downloaded and set up the Caliper SDK admin tool:
-curl https://q2sdk-utilities.s3.amazonaws.com/caliper_admin -o caliper_admin
-chmod +x caliper_admin
-./caliper_admin

4.Logged into Q2 SDK:
-q2 login

5.Ran:
-q2 run

Encountered the following error when trying to connect to the HQ URL and refresh the Ardent cache.

Log:

2024-09-12T13:20:04.389 q2_sdk.general INFO Calling invalidate on 1 HQs: ['https://stack.q2developer.com/sdk//hq']
2024-09-12T13:20:04.390 q2_sdk.general INFO Sending HTTP request POST https://stack.q2developer.com/sdk//hq/Q2API.asmx
2024-09-12T13:20:05.359 q2_sdk.general INFO Received HTTP response after 968.51ms - 404 Not Found
2024-09-12T13:20:05.360 q2_sdk.general WARNING Response URL: https://stack.q2developer.com/sdk//hq/Q2API.asmx
2024-09-12T13:20:05.360 q2_sdk.general WARNING Response Headers: {'Date': 'Thu, 12 Sep 2024 11:20:19 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'CF-Cache-Status': 'DYNAMIC', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains; preload', 'Server': 'cloudflare', 'CF-RAY': '8c1f81f3db25ef24-PDX'}
2024-09-12T13:20:05.360 q2_sdk.general WARNING Response Body: b''
2024-09-12T13:20:05.361 q2_sdk.general ERROR Unknown error from HQ_URL: https://stack.q2developer.com/sdk//hq/Q2API.asmx
2024-09-12T13:20:05.363 q2_sdk.general INFO Sending HTTP request POST https://stack.q2developer.com/sdk//ardent/refreshCache
2024-09-12T13:20:06.319 q2_sdk.general INFO Received HTTP response after 955.60ms - 404 Not Found
2024-09-12T13:20:06.319 q2_sdk.general WARNING Response URL: https://stack.q2developer.com/sdk//ardent/refreshCache
2024-09-12T13:20:06.319 q2_sdk.general WARNING Response Headers: {'Date': 'Thu, 12 Sep 2024 11:20:20 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'CF-Cache-Status': 'DYNAMIC', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains; preload', 'Server': 'cloudflare', 'CF-RAY': '8c1f81f9fe8befda-PDX'}
2024-09-12T13:20:06.319 q2_sdk.general WARNING Response Body: b''
2024-09-12T13:20:06.320 q2_sdk.general ERROR Unable to refresh Ardent cache
2024-09-12T13:20:08.338 tornado.access INFO 200 90349272395849f9bbb2c43eb31d81da GET / (::1) 6.19ms
2024-09-12T13:20:08.375 tornado.access WARNING 404 GET /favicon.ico (::1) 1.62ms

Could you assist with resolving this issue?

Votes Newest

Answers


Hi Mark,

Looks like you need to run caliper_admin -> Switch Stack and put in your stack name as per the dashboard on q2developer.com.
That'll set your HQ and all the other variables appropriately.

Brian

Posted 2 years ago
Brian Mego
227 × 1 Administrator
132 Views
1 Answer
2 years ago
2 years ago
Tags