Deleted plugins keeps coming back after jenkins restart

Jenkins setup:
Jenkins: 2.426.3
OS: Linux - 5.10.210-201.855.amzn2.x86_64
Java: 17.0.9 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)

ace-editor:1.1
amazon-ecr:1.114.vfd22430621f5
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7-33.v4d23ef79fcc8
authentication-tokens:1.53.v1c90fd9191a_b_
authorize-project:1.7.1
aws-credentials:231.v08a_59f17d742
aws-java-sdk-api-gateway:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-autoscaling:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-cloudformation:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-cloudfront:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-codebuild:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-codedeploy:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-ec2:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-ecr:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-ecs:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-efs:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-elasticbeanstalk:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-elasticloadbalancingv2:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-iam:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-kinesis:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-lambda:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-logs:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-minimal:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-organizations:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-secretsmanager:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-sns:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-sqs:1.12.671-445.ve02f9b_558f2e
aws-java-sdk-ssm:1.12.671-445.ve02f9b_558f2e
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1152.v6f101e97dd77
build-name-setter:2.4.2
build-user-vars-plugin:1.9
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloudbees-folder:6.858.v898218f3609d
command-launcher:100.v2f6722292ee8
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-95.v22a_d30ee5d36
configuration-as-code:1775.v810dc950b_514
copyartifact:722.v0662a_9b_e22a_c
credentials:1337.v60b_d7b_c7b_c9f
credentials-binding:657.v2b_19db_7d6e6d
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
durable-task:550.v0930093c4b_a_6
echarts-api:5.5.0-1
extended-choice-parameter:381.v360a_25ea_017c
font-awesome-api:6.5.1-3
git:5.2.1
git-client:4.7.0
git-parameter:0.9.19
git-server:114.v068a_c7cc2574
google-chat-notification:141.va_4b_b_6a_25483c
gson-api:2.10.1-15.v0d99f670e0a_7
instance-identity:185.v303dc7c645f9
ionicons-api:70.v2959a_b_74e3cf
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_
jquery3-api:3.7.1-2
jsch:0.1.55.2
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1265.v65b_14fa_f12f0
kubernetes:4203.v1dd44f5b_1cf9
kubernetes-cli:1.12.1
kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2
kubernetes-credentials:0.11
locale:431.v3435fa_8f8445
mailer:470.vc91f60c5d8e2
matrix-auth:3.2.2
matrix-project:822.824.v14451b_c0fd42
metrics:4.2.21-449.v6960d7c54c69
mina-sshd-api-common:2.12.1-101.v85b_e08b_780dd
mina-sshd-api-core:2.12.1-101.v85b_e08b_780dd
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
pipeline-aws:1.45
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:704.vc58b_8890a_384
pipeline-input-step:477.v339683a_8d55e
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2184.v0b_358b_953e69
pipeline-model-definition:2.2184.v0b_358b_953e69
pipeline-model-extensions:2.2184.v0b_358b_953e69
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2184.v0b_358b_953e69
pipeline-stage-view:2.34
plain-credentials:179.vc5cb_98f6db_38
plugin-util-api:4.1.0
popper2-api:2.11.6-1
prism-api:1.29.0-13
role-strategy:713.vb_3837801b_8cc
saml:4.464.vea_cb_75d7f5e0
scm-api:689.v237b_6d3a_ef7f
script-security:1326.vdb_c154de8669
simple-theme-plugin:176.v39740c03a_a_f5
slack:684.v833089650554
snakeyaml-api:2.2-111.vc6598e30cc65
ssh-credentials:337.v395d2403ccd4
sshd:3.322.v159e91f6a_550
structs:337.v1b_04ea_4df7c8
thinBackup:1.19
token-macro:400.v35420b_922dcb_
trilead-api:2.142.v748523a_76693
uno-choice:2.8.3
variant:60.v7290fc0eb_b_cd
workflow-aggregator:596.v8c21c963d92d
workflow-api:1291.v51fd2a_625da_7
workflow-basic-steps:1049.v257a_e6b_30fb_d
workflow-cps:3894.vd0f0248b_a_fc4
workflow-cps-global-lib:2.19
workflow-durable-task-step:1331.vc8c2fed35334
workflow-job:1385.vb_58b_86ea_fff1
workflow-multibranch:773.vc4fe1378f1d5
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:657.v03b_e8115821b_
workflow-support:896.v175a_a_9c5b_78f
Hi,
I am trying to manage jenkins plugins with helm values.yaml config file. When I compare my config file with plugin list in Dashboard => Manage Jenkins => Plugins => Installed plugins, I saw that values.yaml does not incluede plugins workflow-cps-global-lib, popper2-api, jsch,ace-editor, javax-mail-api, command-launcher,aws-java-sdk. I checked them on Jenkins dashboard and see I can uninstall them (so they are not dependency to other plugins) to sync plugin config with actual state. However they enter Uninstallation pending state, comes back when I restart jenkins. How can I delete these plugins and what could be the reason of this situation?
Thank you

I noticed a similar issue but with fewer plugins than you. Several plugins used to be part of the core of Jenkins such as maven, svn, etc… and these would always come back no matter what I did. In newer versions of Jenkins this seems to have improved but I still see a few remaining plugins that always come back. We are on the latest 2.440 LTS so there are less of these plugins, so maybe you can try with 2.440 and see if you are able to get rid of more plugins.

I would check the version of your helm chart as well. The init container logic has changed in newer versions. We are still on an older chart (v3.x IIRC), but we plan on upgrading to the latest chart as soon as we get some free cycles to test and deploy it (older chart upgrades broke many things, but that should not be the case anymore).

1 Like

The issue you’re experiencing might be due to the fact that these plugins may be dependencies of other plugins that are still installed in your Jenkins instance. Even if the Jenkins UI doesn’t explicitly list them as dependencies, they might still be required by other plugins. :person_shrugging:

Plugins like ace-editor are obsolete. They can be uninstalled and they should not come back. This can only happen when there is some other process, that fills the plugins directory.
Some other plugins like javax-mail-api will come back if you have an older plugin installed that might implicitly depend on it. I was also not able to permanently remove. But what works is to disable the plugin and then it stayed disabled.