Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
we upgrade Qlik Replicate from 2022 Nov to 2023 Nov, after upgrade we are getting below error to run parent task (db2 log streaming )
error {"error_code":"GENERAL_ERROR","error_message":"Value cannot be null.\r\nParameter name: name"}
command :
curl --silent -i -k -X POST --header "EnterpriseManager.APISessionID: ${session_id//[$'\t\r\n ']}" --header "Content-Length: 68" -d "{\"cdcposition\":\"Checkpoint:V1#1#00${offset}0001#0#0#*#0#0\"}" $host/attunityenterprisemanager/api/v1/servers/$replicate_name/tasks/"$(echo $line)?action=run&option=RECOVER_USING_CHECKPOINT_STORED_ON_TARGET"
I executed script with -x option and checked all variables are getting values.
+ echo 'Starting the Log Stream tasks first, then other task from QEM '
Starting the Log Stream tasks first, then other task from QEM
+ curl -v -i -k -X POST --header 'EnterpriseManager.APISessionID: eQ6ETzc7K57g_xxxx' --header Content-Length:68 -d '{"cdcposition":"Checkpoint:V1#1#00DFxxxxxxx001#0#0#*#0#0"}' 'https://server.com/attunityenterprisemanager/api/v1/servers/replicate_host/tasks/Test?action=run&opt...'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 1.1.1.1...
* TCP_NODELAY set
* Connected to server.com (1.1.1.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=TT; ST=location; L=location; O=TEST ; OU=1111; CN=server; emailAddress=abc@test.com
* start date: Mar 13 13:44:20 2023 GMT
* expire date: Mar 12 13:44:20 2025 GMT
* issuer: C=TT; O=location; CN=location G3 Issuing CA Tier B
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55fda0f68710)
> POST /attunityenterprisemanager/api/v1/servers/replicate_host/tasks/test?action=run&option=RECOVER_USING_CHECKPOINT_STORED_ON_TARGET HTTP/2
> Host: server.com
> User-Agent: curl/7.61.1
> Accept: */*
> EnterpriseManager.APISessionID: eQ6ETzc7K57g_xxxx
> Content-Length:68
> Content-Type: application/x-www-form-urlencoded
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
* We are completely uploaded and fine
< HTTP/2 500
HTTP/2 500
< cache-control: no-cache, no-store
cache-control: no-cache, no-store
< content-length: 94
content-length: 94
< content-type: application/json
content-type: application/json
< server: Microsoft-HTTPAPI/2.0
server: Microsoft-HTTPAPI/2.0
< date: Thu, 10 Oct 2024 14:00:07 GMT
date: Thu, 10 Oct 2024 14:00:07 GMT
<
* Connection #0 to host server.com left intact
{"error_code":"GENERAL_ERROR","error_message":"Value cannot be null.\r\nParameter name: name"}$
I referred this page RunTask | Qlik Enterprise Manager Help
Thanks its working now.
But it was working on version 2022 Nov without adding "--header "Content-type: application/json" ".