HTTP error 508 from PERL script during redirection of requests from secure to non-secure server - perl

I am getting a strange error in my file upload application.
1) Server 1: It is secure web server on port 443, which is accessible to public hosting a perl script
2) When this server get a request for cgi-bin directory, it will simple redirect the request to other web server (Server 2) running on port 80
3) The perl script in Server 2 will save the file in disk
Issue:
Above mechanism worked for a couple of hours later it has thrown Http error code:508
Observations:
If I directly hit Server2 on port 80, perl script successfully saving the files to disk. But If I directly hit Server1 on port 443, I am getting 508 error
When I first got the issue, I have restarted both webservers and it worked. But when I get the same issue second time, restart of servers did not help. The call to Server1 is throwing 508 error and requests are getting timed out.
ulimits and open files are in control.
If you experience this type of issue, please share your thoughts.

This strange issue has been resolved after moving dynamic service to other Virtual machine. This issue is no longer reproducible after changing the node.

Related

HTTP DCV Local http vs https Caching Error

I'm trying to run AutoSSL to renew or issue a new SSL certificate on my domain. When I run it however I get the following issues on my domain.
I'm running cPanel 106.0.4 and i've tried re-installing both litespeed and cPanel itself. I'm also running CPhulk and ConfigServer Security & Firewall - csf v14.17
I try and delete the .well-known directory and AutoSSL recreates the pki=validation folders in the correct location /home/domain/public_html/.well-known/pki-validation/
I've tried rebuilding IP Address pools, pinging the domain locally to check the IP Address resolves correctly from the server to the server itself, rebuilding the Zone file for the domain.
1:04:07 PM Performing HTTP DCV (Domain Control Validation) on 31 domains …
1:04:07 PM WARN Local HTTP DCV error (mydomain.co.uk): The system queried for a temporary file at “http://mydomain.co.uk/.well-known/pki-validation/45DE0ED1146497E5E2019A467A25C8D6.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
What am i missing here?
Thanks
UPDATE 1
When I pull up http://mydomain.co.uk/.well-known/pki-validation/ I seem to get a different set of files than when I look up the https 443 version https://mydomain.co.uk/.well-known/pki-validation/ however this occurs on multiple devices and browsers implying its a server side caching issue perhaps?

FTP over Secure Gateway on Bluemix

We have java application running on bluemix that is supposed to submit some files over FTP to the server located in intranet.
Everything works as expected when executing the application locally, but something goes wrong when the application tries to submit something over the secure gateway.
The Gateway has a destination configured for the port 21. Looking through the logs we can see that the application is able to connect to the server and execute some commands there, but fails when it comes to the file submission (by timeout in case of passive mode and saying that the connection is closed in active)
Passive attempt results:
Active attempt results:
We are able to use the gateway to connect to the external db2 instance successfully.
Is some additional configuration required? Is FTP is possible at all over the Secure Gateway?
This question was also asked on dW Answers at the following URL:https://developer.ibm.com/answers/questions/386433/ftp-over-secure-gateway-on-bluemix.html
As stated in response to that question, SFTP doesn't run over port 21; it runs over port 22.
Answer found at: https://developer.ibm.com/answers/questions/386433/ftp-over-secure-gateway-on-bluemix.html
"you need to define two secure gateway destinations - one for command
port 21 and one for data port, which will depend on your connection
mode."

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.

Connect to C++ REST sdk SERVER on Windows from LAN

I have a server written on C++ REST SDK.
There's http_listener which listens to "http://localhost:34568".
When I try to send a request in browser or from the client to localhost it works fine and I get the responses from my server. But the point is to use the application in network. And here where the problem comes.
When I try to request the server from the other PC using IP(192.168.1.103:34568) I get "HTTP Error 400. The request hostname is invalid."
I'm aware that that could be some firewall issues but it's turned off. Also I tried to set port rules in brandmauer and it didn't help.
And even more! I got XAMPP running Apache server and when I do the same thing but with (192.168.1.103:80) I do get the response from Apache and have an access.
Anybody had something similar or somebody knows what the problem is about?
Listen to local ip address or to your network name (dns):
"http://xxx.xxx.xxx.xxx:34568" or
"http://your_network_name:34568"
So, if you have multiple network adapters, you can choose which one.

Perl Mechanize throwing connection error while using proxy

I am trying to download pdf files present in a website using perl MECHANIZE module.
It worked fine when i am running the program without any proxy connection. But i am getting the below error when i tried to run the program on the company server which uses proxy connection.
error:
Error GETing http://www.google.com: Can't connect to www.google.com:80
(10060) a t Download.pl line 20.
I am not sure if i need to add any proxy details in the program or Is this something that our company firewall is blocking programatical requests to a website ?
I have tried a lot but coudn't find out. Can any one of you please suggest?
If you using some kind of LWP related module you could set the following shell variables
HTTP_PROXY=your.corp.proxy:your_proxy_port
You could check the connection with telnet or with wget
telnet www.google.com 80
with wget
wget http://www.google.com
You need to specify you proxy to the $mech:
$mech->proxy(['http'], 'http://proxy_address:proxy_port/');