Prometheus Installation by helm gives timeout exceeded - timeout

When I install helm chart of prometheus it gives this error
"W0729 22:11:30.483798 18647 transport.go:260] Unable to cancel request for *exec.roundTripper
E0729 22:11:30.484005 18647 request.go:1027] Unexpected error when reading response body: net/http: request canceled (Client.Timeout or context cancellation while reading body)
Error: unable to build kubernetes objects from release manifest: unexpected error when reading response body. Please retry. Original error: net/http: request canceled (Client.Timeout or context cancellation while reading body)"

Related

Rancher pod is crashing

I'm trying to install Rancher in AKS, but unfortunately I'm not able to reach the rancher pod.
When I check the pod logs, I see the following error messages:
2023/01/28 20:22:50 [ERROR] error parsing azure-group-cache-size, skipping update strconv.Atoi: parsing "": invalid syntax
...
/01/28 20:22:50 [ERROR] failed to cleanup orphan catalog bindings
..
failed to sync cache for rke-machine-config.cattle.io/v1, Kind=VmwarevsphereConfig E0128 20:22:51.712910 34 reflector.go:139] pkg/mod/github.com/rancher/client-go#v1.24.0-rancher1/tools/cache/reflector.go:168: Failed to watch *unstructured.Unstructured: Get "https://10.0.0.1:443/apis/rke-machine-config.cattle.io/v1/vmwarevsphereconfigs?allowWatchBookmarks=true&resourceVersion=112947&timeout=9m58s&timeoutSeconds=598&watch=true": context canceled
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=Cluster
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineSet
2023/01/28 20:22:51 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck
....
2023/01/28 20:23:05 [ERROR] error syncing 'cattle-fleet-system/helm-operation-l496h': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-l496h), requeuing
I've followed these instructions:
https://ranchermanager.docs.rancher.com/v2.5/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster/rancher-on-aks
https://ranchermanager.docs.rancher.com/v2.5/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster#install-the-rancher-helm-chart
Any idea what could be the issue? Many thanks in advance for your help

"dse spark" fails after enabling DSE Unified Authentication

I updated DSE to 5.1.2 and enabled DSE Unified Authentication.
When I run "dse -u xxx -p xxx spark", I get a shell, but if i submit a query using "spark.sql" I get an error:
scala> val result = spark.sql("SELECT id FROM xxx.yyy")
java.lang.RuntimeException: com.datastax.bdp.fs.client.InternalServerException: Server returned HTTP error response 500 (Internal Server Error)
Caused by: com.datastax.bdp.fs.client.InternalServerException: Server returned HTTP error response 500 (Internal Server Error)
at com.datastax.bdp.fs.client.DseFsClient$stateMachine$macro$1$1.apply(DseFsClient.scala:132)
In /var/log/cassandra/system.log I see:
WARN [Native-Transport-Requests-2] 2017-08-31 12:05:29,057 DseAuthenticator.java:659 - Plain text authentication without client / server encryption is strongly discouraged
ERROR [dsefs-netty-worker-4] 2017-08-31 12:05:29,842 DSEFS RestServerHandler.scala:287 - [id: 0x1810ea2d, L:/10.225.155.31:5598 - R:/10.225.155.31:58006] RestHandler invocation failed
java.util.concurrent.ExecutionException: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) ~[guava-18.0.jar:na]
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
Any idea how to fix this. By the way, dse spark-submit works...
The problem was solved by enabling dsefs in dse.yaml.

Trying to run HTTP POST request on Jenkins

I am currently having problems with Jenkins, I have this configuration in my job:
But when I execute the job, get the following output:
Building in workspace /var/lib/jenkins/workspace/Project1.0
HttpMethod: POST
URL: mypagehome.php
ERROR: Build step failed with exception
java.net.MalformedURLException: no protocol: page.php
at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
atjenkins.plugins.http_request.HttpRequestExecution.authAndRequest(HttpRequestExecution.java:215)
at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:187)
Caused: java.lang.IllegalStateException
at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:190)
at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:61)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at jenkins.plugins.http_request.HttpRequest.perform(HttpRequest.java:304)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1728)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)
Build step 'HTTP Request' marked build as failure
Finished: FAILURE
I am new at Jenkins, and until today I knew that one can make http requests with it, do you have any idea what could I be doing wrong?
Thanks!!
EDIT: I see, it meant the http protocol, so I added it, now I'm getting this error: Treating UnknownHostException(mypage.php: Name or service not known) as 404 Not Found Sorry for being such a noob at this, can you please help me out
It says
java.net.MalformedURLException: no protocol: page.php
So change mypage.php (that differs in the error and your screen shot?) to a valid URL, e.g. http://localhost/mypage.php (or wherever this endpoint is located).

Cloud Foundry getting ERROR: Unknown CloudFoundryException: 400 Bad Request ERROR: Cloud Foundry error code: -1

Pushing spring-music app to https://api.run.pivotal.io
Creating new app.
ERROR: Unknown CloudFoundryException: 400 Bad Request
ERROR: Cloud Foundry error code: -1
ERROR: The host is taken: spring-music
org.cloudfoundry.client.lib.CloudFoundryException: 400 Bad Request (The host is taken: spring-music)
at org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.getException(CloudControllerResponseErrorHandler.java:69)
at org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.handleError(CloudControllerResponseErrorHandler.java:24)
at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:589)
at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:547)
at org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54)
at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.execute(RestTemplate.java:503)
at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:331)
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.doAddRoute(CloudControllerClientImpl.java:1367)
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.bindRoute(CloudControllerClientImpl.java:1321)
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.addUris(CloudControllerClientImpl.java:1244)
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.createApplication(CloudControllerClientImpl.java:1187)
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.createApplication(CloudControllerClientImpl.java:1161)
at org.cloudfoundry.client.lib.CloudFoundryClient.createApplication(CloudFoundryClient.java:247)
at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.createApplicationIfNeeded(CloudFoundryPushPublisher.java:386)
at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.processOneApp(CloudFoundryPushPublisher.java:248)
at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:188)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Build step 'Push to Cloud Foundry' marked build as failure
Finished: FAILURE
The error might be because the hostname spring-music might have been taken by someone else. So please specify a different application name and host name which might solve your problem

deisctl list command raises a timeout error what am I doing wrong

help in "deisctl list" I have just started with deis and am following the tutorial of using deis in vagrant
am stuck at the part am doing deisctl list am getting this as the output
INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: ssh: rejected: connect failed (Connection refused)
Error: timeout reached
Your DEISCTL_TUNNEL value is either incorrect or unreachable due to networking/routing/firewall, etc...

Resources