jenkinsci / login-theme-plugin

Simple plugin to customize the Jenkins login and signup pages
https://plugins.jenkins.io/login-theme
15 stars 23 forks source link

Blank screen with latest Jenkins 2.417 #26

Open guillemc23 opened 1 year ago

guillemc23 commented 1 year ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.417 OS: Linux - 5.10.103-v7l+ Java: 11.0.16 - Raspbian (OpenJDK Server VM) --- ace-editor:1.1 antisamy-markup-formatter:162.v0e6ec0fcfcf6 apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 authentication-tokens:1.53.v1c90fd9191a_b_ blueocean:1.27.5 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.5 blueocean-commons:1.27.5 blueocean-config:1.27.5 blueocean-core-js:1.27.5 blueocean-dashboard:1.27.5 blueocean-display-url:2.4.2 blueocean-events:1.27.5 blueocean-git-pipeline:1.27.5 blueocean-github-pipeline:1.27.5 blueocean-i18n:1.27.5 blueocean-jwt:1.27.5 blueocean-personalization:1.27.5 blueocean-pipeline-api-impl:1.27.5 blueocean-pipeline-editor:1.27.5 blueocean-pipeline-scm-api:1.27.5 blueocean-rest:1.27.5 blueocean-rest-impl:1.27.5 blueocean-web:1.27.5 bootstrap5-api:5.3.0-1 bouncycastle-api:2.29 branch-api:2.1122.v09cb_8ea_8a_724 build-environment:1.7 build-timeout:1.31 caffeine-api:3.1.6-115.vb_8b_b_328e59d8 checks-api:2.0.0 cloudbees-bitbucket-branch-source:825.va_6a_dc46a_f97d cloudbees-folder:6.815.v0dd5a_cb_40e0e command-launcher:106.vb_a_b_8f751309c commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-36.vc008c8fcda_7b_ config-file-provider:952.va_544a_6234b_46 credentials:1271.v54b_1c2c6388a_ credentials-binding:631.v861c06d062b_4 dashboard-view:2.495.v07e81500c3f2 display-url-api:2.3.8 durable-task:513.vc48a_a_075a_d93 echarts-api:5.4.0-5 email-ext:2.100 external-monitor-job:207.v98a_a_37a_85525 favorite:2.4.2 font-awesome-api:6.4.0-2 git:5.2.0 git-client:4.4.0 git-parameter:0.9.19 github:1.37.2 github-api:1.314-431.v78d72a_3fe4c3 github-branch-source:1730.vff97c8a_1f804 github-oauth:588.vf696a_350572a_ gravatar:2.2 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 htmlpublisher:1.32 instance-identity:173.va_37c494ec4e5 ionicons-api:56.v1b_1c8c49374e jackson2-api:2.15.2-350.v0c2f3f8fc595 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:243.vb_b_503b_b_45537 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:73.vddf737284550 jenkins-design-language:1.27.5 jfrog:1.4.0 jjwt-api:0.11.5-77.v646c772fddb_0 jquery3-api:3.7.0-1 jsch:0.2.8-65.v052c39de79b_2 junit:1217.v4297208a_a_b_ce ldap:682.v7b_544c9d1512 mailer:463.vedf8358e006b_ matrix-auth:3.1.10 matrix-project:802.v8013b_40c7edc maven-plugin:3.22 mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_ mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_ multibranch-scan-webhook-trigger:1.0.9 nodejs:1.6.0 okhttp-api:4.11.0-145.vcb_8de402ef81 pam-auth:1.10 pipeline-build-step:505.v5f0844d8d126 pipeline-github-lib:42.v0739460cda_c4 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:671.v07c339c842e8 pipeline-input-step:477.v339683a_8d55e pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2144.v077a_d1928a_40 pipeline-model-definition:2.2144.v077a_d1928a_40 pipeline-model-extensions:2.2144.v077a_d1928a_40 pipeline-rest-api:2.33 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2144.v077a_d1928a_40 pipeline-stage-view:2.33 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:3.3.0 popper2-api:2.11.6-2 pubsub-light:1.17 resource-disposer:0.23 scm-api:676.v886669a_199a_a_ script-security:1264.vecf66020eb_7d simple-theme-plugin:160.vb_76454b_67900 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sse-gateway:1.26 ssh:2.6.1 ssh-credentials:308.ve4497b_ccd8f4 ssh-slaves:2.916.vd17b_43357ce4 ssh-steps:2.0.65.vd26b_5b_9b_de4d sshd:3.312.v1c601b_c83b_0e structs:324.va_f5d6774f3a_d timestamper:1.26 token-macro:359.vb_cde11682e0c trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb windows-slaves:1.8.1 workflow-aggregator:596.v8c21c963d92d workflow-api:1251.vd4889a_b_0a_065 workflow-basic-steps:1042.ve7b_140c4a_e0c workflow-cps:3731.ve4b_5b_857b_a_d3 workflow-durable-task-step:1278.v94b_dc2b_50c6f workflow-job:1316.vd2290d3341a_f workflow-multibranch:756.v891d88f2cd46 workflow-scm-step:415.v434365564324 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:848.v5a_383b_d14921 ws-cleanup:0.45 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Raspbian 10 buster

Reproduction steps

  1. Install Login Theme plugin
  2. Restart Jenkins
  3. It will never run unless I manually go to the plugins folder and delete the .jpi file

Expected Results

The expected result would be to boot normally and then change the appearance of the Login screen

Actual Results

The installation goes as expected but, when restarting Jenkins it goes into a blank screen and just never loads. Once I delete the corresponding login-theme.jpi file, it goes back to normal

Anything else?

No response

jonesbusy commented 1 year ago

Hi,

Did you try with LTS latest version ? (2.401.3)

There was some breaking changes on Core 2.404 that are still not fixed on this plugin.

See https://issues.jenkins.io/browse/JENKINS-71238

Not sure if related.

Regards,

guillemc23 commented 1 year ago

It might be related since I'm already seeing the new design. I'm on weekly release and I'm a bit reticent to downgrading to the previous LTS... I will migrate to the next LTS but I'd rather not go back 😅

guillemc23 commented 1 year ago

Hey @jonesbusy, I rolled back to LTS and it still doesn't work. It appears to load whatever is on the plugin options but the screen is blank. I also tried disabling the Simple Theme Plugin as they might collide but still no luck.

Is this still the way to go with this plugin? https://stackoverflow.com/a/70360371/10235443 It was written in 2021 but it still looks good.

jonesbusy commented 1 year ago

Hi,

I can confirm it's working with latest LTS. I have many instances running with custom login theme.

I suppose I could be configuration issue or conflict with other plugin.

Do you have any logs on the controller or browser ?

Regards,

guillemc23 commented 1 year ago

Can you confirm the way detailed in this answer is still the proper way to use the plugin?

mesnati commented 1 year ago

Hi there! I am using 2.414.2 LTE and only plugin that is installed is Login Theme plugin. And it doesn't work :(

I put this in HEAD section:

<style>
.simple-page .logo {
  background-image: url('https://www.jenkins.io/images/logos/brno/brno.png');
  background-repeat: no-repeat;
  background-position: 35% 0;
  height: 300px;
  background-size: contain;
}
.simple-page .logo > img {
  display: none;
}
</style>

And the following in the HEADER section:

<style>
#loginIntroDefault h1 {
    visibility: hidden;
}
#loginIntroDefault h1:after {
    content: 'Welcome to gCore Jenkins!';
    visibility: visible;
    display: block;
}
</style>

Use default theme checkbox is not checked! Any help would be appreciated! Thanks! Brgds, M

login