-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reportportal-api pod is getting restarted and application is not starting #294
Comments
all the pods are hosted in default namespace . Adding the values yaml file String to partially override reportportal.fullname template (will maintain the release name)nameOverride:String to fully override reportportal.fullname templatefullnameOverride:serviceindex: Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdservice: uat: jvmArgsIf you need to use a custom java keystore you can use it through jvmArgseg. : -Djavax.net.ssl.trustStore=/etc/secret-volume/custom-pki.jksjvmArgs: "-Djava.security.egd=file:/dev/./urandom -XX:MinRAMPercentage=60.0 -XX:MaxRAMPercentage=90.0" External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" Provide a secret containing sensitives dataEG.: provide a custom java keystore used in jvmArgskeytool -genkeypair -storetype jks -alias todelete -keypass changeit -storepass changeit -keystore custom-pki.jks -dname "CN=Developer, OU=Department, O=Company, L=City, ST=State, C=CA"keytool -delete -alias todelete -storepass changeit -keystore custom-pki.jkskeytool -list -keystore custom-pki.jks -storepass changeitGenerate base64 data and paste it in your values.yaml :cat custom-pki.jks | base64 -wsecret: serviceui: Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" serviceapi: Number of queuesWhere "totalNumber" is the total number of queuesСalculation formula: perPodNumber = totalNumber / serviceapi.replicaCountqueues: External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" servicejobs: External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" migrations: Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" serviceanalyzer: External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" serviceanalyzertrain: External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" metricsgatherer: External environment variablesextraEnvs: [] Define which Nodes the Pods are scheduled on.ref: https://kubernetes.io/docs/user-guide/node-selection/nodeSelector: {} disktype: ssdserviceAccountName: "" rabbitmq: Virtual hosts provide logical grouping and separation of resources.ref: https://www.rabbitmq.com/vhosts.htmlvhost: analyzer postgresql: elasticsearch: minio: Ingress configuration for the uiIf you have installed ingress controller and want to expose application - set INGRESS.ENABLE to true.If you have some domain name set INGRESS.USEDOMAINNAME variable to true and set this fqdn to INGRESS.HOSTSIf you don't have any domain names - set INGRESS.USEDOMAINNAME to falseingress: IF YOU HAVE SOME DOMAIN NAME SET INGRESS.USEDOMAINNAME to trueusedomainname: false - hosts:- reportportal.k8.comsecretName: reportportal.k8.com-tlstolerations for all components, if any (requires Kubernetes >= 1.6)Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/tolerations: [] - key: "key"operator: "Equal|Exists"value: "value"effect: "NoSchedule|PreferNoSchedule|NoExecute"RBAC is required for service-index in order to collect status/info over all servicesrbac: rp: Extra init containers to e.g. wait for minioextraInitContainers: {} - name: "wait-for-minio"image: "busybox"imagePullPolicy: "IfNotPresent"command:- sh- "-c"- "for i in
|
/ __ ___ ____ ____ / // __ _ / / / / 2023-02-17 07:02:19.448 INFO 1 --- [ main] c.e.t.r.core.configs.ReportPortalApp : Starting ReportPortalApp using Java 11.0.17 on reportportal-api-7476687676-bhtfj with PID 1 (/service-api-5.7.3-exec.jar started by root in /) Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'suiteWithRetriesGenerator' defined in URL [jar:file:/service-api-5.7.3-exec.jar!/BOOT-INF/classes!/com/epam/ta/reportportal/demodata/service/generator/SuiteWithRetriesGenerator.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoDataTestItemService' defined in URL [jar:file:/service-api-5.7.3-exec.jar!/BOOT-INF/classes!/com/epam/ta/reportportal/demodata/service/DemoDataTestItemService.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'finishTestItemHandlerImpl' defined in URL [jar:file:/service-api-5.7.3-exec.jar!/BOOT-INF/classes!/com/epam/ta/reportportal/core/item/impl/FinishTestItemHandlerImpl.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'finishTestItemHierarchyHandler' defined in URL [jar:file:/service-api-5.7.3-exec.jar!/BOOT-INF/classes!/com/epam/ta/reportportal/core/hierarchy/impl/FinishTestItemHierarchyHandler.class]: Unsatisfied dependency expressed through constructor parameter 6; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'changeStatusHandlerImpl' defined in URL [jar:file:/service-api-5.7.3-exec.jar!/BOOT-INF/classes!/com/epam/ta/reportportal/core/item/impl/status/ChangeStatusHandlerImpl.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'messageBus' defined in class path resource [com/epam/ta/reportportal/core/configs/rabbit/InternalConfiguration.class]: Unsatisfied dependency expressed through method 'messageBus' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'rabbitTemplate' defined in class path resource [com/epam/ta/reportportal/core/configs/rabbit/RabbitMqConfiguration.class]: Unsatisfied dependency expressed through method 'rabbitTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [com/epam/ta/reportportal/core/configs/rabbit/RabbitMqConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.rabbit.connection.ConnectionFactory]: Factory method 'connectionFactory' threw exception; nested exception is com.epam.ta.reportportal.exception.ReportPortalException: Unclassified Report Portal Error |
If it was a connection error then i have validated rabbitmq credentials and i tried to curl from the credentials from the pod. Also i logged into UI and created vhost analyzer manually. |
@team any suggestions or update regarding the issue i am facing. |
I just ran into this issue and, after many wasted hours, found that report-portal is incompatible with a rabbitmq password that consists of a Please just change your rabbitmq password, and you should be good. I am hoping it's the same issue, good luck. The root of the issue is this environment variable: God forbid if you use a password with
|
@mohan-homer I'm not sure I got same issue or not. |
Before raising this issue i have read all the earlier closed issue and tried all the possible way but i ran out of luck. I have followed the exact steps as updated in the github page
https://github.com/reportportal/kubernetes/tree/master/reportportal
I am trying to install reportportal application in GKE 1.23 and helm version v3.9.3. Here is my observation when i was installing rabbitmq by default vhost analyzer didnt create and upon confirmation from logs of rabbitmq i created manually. Second point i tried matching the secrets name while running reportportal helm command but it was no use. I tried with different namespaces, re-installed applications multiple times deleted pvc just to avoid conflicts but still it was no use. Attaching the logs of api pod for reference.
The text was updated successfully, but these errors were encountered: