JWT authentication via -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true causing blue ocean UI to hang

14 views
Skip to first unread message

jackha...@gmail.com

unread,
Aug 10, 2018, 5:07:22 PM8/10/18
to Jenkins Users
Hi folks,

I'm running the jenkinsci/blueocean docker container on docker for mac.  Out of the box I'm able to create pipelines and run them, but I tried to turn on JWT security and after doing that the blue ocean UI won't load.  I get the blue progress bar going about 9/10ths of the way done but it just stays there and never completes.

I tried to use this docker run command to turn on JWT security:

docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --env JAVA_OPTS=-DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true jenkinsci/blueocean

If I stop the container (docker container stop jenkins-blueocean) and run the docker image without the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true flag, then my server comes up and behaves normally. 

If I flip back to the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true flag as shown in the docker run command above I get this situation every time, and I'm unable to access the UI.

The command I'm using to launch the container without JWT security is almost identical to the above, it simply lacks the construct to pass the -D flag like this:

docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean

When launched like this without the -D flag for JWT all's well.  Am I doing something wrong?

Should I enter a jira ticket for this?

jackha...@gmail.com

unread,
Aug 10, 2018, 6:16:13 PM8/10/18
to Jenkins Users
I just captured some logs after turning on the JWT authn, and these log lines appear to be happening when I try to access the UI:

INFO: Jenkins is fully up and running
--> setting agent port for jnlp
--> setting agent port for jnlp... done
Aug 10, 2018 10:13:18 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #24
Aug 10, 2018 10:13:18 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #24
Aug 10, 2018 10:13:31 PM org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue doConfigure
WARNING: Failed Jenkins SSE Gateway configuration request. Unknown SSE event dispatcher jenkins-blueocean-core-js-1533926504228-5sq7f
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #24
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #24
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #23
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #23
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #22
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #22
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #20
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #20
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #19
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #19
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #17
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #17
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #16
Aug 10, 2018 10:13:35 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #16
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #14
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #14
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #13
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #13
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #12
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #12
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #11
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #11
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #10
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #10
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #9
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #9
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #8
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #8
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #7
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #7
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #5
Aug 10, 2018 10:13:36 PM org.jenkinsci.plugins.workflow.support.steps.input.InputAction loadExecutions
WARNING: no flow execution found for creating-a-pipeline-in-blue-ocean/master #5

Vivek Pandey

unread,
Aug 14, 2018, 8:54:40 PM8/14/18
to jenkins...@googlegroups.com
BLUEOCEAN_FEATURE_JWT_AUTHENTICATION feature flag is experimental and not ready for prime use yet. Having said that, it shouldn't cause hang. Please open a JIRA ticket.


--
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/0ed7a7c9-71f4-40a6-8bca-393026de4ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jack Hart

unread,
Aug 16, 2018, 12:00:25 AM8/16/18
to jenkins...@googlegroups.com
Thanks Vivek, I was beginning to get that impression myself.  Do you have the link to the jira?

--j

On Tue, Aug 14, 2018 at 5:54 PM, Vivek Pandey <vivek....@gmail.com> wrote:
BLUEOCEAN_FEATURE_JWT_AUTHENTICATION feature flag is experimental and not ready for prime use yet. Having said that, it shouldn't cause hang. Please open a JIRA ticket.

On Fri, Aug 10, 2018 at 2:07 PM <jackha...@gmail.com> wrote:
Hi folks,

I'm running the jenkinsci/blueocean docker container on docker for mac.  Out of the box I'm able to create pipelines and run them, but I tried to turn on JWT security and after doing that the blue ocean UI won't load.  I get the blue progress bar going about 9/10ths of the way done but it just stays there and never completes.

I tried to use this docker run command to turn on JWT security:

docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --env JAVA_OPTS=-DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true jenkinsci/blueocean

If I stop the container (docker container stop jenkins-blueocean) and run the docker image without the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true flag, then my server comes up and behaves normally. 

If I flip back to the -DBLUEOCEAN_FEATURE_JWT_AUTHENTICATION=true flag as shown in the docker run command above I get this situation every time, and I'm unable to access the UI.

The command I'm using to launch the container without JWT security is almost identical to the above, it simply lacks the construct to pass the -D flag like this:

docker run -u root --rm  --name jenkins-blueocean -d  -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean

When launched like this without the -D flag for JWT all's well.  Am I doing something wrong?

Should I enter a jira ticket for this?

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKT4V18HCmLBL9_87i6oXM2gnhpku%2Bi7-m14Ex9u_6R-xNFpaQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages