wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
842 stars 778 forks source link

Context deadline exceeded recurring every once in a while #12167

Open ido-vcita opened 2 years ago

ido-vcita commented 2 years ago

Description:

We are getting an error message from WSO2 every once in while (though fairly frequently) when we're trying the import APIs\

That's the out

Steps to reproduce:

That is the command that we are running

apictl import-api -f api_gateway/client_api -e production -k --preserve-provider --update --verbose

This is the output that we're getting:

[INFO]: URL: https://<wso2_host>/api/am/publisher/v1/apis?query=name%3Abusiness_docuforms+version%3Adefault+provider%3Aadmin
11:45:40  apictl: Unable to connect to https://<wso2_host>/api/am/publisher/v1/apis?query=name%3Abusiness_docuforms+version%3Adefault+provider%3Aadmin Reason: Get "https://<wso2_host>/api/am/publisher/v1/apis?query=name%3Abusiness_docuforms+version%3Adefault+provider%3Aadmin": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Affected Product Version:

Environment details (with versions):

ido-vcita commented 2 years ago

it just happened again.

These are the full logs

16:33:31  + apictl import-api -f api_gateway/docuforms_business_docuforms -e production -k --preserve-provider --update --verbose
16:33:31  Executed ImportExportCLI (apictl) on Wed, 22 Dec 2021 14:33:31 UTC
16:33:31  [INFO]: Insecure: true
16:33:31  [INFO]: import-api called
16:33:31  [INFO]: Resolving for API path...
16:33:31  [INFO]: API Location: /home/ubuntu/workspace/common_pre_deploy/docuforms/api_gateway/docuforms_business_docuforms
16:33:31  [INFO]: Creating workspace
16:33:31  [INFO]: Copying from /home/ubuntu/workspace/common_pre_deploy/docuforms/api_gateway/docuforms_business_docuforms to /tmp/apim813622299
16:33:31  [INFO]: Substituting environment variables in API files...
16:33:31  [INFO]: Substituting env variables of files in folder path:  /tmp/apim813622299/docuforms_business_docuforms/Meta-information
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Meta-information/swagger.json
16:33:31  [INFO]: Substituting env variables of files in folder path:  /tmp/apim813622299/docuforms_business_docuforms/Sequences
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_docuforms_business_docuforms_production.xml
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_generic.xml
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_generic_local.xml
16:33:31  [INFO]: Substituting env variables in:  /tmp/apim813622299/docuforms_business_docuforms/Sequences/out-sequence/handle_out_message.xml
16:33:31  [INFO]: Pre Processing API...
16:33:31  [INFO]: Loading /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Loading API definition from:  /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Attempting to inject parameters to the API from api_params.yaml (if exists)
16:33:31  [INFO]: Scanning for parameters file
16:33:31  [INFO]: Scanning for /home/ubuntu/workspace/common_pre_deploy/docuforms/api_gateway/docuforms_business_docuforms/api_params.yaml
16:33:31  [INFO]: Loading parameters from /home/ubuntu/workspace/common_pre_deploy/docuforms/api_gateway/docuforms_business_docuforms/api_params.yaml
16:33:31  [INFO]: Reading API definition: 
16:33:31  [INFO]: Loading /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Loaded definition from: /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Merging API
16:33:31  [INFO]: Writing merged API to: /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Loading /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: API is populated with defaults
16:33:31  [INFO]: Writing /tmp/apim813622299/docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Validating API
16:33:31  [INFO]: Creating API artifact /tmp/api-artifact496939710.zip
16:33:31  [INFO]: Creating: docuforms_business_docuforms/
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Meta-information/
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Meta-information/api.yaml
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Meta-information/swagger.json
16:33:31  [INFO]: Creating: docuforms_business_docuforms/README.md
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/in-sequence/
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_docuforms_business_docuforms_production.xml
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_generic.xml
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/in-sequence/dynamic_ep_generic_local.xml
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/out-sequence/
16:33:31  [INFO]: Creating: docuforms_business_docuforms/Sequences/out-sequence/handle_out_message.xml
16:33:31  [INFO]: Creating: docuforms_business_docuforms/api_params.yaml
16:33:31  [INFO]: connecting to https://<wso2_host>/token
16:34:39  apictl: Unable to Connect. Reason: Post "https://<wso2_host>/token": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
16:34:39  Exit status 1