allure-docker-service
allure-docker-service copied to clipboard
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Hi @fescobar
Can you please help me on the below issue
I am getting the below error while executing at below line 'response = requests.post(allure_server + '/send-results?project_id=' + project_id + '&force_project_creation=true',headers=headers, data=json_request_body, verify=ssl_verification)'
Error msg: requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Full error message details
Traceback (most recent call last):
File "C:\Users\dchengal\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Users\dchengal\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "
@dineshmcac where did you deploy your container? Can you show config and logs? What host and port are you using in the script?
Hi @fescobar I shared the deployed yaml, and updated the company name in yaml for security purposes.
Problem Statement: The real problem is the Allure report test case count doesn't match with Allure docker service test case count and it is throwing the above error.
port 80 and host is https://internal.offline.pdodev.aws.------.com/api/allure
kind: Service apiVersion: v1 metadata: name: allure-api namespace: offline selfLink: /api/v1/namespaces/offline/services/allure-api spec: selector: app: allure appcomponent: backend ports: - protocol: TCP port: 80 targetPort: 5050 type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster
kind: Deployment apiVersion: apps/v1 metadata: name: allure namespace: offline labels: app: allure env: dev appcomponent: backend spec: replicas: 1 selector: matchLabels: app: allure template: metadata: labels: env: dev app: allure appcomponent: backend app_environment: dev datasource: gus application: gcom app_component: allure function: appserver created_by: ---------------- business_unit: pdo region: us-east-1 network_environment: dev app_contacts: ------------- system_risk_class: "1" tag_version: "2.0" annotations: ad.datadoghq.com/allure.check_names: | [ "tomcat", "jmx" ] ad.datadoghq.com/allure.init_configs: | [ { "is_jmx": true, "collect_default_metrics": true } ] ad.datadoghq.com/allure.instances: | [ { "host": "%%host%%", "port": "9012" } ] spec: serviceAccountName: allure imagePullSecrets: - name: credreg nodeSelector: workload: "offline" containers: - name: allure image: pdo-docker-dev.artifactory.svc.aws.company.com/allure:VERSION::ID ports: - containerPort: 5050 protocol: TCP resources: requests: memory: "3Gi" cpu: "1" volumeMounts: - name: allure-projects mountPath: /app/projects volumes: - name: allure-projects nfs: server: zalenium-dev-efs.pdodev.aws.company.com path: /app/projects
apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: allure-scaler namespace: offline spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: allure minReplicas: 1 maxReplicas: 1 metrics: - type: Resource resource: name: cpu targetAverageUtilization: 70 - type: Resource resource: name: memory targetAverageUtilization: 70
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: internal-allure-alb-ingress namespace: offline annotations: kubernetes.io/ingress.class: "alb" alb.ingress.kubernetes.io/actions.ssl-redirect: "{"type": "redirect", "redirectConfig": { "protocol": "HTTPS", "port": "443", "statusCode": "HTTP_301"}}" alb.ingress.kubernetes.io/backend-protocol: HTTP alb.ingress.kubernetes.io/certificate-arn: "-----------" # alb.ingress.kubernetes.io/healthcheck-path: "/" alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]' alb.ingress.kubernetes.io/scheme: "internal" alb.ingress.kubernetes.io/subnets: "--------------------" alb.ingress.kubernetes.io/success-codes: "200" alb.ingress.kubernetes.io/tags: "app_component=allure-api,app_contacts=-------,app_environment=dev,app_version=2.0,application=allure-api,business_unit=pdo,cluster=eks-pdodev,[email protected],function=api,Name=allure-api,network_environment=dev,region=us-east-1,system_risk_class=3,waf_policy=custom,waf_custom=wafv2-np-guardrails-core-badinputs" spec: rules: - host: allure.pdodev.aws.company.com http: paths: - path: / pathType: Prefix backend: service: name: allure-api port: number: 80
any update @fescobar We can't find any log in the instance It is failing for large file in -> 'response = requests.post(allure_server + '/send-results?project_id=' + project_id + '&force_project_creation=true',headers=headers, data=json_request_body, verify=ssl_verification)'
@dineshmcac Sorry, but if you can't provide any logs I can't help you.
You need to use command kubectl logs INSTANCE_ID