Hi,
We have a deployment in AWS EKS with ALB, traffic routing: Client → ALB → Istio → Jenkins
Image: jenkins/jenkins:2.332.1-jdk11
Originally, it works fine with this URL: (https ://jenkins.monitoring.xxx.xxx.xxx)
Recently, Jenkins returned URL becomes (http ://jenkins.monitoring.xxx.xxx.xxx:443) (http with a port of 443), so I got this error
400 Bad Request
The plain HTTP request was sent to HTTPS port
Here is the trouble shoot I did:
- In the Jenkins > Manage Jenkins > Configure System, Jenkins URL was configured with (https ://jenkins.monitoring.xxx.xxx.xxx), but Jenkins still return http+443, this is the config from Jenkins_home directory:
jenkins@jenkins-0:~$ more jenkins.model.JenkinsLocationConfiguration.xml
<?xml version='1.1' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
<adminAddress>address not configured yet <nobody@nowhere></adminAddress>
<jenkinsUrl>https ://jenkins.monitoring.xxx.xxx.xxx/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>
- When I removed Jenkins URL from UI (save with empty value), this one shows: http ://jenkins.monitoring.xxx.xxx.xxx:443/, and this is the config from Jenkins_home directory:
jenkins@jenkins-0:~$ more jenkins.model.JenkinsLocationConfiguration.xml
<?xml version='1.1' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
<adminAddress>address not configured yet <nobody@nowhere></adminAddress>
</jenkins.model.JenkinsLocationConfiguration>
Seems Jenkins URL config is properly configured, but it’s not taking effect.