Unable to use InfluxDB service - 1.8.1 on Ubuntu 20.04

Hi,
I have InfluxDB 1.8.1 installed on my system. When I post a query using CURL, my application hangs. Once I terminate the application, the query appears in InfluxDB logs.
The same version of InfluxDB service worked fine on Ubuntu 18.04 with the same application.
Is there any specific configuration setting that I should take care of to get this working on Ubuntu 20.04?

Thanks,
Bindu

Can you create a small example that produces the issue? Have you tried the example from the documentation here?

https://docs.influxdata.com/influxdb/v1.8/guides/write_data/#sidebar

Hi,
I tried the curl command provided on the page, which works.
Here is the sample code that doesn’t work. Executing the below mentioned program results in a hangup when curl_easy_perform() call is made.

#include <stdio.h>
#include <curl/curl.h>

int main(void)
{
CURL *curl;
CURLcode res;
char *dbname = “test1”;
char url[128];
sprintf (url, “http://localhost:8086/query?q=CREATE+DATABASE+%s”,dbname);

curl_global_init(CURL_GLOBAL_ALL);

/* get a curl handle */
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt (curl, CURLOPT_POST, 1L);

/* Perform the request, res will get the return code */ 
res = curl_easy_perform(curl);
/* Check for errors */ 
if(res != CURLE_OK)
  fprintf(stderr, "curl_easy_perform() failed: %s\n",
          curl_easy_strerror(res));

/* always cleanup */ 
curl_easy_cleanup(curl);

}
curl_global_cleanup();
return 0;

Could you provide your feedback/input on why this request doesn’t work?

Thanks,
Bindu

Do you have any updates on this please?

Thanks,
Bindu

nothing very promising, maybe there’s been some changes to these libs in later version of Ubuntu maybe ?

If not, maybe try another web client library and see if it’s any similar. Maybe others might have other ideas to try