Local Jenkins server redirect to AWS Jenkins server

60 views
Skip to first unread message

Michael Ryan

unread,
Aug 23, 2016, 12:38:25 PM8/23/16
to Jenkins Users
We have a Jenkins instance running on an AWS server that we want to move in house.  The process was to create and configure a local Jenkins instance, verify jobs are executing correctly, then switch to the local Jenkins.  I setup the local instance and configured it. Then it began redirecting the main page to the AWS server.  I point my browser to the local IP:8080 and I get the AWS Jenkins home page.  I don't know how the local Jenkins instance even knows about the AWS instance.  How do I correct this?

All help greatly appreciated.
- Michael

Hiteswar

unread,
Aug 23, 2016, 12:56:25 PM8/23/16
to jenkins...@googlegroups.com
Check if If there any proxy  or iptable configured for redirecting or  "manage Jenkins -> configure system -> Jenkins URL" has aws URL .

Regards
hiteswar
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4b29fa6f-fb6e-445f-a228-df6e2ab72fb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Ryan

unread,
Aug 23, 2016, 1:54:12 PM8/23/16
to Jenkins Users
No proxy or iptable configured for redirect. Tried clearing and setting to local server the following:

jenkins.model.JenkinsLocationConfiguration.xml:
 <jenkins.model.JenkinsLocationConfiguration>
  <jenkinsUrl></jenkinsUrl>

Restarted jenkins (rebooted), no luck. Still redirecting.  :(

Couldn't find any reference to the AWS server anywhere in Jenkins home dir.
Anything else I might look at / try?

Thanks!
- Michael

Michael Ryan

unread,
Aug 24, 2016, 7:43:41 PM8/24/16
to Jenkins Users
I deleted that local Jenkins instance and built another on a separate VM.  I was careful not to reference the AWS instance anywhere in the config including the 'Jenkins URL' field.  Searching in the /var/lib/jenkins dir reveals no instances of the name of the AWS jenkins server.  Yet it now redirects me to the AWS server again ?!?

What's going on here?

All help is much appreciated!
-Michael


On Tuesday, August 23, 2016 at 9:56:25 AM UTC-7, Hiteswar kumar wrote:

niristotle okram

unread,
Aug 25, 2016, 12:59:38 AM8/25/16
to jenkins...@googlegroups.com
How is your local jenkins installed? Do you have any proxy server like apache/nginx? If yes you might want to look into the conf file. 

 I point my browser to the local IP:8080 and I get the AWS Jenkins home page.
> check if the hosts file doesn't have a name resolution set to the old AWS fqdn. if not set, tried cleaning the browser cache/history etc? Id this local IP is a private ip, within your corp network, there is no way to pull up the page from the aws instance. Unless you have some sort of vpn tunneling going on from your corp network to an aws vpc 


Also try changing the port from 8080 to something else like 8082 on your local instance of jenkins and check out. 


Good Luck!







To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7d14898c-05e3-495a-8682-592737d708da%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards
nirish okram

Michael Ryan

unread,
Aug 25, 2016, 12:27:37 PM8/25/16
to Jenkins Users
Problem solved.  'GitHub Authentication Plugin' was selected as the Security Realm.  Github OAuth was doing the redirect to the AWS server.

Thanks for the suggestions!
- Michael



--
Regards
nirish okram
Reply all
Reply to author
Forward
0 new messages