Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
Finally figured it out. Was looking in the wrong place. The file you need to update is under /etc/ngnix/site-enabled/jenkins.conf. As stated by Dominic above replace: proxy_redirect off; with proxy_redirect http:// https://; then sudo service jenkins restart sudo service ngnix restart and you are good to go. Thanks for the help. On Tuesday, August 2, 2016 at 3:07:29 PM UTC-4, Dan QAmbox wrote: > > Hi there. > > I tried this but it does not work. I also upgraded to the latest alpha > release but that didn't fix the issue either. Would it be possible to for > you share you NGNIX config so I can check it against mine to see why its > not working. > > Thank you in advance. > > > On Wednesday, July 27, 2016 at 8:16:25 PM UTC-4, Dominic Scheirlinck wrote: >> >> Hi Michael, >> >> The relevant part is the proxy_redirect directive (I had mine at 'off'). >> >> Jenkins generates a redirect, and nginx (if acting as a reverse proxy) >> has to rewrite the location to the correct one (Jenkins, running behind the >> reverse proxy, is relatively correct in redirecting to HTTP I believe). >> Something like this directive should fix the problem: >> proxy_redirect http:// https://; >> >> This is mentioned by the wiki: >> >> https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy >> >> I guess the only real strange thing is that I managed to go this long >> without something else breaking it! >> >> >> Dom >> >> >> On Thursday, 28 July 2016 12:03:23 UTC+12, Michael Neale wrote: >>> >>> Are you able to share the relevant parts of your nginx config? >>> >>> I that redirect seems to be the problem (it should not redirect to non >>> https, that seems a bug). I assume you are using example.com instead of >>> your actual url just by way of example? >>> >>> On Thursday, July 28, 2016 at 9:59:53 AM UTC+10, Dominic Scheirlinck >>> wrote: >>>> >>>> Here's what's going on according to my testing: >>>> >>>> - /blue/js-extensions/ is the only affected resource >>>> - The page attempts to load https://example.com/blue/js-extensions >>>> (NB: no trailing slash) >>>> - This results in a 302, redirecting to Location: >>>> http://example.com/blue/js-extensions/ (NB: trailing slash, but no >>>> HTTPS) >>>> - If I'm visiting this location directly, HSTS will send me (307) to >>>> https://example.com/blue/js-extensions/ (finally, the working URL), >>>> but HSTS doesn't seem to be applied to
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
Hi there. I tried this but it does not work. I also upgraded to the latest alpha release but that didn't fix the issue either. Would it be possible to for you share you NGNIX config so I can check it against mine to see why its not working. Thank you in advance. On Wednesday, July 27, 2016 at 8:16:25 PM UTC-4, Dominic Scheirlinck wrote: > > Hi Michael, > > The relevant part is the proxy_redirect directive (I had mine at 'off'). > > Jenkins generates a redirect, and nginx (if acting as a reverse proxy) has > to rewrite the location to the correct one (Jenkins, running behind the > reverse proxy, is relatively correct in redirecting to HTTP I believe). > Something like this directive should fix the problem: > proxy_redirect http:// https://; > > This is mentioned by the wiki: > > https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy > > I guess the only real strange thing is that I managed to go this long > without something else breaking it! > > > Dom > > > On Thursday, 28 July 2016 12:03:23 UTC+12, Michael Neale wrote: >> >> Are you able to share the relevant parts of your nginx config? >> >> I that redirect seems to be the problem (it should not redirect to non >> https, that seems a bug). I assume you are using example.com instead of >> your actual url just by way of example? >> >> On Thursday, July 28, 2016 at 9:59:53 AM UTC+10, Dominic Scheirlinck >> wrote: >>> >>> Here's what's going on according to my testing: >>> >>> - /blue/js-extensions/ is the only affected resource >>> - The page attempts to load https://example.com/blue/js-extensions >>> (NB: no trailing slash) >>> - This results in a 302, redirecting to Location: >>> http://example.com/blue/js-extensions/ (NB: trailing slash, but no >>> HTTPS) >>> - If I'm visiting this location directly, HSTS will send me (307) to >>> https://example.com/blue/js-extensions/ (finally, the working URL), but >>> HSTS doesn't seem to be applied to
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
This is the EXACT behavior I am seeing. I have tried to update my NGNIX proxy but no matter what I change, its still not working. Can you provide what your ngnix configs look like so I can see where I might be off. Also note our jenkins box does not use jenkins in the DNS name. Doubt that should matter but thought I would mention it, Thank you for the assistance. Sincerely, On Wednesday, July 27, 2016 at 7:59:53 PM UTC-4, Dominic Scheirlinck wrote: > > Here's what's going on according to my testing: > > - /blue/js-extensions/ is the only affected resource > - The page attempts to load https://example.com/blue/js-extensions (NB: > no trailing slash) > - This results in a 302, redirecting to Location: > http://example.com/blue/js-extensions/ (NB: trailing slash, but no HTTPS) > - If I'm visiting this location directly, HSTS will send me (307) to > https://example.com/blue/js-extensions/ (finally, the working URL), but > HSTS doesn't seem to be applied to
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
Sorry forgot link: http://stackoverflow.com/questions/18251128/why-am-i-suddenly-getting-a-blocked-loading-mixed-active-content-issue-in-fire On Wednesday, July 27, 2016 at 2:40:24 PM UTC-4, Dan QAmbox wrote: > > This is the issue it seems, but have no idea where to look to set the src > locally in the files to src=//. > > On Wednesday, July 27, 2016 at 10:33:39 AM UTC-4, Dan QAmbox wrote: >> >> Wonder is this may be related: >> https://issues.jenkins-ci.org/browse/JENKINS-14223 >> >> On Wednesday, July 27, 2016 at 9:49:43 AM UTC-4, Dan QAmbox wrote: >>> >>> I restarted the server after updating the url in the configs to use >>> https. Still getting the same error. Is still thinks that the url is http. >>> Is there another place I need to set the https in the configs? >>> >>> Sincerely >>> >>> On Wednesday, July 27, 2016 at 2:13:28 AM UTC-4, James Dumay wrote: >>>> >>>> Does bouncing your Jenkins server help? Strangely we use https on >>>> blueocean.io right now and we are not seeing any issues. >>>> >>>> On Wednesday, July 27, 2016 at 6:24:55 AM UTC+10, Dan QAmbox wrote: >>>>> >>>>> I went in and updated that to be HTTPS. I saved it but still getting >>>>> the same error in the console when trying to go to the blue ocean url. >>>>> >>>>> Any other ideas? >>>>> >>>>> Thanks for the help. >>>>> >>>>> Sincerely, >>>>> >>>>> On Tuesday, July 26, 2016 at 2:25:29 PM UTC-4, Daniel Beck wrote: >>>>>> >>>>>> What URL is configured in Manage Jenkins » Configure Jenkins » >>>>>> Jenkins Location? Should be HTTPS if you access Jenkins that way. >>>>>> >>>>>> > On 26.07.2016, at 17:37, Dan QAmbox wrote: >>>>>> > >>>>>> > Hi there. >>>>>> > >>>>>> > I just installed the alpha version of the Blue Ocean plugin. I see >>>>>> the blue "Try Blue Ocean" button at the top of the page. However, when I >>>>>> try to get to the page I get an error in the console: >>>>>> > >>>>>> > Mixed Content: The page at 'https://a.b.com/blue/' was loaded over >>>>>> HTTPS, but requested an insecure XMLHttpRequest endpoint ' >>>>>> http://a.b.com/blue/js-extensions/'. This request has been blocked; >>>>>> the content must be served over HTTPS. >>>>>> > >>>>>> > Is this something I can fix locally or can someone patch it? I know >>>>>> its a alpha,but was hoping to at least get it to load up so I can test >>>>>> it >>>>>> out. >>>>>> > >>>>>> > Thanks in Advance. >>>>>> > >>>>>> > >>>>>> > >>>>>> > -- >>>>>> > 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/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. >>>>>> >>>>>> >>>>>> > For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>>> -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dbf7a05c-811b-4f47-909f-03dd8d61edfd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
This is the issue it seems, but have no idea where to look to set the src locally in the files to src=//. On Wednesday, July 27, 2016 at 10:33:39 AM UTC-4, Dan QAmbox wrote: > > Wonder is this may be related: > https://issues.jenkins-ci.org/browse/JENKINS-14223 > > On Wednesday, July 27, 2016 at 9:49:43 AM UTC-4, Dan QAmbox wrote: >> >> I restarted the server after updating the url in the configs to use >> https. Still getting the same error. Is still thinks that the url is http. >> Is there another place I need to set the https in the configs? >> >> Sincerely >> >> On Wednesday, July 27, 2016 at 2:13:28 AM UTC-4, James Dumay wrote: >>> >>> Does bouncing your Jenkins server help? Strangely we use https on >>> blueocean.io right now and we are not seeing any issues. >>> >>> On Wednesday, July 27, 2016 at 6:24:55 AM UTC+10, Dan QAmbox wrote: >>>> >>>> I went in and updated that to be HTTPS. I saved it but still getting >>>> the same error in the console when trying to go to the blue ocean url. >>>> >>>> Any other ideas? >>>> >>>> Thanks for the help. >>>> >>>> Sincerely, >>>> >>>> On Tuesday, July 26, 2016 at 2:25:29 PM UTC-4, Daniel Beck wrote: >>>>> >>>>> What URL is configured in Manage Jenkins » Configure Jenkins » Jenkins >>>>> Location? Should be HTTPS if you access Jenkins that way. >>>>> >>>>> > On 26.07.2016, at 17:37, Dan QAmbox wrote: >>>>> > >>>>> > Hi there. >>>>> > >>>>> > I just installed the alpha version of the Blue Ocean plugin. I see >>>>> the blue "Try Blue Ocean" button at the top of the page. However, when I >>>>> try to get to the page I get an error in the console: >>>>> > >>>>> > Mixed Content: The page at 'https://a.b.com/blue/' was loaded over >>>>> HTTPS, but requested an insecure XMLHttpRequest endpoint ' >>>>> http://a.b.com/blue/js-extensions/'. This request has been blocked; >>>>> the content must be served over HTTPS. >>>>> > >>>>> > Is this something I can fix locally or can someone patch it? I know >>>>> its a alpha,but was hoping to at least get it to load up so I can test it >>>>> out. >>>>> > >>>>> > Thanks in Advance. >>>>> > >>>>> > >>>>> > >>>>> > -- >>>>> > 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/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. >>>>> >>>>> >>>>> > For more options, visit https://groups.google.com/d/optout. >>>>> >>>>> -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5a598ff7-6657-423c-aa59-714cd6d0bd80%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
Wonder is this may be related: https://issues.jenkins-ci.org/browse/JENKINS-14223 On Wednesday, July 27, 2016 at 9:49:43 AM UTC-4, Dan QAmbox wrote: > > I restarted the server after updating the url in the configs to use https. > Still getting the same error. Is still thinks that the url is http. Is > there another place I need to set the https in the configs? > > Sincerely > > On Wednesday, July 27, 2016 at 2:13:28 AM UTC-4, James Dumay wrote: >> >> Does bouncing your Jenkins server help? Strangely we use https on >> blueocean.io right now and we are not seeing any issues. >> >> On Wednesday, July 27, 2016 at 6:24:55 AM UTC+10, Dan QAmbox wrote: >>> >>> I went in and updated that to be HTTPS. I saved it but still getting the >>> same error in the console when trying to go to the blue ocean url. >>> >>> Any other ideas? >>> >>> Thanks for the help. >>> >>> Sincerely, >>> >>> On Tuesday, July 26, 2016 at 2:25:29 PM UTC-4, Daniel Beck wrote: >>>> >>>> What URL is configured in Manage Jenkins » Configure Jenkins » Jenkins >>>> Location? Should be HTTPS if you access Jenkins that way. >>>> >>>> > On 26.07.2016, at 17:37, Dan QAmbox wrote: >>>> > >>>> > Hi there. >>>> > >>>> > I just installed the alpha version of the Blue Ocean plugin. I see >>>> the blue "Try Blue Ocean" button at the top of the page. However, when I >>>> try to get to the page I get an error in the console: >>>> > >>>> > Mixed Content: The page at 'https://a.b.com/blue/' was loaded over >>>> HTTPS, but requested an insecure XMLHttpRequest endpoint ' >>>> http://a.b.com/blue/js-extensions/'. This request has been blocked; >>>> the content must be served over HTTPS. >>>> > >>>> > Is this something I can fix locally or can someone patch it? I know >>>> its a alpha,but was hoping to at least get it to load up so I can test it >>>> out. >>>> > >>>> > Thanks in Advance. >>>> > >>>> > >>>> > >>>> > -- >>>> > 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/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. >>>> >>>> >>>> > For more options, visit https://groups.google.com/d/optout. >>>> >>>> -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/84c71612-5f77-48e7-b475-4482c60a1d09%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
I restarted the server after updating the url in the configs to use https. Still getting the same error. Is still thinks that the url is http. Is there another place I need to set the https in the configs? Sincerely On Wednesday, July 27, 2016 at 2:13:28 AM UTC-4, James Dumay wrote: > > Does bouncing your Jenkins server help? Strangely we use https on > blueocean.io right now and we are not seeing any issues. > > On Wednesday, July 27, 2016 at 6:24:55 AM UTC+10, Dan QAmbox wrote: >> >> I went in and updated that to be HTTPS. I saved it but still getting the >> same error in the console when trying to go to the blue ocean url. >> >> Any other ideas? >> >> Thanks for the help. >> >> Sincerely, >> >> On Tuesday, July 26, 2016 at 2:25:29 PM UTC-4, Daniel Beck wrote: >>> >>> What URL is configured in Manage Jenkins » Configure Jenkins » Jenkins >>> Location? Should be HTTPS if you access Jenkins that way. >>> >>> > On 26.07.2016, at 17:37, Dan QAmbox wrote: >>> > >>> > Hi there. >>> > >>> > I just installed the alpha version of the Blue Ocean plugin. I see the >>> blue "Try Blue Ocean" button at the top of the page. However, when I try to >>> get to the page I get an error in the console: >>> > >>> > Mixed Content: The page at 'https://a.b.com/blue/' was loaded over >>> HTTPS, but requested an insecure XMLHttpRequest endpoint ' >>> http://a.b.com/blue/js-extensions/'. This request has been blocked; the >>> content must be served over HTTPS. >>> > >>> > Is this something I can fix locally or can someone patch it? I know >>> its a alpha,but was hoping to at least get it to load up so I can test it >>> out. >>> > >>> > Thanks in Advance. >>> > >>> > >>> > >>> > -- >>> > 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/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. >>> >>> >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5481c148-e72c-4870-888e-1c05d6faa0bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Blue Ocean Alpha Plugin - HTTP error of HTTPS
I went in and updated that to be HTTPS. I saved it but still getting the same error in the console when trying to go to the blue ocean url. Any other ideas? Thanks for the help. Sincerely, On Tuesday, July 26, 2016 at 2:25:29 PM UTC-4, Daniel Beck wrote: > > What URL is configured in Manage Jenkins » Configure Jenkins » Jenkins > Location? Should be HTTPS if you access Jenkins that way. > > > On 26.07.2016, at 17:37, Dan QAmbox > > wrote: > > > > Hi there. > > > > I just installed the alpha version of the Blue Ocean plugin. I see the > blue "Try Blue Ocean" button at the top of the page. However, when I try to > get to the page I get an error in the console: > > > > Mixed Content: The page at 'https://a.b.com/blue/' was loaded over > HTTPS, but requested an insecure XMLHttpRequest endpoint ' > http://a.b.com/blue/js-extensions/'. This request has been blocked; the > content must be served over HTTPS. > > > > Is this something I can fix locally or can someone patch it? I know its > a alpha,but was hoping to at least get it to load up so I can test it out. > > > > Thanks in Advance. > > > > > > > > -- > > 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/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/93087aa1-e60e-4b5c-a3ea-d6400ec2dfe7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Blue Ocean Alpha Plugin - HTTP error of HTTPS
Hi there. I just installed the alpha version of the Blue Ocean plugin. I see the blue "Try Blue Ocean" button at the top of the page. However, when I try to get to the page I get an error in the console: Mixed Content: The page at 'https://a.b.com/blue/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://a.b.com/blue/js-extensions/'. This request has been blocked; the content must be served over HTTPS. Is this something I can fix locally or can someone patch it? I know its a alpha,but was hoping to at least get it to load up so I can test it out. Thanks in Advance. -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e0dcb993-e775-4997-9090-0afb1b237829%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.