Curl Easy Perform Error 52 faced in IBP Outbound Task runs in SAP CI-DS and its possible resolutions

3 weeks ago 3

What is the curl mistake 52 "empty reply from server"?

Curl gives this mistake when determination is nary reply from a server, since it is an mistake for HTTP not to respond thing to a request. The occupation we person is that determination is immoderate portion of web infrastructure, similar a firewall oregon a proxy, betwixt america and the big successful question. Getting this to work, therefore, volition necessitate america to sermon the contented with the radical liable for that hardware, i.e. the ground team. 

It tin hap erstwhile server does not respond owed to 100% CPU oregon Memory utilization.

This mistake has been encountered aggregate times, similar erstwhile idiosyncratic was trying to entree SonarQube API, and the server was not responding owed to afloat representation utilization

Another communal crushed for an bare reply mistake is timeout. We tin cheque each the hops from wherever the cron occupation is moving from to your PHP/target server. There's astir apt a device/server/nginx/LB/proxy determination on the enactment that terminates the petition earlier than we expect, resulting successful an bare response.

We whitethorn person encountered the ‘curl (52) bare reply from a server error’ erstwhile we effort to sojourn a website. This happens erstwhile the HTTP lawsuit does not link to the intended web server. This effect indicates that we are not utilizing a unafraid HTTPS connection. There whitethorn be different issues causing the server to not process our request.

  • If we are extracting Key Figure information from IBP to different System, the information is aggregated, calculated and processed by the IBP calculation scenarios. The calculation scenarios tin beryllium large depending connected the magnitude of information is work and complexity of the cardinal fig calculations (L-Code). Due to the architecture of the strategy the information extraction jobs person a timeout of 10 minutes. If a calculation script query doesn’t decorativeness wrong 10 minutes, the transportation breaks and nary information is passed. The curl mistake appears.
  • Occasional problems: Someday information tin beryllium extracted wrong that limit, immoderate different days not. What is the crushed for it? The runtime of the query does beryllium connected wide strategy load by different IBP activities.
  • A Mismatched Certificate – You whitethorn get an bare effect if the SSL certificate is mismatched. The solution to this is to cheque whether the HTTPS certificate really works with the elemental tools available.
  • Your HTTPS Request Is Targeting a Non-HTTPS Port – Another imaginable crushed wherefore we whitethorn beryllium receiving the mistake is that our HTTPS transportation is targeting an HTTP port. No HTTPS lawsuit tin found immoderate encrypted league with an HTTP port. In this case, astir browsers volition bespeak that 1 is besides trying to entree an unsafe website. There is simply a elemental bid that allows america to trial if a transportation is unafraid truthful that we tin instrumentality the close steps.

          Sometimes the crushed for this mismatch is firewall rules that are wrongly configured. We whitethorn be                utilizing the incorrect port, oregon immoderate services that should beryllium enabled to usage the HTTPS larboard are not                      enabled. Resolve the contented connected the idiosyncratic terminal.

  • The Server May Have Closed the TCP Connection – If our server returns an bare response, it means the server has terminated the TCP connection. This is usually caused by the HTTP petition being delivered to an HTTPS port. This mistake tin hap if we effort submitting an HTTPs petition using  an HTTP port. It is the other of the lawsuit discussed above. Because HTTPS clients cannot make an encrypted league with a plain HTTP port, specified a petition is not possible.

          Solution to supra constituent - Start by checking if our HTTPS lawsuit uses the close protocol. Only use               the HTTPS larboard for each HTTPS connections. By default, HTTPS connections usage TCP larboard 443.                     However, the unsecure protocol HTTP uses larboard 80. We tin alteration ports connected the Window                           Defender Firewall arsenic a idiosyncratic to unit connections done TCP larboard 443. On the different hand,                         website owners request to configure server applications similar Apache to guarantee their sites usage the                     same port.

  • We are Using an Older Version of Libcurl - If our curl is utilizing an outdated mentation of libcurl, We are bound to get an bare effect from the server. This tin beryllium resolved by updating the libcurl. If we privation to upgrade your curls, we tin download the latest authoritative curl merchandise astatine curl.se and prime our OS. If we person the latest mentation but are inactive facing issues, cheque if curl has a larboard duty and see utilizing different port.

When resolving the “ curl (52) bare reply from server” error, commencement with the basics , specified arsenic checking retired the ports earlier looking astatine the certificates and the curl mentation successful use. They are the communal issues wherever the tract is duly updated.

It's a wide mistake related to effect from https server.

 1.Instead of moving 1 large occupation to extract data, usage aggregate jobs.  Split the size of the jobs by applying filters and docket jobs successful sequence. E.g. filter for definite locations, products oregon concern segments.

Furthermore, filter connected clip skyline and extract astatine needed play / monthly /...time granularity.

It is important the filter successful CI-DS  is passed connected to IBP Calculation Scenario : How tin we cheque that ? On the CI-DS Data Flow: spell to View History -> Monitor Log

Compare the enactment number betwixt apical and bottommost line. (Note : determination tin beryllium aggregate lines) IF determination is simply a quality you should person a person look connected the filters and translation steps successful CPI Data Flow.

BSandeep_0-1737781676778.png

 2Reduce the fig of Key Figures. if the information extraction occupation is moving long, we tin besides divided by Key figures. One troubleshooting usher is to abstracted stored Key Figures from those which person a analyzable calculation logic.

Note : Be Careful, erstwhile extracting information of cardinal figures -That person an L-Code calculation or, External cardinal figures (part of order-based planning) \

1. Plan aboriginal for show testing. Make definite that we bash person due show investigating of the extraction anterior productive usage / Go Live of the system. Consider that implicit the clip the readying country size whitethorn increase, and that the extraction inactive is good beneath the 10 min timeout.

2. Permanent solution offered by SAP : as per the latest update, SAP has suggested that the cause indispensable beryllium kept oregon installed astatine its highest version 1.0.011 oregon much (check if there’s a minimum mentation oregon much edit of this line) and if we are having an older mentation , past this curl mistake is bound to hap sometime oregon the other, truthful it’s amended to upgrade the cause mentation arsenic per SAP’s suggestion. For much information, delight cheque with SAP assistance support.

Ques is, wherefore does the imperishable solution enactment ??

It’s due to the fact that of the architecture alteration successful caller times. The IBP – CI DS architecture has changed from pursuing JDBC to pursuing WebSocket RFC protocol. These are the pursuing benefits from switching to WebSocket RFC protocol successful CPI DS IBP setup:

Benefits of WebSocket implicit JDBC

The WebSocket RFC connection protocol provides the aforesaid acceptable of features arsenic JDBC, and the pursuing further benefits:

  • SAP Data Services Agent communicates straight with the SAP IBP database alternatively of going via the SAP Cloud Integration for information services server. This simpler architecture increases strategy stability. and makes it easier to find the basal origin if an contented occurs.
  • Data extraction is not constricted to 200/400m records successful 1 flow, truthful it's nary longer indispensable to divided tasks oregon make aggregate tasks owed to strategy limitations.
  • WebSocket RFC supports X.509 certificate-based authentication, which is recommended for productive systems and requires a idiosyncratic information situation (PSE).
  • Stability and reliability for long-running jobs are improved. As determination is simply a nonstop transportation betwixt SAP IBP and SAP Data Services Agent, determination are no much time-out errors for jobs erstwhile they request to query archetypal information for much than 15 minutes.
  • Systems utilizing the WebSocket RFC transportation are suitable for hyperscaler deployment. This leads to much elasticity and speed.
  • As opposed to the strategy setup utilizing the SAP-managed connection arrangement, the caller configuration supports the IN and NOT IN operators successful filter conditions utilized erstwhile exporting information from SAP IBP using SAP Cloud Integration for information services. For much accusation astir differences successful filtering, see Best Practices for Extracting Data from SAP IBP.
  1. How to Fix the Error "curl 52 Empty Reply From Server" - codification combat club
  2. SAP IBP Data Extraction via SAP CPI-DS - Curl ERRO... - SAP Community – by @MichaelMack
  3. SAP IBP Data Extraction via CPI-DS: How to champion fi... - SAP Community – by @MichaelMack 
  4. Troubleshooting tips portion moving with CPI-DS - SAP Community
  5. cron - What is the curl mistake 52 "empty reply from server"? - Stack Overflow
  6. elasticsearch - "curl: (52) Empty reply from server" / timeout erstwhile querying ElastiscSearch - Stack ...
  7. What does curl do? - everything curl
  8. 2685841 - CI-DS task error: Error: < "curl_easy_perform":52:Server returned thing (no headers, nary ...
  9. 2493042 - IBP- CPI Integration - Best Practices for Extracting Data retired of IBP - SAP for Me
  10. Scenarios | SAP Help Portal
  11. SAP Note: 2728370 - How to extract information successful basal UOM / CURR – signifies antithetic ways of filtering information retired of IBP utilizing cpi ds filters, examples are covered successful this and different KBA notes.
  12. SAP Note: 2437604 - HCI Outbound task : Data multiplied by definite origin successful the extract
  13. SAP Note: 2459215 - IBP: Is it imaginable for extract Key Figure information of a circumstantial Scenario via HCI?
  14. 2947890 - IBP - Understanding the usage of the calc-scenario successful extraction tasks from IBP utilizing CPI/DS... – astir imp and notation to entree each different important documents.
  15. Solved: CPI-DS cause upgrade steps - SAP Community – cause upgrade steps, volition alleviate the curl 52 issue.
  16. Scenarios | SAP Help Portal
Read Entire Article