Error 503 with Varnish turned off. what to do? - server

Such a problem, when updating posts (powered by Wordpress), the following message appears:
Error 503 first byte timeout first byte timeout. Varnish server
Services on the server with it do not fall, the most interesting thing is that Varnish on the server is not installed at all. Tell me how to solve this problem?

Related

Error: queryTxt ESERVFAIL cluster0.b4oyxi0.mongodb.net

I am developing a MERN stack application. My Node web server used to work fine. Recently however, whenever I start my Node server, I get the following error:
[1] Error: queryTxt ESERVFAIL cluster0.b4oyxi0.mongodb.net
[0] [HPM] Error occurred while proxying request localhost:3000/api/users/login to http://localhost:5000/ [ECONNRESET] (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [nodemon] app crashed - waiting for file changes before starting...
What does this error mean and how can I fix it?
Not exactly sure what the error means. I encountered a similar error and the non +srv connection string did it for me.
To get one,
head out to your Atlas Dashboard under Database Deployment,
click Connect,
then choose Connect your application.
On the Node.js driver version, lower that to 2.2.12 or later.
This should give the connection string.
It's a DNS server issue. Try changing your DNS server in your network settings to any of these, or any other trusted one you know:
208.67.222.222
1.1.1.1
8.8.8.8
9.9.9.9

Getting "upstream connect errors" when browsing my Grafana deployment on K8s/Istio

I'm using Grafana v7.3.3 connected to a PostgreSQL. I have it running in a Kubernetes environment using Istio, deployed via ArgoCD. Everything will work fine with the site about 50% of the time, but the other 50% of the timeit will have the following types of errors:
503 Service Unavailable -> upstream connect error or disconnect/reset before headers. reset reason: connection termination
Error upstream connect error or disconnect/reset before headers. reset reason: connection termination
I then refresh the page and then half the time it will work properly again. I'm not really seeing anything in the app logs nor Istio logs that can give me any clues. Anyone know what I can start looking at to fix this?
And the errors are sporadic, so it works for a few minutes then you click around or refresh the page, and it is broken, then you refresh and it works fine.

Looking for debugging advice on SSL errors from EKS using varnish

I know this is somewhat specific of a question, but I'm having a problem I can't seem to track down. I have a single pod deployed to EKS - the pod contains a python app, and a varnish reverse caching proxy. I'm serving chunked json (that is, streaming lines of json, a la http://jsonlines.org/), and it can be multiple GB of data.
The first time I make a request, and it hits the python server, everything acts correctly. It takes (much) longer than the cached version, but the entire set of json lines is downloaded. However, now that it's cached in varnish, if I use curl, I get:
curl: (56) GnuTLS recv error (-110): The TLS connection was non-properly terminated.
or
curl: (56) GnuTLS recv error (-9): A TLS packet with unexpected length was received.
The SSL is terminated at the ELB, and when I use curl from the proxy container itself (using curl http://localhost?....), there is no problem.
The hard part of this is that the problem is somewhat intermittent.
If there is any advice in terms of clever varnishlog usage, or anything of the same ilk on AWS, I'd be much obliged.
Thanks!
Because TLS is terminated on your ELB loadbalancers, the connection between should be in plain HTTP.
The error is probably not coming from Varnish, because Varnish currently doesn't handle TLS natively. I'm not sure if varnishlog can give you better insights in what is actually happening.
Checklist
The only checklist I can give you is the following:
Make sure the certificate you're using is valid
Make sure you're connecting to your target group over HTTP, not HTTPS
If you enable the PROXY protocol on your ELB, make sure Varnish has a -a listener that listens for PROXY protocol requests, on top of regular HTTP requests.
Debugging
Perform top-down debugging:
Increase the verbosity of your cURL calls and try to get more information about the error
Try accessing the logs of your ELB and get more details there
Get more information from your EKS logs
And finally, perform a varnislog -g request -q "ReqUrl eq '/your-url'" to get a full Varnishlog for a specific URL

JNLP server returned 503 error

I found some posts on this error but i can't get my JNLP to work.
I try to access a JNLP located on server by the command :
javaws http://:8081/jnlp/Composer.jnlp
The problem is that the server keeps returning 503 error even though my collegue is accessing it with not problem.
I understood that 503 error is a temporary unavailability of the server, but the previous point shows that the server is running fine (we tried several times).
The exact encapsulated error is :
java.io.IOException: Server returned HTTP response code: 503 for URL: http:///jnlp/Composer.jnlp
What i tried to do is
allow the adress of the server in the exception sites
use the option to use IPV4 adress by default for JVM (i saw a post saying that there can be a bug using jre7 if u dont set the option -Djava.net.preferIPv4Stack=true)
restart server
disable firewall.
My problem is that as my collegue can access it, it looks like a client configuration bug, not server.
Does somebody have an idea?
Thanks for your support.

JBoss 7.1 doesn't work after installation and configuration

JBoss doesn't start
and it shows the following error message after trying to connect:
Server JBoss 7.1 Runtime Server was unable to start within 450 second. if the server requires more time, try increasing the timeout in the server editor
When I increase the timeout, it shows the same error message. I tried to change the server and the host name to '172.0.0.1'
Can anyone help me get past this problem or even guide me to a keyword so I can search?